Lines Matching refs:mAssetPaths

161     for (size_t i=0; i<mAssetPaths.size(); i++) {  in ~AssetManager()
162 ALOGV("Cleaning path #%d: fd=%d, zip=%p", (int)i, mAssetPaths[i].rawFd, in ~AssetManager()
163 mAssetPaths[i].zip.get()); in ~AssetManager()
164 if (mAssetPaths[i].rawFd >= 0 && mAssetPaths[i].zip == NULL) { in ~AssetManager()
165 close(mAssetPaths[i].rawFd); in ~AssetManager()
200 for (size_t i=0; i<mAssetPaths.size(); i++) { in addAssetPath()
201 if (mAssetPaths[i].path == ap.path) { in addAssetPath()
213 ssize_t apPos = mAssetPaths.add(ap); in addAssetPath()
217 *cookie = static_cast<int32_t>(mAssetPaths.size()); in addAssetPath()
225 mAssetPaths.add(oap); in addAssetPath()
230 appendPathToResTable(mAssetPaths.editItemAt(apPos), appAsLib); in addAssetPath()
242 for (size_t i = 0; i < mAssetPaths.size(); ++i) { in addOverlayPath()
243 if (mAssetPaths[i].idmap == idmapPath) { in addOverlayPath()
291 mAssetPaths.add(oap); in addOverlayPath()
292 *cookie = static_cast<int32_t>(mAssetPaths.size()); in addOverlayPath()
315 ssize_t apPos = mAssetPaths.add(ap); in addAssetFd()
319 *cookie = static_cast<int32_t>(mAssetPaths.size()); in addAssetFd()
323 appendPathToResTable(mAssetPaths.editItemAt(apPos), appAsLib); in addAssetFd()
379 return next > mAssetPaths.size() ? -1 : next; in nextAssetPath()
386 if (which < mAssetPaths.size()) { in getAssetPath()
387 return mAssetPaths[which].path; in getAssetPath()
439 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); in open()
448 size_t i = mAssetPaths.size(); in open()
452 assetName.string(), mAssetPaths.itemAt(i).path.string()); in open()
454 mAssetPaths.editItemAt(i)); in open()
472 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); in openNonAsset()
478 size_t i = mAssetPaths.size(); in openNonAsset()
481 … ALOGV("Looking for non-asset '%s' in '%s'\n", fileName, mAssetPaths.itemAt(i).path.string()); in openNonAsset()
483 fileName, mode, mAssetPaths.editItemAt(i)); in openNonAsset()
499 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); in openNonAsset()
501 if (which < mAssetPaths.size()) { in openNonAsset()
503 mAssetPaths.itemAt(which).path.string()); in openNonAsset()
505 fileName, mode, mAssetPaths.editItemAt(which)); in openNonAsset()
648 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); in getResTable()
655 const size_t N = mAssetPaths.size(); in getResTable()
658 const_cast<AssetManager*>(this)->mAssetPaths.editItemAt(i)); in getResTable()
743 const_cast<AssetManager*>(this)->mAssetPaths.add(oap); in addSystemOverlays()
973 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); in openDir()
991 size_t i = mAssetPaths.size(); in openDir()
994 const asset_path& ap = mAssetPaths.itemAt(i); in openDir()
1031 LOG_FATAL_IF(mAssetPaths.size() == 0, "No assets added to AssetManager"); in openNonAssetDir()
1042 if (which < mAssetPaths.size()) { in openNonAssetDir()
1043 const asset_path& ap = mAssetPaths.itemAt(which); in openNonAssetDir()