Active display: turn off display if device gets pocketed again

Change-Id: Icb4c002add915b75de7607f71c0d400e323feb5b
Improve clear recents side switcher…
…[1/2] [log]

Change-Id: I709826a97f9608406723ad062230bf04f9c3b54b

Conflicts:

	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/system_bar_recent_panel.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Active display: prevent force close
[log]

Change-Id: I0f96a964fbc55419f86a3707d9d6929f872e5bd8
Active display: unregister proximity if pocket mode not used or active display disabled
[log]

Change-Id: I7c634e1ee48e82024faad53bb1bae8fe19da439d

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
Revert "Active display: unregister proximity if pocket mode not used or active display disabled"

This reverts commit 11b9535c7ead4f8e4ee71c381f57177fe8948b41.
Active display: make sure mNotificaiton is set correctly

Change-Id: I4111ca843e340cca4d6dac4b2c2922ce3039e487

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
Active display: register/unregister recievers and listeners when enabled/disabled

Change-Id: Ic73e63da2c9634bc864ab1a1387eb9145eb0b5b0

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
Active Display: check if recievers and listeners are registered

Change-Id: I1a881aebcbfc2bae92535a4e9ea55ba3789d8b43
Active display: Catch Resources.NotFoundException

This caused the SystemUI to FC when the device was powered and a notification was fired.
Display stayed off and the SystemUI kept restarting until the device was unlocked manually.

Change-Id: Ibfd82242e82aa9ee5c0898f5f0714e490eac0ea9
Active display: Ability to turn off the screen, when a not clearable notification is present
[log]

Change-Id: If90127ceeaf40eefee8a5afa712344f71bda96b9