summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorOli Lan <olilan@google.com>2019-08-14 11:45:37 +0100
committerBill Lin <lbill@google.com>2019-11-21 17:50:30 +0800
commitdc4a36105b749138ce07a422b75ba2fe5108e040 (patch)
treeed07ca583b1a8b74bd084bda8d791eca572fc390 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent91fc4db14e36c21d29c342329ee575d32bbf0bc8 (diff)
Include NewRollbacks in result of getAvailableRollbacks.
This CL adds NewRollbacks to the return value of getAvailableRollbacks, as long as the PackageRollbackInfo is complete (i.e. there is one for each child session in the install). Including these should avoid the potential race condition between the install finishing and getAvailableRollbacks being called which affected some of the tests. This means that the draining of the handler that was previously added to getAvailableRollbacks can now be removed. In order to avoid a similar race condition when rollbacks are expired, this change also cancels corresponding NewRollbacks when expireRollbackForPackage is called. Bug: 136241838 Bug: 136548146 Test: atest RollbackTest Test: manual local test with delay added to onFinished in the service callback Change-Id: Ie4581d218077dc16e53c337a5bb76609cc50a57e Merged-In: I015ee5925e38118c40f4b9e145f78fb12c0e2890
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions