summaryrefslogtreecommitdiff
path: root/rs
diff options
context:
space:
mode:
author wilsonshih <wilsonshih@google.com> 2020-10-15 11:41:00 +0800
committer wilsonshih <wilsonshih@google.com> 2020-10-27 10:26:54 +0800
commit9979a51ed01f1012f50e4f9a4e09809307f8f295 (patch)
tree9581f6716b671c792921f5892d28feda733d5554 /rs
parent9a095a4e40f4dac1e324fe31b91d65b1095ab05f (diff)
Replace ActivityRecord#mSetToSleep by canTurnScreenOn
The member ActivityRecord#mSetToSleep can be replaced by checking canTurnScreenOn & mCurrentLaunchCanTurnScreenOn. Before Task#goToSleep been called, the display will be set to sleeping in RootWindowContainer#applySleepTokens, so when checking ActivityRecord#shouldBeVisibleUnchecked while display is sleeping, we only need to perform an additional check whether this activity can turn screen on. This is because there are only two ways to apply sleep token, which are keyguard and screen state, and we have checked the keyguard visibility through KeyguardController#checkKeyguardVisibility. Test: atest ActivityVisibilityTests KeyguardTests KeyguardLockedTests KeyguardTransitionTests Test: atest ActivityRecordTests Bug: 163993448 Change-Id: I64cf04e3037ab9ca7afec9d1c8bf65d202a02e36
Diffstat (limited to 'rs')
0 files changed, 0 insertions, 0 deletions