Active-D: Unregister proximity sensor when screen turns on, and register when turns off

ps2: typo
ps3: whitespace

Change-Id: I2a66d2f2f8a21cde9c8a278ea985972a6e7c577e
Active-D: and girthy.

And add some debugging helpers and messages (disabled with final static bool ATM)
Flip on debugging temporarily
Prevent the proximity sensor from double-tapping when waking the device.
Reduce the threshold below which the phone is declared to be in a pocket.

Change-Id: I0c38bf33e0461a4b0b014f505e7d3db66f3af344
KeyguardViewMediator: Play lock screen sound sooner

When the screen is locked, there is a long pause before the lock
sound actually plays.

This makes that sound happen much sooner.

Change-Id: Iede7a5d22291d1ada98800d2b380c255547df61d
privatize keybuttonview

Change-Id: I2a1431a7eeeb1be302f8340e8dcbcf682766d5b0
Active-D: save some B

Only enable the proximity sensor for long enough to get one reading at <1 Hz.

ps3: fix nomenclature error
ps5: don't actually register and unregister the listener... a change that happened while unregistered is not reliably reflected in the values in the callback.
ps90: Change handler the settingsobserver is instantiated with, and don't catch securityexceptions to allow systemui to be resurrected if the first notification-showing fails

Change-Id: I4627cb4ca27b07fac8f1606c02d886a3efa2af40
Active display: allow hiding low priority notifications. [1/2]

ps2: COPY/PASTA

Change-Id: I4831d6864b509e62b449c25619c59f5d6760ec47
active display: minor fixes

make sure quiet hours setting is observed

Change-Id: Idddb6b251519ab122ae32d70d1de2ee6d942765e
recycle TypedArray calls in F_B

PS2: plus a few other minor fixups to typedarray handling
PS3: add a few more recycling calls and remove unnecessary try/finally from keybuttonview
PS4: remove all unused typedarray imports

-Vanir \m/

Change-Id: I004ce627a861a2c5e262709cb1110f5aea536719
Allow multiple emulated storages at the same time.

Only do multiuser mapping for primary emulated storage as per google docs.
Allow all non-primary emulated storage to have id other than 0 so that
it could be distinguished from the primary volume.

Change-Id: I7b70b9067fd6211055fb9074710f48107d7b0e8e
Merge "recycle TypedArray calls in F_B" into jb43
Merge https://github.com/VanirAOSP/platform_frameworks_base into jb43

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