OSDN Git Service

Decrease delay to improve battery life
authorLucas Dupin <dupin@google.com>
Tue, 26 Jun 2018 22:09:08 +0000 (15:09 -0700)
committerLucas Dupin <dupin@google.com>
Mon, 2 Jul 2018 21:38:10 +0000 (21:38 +0000)
commita11298be5df8567c6dc82cf4dd64fb3ce30c1466
treeec5602add1fe7c2951277c29f31d2b9ce3404da8
parent0c40911ee6b4beb1ec6fab0a2ae546ed0ae39d81
Decrease delay to improve battery life

Arbitrary delays were introduced a while ago to deal with device
specific issues but these delays ended up affecting battery life
significantly. Although removing them completely isn't possible,
they can be reduced to more conservative values.

Test: cover prox. sensor multiple times with multiple durations
Fixes: 110902271
Change-Id: I2731fc7a5414f796e96a6c97959c395b10c32faa
packages/SystemUI/src/com/android/systemui/doze/DozeUi.java
packages/SystemUI/src/com/android/systemui/util/wakelock/DelayedWakeLock.java