Active display: unregister proximity if pocket mode not used or active display disabled
[log]
special thanks to Der-Schubi for helping to fix this

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 888baa8f349b545b7ec3edb0e5fbee80eafc71ad.
Active display: register/unregister recievers and listeners when enabled/disabled

Change-Id: Ic73e63da2c9634bc864ab1a1387eb9145eb0b5b0
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
Revert "Active Display: check if recievers and listeners are registered"

This reverts commit 16384847ed731e25b1a63f4fd921c9b4808ab674.
Active display: Unify (un)registering callbacks and add proper checks.

Change-Id: Ie4c4660a54d2c60831f7a3bcc66b3a9ca1d035f2
Merge remote-tracking branch 'upstream/jb3' into jb3