Lines Matching refs:mAssetPaths
162 for (size_t i=0; i<mAssetPaths.size(); i++) { in ~AssetManager()
163 ALOGV("Cleaning path #%d: fd=%d, zip=%p", (int)i, mAssetPaths[i].rawFd, in ~AssetManager()
164 mAssetPaths[i].zip.get()); in ~AssetManager()
165 if (mAssetPaths[i].rawFd >= 0 && mAssetPaths[i].zip == NULL) { in ~AssetManager()
166 close(mAssetPaths[i].rawFd); in ~AssetManager()
201 for (size_t i=0; i<mAssetPaths.size(); i++) { in addAssetPath()
202 if (mAssetPaths[i].path == ap.path) { in addAssetPath()
214 ssize_t apPos = mAssetPaths.add(ap); in addAssetPath()
218 *cookie = static_cast<int32_t>(mAssetPaths.size()); in addAssetPath()
226 mAssetPaths.add(oap); in addAssetPath()
231 appendPathToResTable(mAssetPaths.editItemAt(apPos), appAsLib); in addAssetPath()
243 for (size_t i = 0; i < mAssetPaths.size(); ++i) { in addOverlayPath()
244 if (mAssetPaths[i].idmap == idmapPath) { in addOverlayPath()
292 mAssetPaths.add(oap); in addOverlayPath()
293 *cookie = static_cast<int32_t>(mAssetPaths.size()); in addOverlayPath()
316 ssize_t apPos = mAssetPaths.add(ap); in addAssetFd()
320 *cookie = static_cast<int32_t>(mAssetPaths.size()); in addAssetFd()
324 appendPathToResTable(mAssetPaths.editItemAt(apPos), appAsLib); in addAssetFd()
380 return next > mAssetPaths.size() ? -1 : next; in nextAssetPath()
387 if (which < mAssetPaths.size()) { in getAssetPath()
388 return mAssetPaths[which].path; in getAssetPath()
440 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); in open()
449 size_t i = mAssetPaths.size(); in open()
453 assetName.c_str(), mAssetPaths.itemAt(i).path.c_str()); in open()
455 mAssetPaths.editItemAt(i)); in open()
473 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); in openNonAsset()
479 size_t i = mAssetPaths.size(); in openNonAsset()
482 ALOGV("Looking for non-asset '%s' in '%s'\n", fileName, mAssetPaths.itemAt(i).path.c_str()); in openNonAsset()
484 fileName, mode, mAssetPaths.editItemAt(i)); in openNonAsset()
500 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); in openNonAsset()
502 if (which < mAssetPaths.size()) { in openNonAsset()
504 mAssetPaths.itemAt(which).path.c_str()); in openNonAsset()
506 fileName, mode, mAssetPaths.editItemAt(which)); in openNonAsset()
649 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); in getResTable()
656 const size_t N = mAssetPaths.size(); in getResTable()
659 const_cast<AssetManager*>(this)->mAssetPaths.editItemAt(i)); in getResTable()
744 const_cast<AssetManager*>(this)->mAssetPaths.add(oap); in addSystemOverlays()
974 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); in openDir()
992 size_t i = mAssetPaths.size(); in openDir()
995 const asset_path& ap = mAssetPaths.itemAt(i); in openDir()
1032 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); in openNonAssetDir()
1043 if (which < mAssetPaths.size()) { in openNonAssetDir()
1044 const asset_path& ap = mAssetPaths.itemAt(which); in openNonAssetDir()