summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorHui Yu <huiyu@google.com>2020-05-15 14:16:02 -0700
committerHui Yu <huiyu@google.com>2020-05-20 23:04:34 -0700
commit3f5b1521f048e8a396a70cc5510abaa9b6eae561 (patch)
treed9e004a31d1f5264fc5cee7abfb66c159216d960 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentce6252e5a49f7bce42ad079893a716aa87ba2bf9 (diff)
Check PendingStartActivityUids list before updateOomAdj is done.
While starting activity, WindowManager posts a runnable to DisplayThread to updateOomAdj. The latency of the thread switch could cause client app failure when the app is checking ActivityManagerService.isUidActive() before updateOomAdj is done. Use PendingStartActivityUids to save uid after WindowManager start activity and before updateOomAdj is done. PendingStartActivityUids list is checked in ActivityManagerService.isUidActive() and AppOpsService.UidState.evalMode(). A uid in this list is treated same as uid is active. Bug: 157180494 Test: atest cts/tests/app/src/android/app/cts/ActivityManagerCameraLaunchTest.java Change-Id: If0685c3c2fad01e48f3fcf2228057041f4ec9b00
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions