summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJanis Danisevskis <jdanis@google.com>2020-03-27 11:26:10 -0700
committerJanis Danisevskis <jdanis@google.com>2020-06-16 19:54:38 -0700
commitedcacd5374241574b46b7b4725665cc622f03b38 (patch)
tree46d29730a74e77c211218f06cda98103862ff5d1 /tools/aapt2/java/JavaClassGenerator.cpp
parent94091aceaa709c8ada56d05b1edd85dca319118b (diff)
Preserve interrupted state across waiting for future
A normal synchronous binder call would not be influenced by an interrupted thread. With the move to asynchronous keystore IPC we wait on a future which can throw an interrupted exception. The Java crypto API does not expect the implementation to throw interrupted exceptions though. So to preserve the expected behavior we wrap the Future.get() calls in a loop that handles the interrupted exception and sets the interrupted state after the get completed successfully. Bug: 147398412 Bug: 155254932 Test: atest android.keystore.cts.CipherTest#testEncryptsAndDecryptsInterrupted Change-Id: I066180e8028cc426fa1b3739fa007faa17c8c012 Merged-In: I066180e8028cc426fa1b3739fa007faa17c8c012
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions