summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorwilsonshih <wilsonshih@google.com>2020-08-18 09:59:15 +0800
committerwilsonshih <wilsonshih@google.com>2020-09-10 12:49:06 +0800
commitbba6bedfa9a9705e86ff9f1f9afead7ea50bec07 (patch)
tree8e15b9a3a98b95527cdb6fde44aa594e46f7eecb /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent401dc73af47c422a067c862d0a2c191a8cd8934b (diff)
Submit visibility to the activities after the sleep state stable
ActivityRecord#shouldBeVisible can be affected by sleep status. So in the original ensureActivityVisibility sequence: beginActivityVisibilityUpdate ensureActivityVisibility => ActivityRecord#shouldBeVisible => commit visiblity to the activity if changed endActivityVisibilityUpdate KeyguardController#visibilitiesUpdated Then if the occluding state has changed, execute above sequence again, which could change the visibility again, so previous loop become useless. Sometimes the loop cause issue like b/161036653. An idea is to let KeyguardController to handle TopActivityOccludesKeyguard and TopDismissingKeyguardActivity together to update display sleep state. And only commit the visibility to activities after sleep status is stable. In this CL the ensureActivityVisibility sequence become beginActivityVisibilityUpdate ensureActivityVisibility => ActivityRecord#updateVisibilityStatus endActivityVisibilityUpdate KeyguardController#visibilitiesUpdated if occluding state has changed, execute ensureActivityVisibility again. Then after all sleep status has changed, commit the visibility to activity. Bug: 163993448 Test: atest ActivityVisibilityTests KeyguardTests KeyguardLockedTests KeyguardTransitionTests AppConfigurationTests ReplaceWindowTests Test: atest ActivityRecordTests RecentTasksTest ActivityStackTests DisplayContentTests Change-Id: Ifa69ce5cc8069966c6bf2b23bad56e4b2bd286ba
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions