diff options
author | Yusuke Sato <yusukes@google.com> | 2015-06-19 17:18:07 -0700 |
---|---|---|
committer | Yusuke Sato <yusukes@google.com> | 2015-06-22 16:11:32 -0700 |
commit | 34fe3df8519523dbb4bc27010fa57f259d5e868d (patch) | |
tree | 08282d0b6cc64337f57e5d9964bf14d42580fddb /include | |
parent | 84a378f256bf7925ceb5d2c039a033d3e59b75df (diff) | |
download | frameworks_base-34fe3df8519523dbb4bc27010fa57f259d5e868d.zip frameworks_base-34fe3df8519523dbb4bc27010fa57f259d5e868d.tar.gz frameworks_base-34fe3df8519523dbb4bc27010fa57f259d5e868d.tar.bz2 |
Let findSupportedAbi and hasRenderscriptBitcode scan only relevant files
for better performance. Without the optimization, these two functions
may check more than 100k file names in the pre-installed APK files,
which can take a few seconds to finish even on a recent device.
Bug: 21957428
Change-Id: I315fd3c6d5aa1076b993752525de449a9933de12
Diffstat (limited to 'include')
-rw-r--r-- | include/androidfw/ZipFileRO.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/androidfw/ZipFileRO.h b/include/androidfw/ZipFileRO.h index 1410d87..7680342 100644 --- a/include/androidfw/ZipFileRO.h +++ b/include/androidfw/ZipFileRO.h @@ -91,6 +91,7 @@ public: * a matching call to endIteration with the same cookie. */ bool startIteration(void** cookie); + bool startIteration(void** cookie, const char* prefix, const char* suffix); /** * Return the next entry in iteration order, or NULL if there are no more |