summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorGavin Corkery <gavincorkery@google.com>2019-09-05 11:48:55 +0100
committerGavin Corkery <gavincorkery@google.com>2019-09-05 11:48:55 +0100
commitf115451175bfba2ff83b9279cfc4df2fb4235cdb (patch)
tree370b73dbbe72a8879897c684818c3cf1b6786fd2 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2c833c2b0f7131d8490e29c42d7da88c62673341 (diff)
Block until userdata backup/restore has taken place
Currently, userdata backup/restore is performed on a handler thread. This means that we cannot guarantee that an application will not begin running during a backup/restore, as we have no guarantees of when the backup logic will actually execute. In the onUnlockUser case we can block until the handler thread has completed its work by using a CountdownLatch. In the general case we will keep snapshotAndRestoreUserData on the handler thread, using Package Manager's token to decide when to unfreeze Test: atest RollbackTest Test: atest StagedRollbackTest Bug: 124032231 Change-Id: I4c818833e48a549e8a3aa8401539f44c14b89b57
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions