OSDN Git Service

AOD: Skip prox check if cached prox value available
authorAdrian Roos <roosa@google.com>
Mon, 24 Jul 2017 14:42:57 +0000 (16:42 +0200)
committerAdrian Roos <roosa@google.com>
Mon, 24 Jul 2017 14:45:44 +0000 (16:45 +0200)
commit70da03adbdb6fc06b1ff5ad5decf36d55d749e84
treefc54aeda4b8c7077a6ad3a0df0c397d96dd8f031
parent29119b6f5f497f9ea23662eca752a15f62768e3e
AOD: Skip prox check if cached prox value available

On AOD, we run the proximity sensor, so when a pulse comes in,
there is no need to wait for a new result. Instead, we can use
the existing value if available.

Change-Id: Ibded081e5011a3053e6990012f97f63865e20298
Fixes: 63538693
Test: receive notification, verify that pulsing starts immediately and does not wait for the proximity check.
packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
packages/SystemUI/src/com/android/systemui/doze/DozeTriggers.java