summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMakoto Onuki <omakoto@google.com>2017-08-08 14:58:19 -0700
committerMakoto Onuki <omakoto@google.com>2017-08-09 12:07:40 -0700
commitff94e0351a908504c588efac2084811840cde453 (patch)
treea1454a6d5ead9a245178316709178fc96755500d /tools/aapt2/java/JavaClassGenerator.cpp
parent98af408afd3b151e0945be5223f0c3ff8e845af8 (diff)
DropBoxManagerService: Don't store redundant information
Filenames can be calculated from other fields, so there's no need to store them. This will reduce the average EntryFile size from 160b to 28b, so in theory it could save 132 KB for 1000 entries. - Also switched from HashMap to ArrayMap, which should help a bit too. - Also fixed unit tests and added more. Bug: 20890386 Test: bit FrameworksServicesTests:com.android.server.DropBoxTest Test: Boot, check the dropbox directory, run dumpsys dropbox, reboot and repeat. Change-Id: If567750f478318acd621864d1d4ef2ed41f214bd
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions