[SB][Privacy] Fetch current active appops on startup.
This also updates SysUI's chip animation scheduler to ignore an `isTooEarly` check if the chip animation is forced to be visible (which is true for privacy events). Bug: 294104969 Test: start recording, then kill systemui via adb-> verify privacy chip reappears after restart. Pull down shade and verify chip is correctly attributed. Stop recording and verify chip/dot disappears. Test: open camera, then kill systemui via adb -> verify privacy chip reappears after restart. Pull down shade and verify chip is correctly attributed. Close camera and verify chip/dot disappears. Test: smoke test of privacy chip and dot Test: atest AppOpsControllerTest SystemStatusAnimationSchedulerImplTest Change-Id: I664bb3003a2f6871113406e3257b7118bbdf2ab5 Merged-In: I664bb3003a2f6871113406e3257b7118bbdf2ab5 (cherry picked from commit 084a7afb)
Showing
- packages/SystemUI/src/com/android/systemui/appops/AppOpsControllerImpl.java 28 additions, 0 deletions...src/com/android/systemui/appops/AppOpsControllerImpl.java
- packages/SystemUI/src/com/android/systemui/statusbar/events/SystemStatusAnimationSchedulerImpl.kt 3 additions, 2 deletions...ui/statusbar/events/SystemStatusAnimationSchedulerImpl.kt
- packages/SystemUI/src/com/android/systemui/statusbar/events/SystemStatusAnimationSchedulerLegacyImpl.kt 3 additions, 2 deletions...tusbar/events/SystemStatusAnimationSchedulerLegacyImpl.kt
- packages/SystemUI/tests/src/com/android/systemui/appops/AppOpsControllerTest.java 217 additions, 0 deletions...src/com/android/systemui/appops/AppOpsControllerTest.java
- packages/SystemUI/tests/src/com/android/systemui/statusbar/events/SystemStatusAnimationSchedulerImplTest.kt 24 additions, 4 deletions...tatusbar/events/SystemStatusAnimationSchedulerImplTest.kt
Please register or sign in to comment