OSDN Git Service

Fix AOD battery updates
authorLucas Dupin <dupin@google.com>
Sat, 20 Jan 2018 03:06:45 +0000 (19:06 -0800)
committerLucas Dupin <dupin@google.com>
Sat, 20 Jan 2018 20:08:22 +0000 (20:08 +0000)
commit3fcdd4710edc71fa36879450572cd48b9c2f7527
tree4c8f6f004a8804263a7b31920f3a838665e9b256
parent18fb2fe4cf1a5b071b27308e0b1fa4f769997761
Fix AOD battery updates

It's not accurate to assume that events are only interesting when
the keyguard is visible. The user might be unlocked watching a
video or executing any other task and will miss a battery update.

Now dumping KeyguardIndicationController internals, to make it
easier to debug future issues.

Change-Id: I20efa011e20e92713a19fac32acea40604133f6d
Fixes: 72211244
Test: adb bugreport
Test: Play video, look at battery on AOD
Test: Lock phone, wait for battery update
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java