Buttons: Allow disabling hard navigation keys

This adds support for enabling the navbar on devices with
hardware keys.
This requires that the device supports the KeyDisabler
HAF methods, and is available in the Buttons menu

Change-Id: I01bd83b312745b4a8aa3bde0cf5f02ea99a888cc
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	res/values/cm_strings.xml
	src/com/android/settings/ButtonSettings.java
	src/com/android/settings/cyanogenmod/BootReceiver.java
Answer call with hardware HOME button (1/2)

Squashed commit of the following:

Author: Oleksandr Byelkin <sanja.byelkin@gmail.com>
Adds ability to answer call with hardware HOME button
preparation to winter time
Change-Id: I0d22a6fbb92a61f08b50cae5c14d0030b81ee6ec

Author: Michael Bestas <mikeioannina@gmail.com>
Settings: Move home answer & power end call options

Move 'Home answers call' & 'Power ends call' options to button settings
Change-Id: I2f365a3d278b0845b7c5ffcfe70c54160a00c24e

Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	res/values/cm_strings.xml
	res/xml/accessibility_settings.xml
	src/com/android/settings/ButtonSettings.java
	src/com/android/settings/accessibility/AccessibilitySettings.java
Settings: volume wake preference

Change-Id: I6a732e627b75a1be533ecd96cb018307de0e5a77
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	res/xml/button_settings.xml
	src/com/android/settings/ButtonSettings.java
Settings: last app action in long press

Change-Id: I72d9cb5bca5eedd20ea80ee69d370a478e59def4
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	res/values/cm_strings.xml
Settings - Button settings: CheckBoxes to Switches

Change-Id: Id72eec3ee2d5f9b90725c7787d21a34f8f58de57
Signed-off-by: STELIX <ssspinni@gmail.com>
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	res/xml/button_settings.xml
	src/com/android/settings/ButtonSettings.java
Buttons: Forward port Recents button configuration

Enables the ability to assign different actions to short and long
presses on the Recents (App Switch) button.

Change-Id: I5f8835841218932789431057e0531914a29980b9
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	res/values/cm_strings.xml
	res/xml/button_settings.xml
	src/com/android/settings/ButtonSettings.java
Cleanup button wake settings (1/2)

Change-Id: I972251384eee15cf9e4915cd82d189ed7ef3050d
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	res/values/cm_strings.xml
	res/values/config.xml
	res/xml/button_settings.xml
	src/com/android/settings/ButtonSettings.java
You can never pick a few commits without making a few derps O_o

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Remove hardware keys disable option for now

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Network traffic indicator (2/2)

Network traffic indicator in statusbar

Signed-off-by: iceandfire <arhamjamal@gmail.com>
Settings: Network traffic supercharged (2/2)

Bring back AICP kk traffic
Add back SeekBarPreferenceCham that we had

Change-Id: Idf854b15df2ec656678212cf6a6f6ee83c03a3aa
Signed-off-by: iceandfire <arhamjamal@gmail.com>
Bluetooth: GAP: Handled scan mode during first time BT On

As the discoverability time out concept changed as per the
new design and this code snippet "setting scan mode to
connectable only when endtimestamp is null" is not
applicable.DUT remains in only connectable mode
if user remains in the settings menu.

Change-Id: I7aa2ea7d23c4a47f716e2c0645b2ad73018ada39
CRs-fixed: 714578
Bluetooth: Don't Initiate Connection if UUID not updated

 - if UUIDs are not updated don't initiate profile connection
 - add new profiles to already existing list
 -  don't delete profiles from the existing list

CRs-Fixed: 717840

Change-Id: Id71a5aad59f4004c262f3ad17f34fa0574654170
Bluetooth: Enable Page and Inquiry Scan.

When Bluetooth Setting is in foreground enable both
Page Scan and Inquiry Scan.
Changes made to make device both in connectable and
discoverable if user is in Bluetooth setting menu.
CRs-Fixed: 753990

Change-Id: I2d72ce3192f6b7fa9eb6beb5a175a3e732dac5a8
Bluetooth: GAP: Reset Alias name during virtual unplug

As per this fix Alias name get resetted when hid virtual
unplug initiated from HID device.

Change-Id: Idb1cba447072fd70c21cfecef8776b2baaf730bc
CRs-Fixed: 754689
Bluetooth: Refresh UI after checkbox is Unchecked.

 - Refresh list of auto-connectible profiles when
   Checkbox is unchecked in disconnected state.

Change-Id: Iddca04cbb06262556ea7decb39279df26e358eb6
CRs-Fixed: 758480
Bluetooth: Security: Add Null check during pairing cancel intent.

Added null check, so before posing event we can restrict events,
if cached device list is empty

Change-Id: I458d181abe5eec2497b80b1713ddbc3502b79786
CRs-Fixed: 546364
(cherry picked from commit 7d7222c3e5c1054b4e2f3e59cc40cb182a72b040)
(cherry picked from commit 8ce523155dd030d82c32cf502d317023b017645b)
(cherry picked from commit 938686e749bca911e5f63150223116d1c381da8e)
Bluetooth: GAP: Handled Null pointer deference in unregisterReceiver

Handled Null pointer deference in unregisterReceiver event of
pairing dialog

Change-Id: Ie0d0561cb3c0f09a018e1aeb20579700c6e8d783
CRs-fixed: 761872
Merge branch 'lollipop' of https://github.com/TeamHorizon/android_packages_apps_Settings into lollipop