summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Caitlin Shkuratov <caitlinshk@google.com> 2023-07-11 16:14:14 +0000
committer Caitlin Shkuratov <caitlinshk@google.com> 2023-07-11 18:29:31 +0000
commitcfc712a2f701d4bec4930354e684c9f9fc7f4180 (patch)
tree8f0d85c793fe20f94453a71ba18f198d4455c487 /libs/androidfw/ApkParsing.cpp
parente6ac1838482a36aa3626c1c059c118294411e877 (diff)
[SB] Invalidate battery drawable on shield change; dump more info.
It seems other aspects of the battery drawable like `charging` would invalidate the drawable directly, whereas `displayShield` wasn't. This adds that invalidation. I'm not sure if that was what was causing the bug, but it couldn't hurt. This also adds more info to the `BatteryController` dump so we can see who's registered as listening for events and the current state of the battery drawables. See bug for sample dump. Bug: 286998719 Test: `adb shell am broadcast -a com.android.systemui.demo -e command battery -e defender true` -> shield shown Test: `adb shell am broadcast -a com.android.systemui.demo -e command battery -e defender false` -> shield hidden Test: `adb shell dumpsys activity service com.android.systemui/.SystemUIService BatteryController` -> additional info is dumped Test: atest BatteryMeterViewControllerTest BatteryControllerImplGoogleTest Change-Id: Idef1e6a883dd09012671ffc19520e8c3664f7dd2
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions