diff options
| author | 2015-06-25 17:33:59 +0000 | |
|---|---|---|
| committer | 2015-06-25 17:34:01 +0000 | |
| commit | 0f61c7dcc40276788f58300d5d8ca85be2ce0e59 (patch) | |
| tree | 6726a44acd823cc9736289b8490b8939edc0c23d /libs/androidfw/ZipFileRO.cpp | |
| parent | 1979dd631d2da88c5d920013b5162700622bd0d3 (diff) | |
| parent | 34fe3df8519523dbb4bc27010fa57f259d5e868d (diff) | |
Merge "Let findSupportedAbi and hasRenderscriptBitcode scan only relevant files" into mnc-dev
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
| -rw-r--r-- | libs/androidfw/ZipFileRO.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libs/androidfw/ZipFileRO.cpp b/libs/androidfw/ZipFileRO.cpp index 6f927b41fa64..a6f6d8c4ff16 100644 --- a/libs/androidfw/ZipFileRO.cpp +++ b/libs/androidfw/ZipFileRO.cpp @@ -126,10 +126,18 @@ bool ZipFileRO::getEntryInfo(ZipEntryRO entry, uint16_t* pMethod, return true; } -bool ZipFileRO::startIteration(void** cookie) +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; - int32_t error = StartIteration(mHandle, &(ze->cookie), NULL /* prefix */); + ZipEntryName pe(prefix ? prefix : ""); + ZipEntryName se(suffix ? suffix : ""); + int32_t error = StartIteration(mHandle, &(ze->cookie), + prefix ? &pe : NULL, + suffix ? &se : NULL); if (error) { ALOGW("Could not start iteration over %s: %s", mFileName, ErrorCodeString(error)); delete ze; |