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-05-19 16:04:04 +0000
commit3230a4887bc0d32a5ee0e67c7ce056a26fadee1e (patch)
tree8d98664072461dbea108e3a42ca48c48ede9bac5 /tools/aapt2/java/JavaClassGenerator.cpp
parenta543dfde92e33b0d067943c6d4f0a3149d822bc2 (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 (cherry picked from commit 022c8ef71354aa059f8377acfe31e64880784da0)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions