summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorBeverly <beverlyt@google.com>2020-09-16 15:38:33 -0400
committerBeverly Tai <beverlyt@google.com>2020-09-18 19:25:50 +0000
commitd9e9bac7931275db029a23e61d2e6c3bdf5d4876 (patch)
tree3eab31a352bea7ad4f8d92feceb5e38f8c0bbd27 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent69a67d1d124ccdf09a94dd0ed201690591875c42 (diff)
Don't trust DozeState onScreenState changes
In DozeScreenBrightness, we should only rely on the passed displayScreenState because our DozeState (updated by transitionTo) may not be updated yet. Therefore, only register the brightness sensor when the display state is Display.STATE_DOZE/DOZE_SUSPENDED. Test: atest DozeScreenBrightnessTest Bug: 168689990 Change-Id: Ie32f91c5a46bd987649a8a17e6543071847ad97c Merged-In: Ie32f91c5a46bd987649a8a17e6543071847ad97c (cherry picked from commit a3c5a6a5975367e5d13509ef579b940b9ee21553)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions