summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2017-01-25 13:25:22 -0800
committerWinson Chung <winsonc@google.com>2017-02-01 11:10:33 -0800
commit4dabf2396f4fe18b2f83641fe2ac52a913763bad (patch)
tree35b1f39d02a2c9018b9adc0829d9f3293142555f /rs/java/android/renderscript/ProgramStore.java
parent4a0ae490bdfbfbde2e0c8b59bbaccd992fcc974c (diff)
Preventing cases where an app can be stopped while entering PiP.
- Ensure that we clear the timeouts on the old stack and reschedule them on the new stack when moving an activity to a new stack, otherwise the pause timeout from the old stack will cause onStop() to be called. - When adding an activity to the stopping list for processing, prevent scheduling an idle immediately in case an activity tries to enter picture-in-picture when handling onUserLeaveHint(). In that case, schedule an idle after the default idle delay instead. - In addition, when resuming a resumeWhilePausing activity, prevent the activity idle to trigger pausing activities to be immediately put into a stopped state. This was a race between the handling of pause/resume that would cause a pip activity to get onStop() even if it called enter pip on pause. Instead, when processing an idle from the activity or from an immediate idle scheduled by the system, we defer processing pausing activities until a later idle (that it reschedules). Test: android.server.cts.ActivityManagerPinnedStackTests Test: #testEnterPipWithResumeWhilePausingActivityNoStop Change-Id: I375369a800b7fadaa57d6e00e0564bc3ee338979 Signed-off-by: Winson Chung <winsonc@google.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions