summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2015-04-17 19:55:47 -0700
committerJeff Brown <jeffbrown@google.com>2015-04-17 20:00:09 -0700
commit061ea99546fbba1da86094518992cf6b7a125278 (patch)
tree647530c14c27a5c7ce1359e1e6bd8e697b55e846 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent250dd262910c3a79e87746d3c5519cb3c7e66cab (diff)
Make activity manager sleep top activity when dreaming.
Added the concept of a sleep token to represent a demand to sleep. We grab this token whenever a dream window is visible. This change also deletes a special condition in shouldSleepLocked() which would tend to keep activities running when the lock screen was shown unless they had previously been sleeping. I believe this condition is no longer necessary and the policy is much simpler without it. Let's see if anything breaks. NOTE: This can currently only be used within the system server process but it might make sense to move it to IActivityManager (guarded by DEVICE_POWER permission) so that keyguard can use it. If we added a callback on release to inform the client that the underlying activity has finished drawing then we could untangle a bunch of keyguard specific logic. Bug: 18866521 Change-Id: I84b2118f5b990a71a1647d1cee536ad3d99f3a24
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions