MediaScanner behavior on boot (1/3)

Lets you enable/disable/ask (with a notification) media scanning on boot.
Can speed up boot and reduce initial boot lag from MediaScanner

Change-Id: I634ae96b1dcb493b966b4653589cd97523b63da7
Active display: Catch NPE

Change-Id: I6b198769b623319d6202281f914e38b2e2527022
Active display: Next try to fix "turn off display if device gets pocketed again"

Change-Id: Ice9354faf4a939f31a5bd590031ee001a62712fb

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
Revert "Active display: Make GlowPadView center the current notification icon for us"

This reverts commit 05ed21de961bf565eaf7834a9fffbe8b67435867.
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.

Change-Id: I4087ef3e407cf976f7bfb2bb89f850641101bc73

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

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: 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.

THIS COMMIT AUTO-REVERT THIS ONE: 22547b32d2

Change-Id: Ic28326cc0cb0fb87d4bc0d1e3224e04727242751

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
Active display: Add some log output

Change-Id: I3443214fecb141a4df177b9cfffbb3a733257a5e

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
Active display: Fix screen turning back on directly after turning it off

Change-Id: Id0dd4c9eae708c21300355adab44236a1071e2a5