Lines Matching refs:path

91     String8 path(root);  in idmapPathForPackagePath()  local
92 appendPath(path, kResourceCache); in idmapPathForPackagePath()
108 appendPath(path, filename); in idmapPathForPackagePath()
109 path.append("@idmap"); in idmapPathForPackagePath()
111 return path; in idmapPathForPackagePath()
178 const String8& path, int32_t* cookie, bool appAsLib, bool isSystemAsset) { in addAssetPath() argument
183 String8 realPath(path); in addAssetPath()
189 ap.path = realPath; in addAssetPath()
191 ap.path = path; in addAssetPath()
192 ap.type = ::getFileType(path.c_str()); in addAssetPath()
195 path.c_str(), (int)ap.type); in addAssetPath()
202 if (mAssetPaths[i].path == ap.path) { in addAssetPath()
211 ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.c_str()); in addAssetPath()
224 for (size_t idx = 0; mZipSet.getOverlay(ap.path, idx, &oap); idx++) { in addAssetPath()
285 oap.path = overlayPath; in addOverlayPath()
309 ap.path = debugPathName; in addAssetFd()
314 ALOGV("In %p Asset fd %d name: %s", this, fd, ap.path.c_str()); in addAssetFd()
343 ap.path = paths[i]; in createIdmap()
347 ALOGW("failed to find resources.arsc in %s\n", ap.path.c_str()); in createIdmap()
370 String8 path(root); in addDefaultAssets() local
371 appendPath(path, kSystemAssets); in addDefaultAssets()
373 return addAssetPath(path, NULL, false /* appAsLib */, true /* isSystemAsset */); in addDefaultAssets()
388 return mAssetPaths[which].path; in getAssetPath()
453 assetName.c_str(), mAssetPaths.itemAt(i).path.c_str()); in open()
482 ALOGV("Looking for non-asset '%s' in '%s'\n", fileName, mAssetPaths.itemAt(i).path.c_str()); in openNonAsset()
504 mAssetPaths.itemAt(which).path.c_str()); in openNonAsset()
550 ATRACE_NAME(ap.path.c_str()); in appendPathToResTable()
553 ALOGV("Looking for resource asset in '%s'\n", ap.path.c_str()); in appendPathToResTable()
559 mZipSet.getZipResourceTable(ap.path); in appendPathToResTable()
567 mZipSet.getZipResourceTableAsset(ap.path); in appendPathToResTable()
569 ALOGV("loading resource table %s\n", ap.path.c_str()); in appendPathToResTable()
576 mZipSet.setZipResourceTableAsset(ap.path, ass); in appendPathToResTable()
584 ALOGV("Creating shared resources for %s", ap.path.c_str()); in appendPathToResTable()
593 addSystemOverlays(overlaysListPath.c_str(), ap.path, sharedRes, nextEntryIdx); in appendPathToResTable()
596 mZipSet.setZipResourceTable(ap.path, sharedRes); in appendPathToResTable()
600 ALOGV("loading resource table %s\n", ap.path.c_str()); in appendPathToResTable()
611 ALOGV("Copying existing resources for %s", ap.path.c_str()); in appendPathToResTable()
614 ALOGV("Parsing resources for %s", ap.path.c_str()); in appendPathToResTable()
730 oap.path = String8(buf, space - buf); in addSystemOverlays()
792 String8 path(ap.path); in openNonAssetInPathLocked() local
793 appendPath(path, fileName); in openNonAssetInPathLocked()
795 pAsset = openAssetFromFileLocked(path, mode); in openNonAssetInPathLocked()
799 path.append(".gz"); in openNonAssetInPathLocked()
800 pAsset = openAssetFromFileLocked(path, mode); in openNonAssetInPathLocked()
805 pAsset->setAssetSource(path); in openNonAssetInPathLocked()
810 String8 path(fileName); in openNonAssetInPathLocked() local
815 ALOGV("GOT zip, checking NA '%s'", path.c_str()); in openNonAssetInPathLocked()
816 ZipEntryRO entry = pZip->findEntryByName(path.c_str()); in openNonAssetInPathLocked()
818 ALOGV("FOUND NA in Zip file for %s", path.c_str()); in openNonAssetInPathLocked()
819 pAsset = openAssetFromZipLocked(pZip, entry, mode, path); in openNonAssetInPathLocked()
827 createZipSourceNameLocked(ZipSet::getPathName(ap.path.c_str()), String8(""), in openNonAssetInPathLocked()
856 String8 path(ap.path); in createPathNameLocked() local
857 if (rootDir != NULL) appendPath(path, rootDir); in createPathNameLocked()
858 return path; in createPathNameLocked()
874 ALOGV("getZipFileLocked: Creating new zip from path %s", ap.path.c_str()); in getZipFileLocked()
875 ap.zip = mZipSet.getSharedZip(ap.path); in getZipFileLocked()
878 ap.zip = SharedZip::create(ap.rawFd, ap.path); in getZipFileLocked()
997 ALOGV("Adding directory %s from zip %s", dirName, ap.path.c_str()); in openDir()
1000 ALOGV("Adding directory %s from dir %s", dirName, ap.path.c_str()); in openDir()
1046 ALOGV("Adding directory %s from zip %s", dirName, ap.path.c_str()); in openNonAssetDir()
1049 ALOGV("Adding directory %s from dir %s", dirName, ap.path.c_str()); in openNonAssetDir()
1081 String8 path = createPathNameLocked(ap, rootDir); in scanAndMergeDirLocked() local
1082 if (dirName[0] != '\0') appendPath(path, 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.c_str()); in scanDirLocked()
1155 dir = opendir(path.c_str()); in scanDirLocked()
1179 fileType = ::getFileType(appendPathCopy(path, entry->d_name).c_str()); in scanDirLocked()
1189 info.setSourceName(appendPathCopy(path, info.getFileName())); in scanDirLocked()
1213 pZip = mZipSet.getZip(ap.path); in scanAndMergeZipLocked()
1215 ALOGW("Failure opening zip %s\n", ap.path.c_str()); in scanAndMergeZipLocked()
1219 zipName = ZipSet::getPathName(ap.path.c_str()); 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.c_str()); 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()