OSDN Git Service

Add battery to AOD
authorLucas Dupin <dupin@google.com>
Sun, 14 Jan 2018 06:00:35 +0000 (22:00 -0800)
committerLucas Dupin <dupin@google.com>
Wed, 17 Jan 2018 01:21:11 +0000 (01:21 +0000)
commit4272f44f3fcd6e4c984d66a6239252abd65cbbf6
tree4e5b8ad1a56bc8497a21f78aadb727c81a994517
parent265c692c8ec5a50054e0279321a98e7af85c2117
Add battery to AOD

Showing battery percentage in AOD in the keyguard
indication area when also randomizing the text field
position to avoid burn-in.

Removed charging indication from KeyguardStatusView
since now it's always visible in the indication area.

Bug: 64155983
Test: flash taimen, look at AOD
Test: flash walleye, look at AOD
Test: unplug device, look at message
Test: wait for change in battery level in AOD
Change-Id: I6110d47d155e95e838cb901ab0928f0512454ab5
packages/SystemUI/res-keyguard/layout/keyguard_status_view.xml
packages/SystemUI/res/layout/keyguard_bottom_area.xml
packages/SystemUI/res/values/dimens.xml
packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java
packages/SystemUI/src/com/android/systemui/ChargingView.java [deleted file]
packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java