OSDN Git Service

Assume sensors perform prox check
authorLucas Dupin <dupin@google.com>
Wed, 7 Aug 2019 22:55:00 +0000 (15:55 -0700)
committerLucas Dupin <dupin@google.com>
Thu, 8 Aug 2019 21:52:53 +0000 (14:52 -0700)
commitf40bd8fbb65c896c824fe3f1a5be857bbe8ae281
treeee3eae7a24145e898686c23ed430bf4bb5fb3044
parent55189157a9e8b751d3b856b2695ba86a1494dcc6
Assume sensors perform prox check

Assume that doze sensors will be prox gated.
Not doing so would be a bad idea anyway since the device would wake
up way more often than it should and drain battery.

Another improvement on this CL is that regular DozeSensors prox
checks are trying to use a binned brightness sensor instead.

Fixes: 138765669
Test: atest DozeSensorsTest DozeTriggersTest
Test: single tap from AOD (observe no re-registration of lift)
Test: 'reach' from AOD (observe no re-registration of lift)
Test: receive notification with prox covered or unobstructed
Change-Id: I1961ff9b16480ba1a60c397570494dd7acb4802d
packages/SystemUI/res/values/config.xml
packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java
packages/SystemUI/src/com/android/systemui/doze/DozeTriggers.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/DozeParameters.java
packages/SystemUI/tests/src/com/android/systemui/doze/DozeConfigurationUtil.java
packages/SystemUI/tests/src/com/android/systemui/doze/DozeSensorsTest.java
packages/SystemUI/tests/src/com/android/systemui/doze/DozeTriggersTest.java