Fix inverted logic on volume keys control media volume

Change-Id: I795a464747a31a30ae64d399e4c9f5818288e91a
PA PIE (1/2)

All credit goes to PA

Change-Id: I916480a6fd972c91896911b7d3e8bba82e588619
Revert these 2 Active Display commits

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

This reverts commit 20bde1981c74f816cfc29a9c3560caca177ee032.

Revert "Active display: Catch Resources.NotFoundException"

This reverts commit f982154c1098cdd245b5231aca955e738b7da1d2.

Change-Id: I8e93ddc98d589e3808924a90bd2a748c5c496275
Active display: Enable proximity sensor only when screen is off

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.

Change-Id: I70979b5931815adb74bd8bc42e32886a6d829a12
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
Active display: Only fetch next notification if mNotification is null.

Change-Id: Ife8511d4a4b8c448bc7aa8997a250068bec5fae7
Active display: Don't show active display if call state is not idle.

This will prevent active display from displaying when a call is
coming in and let the call screen show up instead of active display.

Change-Id: I2cb79e097ae24dc6ad6c8a33be88eb19f7d8d235
Merge branch 'jb3' of https://github.com/CarbonDev/android_frameworks_base into CB4.3