Lines Matching refs:path
90 String8 path(root); in idmapPathForPackagePath() local
91 path.appendPath(kResourceCache); in idmapPathForPackagePath()
107 path.appendPath(filename); in idmapPathForPackagePath()
108 path.append("@idmap"); in idmapPathForPackagePath()
110 return path; in idmapPathForPackagePath()
177 const String8& path, int32_t* cookie, bool appAsLib, bool isSystemAsset) { in addAssetPath() argument
182 String8 realPath(path); in addAssetPath()
188 ap.path = realPath; in addAssetPath()
190 ap.path = path; in addAssetPath()
191 ap.type = ::getFileType(path.string()); in addAssetPath()
194 path.string(), (int)ap.type); in addAssetPath()
201 if (mAssetPaths[i].path == ap.path) { in addAssetPath()
210 ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.string()); in addAssetPath()
223 for (size_t idx = 0; mZipSet.getOverlay(ap.path, idx, &oap); idx++) { in addAssetPath()
284 oap.path = overlayPath; in addOverlayPath()
308 ap.path = debugPathName; in addAssetFd()
313 ALOGV("In %p Asset fd %d name: %s", this, fd, ap.path.string()); in addAssetFd()
342 ap.path = paths[i]; in createIdmap()
346 ALOGW("failed to find resources.arsc in %s\n", ap.path.string()); in createIdmap()
369 String8 path(root); in addDefaultAssets() local
370 path.appendPath(kSystemAssets); in addDefaultAssets()
372 return addAssetPath(path, NULL, false /* appAsLib */, true /* isSystemAsset */); in addDefaultAssets()
387 return mAssetPaths[which].path; in getAssetPath()
452 assetName.string(), mAssetPaths.itemAt(i).path.string()); in open()
481 … ALOGV("Looking for non-asset '%s' in '%s'\n", fileName, mAssetPaths.itemAt(i).path.string()); in openNonAsset()
503 mAssetPaths.itemAt(which).path.string()); in openNonAsset()
549 ATRACE_NAME(ap.path.string()); in appendPathToResTable()
552 ALOGV("Looking for resource asset in '%s'\n", ap.path.string()); in appendPathToResTable()
558 mZipSet.getZipResourceTable(ap.path); in appendPathToResTable()
566 mZipSet.getZipResourceTableAsset(ap.path); in appendPathToResTable()
568 ALOGV("loading resource table %s\n", ap.path.string()); in appendPathToResTable()
575 mZipSet.setZipResourceTableAsset(ap.path, ass); in appendPathToResTable()
583 ALOGV("Creating shared resources for %s", ap.path.string()); in appendPathToResTable()
592 addSystemOverlays(overlaysListPath.string(), ap.path, sharedRes, nextEntryIdx); in appendPathToResTable()
595 mZipSet.setZipResourceTable(ap.path, sharedRes); in appendPathToResTable()
599 ALOGV("loading resource table %s\n", ap.path.string()); in appendPathToResTable()
610 ALOGV("Copying existing resources for %s", ap.path.string()); in appendPathToResTable()
613 ALOGV("Parsing resources for %s", ap.path.string()); in appendPathToResTable()
729 oap.path = String8(buf, space - buf); in addSystemOverlays()
791 String8 path(ap.path); in openNonAssetInPathLocked() local
792 path.appendPath(fileName); in openNonAssetInPathLocked()
794 pAsset = openAssetFromFileLocked(path, mode); in openNonAssetInPathLocked()
798 path.append(".gz"); in openNonAssetInPathLocked()
799 pAsset = openAssetFromFileLocked(path, mode); in openNonAssetInPathLocked()
804 pAsset->setAssetSource(path); in openNonAssetInPathLocked()
809 String8 path(fileName); in openNonAssetInPathLocked() local
814 ALOGV("GOT zip, checking NA '%s'", (const char*) path); in openNonAssetInPathLocked()
815 ZipEntryRO entry = pZip->findEntryByName(path.string()); in openNonAssetInPathLocked()
817 ALOGV("FOUND NA in Zip file for %s", (const char*) path); in openNonAssetInPathLocked()
818 pAsset = openAssetFromZipLocked(pZip, entry, mode, path); in openNonAssetInPathLocked()
826 createZipSourceNameLocked(ZipSet::getPathName(ap.path.string()), String8(""), in openNonAssetInPathLocked()
855 String8 path(ap.path); in createPathNameLocked() local
856 if (rootDir != NULL) path.appendPath(rootDir); in createPathNameLocked()
857 return path; in createPathNameLocked()
873 ALOGV("getZipFileLocked: Creating new zip from path %s", ap.path.string()); in getZipFileLocked()
874 ap.zip = mZipSet.getSharedZip(ap.path); in getZipFileLocked()
877 ap.zip = SharedZip::create(ap.rawFd, ap.path); in getZipFileLocked()
996 ALOGV("Adding directory %s from zip %s", dirName, ap.path.string()); in openDir()
999 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string()); in openDir()
1045 ALOGV("Adding directory %s from zip %s", dirName, ap.path.string()); in openNonAssetDir()
1048 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string()); in openNonAssetDir()
1080 String8 path = createPathNameLocked(ap, rootDir); in scanAndMergeDirLocked() local
1082 path.appendPath(dirName); in scanAndMergeDirLocked()
1084 SortedVector<AssetDir::FileInfo>* pContents = scanDirLocked(path); in scanAndMergeDirLocked()
1146 SortedVector<AssetDir::FileInfo>* AssetManager::scanDirLocked(const String8& path) in scanDirLocked() argument
1153 ALOGV("Scanning dir '%s'\n", path.string()); in scanDirLocked()
1155 dir = opendir(path.string()); in scanDirLocked()
1179 fileType = ::getFileType(path.appendPathCopy(entry->d_name).string()); in scanDirLocked()
1189 info.setSourceName(path.appendPathCopy(info.getFileName())); in scanDirLocked()
1213 pZip = mZipSet.getZip(ap.path); in scanAndMergeZipLocked()
1215 ALOGW("Failure opening zip %s\n", ap.path.string()); in scanAndMergeZipLocked()
1219 zipName = ZipSet::getPathName(ap.path.string()); in scanAndMergeZipLocked()
1423 AssetManager::SharedZip::SharedZip(const String8& path, time_t modWhen) in SharedZip() argument
1424 : mPath(path), mZipFile(NULL), mModWhen(modWhen), in SharedZip()
1437 AssetManager::SharedZip::SharedZip(int fd, const String8& path) in SharedZip() argument
1438 : mPath(path), mZipFile(NULL), mModWhen(0), in SharedZip()
1452 sp<AssetManager::SharedZip> AssetManager::SharedZip::get(const String8& path, in get() argument
1456 time_t modWhen = getFileModDate(path); in get()
1457 sp<SharedZip> zip = gOpen.valueFor(path).promote(); in get()
1464 zip = new SharedZip(path, modWhen); in get()
1465 gOpen.add(path, zip); in get()
1469 sp<AssetManager::SharedZip> AssetManager::SharedZip::create(int fd, const String8& path) in create() argument
1471 return new SharedZip(fd, path); in create()
1585 ZipFileRO* AssetManager::ZipSet::getZip(const String8& path) in getZip() argument
1587 return getSharedZip(path)->getZip(); in getZip()
1590 const sp<AssetManager::SharedZip> AssetManager::ZipSet::getSharedZip(const String8& path) in getSharedZip() argument
1592 int idx = getIndex(path); in getSharedZip()
1595 zip = SharedZip::get(path); in getSharedZip()
1601 Asset* AssetManager::ZipSet::getZipResourceTableAsset(const String8& path) in getZipResourceTableAsset() argument
1603 int idx = getIndex(path); in getZipResourceTableAsset()
1606 zip = SharedZip::get(path); in getZipResourceTableAsset()
1612 Asset* AssetManager::ZipSet::setZipResourceTableAsset(const String8& path, in setZipResourceTableAsset() argument
1615 int idx = getIndex(path); in setZipResourceTableAsset()
1621 ResTable* AssetManager::ZipSet::getZipResourceTable(const String8& path) in getZipResourceTable() argument
1623 int idx = getIndex(path); in getZipResourceTable()
1626 zip = SharedZip::get(path); in getZipResourceTable()
1632 ResTable* AssetManager::ZipSet::setZipResourceTable(const String8& path, in setZipResourceTable() argument
1635 int idx = getIndex(path); in setZipResourceTable()
1663 void AssetManager::ZipSet::addOverlay(const String8& path, const asset_path& overlay) in addOverlay() argument
1665 int idx = getIndex(path); in addOverlay()
1670 bool AssetManager::ZipSet::getOverlay(const String8& path, size_t idx, asset_path* out) const in getOverlay() argument
1672 sp<SharedZip> zip = SharedZip::get(path, false); in getOverlay()