summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-08-16 14:55:01 +0800
committer Riddle Hsu <riddlehsu@google.com> 2024-08-16 15:17:40 +0800
commitcd7d9512269630c3d14eab6b50b30ae8d66aa11f (patch)
tree2cc9fa1a344add22f0fdeaea3f0cd7757f5b876d /api/api_test.go
parent62253d6f1096b35ea88a50ef052451cba60b1ae0 (diff)
Check idle activity from all visible task fragment
The very old legacy logic only handles fullscreen windowing mode case. If multiple tasks are launching at the same time, the power mode may be finished too early by the first activity reports idle. That results in a long startup delay. Also add a case to handle cold launching activity. Before the process is attached, the activity record state is INITIALIZING. But if it can be resumed after its process is attached, its idle state should also be considered. E.g. launching a split-screen pair with hot launch of one side and cold launch on another side. When the first one reported idle, allResumedActivitiesIdle should still return false. Fix: 356522395 Flag: EXEMPT bugfix Test: atest RootWindowContainerTests#testAllResumedActivitiesIdle Change-Id: Ida677ec93916f37cf2aebd33113f9730d8c211ab
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions