SystemUI: PhoneStatusBarView: disable DEBUG_GESTURES

Change-Id: I3911c464d1f008ac2c96a1104761007fad41a3ae
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: add Settings.System toggle for quick-quick settings pulldown

Change-Id: I3c5dcfc23f39bf8be6c402e25f61e6f57a8add2c
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: double tap to sleep improvements

* Make it more reliable
* Add it to keyguard
* Add a content observer to not always query Settings.System on every
touch event

Change-Id: I292c4d9d9f810843590b7a9ec6e15b99ac44009d
Signed-off-by: Roman Birg <roman@cyngn.com>
[1/2] frameworks/base: Battery and Notification Lights

PS2: *) Add back a few missing pieces
     *) Do not clear light state in onPanelRevealed(),
        update lights on ACTION_SCREEN_ON instead

PS3: *) Wrap long lines
     *) Disable config_multiColorNotificationLed by default
     *) Revert config_defaultNotificationLedOff
        from 1000 back to AOSP default of 2000

PS4: *) Clear lights in onPanelRevealed() if
        keyguard is not active.

PS5: Coding style tuning

Pulled together from:

Author: DvTonder <david.vantonder@gmail.com>
Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Date:   Mon Nov 4 00:57:51 2013 +0000
Framework: Port CM9 features to CM10
Change-Id: Ibd63116df90b06f6ce6adb8a0343059bbb999bfb

Author: Pawit Pornkitprasan <p.pawit@gmail.com>
Date:   Sun Dec 8 15:24:41 2013 +0700
BatteryService: fix FC on boot until battery stat is present
updateLightsLocked() can be called from CM's added SettingsObserver
when battery stat is not present, causing an FC and a loop until
battery stat is present.
Change-Id: Ic4438fe50e98f1aa05ae1d0d26240bf9410fd92f

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Tue Dec 31 16:22:05 2013 -0800
[2/2] Framework: instant led test
Adds support a new notification extra boolean
EXTRA_FORCE_SHOW_LIGHTS.  Used by settings
notification light picker to force lights on
when the screen is on.
Change-Id: If0a42d32b28fe8c02ef5f7dd148db7eb478fac17

Author: Danny Baumann <dannybaumann@web.de>
Date:   Wed Apr 24 11:09:55 2013 +0200
Allow creating custom dialogs in DialogPreference.
This allows creating non-AlertDialogs while still using the click and
state handling of DialogPreference.
Change-Id: I54fd7d6d6b9f6a49fef1ae95e0178838b3edfa56

Author: Michael Bestas <mikeioannina@gmail.com>
Date:   Mon Aug 18 04:56:28 2014 +0300
Add support for single color notification LED (1/2)
Change-Id: I367af77036da9e87c6dd0df552ce4c56d945a44d

Change-Id: I564fdb6ca6c5bbcf890afa4b9a2f9fa7bf8b9604
XuiMod: Toast Animations [1/2]

Add Xylon, Xperia Z1, TokoROM Transition and more

https://github.com/zst123/XuiMod/commit/8fc1152fb485ed5e007ac8d4ea9ad7b7f1c493d8

https://github.com/zst123/XuiMod/commit/1989a90850e5491799620e1f86fcbc9ae54f5161

https://github.com/zst123/XuiMod/commit/e3383f127244822b9fc61db169b59e4a502d127b

Credit zst123, thanks for GwonHyeok
Disable Immersive Messages [2/2]

Ported to L by Deadman96385

Based off Xposed module by GermainZ

https://github.com/GermainZ/ImmersiveModeDontPanic

Change-Id: I4835cac08a9e525ec15aa4d1ee84329970ec6a72
Lockscreen: Add timeout and instant lock option to slide lock (2/2)

This adds AOSP's new timeout and instant lock options to the
slide (aka chooser) style lockscreen.

AICPfy:
brought from kitkat

Change-Id: I64b5f53a4e6c4098640b2c0cb3af2a56d6df019f
Merge branch 'cm-12.0' of https://github.com/CyanogenMod/android_frameworks_base into cm-12.0

Conflicts:
	core/res/res/values/symbols.xml
	services/core/java/com/android/server/BatteryService.java
	services/core/java/com/android/server/notification/NotificationManagerService.java
framework:Thread synchronization for UI update

Issue : Framework reboot was observed due to out of sync between
        two threads which inturn causes Null pointer exception
        while updating airplanemode.
Fix : Handled Null pointer exception and the crash is not observed.
CRs-Fixed: 570122

Change-Id: I2e969f6e7726ffcf8648b366ebb54cb2b0afc292
Remove unnecessary updateSurfaceScreenOn call.

This change stops updateSurfaceScreenOn() from being called one time
right after another. It's called at the end of stayAwake(boolean awake),
which is called right before updateSurfaceScreenOn() in release().

Change-Id: I3e5db322f0abce0cd37320a103015ba72dffa64f
Frameworks: Add per app controls for LP keyguard notifications (1/2)

Nice done by google but the UX is a problem especially for ppl who are using a lot apps and just want
to see from important apps the notifications on the lockscreen.

This commit adds the ability to

- enable/disable per app the keyguard notification at all
- enable/disable per app ongoing notifications on the keyguard

We handle this over the app policy conf file like the other per app notification options.

Change-Id: I3e4641c3413ca0a8920b1680ca5f01f6eb4d0225
Add a HAF access permission

This is signature protected, and extremely dangerous since it
grants system GID.

Change-Id: I2528813de9341187f18ef708e7251b4e5e4003a3
Merge branch 'cm-12.0' of https://github.com/CyanogenMod/android_frameworks_base into cm-12.0
wallpaper to us

(cherry picked from commit 9331b5c1ba1e244ca7c1f4702d76fb91134dce7d)
Bring Forward LTE Checks to fix Invalid Signal

In low LTE, ASU level shows as 99 (invalid)

Add some checks to get correct value.

Original Credit: Shareef Ali

PS2: Fix erroneous space
PS3: Update Author to give original credit

Change-Id: I5c2bd722655b6c4009119cba61e0a169adb3d7d4
(cherry picked from commit 9b8ce25fd98c8c7ffee5a70a59290ce90c729e43)
Turn off carrier provisioning by default to allow tethering

Whether or not to use carrier provisioning is a setting hidden to the
end user that is currently not set. Unfortunately, on some carriers that
may result in it being set to yes, or effectively set to yes, without
other accompanying changes that must occur, such as setting a tethering
apn and possibly having a carrier provisioning app, resulting in hitting
a paywall when a tethering plan exists, or, worse having nothing happen
at all when you try to tether since the data doesn't have an apn set.

Change-Id: I3b5b3cc86e3325302411f46e3fd5f7a7c1b9f57e

Conflicts:
	packages/SettingsProvider/res/values/defaults.xml

(cherry picked from commit d26fbc0fd835f53eb2d0fc46077d2f2bd6ce686b)
Add battery level text to status bar (1/2)

1. Add TextView to display battery level percentage next to the battery
icon.
2. Remove support for displaying battery percentage on the actual
battery icon itself.
3. Also respect view on lockscreen and opened notification drawer.

Change-Id: Iab6228f5316908961c8647773bd3c8655df29679

Conflicts:
	packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
	packages/SystemUI/src/com/android/systemui/BatteryMeterView.java

(cherry picked from commit 15fd013a12c408a410f314a6a53de5559c9f06ee)
remove double

(cherry picked from commit 9f134bb7471b4ddaf7092ebcc22b151b8a596390)
battery % patch 5

(cherry picked from commit b20f7f88d9b6e592d8aabed00337d721098b0ce0)
(cherry picked from commit e8299935ac1c832e1453bb273dc4cf9001c98f27)
Fix wrong translation for phone_hint in Spanish

Google seems to have it fixed on master branch but it is not yet on lollipop one.
This fixes the trouble where the system tells you on the lockscreen to
swipe left for camera and also swipe left for phone
when it should be swipe right for phone.

Change-Id: Ic9bba128e1b617c58c77c60acfdcffc6918da3f8
(cherry picked from commit 47f1f610e11613fa07c235100f4b243b9c59e6ba)
(cherry picked from commit 3d6c3457c9535a94b5bc41413ec8196c5198f03d)
(cherry picked from commit b067243731ed7952e75b8f2a57813c17f9b45aa5)