Revert "Camera: Adds support for meta data callbacks"

This reverts commit 49235653e463440a49f3a746b86f1b429dbcb2fb.

Change-Id: I0503bf0b5c70fa37051a343af25f002201464c17
More Active Display stuff

Revert "FW: Active Display [1/2] + AppBar fixes"

This reverts commit dcb81acde1fe5733cf47fc4ab72b18f37e27de70.

Add active display from ChameleonOS…
…[1/2] [log]

Including additional commits:
- Correct active display settings naming
- Active display: Add options for date and am/pm [1/2]

This is the ChameleonOS implementation of the active
display feature, similar to that found on the Moto X.

When enabled the screen will turn on and display the
incoming notification.  The user can then open the app
for the notification, dismiss the notification or unlock
their device normally.

Additional notifications, if any exist, will be displayed
below the ring notification and can be viewed by touching
the notification icon.  The user can simply slide their
finger across these other notification to quickly view
them.  The last one touched will remain in the ring and
the user can then perform any of the actions listed above.

PS2-PS12:
All the changes that brought us to this current implementation.

Change-Id: I51c17cec33b65dc60111a10c5ca2c449596ebe63

Fix active display.
Change-Id: I7f287deeae4801c6491f69985b667ad3fa2c2d54

Delay hiding systemui by 100ms
When disabling the keyguard, the systemui visibility is
changed and can occur after we hide it so delaying this
a bit resolves that issue.

Change-Id: Iad432f75195983837d643fa38495e6beb54f3e22

Active display: turn off display if device gets pocketed again

Change-Id: Icb4c002add915b75de7607f71c0d400e323feb5b

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

More Active Display stuff

Revert "FW: Active Display [1/2] + AppBar fixes"

This reverts commit dcb81acde1fe5733cf47fc4ab72b18f37e27de70.

Add active display from ChameleonOS…
…[1/2] [log]

Including additional commits:
- Correct active display settings naming
- Active display: Add options for date and am/pm [1/2]

This is the ChameleonOS implementation of the active
display feature, similar to that found on the Moto X.

When enabled the screen will turn on and display the
incoming notification.  The user can then open the app
for the notification, dismiss the notification or unlock
their device normally.

Additional notifications, if any exist, will be displayed
below the ring notification and can be viewed by touching
the notification icon.  The user can simply slide their
finger across these other notification to quickly view
them.  The last one touched will remain in the ring and
the user can then perform any of the actions listed above.

PS2-PS12:
All the changes that brought us to this current implementation.

Fix active display.

Delay hiding systemui by 100ms
When disabling the keyguard, the systemui visibility is
changed and can occur after we hide it so delaying this
a bit resolves that issue.

Active display: turn off display if device gets pocketed again

Active display: prevent force close
[log]

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

More Active display stuff

Revert "Active display: unregister proximity if pocket mode not used or active display disabled"

This reverts commit 8815f8f74e9950f06391355beac910872b4013f1.

Active display: make sure mNotificaiton is set correctly
Active Display: check if recievers and listeners are registered

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.

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

Active display: Unify (un)registering callbacks and add proper checks

Active display: Don't register proximity if pocket mode not used
[log]

Active display: Add threshold to proximity sensor…
… [log]

Display will only be activated if the proximity sensor is covered for 5 seconds or more.

Active display: Respect Quiet Hours
[log]

Active display: Fix for HDPI devices
[log]

Thank's to @AlmightyMegadeth00 for the tips...

Active display: Make GlowPadView center the current notification icon for us

sudo makemeasandwich

ps2: make scaling both smarter and stupider SIMULTANEOUSLY

Active display: allow hiding low priority notifications…
…[1/2] [log]

Active display: Catch NPE

Active display: Fix visible NavBar buttons on LockScreen

[log]

Active display: Next try to fix "turn off display if device gets pocketed again"

Revert "Active display: Make GlowPadView center the current notification icon for us"

This reverts commit 3100c626d43c0d2939af9c2dcab13ac1980c24ae.

Active display: Use a default notificaiton icon

In case there is an exception when trying to load the
notification icon we will use a default one.

Revert "Active display: Don't register proximity if pocket mode not used"

This reverts commit b65c58371fc7593a57efb0e2e009ba67b55348c9.

Active display: Enable proximity sensor only when screen is off

[log]

This should ease people worried about cpu usage of the proximity
sensor while the screen is on.  The sensor listener will only be
registered when the screen goes off, and both active display and
pocket mode are enabled.  Once the screen turns on this listener
will be unregistered so no further updates are received when the
sensor values change.

by Der_Schubi:
In our case we left the sensor activated til the screen gets
unlocked or notification is opened to be able to turn the screen
back off if the device gets pocketed again.

Fix some Derps

Revert "Active display: Fix visible NavBar buttons on LockScreen"

It doesn't work yet. Its only a bit better... :(

This reverts commit 01ec1b6eb4a000f61ea9d5c2321637f0b7e4ba82.

Active display: Fix visible NavBar buttons on Lockscreen

[log]

Active display: Add some log output

RAWR!

Change-Id: Ic14e78c7bf78d9533f5f6d2717cb90cf628325bf