summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-03-15 13:14:17 +0000
committer Nick Chameyev <nickchameyev@google.com> 2024-03-20 10:15:28 +0000
commit548320ffa8b0afbbfc6d59710e5ebef181aa1784 (patch)
tree07ad0ef419fa96492287016f631326ca681b7033 /libs/androidfw/misc.cpp
parent9860e4e224e85c1f69c56782aa0072e2adda33bd (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 (cherry picked from commit 20e51039cd926bd1427d4864764910700a36ccc7)
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions