Refactor settings resources and liquify imports

Conflicts:
	res/values-de/slim_strings.xml
	res/values-es/slim_strings.xml
	res/values-ru/slim_strings.xml
	res/xml/security_settings_chooser.xml
	res/xml/slim_navigation_settings.xml
	src/com/android/settings/Settings.java
	src/com/android/settings/liquid/quicksettings/QuickSettingsUtil.java

Conflicts:
	res/values-es/slim_strings.xml
	res/values-ru/slim_strings.xml

Conflicts:
	res/values-ru/slim_strings.xml
Gesture Anywhere: Add gesture anywhere feature into the ChaOS Lab [2/2]

Change-Id: I51ead6cc35684104ecc1211df0a598d1a0b816c1

Conflicts:
	AndroidManifest.xml
	res/values/arrays_aicp.xml
	res/values/ose_attrs.xml
	res/values/strings_aicp.xml
	res/xml/aicp_lab_prefs.xml

Conflicts:
	res/values/liquid_arrays.xml
	res/values/liquid_strings.xml
	res/xml/misc_tweaks.xml

Conflicts:
	AndroidManifest.xml
	res/values/liquid_dimens.xml
	res/values/liquid_strings.xml
	res/xml/liquid_interface_settings.xml

Conflicts:
	AndroidManifest.xml
	res/values/liquid_strings.xml

Conflicts:
	res/values/liquid_strings.xml
[2/2] Settings: Wakelock Blocker

Change-Id: I107bec97fd759b9b85ee241628f9a35e022a22c7

Conflicts:
	AndroidManifest.xml
	res/values/custom_strings.xml
	res/xml/settings_headers.xml

Conflicts:
	res/values/liquid_strings.xml

Conflicts:
	res/values/liquid_strings.xml
	res/xml/settings_headers.xml

Conflicts:
	res/values/liquid_strings.xml
[SQUASHED] Active display [2/2]

PS2:
Add pocket mode option, available if the device has
a proximity sensor.

PS3:
Add option to include ongoing and non-clearable notifications.

PS4:
Allow brightness control from 0% to 100%

PS5:
Refactor for release

Change-Id: Iae55640a31df68542c2af5d95097811b8fb1f66f

Conflicts:
	res/values/arrays.xml
	res/values/strings.xml
	res/xml/system_settings.xml

Active display: Add options for date and am/pm [2/2]

Change-Id: I6af47b2fd47e77398eee98cc6e30b8fcf1a44d45

Conflicts:
	res/values/strings.xml
	res/xml/active_display_settings.xml

Active display: Add sunlight mode. [2/2]

Change-Id: I513c2ef1555ca48dfb553f80ca687d1ca9f27c55

Conflicts:
	res/values/strings.xml

Active display: allow hiding low priority notifications. [2/2]

Change-Id: I244743ed1a32f59065af3c4507f4132b7d3b0d72

Conflicts:
	res/values/strings.xml

Active display: Allow apps to be excluded from being displayed [2/2]

Change-Id: Ieb6368c050f5b46eec7398ab0162dc4fbf00a392

Conflicts:
	res/values/strings.xml

Active Display: Add always show pocket mode. [2/2]

Change-Id: I6f791c5727e98749780a5e9996e20d387ed98fa6

Conflicts:
	res/values/vendor_arrays.xml
	res/values/vendor_strings.xml

[2/2] OmniGears: Pimp up ActiveDisplay

Base part: https://gerrit.omnirom.org/#/c/2819/

Change-Id: I8abf7a3018e7e0168860861ac240975cd1f8a2b0

Conflicts:
	res/values/custom_arrays.xml
	res/values/custom_strings.xml
	res/xml/active_display_settings.xml
	src/com/android/settings/liquid/ActiveDisplaySettings.java

[2/2] OmniGears: Fix pimp up ActiveDisplay

Base part: https://gerrit.omnirom.org/#/c/3380/

Change-Id: Ief2aa6802ad25a86b49d06bab1b9e34140dc5db5

Conflicts:
	res/values/custom_arrays.xml
	res/values/custom_strings.xml

[2/2] OmniGears: ActiveDisplay (rework interface)

really fix AD buggy stuff
tested with Music play
tested with No lockscreen
tested with faster screen turn off
check all sensor going off if AD not Showing or Disabled
fix notification posted/removed
make AD using System Window so it will covered all screen
fix Navbar translucent if Lockscreen Blur merged :P
now using Rounded Image
also introduce new RoundedImageView widget
 courtesy of @vinc3m1 (thanks)
fix build
fix sometimes screen turn off after unlock because screen timeout (hopefully)
now using new parser to get Notification data (thanks @Achep for the parser)
rework lightsensor manager
add NotificationUtils
fix brightness sometimes not changing

add support applications privacy mode (will not show content message if enable on each app)
see http://jira.omnirom.org/browse/OMNI-600

allow bypass AD if no notification and lockscreen is secure
see http://jira.omnirom.org/browse/OMNI-594

fix proximity always enable after adding new feature allow bypass AD
fix parsing notification data from app with targetSDK < 17

fix excluded app value (no body notice this broken since AD merged into OmniRom xD )

add option to allow bypass AD

rebased
change string to better explanation for feature
thanks @Pulser and @Jiangyi

Change-Id: Iec1915ec5faeaaa6b599916bd4195ed59f2e1653

Conflicts:
	res/values/custom_strings.xml
	res/xml/active_display_settings.xml
	src/com/android/settings/liquid/ActiveDisplaySettings.java

[2/2] OmniGears: more improve Active Display

1. fix http://jira.omnirom.org/browse/OMNI-651
2. fix http://jira.omnirom.org/browse/OMNI-641
3. add http://jira.omnirom.org/browse/OMNI-652
4. Add option Double tap to sleep every where
5. Add option to show and choose wallpaper behind active display
6. Allow to show numbers of notification on Handle
7. minor improvements
8. add battery circle around handle

PS8
string rework

PS9
recalc brightness to % value

Change-Id: Iceaae6eecbdd3dbce4347b2e3994272b10f3c490

Conflicts:
	res/values/custom_strings.xml
	res/xml/active_display_settings.xml
	src/com/android/settings/liquid/ActiveDisplaySettings.java

Remove active display wallpaper option

[1/2] OmniGears: Active Display add shake event

PS11: Fix strings

- correct dependency option
- added option to bypass Quiet Hours (default now is not , that is 'privacy is first' decision)
- added option to configure time between shakes
- added option to set disable timeout
- added option to run like "PA PEEK"

PS12:
-disable default event with the other shake settings
-simplify titles

Change-Id: Ibdf35b1e323fa15bf2e5da9ca8225533cd4c42c4

Conflicts:
	res/values/custom_strings.xml
	res/xml/active_display_settings.xml

OmniGears: AD brightness - do your math homework max :)

http://jira.omnirom.org/browse/OMNI-752

Change-Id: Ibb123378c47a6e4c337740c95d5eb4eead4cd4b5

Conflicts:
	res/values/liquid_arrays.xml
	res/values/liquid_strings.xml
Implement kernel tweaker performance menu

Credit: AOKP / Dirty Unicorns / Omnirom

Conflicts:
	res/values/liquid_strings.xml
Theme Data Chart White :D
Added build date (ro.build.date from build.prop) to device info.

Change-Id: I5e19ee04de5c26822e171d4af8f4bfc052be9b74

Conflicts:
	res/xml/device_info_settings.xml
	src/com/android/settings/DeviceInfoSettings.java

Conflicts:
	res/values/strings.xml
	res/xml/device_info_settings.xml
	src/com/android/settings/DeviceInfoSettings.java

Conflicts:
	res/xml/device_info_settings.xml
Settings : Switch state fix

Since the switch views are shared, we need to recreate them
in order to prevent from being reused as they don't share state.

Change-Id: I4d7038f37883e1791c8c2b0009f0adb85ebb2b88
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)
Bluetooth: Fix to connect PANU from the internet access menu

isPrefered is always true for PAN. So PANU connect fails,
Once user clicks on the internet access menu in Profiles
Setting. As PAN is not auto connect profile, So PANU should
connect from the internet access menu in Profiles Setting.

Change-Id: I6007c848e7c2703dc97f7f2113356a7aaeed0a0e
CRs-Fixed: 545350
Bluetooth: Fix to show internet access as marked when pan is connected

isPrefered is always true for PAN. So internet access menu checkbox
is always marked on. Marking internet access menu checkbox based on
pan connection status should solve this issue.

Change-Id: I4343cc6f1b46377caa54aa3d39c08489ff14adac
CRs-Fixed: 550731
Bluetooth: Set alias name only through Rename option

Set the alias name only when user is trying to change the
name using the Rename option of paired device.

CRs-Fixed: 539420
Change-Id: I415b6a962d8e7884b67d37b94c04df19e2c23012
Bluetooth: Not allow Blank BT device name.

Add empty string check for BT device name
and not enable ok button until entered
device name is not empty.

Change-Id: Ib7c460bee5c8d86d13acd66d228279dd1a240c25
CRs-fixed: 471158
Bluetooth: Remove remote device from trust list on BOND change

A special case where remote device is paired & authorized by
DUT. Remote device is unpaired by itself & try to connect again.
In this scenario Link key is deleted from remote device. So
SSP is performed again. & remote device bond state is changed
to BOND_BONDING from BOND_BONDED on DUT while SSP, As it was
in DUT BONDED list. So permission/trust info for all profile
need to be false when it's moved to BOND_BONDING to solve the
issue.

Change-Id: I37e8d92feef3c2d4d18c014a5d9092a9469335cb
CRs-Fixed: 578523
Bluetooth: GAP: Cancel the previous visibilty alarms if already set

Cancel the previous visibility alarms set for 2 mins/5 mins/
1 hour if visibility change happens from the limited discoverable
to unlimited discoverable.

Change-Id: I01797b771c271498372f15b545233a73baf60ca9
CRs-fixed: 582492