summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2017-10-05 11:31:15 -0700
committerCraig Donner <cdonner@google.com>2017-10-06 15:56:56 -0700
commitb5cbecb16a53e74edd626b1571a47aa261482efd (patch)
tree2bcae6d5b878a1f38ac4744739da06012b9f3baa /tools/aapt2/java/JavaClassGenerator.cpp
parenta2fbb123da6b932138240fdf4c8fa06bfecebbc7 (diff)
Add keyguard state as a gate for VR Mode.
Problem: When the user toggles power button while in VR, they will be taken to a black VR screen that occludes the keyguard. VRManager previously used wakefulness and screen off as gates for VR Mode. However, the keyguard state can be on or off when the device is awake so we need to listen to the keyguard state as well. Change: 1) Have ActivityManagerService tell VrManagerService about the keyguard state the same as it does with wakefulness. 2) Stop applying any pending states when the device comes out of sleep/screen-off/keyguard to force user into putting-headset-on (DON) UX in those situations. Bug: 66696304 Test: Manual - toggle device's power button and see logs of keyguard. Test with all keyguard types. Change-Id: I4ae03cb1c8c13acdc8cd11839f178bc8d8f6f515
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions