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

Change-Id: I4831d6864b509e62b449c25619c59f5d6760ec47
Active-D: Increase proximity sensor sampling delay from 60,000 microseconds to 200,000 microseconds (change rate from ~16.6 Hz to 5 Hz)

Change-Id: Id92dab800696b5fd0b9f21cfc3fa65225dad9734
Active-D: Make GlowPadView center the current notification icon for us

sudo makemeasandwich

ps2: make scaling both smarter and stupider SIMULTANEOUSLY

Change-Id: I582f387fd3c1c83f2bbd0d31a4b43e22d1b82d63
Signed-off-by: nuclearmistake <nuclearmistake@gmail.com>
Active display: Fix for HDPI devices.

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

Change-Id: I644eea927381af98d5779048fce37c3f1d3c6dd3
Signed-off-by: aways <aways@c-rom.biz>
active display: minor fixes

make sure quiet hours setting is observed

Mod by LorDClockaN:
Added isCallIncoming() method from VanirROM also

Change-Id: Idddb6b251519ab122ae32d70d1de2ee6d942765e
Active display: turn off display if device gets pocketed again

Change-Id: Icb4c002add915b75de7607f71c0d400e323feb5b
Active display: Fix "turn off display if device gets pocketed again"

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

Change-Id: I6f27bd86e2dbe2bc14b88acb94668a593590853a
Active Display: make Display Active TO configurable [1/2]

Change-Id: Iaecc351072f8ae2c70696e50d21cecdd3fedf3ec
ActiveD: Obey configurable timeout option

Change-Id: I28b873a7df5ad45384eea69e984873e4fab19f77
ActiveDisplay: Force FULLSCREEN flag

* ActiveDisplay (AD) isn't as appealing when transparent navbar shows.
  Force FULLSCREEN and hide all decorations

Change-Id: Ib8e2bfffcf7cdb9f1dffe084cad7ee70e7722a50
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Revert "ActiveDisplay: Force FULLSCREEN flag"

This reverts commit 7367a6711c8546f7834a4d0c12fe26b4abf81911.

Change-Id: Ibd69934f220603160b19b3848ef780a7e78c0cf4
ActiveDisplay: Force FULLSCREEN flag

* ActiveDisplay (AD) isn't as appealing when transparent navbar shows.
  Force FULLSCREEN and hide all decorations

Change-Id: I45d60db24ccd2c7c24bd0a3bd1dcefa4214dd67b
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
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
Revert "Active display: Don't register proximity if pocket mode not used"

This reverts commit b033f5cfd88e71c95b042233d895d57c86edd53b.

Change-Id: I47dff77916c872c8327d3fecbbf552c4da938925
Revert "Active display: Fix "turn off display if device gets pocketed again""

This reverts commit 63b49520e1a30073dceaccf0d37326f2f33d3e2c.

Change-Id: I0e828d8f57316b2014106b404b2cd29b794768df
Revert "Active display: turn off display if device gets pocketed again"

This reverts commit f4831b6c1fca0df72f836db3168b07cfdf4dd5fb.

Change-Id: I1e381771ef2ab2f98edf23cd57ad9812fcd78d2f
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