summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2017-05-17 17:25:32 +0200
committerJorim Jaggi <jjaggi@google.com>2017-05-19 00:55:31 +0200
commit51304d7380b6122ac55645fd9085ba071b04afa9 (patch)
tree930d1e29b3769a055b77848626c091cab2c11ede /opengl/tests/gl_basic/gl_basic.cpp
parent95cf170ce94f51e9455304207ab20d4bd7109697 (diff)
Take snapshot when screen is turning off
Since we can't take a snapshot when screen is turned off, we need to snapshot before we are turning the screen off. For this, we - Add a callback from DisplayPowerController to give policy a chance to do something before display will be turned off. - Implement this callback by taking snapshots of all visible tasks. Test: Inspect logs/traces about screen off blocking to make sure callback is working correctly. Test: Insert artificial 500ms delay in onScreenTurningOff and make sure we are unblocking screen off when turning on screen in the meantime. Test: Open Maps, go to recents, open maps again, scroll to another location, toggle power button, make sure the old location isn't shown during unlock. Change-Id: I489f31358f838d418f894f996495946084f136a4 Fixes: 37107783
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions