summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-03-15 13:14:17 +0000
committer Riddle Hsu <riddlehsu@google.com> 2024-03-20 05:49:57 +0000
commit20e51039cd926bd1427d4864764910700a36ccc7 (patch)
tree1144af4abb8e03a0a76d11bd9388232103c4ec09 /libs/input/SpriteController.cpp
parent642bdb48a81b682be3307e9066786bdfc63b0e84 (diff)
Skip sleep-token when switching display which will be on
To reduce unnecessary visibility or lifecycle changes. That may improve the latency of display switch and avoid showing intermediate content. Note: mRequestedOrSleepingDefaultDisplay cannot be used for this case because it is set to true by screenTurningOff but it doesn't mean the device will sleep. Maybe commit 0687f9d3 and 1dbb239b can be removed after adoping this concept. Bug: 303241079 Test: atest PhoneWindowManagerTests#testScreenTurnedOff Test: Fold/unfold a foldable device. With Settings > Display > Continue using apps on fold - Keep screen on fold Home keeps resumed and won't receive invisible. - Turn off screen on fold Home can receive invisible and stopped. Change-Id: If3848b4a6d67d71da7d735af56fcfd967152c1f6
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions