Port APN Settings fix from cm11.0 credit @CyanogenMod thanks guys
Stylus gestures features (2/2)

Summary:
Forward-port of http://review.cyanogenmod.com/#/c/18613/6
to JB.

Change-Id: I7a1521c8368971d473dc7ceae4ede0175fa87040

Test Plan: depends on D262 , test and i'll clean merge

Reviewers: synergy, anders3408, jriordan001, raymanfx, donald.munn, rlasalle15, randall.rushing

Reviewed By: randall.rushing

Differential Revision: http://review.codefirex.com/D263
Add back blacklist settings.

-- brought in additional basic resoruces to support
   some cm fragment structures and classes

Change-Id: Iae35717acfa9af4da75c07d24352acf981d19fc7

Conflicts:

	AndroidManifest.xml
	res/values/cm_arrays.xml
	res/values/cm_strings.xml
	src/com/android/settings/Settings.java
Fix blacklist preferences fragment transition for tablets.

Change-Id: Iecde099b111ae31c8e11ce366d9d06d965029ed7
Add back hardware key settings.

Change-Id: I925fd9d9c02b86d8e93c8b9e25870433f7c20bde

Conflicts:

	proguard.flags
	res/values/cm_arrays.xml
	res/values/cm_strings.xml
	res/values/config.xml
	src/com/android/settings/Utils.java
Settings : Quick settings/Ribbons (Squashed commit)

Summary:
Port forward settings for quicksettings/ribbons

Patchset 7: Point to more fitting drawables (blunden)

Add back preference for drawer collapse behaviour

Change-Id: I2d4659337f48338547a4e6c1efb8b32122319fe3

Test Plan: test with D264

Reviewers: synergy, anders3408, jriordan001, raymanfx, donald.munn, rlasalle15

Differential Revision: http://review.codefirex.com/D322
Fix NPE in Settings -> Language & input -> Default -> Setup input
methods

If the InputMethodAndLanguageSettings fragment is launched in IME-only
mode, it removes most preferences, so we need to null-check them before
use.

Change-Id: I297cc9c6885f62ed6ff65937ef5da401ab7cd271
JIRA:CYAN-896

Conflicts:

	src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java
Bring custom settings headers under CFX header category

All the custom goodies in our favorite spot (more to come)
Add Advanced Reboot menu to Power Menu settings
Add network usage stats to status bar. [2/2]

Summary: new preference in indicator category

Test Plan: test and merge

Reviewers: synergy

Reviewed By: synergy

Differential Revision: http://review.codefirex.com/D666

Conflicts:

	res/values/arrays.xml
	res/values/strings.xml
	res/xml/style_settings.xml
[[2/2]port in hardware key settings and button backlight controls

Change-Id: I925fd9d9c02b86d8e93c8b9e25870433f7c20bde

Conflicts:
	proguard.flags
	res/values/cm_arrays.xml
	res/values/cm_strings.xml
	res/values/config.xml
	res/xml/power_menu_settings.xml
	src/com/android/settings/cyanogenmod/ButtonSettings.java
	src/com/android/settings/cyanogenmod/PowerMenu.java
settings: port volume key cursor control & reorientation

Framework part seems to have survived the merge.

Move volume key cursor control from language & input
to button settings.

Change-Id: Ice2b266e8fdbcdf805d36d8f2e335b569e57be65

Conflicts:
	res/xml/button_settings.xml
	src/com/android/settings/cyanogenmod/ButtonSettings.java
Remove duplicate Button header that slipped in
Notification LED Control (2/2).

Summary:
* Make led color customizable.
* Global and per-app settings.
* Default led color is white.
* The option category replace old stock on/off checkbox.
* Remove useless code from display settings, the feature has its own java files.
* The java files in settings are stored into its own com/android/settings/notificationligh folder.
* Credits into code comments of each specific java file.

PS2:

* Use already defined string.
* Fix conflict after a previous commit merge on gerrit that wasn't linked.

PS3:

* Add other strings.
* Fix icon call.

PS4:

* More aosp style led category string.

PS5/6:

* Update Description.
* Add missing header in pa_arrays.

PS7:

* Fix variables check in notification light.
* Expose battery led indicator control in LED settings.
* Update strings and add battery category one.

PS8:

* Ditch battery led option, remove related code and classes.
* Add a boolean to check if device has led.
* Update commit description.

PS9/10:

* Fix getResources().
* Update description.

PS11:

* Fix strings confilcts after app ops merge.
* Remove battery strings.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I7ca73f9cf4631d44fa3020b079a8c9e84b666f41

new file:   res/layout/notification_app_item.xml 	modified:   res/values/cfx_strings.xml 	modified:   res/values/cm_arrays.xml 	modified:   res/values/cm_strings.xml 	modified:   src/com/android/settings/notificationlight/ApplicationLightPreference.

...ce.java 	modified:   src/com/android/settings/notificationlight/NotificationLightSettings.java

Test Plan: Still some wonk to work through. Builds but missing some resources.

Reviewers: synergy, anders3408, jriordan001, raymanfx, donald.munn, rlasalle15, randall.rushing

Reviewed By: randall.rushing

Differential Revision: http://review.codefirex.com/D338

Conflicts:

	src/com/android/settings/DisplaySettings.java
Bluetooth: Set isPreferred to true for PanProfile Connections.

isPreferred is always true for PAN profile so that DUT can
initiate connection with remote device. Curretnly we are
returning true only when pan profile is in connected, so
it will return false when pan profile is not connected and
will never initiate connection on click.

Change-Id: I7c789add73ca944d074b0ecd8af223f6d61b547a
CRs-fixed: 463887
(cherry picked from commit ca3988a7394eb189835647a5aaa04707fe5c2517)
(cherry picked from commit ea5ce47bf7b918affc66467adf4e38b1c870e86f)
(cherry picked from commit 2a3bfb2ed0102de6aa6e659ee7714ce8fcec25cd)
Bluetooth: Handle pairing Cancel intent.

Receive Pairing cancel intent and clear pairing request
from notification window.

CRs-fixed: 463362

Change-Id: I63c9299edca4356485f26cbc6332e3be9bdfbf17
(cherry picked from commit fc82c5a6a3e74aeba6139e0ccf48f634fd970e62)
(cherry picked from commit dc299471edd42a5b30c0f54ef8d33730e33d03a3)
(cherry picked from commit 32f973cbe79d2474d0815d7dd90c6960af120b3c)
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: Remove out of range devices after ScanComplete

Change to remove device from UI when Bluetooth of remote
device is off or not discoverable anymore. Without this
change a device that discovered previously is available
in available devices list always, though the remote device
is not discoverable anymore. The current change updates
available devices list on scan complete removing the
devices that are available in cached devices and are not
discoverable anymore.

CRs-Fixed: 523374
Change-Id: Ia250d52e6fb7a69af242c961d33027f1e724ab25
(cherry picked from commit fee7b100ff7ac4eb7117ec1bc5c592d0c7adbbf8)
(cherry picked from commit 38d07978c7fb4f40af96b9fb96af09a64ce5bfff)
(cherry picked from commit 28a27af31eac45f4b3fe5932240dc437a37dda5c)
Bluetooth: SAP: Add SAP profile support in Settings APP

- Handles 16 digit Authentication
- Added Handles SAP profile connection status changes
- Added SAP Disconnect from server related changes

Change-Id: I655a8c8bcdcc275c5d95c8ddd3d7bac2691fa818
(cherry picked from commit d17f03934b2582637f9d059fccccaabbc4203994)
(cherry picked from commit 26fd639eaeacb7dc5d82c9ef9cf5b5eb5fc70b4f)
(cherry picked from commit c63c73ebf900091b67a951e004573c03ea53e01a)
Bluetooth: DUN: Add DUN profile support in Settings APP

It registers service listener for DUN profile with the
BT adapter, and it will track the profile status with
the service listener state chnages.

It also has support for DUN profile connection status
updation and DUN Disconnection from server.

CRs-Fixed: 557180
Change-Id: I83d4919821cb095429ff7e73a8974d92c4df086c
(cherry picked from commit 59ec7bc7e1f29edc74512b7c180dc9559202a063)
(cherry picked from commit a1df3d0f11a974c9caa199fc7be1c47cfd809cf3)