summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Yusuke Sato <yusukes@google.com> 2015-08-05 17:58:57 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-08-05 17:58:57 +0000
commit3383b141c3ac4426279e649ebcee535890203c3f (patch)
tree2f18f74687994ede0d7ccd991e6527c11d28ff3b /libs/androidfw/ZipFileRO.cpp
parent906c8dea2ec6ae404ae6d7870c0a0cb2289f3d04 (diff)
parenta024acb8bab7e0e04f709fc9f927575f448e11db (diff)
am a024acb8: Merge "Let findSupportedAbi and hasRenderscriptBitcode scan only relevant files"
* commit 'a024acb8bab7e0e04f709fc9f927575f448e11db': Let findSupportedAbi and hasRenderscriptBitcode scan only relevant files
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
-rw-r--r--libs/androidfw/ZipFileRO.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/androidfw/ZipFileRO.cpp b/libs/androidfw/ZipFileRO.cpp
index bdb659c38b42..37aae524d889 100644
--- a/libs/androidfw/ZipFileRO.cpp
+++ b/libs/androidfw/ZipFileRO.cpp
@@ -127,9 +127,17 @@ bool ZipFileRO::getEntryInfo(ZipEntryRO entry, uint16_t* pMethod,
bool ZipFileRO::startIteration(void** cookie)
{
+ return startIteration(cookie, NULL, NULL);
+}
+
+bool ZipFileRO::startIteration(void** cookie, const char* prefix, const char* suffix)
+{
_ZipEntryRO* ze = new _ZipEntryRO;
+ ZipString pe(prefix ? prefix : "");
+ ZipString se(suffix ? suffix : "");
int32_t error = StartIteration(mHandle, &(ze->cookie),
- NULL /* prefix */, NULL /* suffix */);
+ prefix ? &pe : NULL,
+ suffix ? &se : NULL);
if (error) {
ALOGW("Could not start iteration over %s: %s", mFileName, ErrorCodeString(error));
delete ze;