Bluetooth: Acquire wakelock to turn on lcd during Connection

This patch acquires wakelock to turn on LCD display of DUT if screen
is off during connection access request for PBAP/MAP. Without this
patch it was observed that if screen was off, lcd remained off for
incoming connection access request from remote device and user only
was hearing notification sound without lcd being lit up.

Change-Id: I87c296fce4cd8e0c133f74169d991eee263fed08
CRs-Fixed: 650261
Bluetooth: Fix for device gets stuck in pairing

Fix for device gets stuck in pairing when trying to pair to two
devices one after the other or simultaneous. Now second pairing
is blocked when first pairing is ongoing.

Change-Id: Ib7e6788243a38b3a0dd864bee2b0797305468e27
CRs-fixed: 610056
Settings: Fix QuickSettings Style NPE

Change-Id: I75506afb7598f292e0593c379eda8ff573dfe640
Custom actions on navbar recents long press (2/2)

For now 7 actions are possible
1 - none
2 - last app
3 - screenshot
4 - kill app
5 - notifications panel
6 - QS panel
7 - power menu

Change-Id: I33d58911b8d60a6a3d1aa0f065c0654bf9874aeb

Conflicts:
	res/values/cr_strings.xml
Add music tile from SlimRom (2/2)

Change-Id: I4716fff82da5f03c6942cab950383e8828183f6d

Conflicts:
	src/com/android/settings/quicksettings/QuickSettingsUtil.java
Add music tile options (2/2)

disable artwork
disable track title optional

Credits to SlimRom

Change-Id: I842aa19364c6b713c2f8d7f3a6c6775796b61a06
Last App Toggle from Omnirom (2/2)

Change-Id: I6778606804881700ce9fee33bacee53e406a73d7
Settings: QuickRecord Tile (2/2)

PS2: Forgot to set image name.

Change-Id: Ib20d4c7231f147674ed3afd4c438bd83aedbac1d
[WIP] SlimPIE (2/2)

Ported from CM sources by @cristianomatos

Change-Id: I10e026e76748b1e273d38a983ea873a7076b124d
Settings: Handle navbar heights correct on dpi changes + more (2/2)
Till now we set the height in px in the settings. Which is a problem
especially on multiDPI roms like we are when the user afterwards changes
the dpi due that it isn't calculated correct anymore on the new dpi.

This commit does
- save the dp value in provider and calculate the real px in fb
- clean up the settings stuff for it + do it a bit nicer (only settings part
  where we do not set the value for the listview)
- add Converter class for common methods we always use....till now only px->dp
  and dp->px method

Change-Id: Icf9754ee496ae3cc6d998f58a1dc543d0a7383ee

Conflicts:
	res/values/cr_dimens.xml
	src/com/android/settings/crdroid/NavbarDimenSettings.java
Toggle nav bar through power menu (2/2)

- This is highly based on this commit form SlimRoms: https://github.com/SlimRoms/packages_apps_Settings/commit/30482e059fb55b9d3aa4d461a0715d77ec70776a
- Now we can toggle nav bar on/of in power menu. It's easier to use PIE.

Thanks again to @kufikugel

Codes ported and new codes from @cristianomatos

Change-Id: I63c686ebd19d3a50afe3d71de191e484208000f2
Settings: Allow All Widgets On Keyguard (2/2)
    Another user request with zero device impact
        for daily usage, so I went ahead and
        did it.

Change-Id: I204b3891f375abb0752cce7f9a4101c6b97a8f5d
[2/2] Add support for Peek app

Disable built in peek when Peek app is installed. Enable it again on app's unistall.

Change-Id: Icabb32c8322642eca81bccea7e053200a74a9b2b
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Settings: Remove screen rotation from accessibility

We have a more advanced option in display settings

Change-Id: I8be43e899a14d184374b422a381b0db839709fbf
settings: Move headset option, hide MoreDeviceSettings if empty

 * This option fits much better in the sound menu under "automation
   and effects", and on many devices it's the only option in the
   "More..." menu under Tap & Pay.
 * Move it, and remove the MoreDeviceSettings top-level category if
   there's nothing else in it.

Change-Id: Idd82f582a1ba54f8b45fbd4fbe631057e9515f86