summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMÃ¥rten Kongstad <marten.kongstad@sony.com>2018-11-27 13:46:58 +0100
committerTodd Kennedy <toddke@google.com>2018-11-27 13:04:29 -0800
commit59d5a5a9380c88cab72e5a58f244d4a39d18b38f (patch)
treeed384b2e8dfb79441a8438e4dac2ddc4a92993df /tools/aapt2/java/JavaClassGenerator.cpp
parent19b3c371d36f1e5dbdb65d1846d9c0adc4147574 (diff)
idmap: use more robust data structures
The problem of creating idmap data consists of three steps: 1. create the mapping overlay resid -> target resid 2. fix the padding between the target resids 3. write the mapping as a binary stream Because we iterate over the resources in the overlay package, there are no guarantees on the order in which target resources are processed. This means we can't fix the padding until after step 1. On the other hand, after step 2 the mapping should be immutable. Introduce new data structures that help enforce immutability and ownership of data, as outlined above. Bug: 80150169 Test: make libandroidfw_tests Test: atest OverlayHostTests OverlayDeviceTests Change-Id: I45689e8003c96d251a63a758f77609972ae963df
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions