Active display [squashed] (1/2)

Change-Id: I709196b232609a1dab8e9d7fdd0a6a655d487d93

Conflicts:

	core/java/com/android/internal/widget/multiwaveview/GlowPadView.java
	core/res/res/values/slim_symbols.xml
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/values/ose_styles.xml
	packages/SystemUI/res/values/slim_dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	services/java/com/android/server/NotificationManagerService.java
FULL ActiveDisplay Fixes/Options by codexc

ActiveDisplay: fix for disappearing notification bar
0c7588324f Browse code
maxwen authored

Active Display: Fix Derp
c6031125d0 Browse code
Der-Schubi authored

Active Display: Sort notifications by newest to oldest …
7674882824 Browse code
0xD34D authored

Active Display: Add some synchronization …
b3b33db6a6 Browse code
0xD34D authored

Omni: [1/2] Base: Fix pimp up ActiveDisplay …
434928a07e Browse code
micku7zu authored

pac : [1/2] Base: Pimp up ActiveDisplay …
b9e91f7a88 Browse code
Der-Schubi authored

Active display: Ability to turn off the screen, when a not clearable …
d047508943 Browse code
Der-Schubi authored

Change-Id: I90d74a9961169251ceac955e78803cdd369a949e
follow to kitkat changes their new fixes for active display

pulled from ChOS credit for 0xD34D

follow kitkat changes and fix ActiveDisplay never disabled after using turn off display option

pulled from omni , credit for Squadzone

using another logic to determine, when need to hide Statusbar and Navigationbar
we dont want systemui visibility reset if lockscreen still enable and ActiveDisplay force to Turn Off

Correct ActiveDisplay visibility when launch Ongoing Notifications

fix Back button navbar cant work on some conditions

since AD detect User Activity, we dont want to override UserActivity inside View, so do only if AD visibilty are Gone

also add patch to keyguard, do not reset if ActiveDisplay visibility Visible
taken from Lockscreen Notification by David L.-W <david.leppla.weber@gmail.com>

Change-Id: Ia4c1aa78e0ab2067cc071036cc8723d9e1ccf893

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Base: Disable proximity sensor when screen goes on in ActiveDisplay/PocketMode.

Active Display (in Pocket Mode) currently only switches off the proximity sensor in some cases.
If the user switches on the screen itself, the sensor is left running. This change
stops the sensor as soon as the screen goes on. Active Display already started the sensor each
time the screen goes off.

PS2: In the mode that turns the screen off again when the device is pocketed,
the sensor stays on until you leave ActiveDisplay.

Change-Id: Id7afcd858f341ad929606d302c5741efa99a7c6f

Conflicts:

	core/res/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
fix

Change-Id: I9057d6d4a99e445372ee295a717ce60058729a83