Lines Matching refs:path
86 String8 path(root); in idmapPathForPackagePath() local
87 path.appendPath(kResourceCache); in idmapPathForPackagePath()
103 path.appendPath(filename); in idmapPathForPackagePath()
104 path.append("@idmap"); in idmapPathForPackagePath()
106 return path; in idmapPathForPackagePath()
161 const String8& path, int32_t* cookie, bool appAsLib, bool isSystemAsset) { in addAssetPath() argument
166 String8 realPath(path); in addAssetPath()
172 ap.path = realPath; in addAssetPath()
174 ap.path = path; in addAssetPath()
175 ap.type = ::getFileType(path.string()); in addAssetPath()
178 path.string(), (int)ap.type); in addAssetPath()
185 if (mAssetPaths[i].path == ap.path) { in addAssetPath()
194 ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.string()); in addAssetPath()
207 for (size_t idx = 0; mZipSet.getOverlay(ap.path, idx, &oap); idx++) { in addAssetPath()
268 oap.path = overlayPath; in addOverlayPath()
298 ap.path = paths[i]; in createIdmap()
302 ALOGW("failed to find resources.arsc in %s\n", ap.path.string()); in createIdmap()
325 String8 path(root); in addDefaultAssets() local
326 path.appendPath(kSystemAssets); in addDefaultAssets()
328 return addAssetPath(path, NULL, false /* appAsLib */, true /* isSystemAsset */); in addDefaultAssets()
343 return mAssetPaths[which].path; in getAssetPath()
408 assetName.string(), mAssetPaths.itemAt(i).path.string()); in open()
436 … ALOGV("Looking for non-asset '%s' in '%s'\n", fileName, mAssetPaths.itemAt(i).path.string()); in openNonAsset()
458 mAssetPaths.itemAt(which).path.string()); in openNonAsset()
504 ATRACE_NAME(ap.path.string()); in appendPathToResTable()
507 ALOGV("Looking for resource asset in '%s'\n", ap.path.string()); in appendPathToResTable()
513 mZipSet.getZipResourceTable(ap.path); in appendPathToResTable()
521 mZipSet.getZipResourceTableAsset(ap.path); in appendPathToResTable()
523 ALOGV("loading resource table %s\n", ap.path.string()); in appendPathToResTable()
530 mZipSet.setZipResourceTableAsset(ap.path, ass); in appendPathToResTable()
538 ALOGV("Creating shared resources for %s", ap.path.string()); in appendPathToResTable()
547 addSystemOverlays(overlaysListPath.string(), ap.path, sharedRes, nextEntryIdx); in appendPathToResTable()
550 mZipSet.setZipResourceTable(ap.path, sharedRes); in appendPathToResTable()
554 ALOGV("loading resource table %s\n", ap.path.string()); in appendPathToResTable()
565 ALOGV("Copying existing resources for %s", ap.path.string()); in appendPathToResTable()
568 ALOGV("Parsing resources for %s", ap.path.string()); in appendPathToResTable()
683 oap.path = String8(buf, space - buf); in addSystemOverlays()
743 String8 path(ap.path); in openNonAssetInPathLocked() local
744 path.appendPath(fileName); in openNonAssetInPathLocked()
746 pAsset = openAssetFromFileLocked(path, mode); in openNonAssetInPathLocked()
750 path.append(".gz"); in openNonAssetInPathLocked()
751 pAsset = openAssetFromFileLocked(path, mode); in openNonAssetInPathLocked()
756 pAsset->setAssetSource(path); in openNonAssetInPathLocked()
761 String8 path(fileName); in openNonAssetInPathLocked() local
767 ZipEntryRO entry = pZip->findEntryByName(path.string()); in openNonAssetInPathLocked()
770 pAsset = openAssetFromZipLocked(pZip, entry, mode, path); in openNonAssetInPathLocked()
778 createZipSourceNameLocked(ZipSet::getPathName(ap.path.string()), String8(""), in openNonAssetInPathLocked()
807 String8 path(ap.path); in createPathNameLocked() local
808 if (rootDir != NULL) path.appendPath(rootDir); in createPathNameLocked()
809 return path; in createPathNameLocked()
820 return mZipSet.getZip(ap.path); in getZipFileLocked()
936 ALOGV("Adding directory %s from zip %s", dirName, ap.path.string()); in openDir()
939 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string()); in openDir()
985 ALOGV("Adding directory %s from zip %s", dirName, ap.path.string()); in openNonAssetDir()
988 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string()); in openNonAssetDir()
1020 String8 path = createPathNameLocked(ap, rootDir); in scanAndMergeDirLocked() local
1022 path.appendPath(dirName); in scanAndMergeDirLocked()
1024 SortedVector<AssetDir::FileInfo>* pContents = scanDirLocked(path); in scanAndMergeDirLocked()
1086 SortedVector<AssetDir::FileInfo>* AssetManager::scanDirLocked(const String8& path) in scanDirLocked() argument
1093 ALOGV("Scanning dir '%s'\n", path.string()); in scanDirLocked()
1095 dir = opendir(path.string()); in scanDirLocked()
1119 fileType = ::getFileType(path.appendPathCopy(entry->d_name).string()); in scanDirLocked()
1129 info.setSourceName(path.appendPathCopy(info.getFileName())); in scanDirLocked()
1153 pZip = mZipSet.getZip(ap.path); in scanAndMergeZipLocked()
1155 ALOGW("Failure opening zip %s\n", ap.path.string()); in scanAndMergeZipLocked()
1159 zipName = ZipSet::getPathName(ap.path.string()); in scanAndMergeZipLocked()
1363 AssetManager::SharedZip::SharedZip(const String8& path, time_t modWhen) in SharedZip() argument
1364 : mPath(path), mZipFile(NULL), mModWhen(modWhen), in SharedZip()
1377 sp<AssetManager::SharedZip> AssetManager::SharedZip::get(const String8& path, in get() argument
1381 time_t modWhen = getFileModDate(path); in get()
1382 sp<SharedZip> zip = gOpen.valueFor(path).promote(); in get()
1389 zip = new SharedZip(path, modWhen); in get()
1390 gOpen.add(path, zip); in get()
1507 ZipFileRO* AssetManager::ZipSet::getZip(const String8& path) in getZip() argument
1509 int idx = getIndex(path); in getZip()
1512 zip = SharedZip::get(path); in getZip()
1518 Asset* AssetManager::ZipSet::getZipResourceTableAsset(const String8& path) in getZipResourceTableAsset() argument
1520 int idx = getIndex(path); in getZipResourceTableAsset()
1523 zip = SharedZip::get(path); in getZipResourceTableAsset()
1529 Asset* AssetManager::ZipSet::setZipResourceTableAsset(const String8& path, in setZipResourceTableAsset() argument
1532 int idx = getIndex(path); in setZipResourceTableAsset()
1538 ResTable* AssetManager::ZipSet::getZipResourceTable(const String8& path) in getZipResourceTable() argument
1540 int idx = getIndex(path); in getZipResourceTable()
1543 zip = SharedZip::get(path); in getZipResourceTable()
1549 ResTable* AssetManager::ZipSet::setZipResourceTable(const String8& path, in setZipResourceTable() argument
1552 int idx = getIndex(path); in setZipResourceTable()
1580 void AssetManager::ZipSet::addOverlay(const String8& path, const asset_path& overlay) in addOverlay() argument
1582 int idx = getIndex(path); in addOverlay()
1587 bool AssetManager::ZipSet::getOverlay(const String8& path, size_t idx, asset_path* out) const in getOverlay() argument
1589 sp<SharedZip> zip = SharedZip::get(path, false); in getOverlay()