summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-05-22 23:37:26 +0800
committer Riddle Hsu <riddlehsu@google.com> 2023-05-24 23:04:19 +0800
commitbf312b0ee0bee3868d4a1ccff7b55ac17fa771c0 (patch)
tree14ba7b7b085861bafb57498c6941acdf6c979710 /libs/androidfw/ApkParsing.cpp
parentd62eae979ef8d989dc5914f1505764021d34b211 (diff)
Skip screen animation if it is off
This is similar to legacy WindowManagerService#startFreezingDisplay that only runs animation when screen is on. So if display is resized or rotated when screen off, it can go the end state directly, which is more efficiency and also avoid seeing partial animation when turning screen on. This may slightly reduce some latency of display switch. Bug: 282110960 Bug: 281067141 Test: On a device which support display switch. Launch an activity that keeps screen on. Turn on auto rotation for inner display, off for outer. Rotate inner display to 90 degree. Switch to outer display with a nosensor activity. The outer display should show in rotation 0 directly instead of additional rotation animation. Change-Id: I5cff845810ef6da69adb88be2a24858388be2acf
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions