• Home
  • Raw
  • Download

Lines Matching refs:path

79         String8 path(root);  in idmapPathForPackagePath()  local
80 path.appendPath(kIdmapCacheDir); in idmapPathForPackagePath()
96 path.appendPath(filename); in idmapPathForPackagePath()
97 path.append("@idmap"); in idmapPathForPackagePath()
99 return path; in idmapPathForPackagePath()
155 bool AssetManager::addAssetPath(const String8& path, void** cookie) in addAssetPath() argument
161 String8 realPath(path); in addAssetPath()
167 ap.path = realPath; in addAssetPath()
169 ap.path = path; in addAssetPath()
170 ap.type = ::getFileType(path.string()); in addAssetPath()
173 path.string(), (int)ap.type); in addAssetPath()
180 if (mAssetPaths[i].path == ap.path) { in addAssetPath()
189 ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.string()); in addAssetPath()
200 if (strncmp(path.string(), "/system/framework/", 18) == 0) { in addAssetPath()
205 overlayPath.append(path.getPathLeaf()); in addAssetPath()
208 oap.path = overlayPath; in addAssetPath()
214 if (isIdmapStaleLocked(ap.path, oap.path, oap.idmap)) { in addAssetPath()
215 addOverlay = createIdmapFileLocked(ap.path, oap.path, oap.idmap); in addAssetPath()
286 ap.path = zipPath; in getZipEntryCrcLocked()
318 ap.path = *paths[i]; in createIdmapFileLocked()
321 ALOGW("failed to find resources.arsc in %s\n", ap.path.string()); in createIdmapFileLocked()
378 String8 path(root); in addDefaultAssets() local
379 path.appendPath(kSystemAssets); in addDefaultAssets()
381 return addAssetPath(path, NULL); in addDefaultAssets()
396 return mAssetPaths[which].path; in getAssetPath()
520 assetName.string(), mAssetPaths.itemAt(i).path.string()); in open()
553 … ALOGV("Looking for non-asset '%s' in '%s'\n", fileName, mAssetPaths.itemAt(i).path.string()); in openNonAsset()
578 mAssetPaths.itemAt(which).path.string()); in openNonAsset()
642 ALOGV("Looking for resource asset in '%s'\n", ap.path.string()); in getResTable()
648 mZipSet.getZipResourceTable(ap.path); in getResTable()
652 mZipSet.getZipResourceTableAsset(ap.path); in getResTable()
654 ALOGV("loading resource table %s\n", ap.path.string()); in getResTable()
661 mZipSet.setZipResourceTableAsset(ap.path, ass); in getResTable()
669 ALOGV("Creating shared resources for %s", ap.path.string()); in getResTable()
673 mZipSet.setZipResourceTable(ap.path, sharedRes); in getResTable()
677 ALOGV("loading resource table %s\n", ap.path.string()); in getResTable()
691 ALOGV("Copying existing resources for %s", ap.path.string()); in getResTable()
694 ALOGV("Parsing resources for %s", ap.path.string()); in getResTable()
788 String8 path(ap.path); in openNonAssetInPathLocked() local
789 path.appendPath(fileName); in openNonAssetInPathLocked()
791 pAsset = openAssetFromFileLocked(path, mode); in openNonAssetInPathLocked()
795 path.append(".gz"); in openNonAssetInPathLocked()
796 pAsset = openAssetFromFileLocked(path, mode); in openNonAssetInPathLocked()
801 pAsset->setAssetSource(path); in openNonAssetInPathLocked()
806 String8 path(fileName); in openNonAssetInPathLocked() local
815 entry = pZip->findEntryByName(path.string()); in openNonAssetInPathLocked()
818 pAsset = openAssetFromZipLocked(pZip, entry, mode, path); in openNonAssetInPathLocked()
825 createZipSourceNameLocked(ZipSet::getPathName(ap.path.string()), String8(""), in openNonAssetInPathLocked()
877 String8 path(createPathNameLocked(ap, locale, vendor)); in openInLocaleVendorLocked() local
878 path.appendPath(fileName); in openInLocaleVendorLocked()
880 String8 excludeName(path); in openInLocaleVendorLocked()
888 pAsset = openAssetFromFileLocked(path, mode); in openInLocaleVendorLocked()
892 path.append(".gz"); in openInLocaleVendorLocked()
893 pAsset = openAssetFromFileLocked(path, mode); in openInLocaleVendorLocked()
897 pAsset->setAssetSource(path); in openInLocaleVendorLocked()
900 String8 path(createPathNameLocked(ap, locale, vendor)); in openInLocaleVendorLocked() local
901 path.appendPath(fileName); in openInLocaleVendorLocked()
906 String8 excludeName(path); in openInLocaleVendorLocked()
919 if (mCache.indexOf(path) != NAME_NOT_FOUND) { in openInLocaleVendorLocked()
921 pAsset = openAssetFromFileLocked(path, mode); in openInLocaleVendorLocked()
924 path.append(".gz"); in openInLocaleVendorLocked()
925 pAsset = openAssetFromFileLocked(path, mode); in openInLocaleVendorLocked()
930 pAsset->setAssetSource(path); in openInLocaleVendorLocked()
944 ALOGD("Expected file not found: '%s'\n", path.string()); in openInLocaleVendorLocked()
956 String8 path; in openInLocaleVendorLocked() local
958 path.appendPath((locale != NULL) ? locale : kDefaultLocale); in openInLocaleVendorLocked()
959 path.appendPath((vendor != NULL) ? vendor : kDefaultVendor); in openInLocaleVendorLocked()
960 path.appendPath(fileName); in openInLocaleVendorLocked()
969 entry = pZip->findEntryByName(path.string()); in openInLocaleVendorLocked()
973 pAsset = openAssetFromZipLocked(pZip, entry, mode, path); in openInLocaleVendorLocked()
979 pAsset->setAssetSource(createZipSourceNameLocked(ZipSet::getPathName(ap.path.string()), in openInLocaleVendorLocked()
1009 String8 path(ap.path); in createPathNameLocked() local
1010 path.appendPath((locale != NULL) ? locale : kDefaultLocale); in createPathNameLocked()
1011 path.appendPath((vendor != NULL) ? vendor : kDefaultVendor); in createPathNameLocked()
1012 return path; in createPathNameLocked()
1020 String8 path(ap.path); in createPathNameLocked() local
1021 if (rootDir != NULL) path.appendPath(rootDir); in createPathNameLocked()
1022 return path; in createPathNameLocked()
1042 return mZipSet.getZip(ap.path); in getZipFileLocked()
1167 ALOGV("Adding directory %s from zip %s", dirName, ap.path.string()); in openDir()
1170 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string()); in openDir()
1221 ALOGV("Adding directory %s from zip %s", dirName, ap.path.string()); in openNonAssetDir()
1224 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string()); in openNonAssetDir()
1253 String8 path; in scanAndMergeDirLocked() local
1268 path = createPathNameLocked(ap, rootDir); in scanAndMergeDirLocked()
1270 path.appendPath(dirName); in scanAndMergeDirLocked()
1272 start = mCache.indexOf(path); in scanAndMergeDirLocked()
1284 path.append("/"); in scanAndMergeDirLocked()
1294 if (mCache[i].getFileName().length() > path.length() && in scanAndMergeDirLocked()
1295 strncmp(mCache[i].getFileName().string(), path.string(), path.length()) == 0) in scanAndMergeDirLocked()
1300 if (strchr(name + path.length(), '/') == NULL) { in scanAndMergeDirLocked()
1313 path = createPathNameLocked(ap, rootDir); in scanAndMergeDirLocked()
1315 path.appendPath(dirName); in scanAndMergeDirLocked()
1316 pContents = scanDirLocked(path); in scanAndMergeDirLocked()
1379 SortedVector<AssetDir::FileInfo>* AssetManager::scanDirLocked(const String8& path) in scanDirLocked() argument
1386 ALOGV("Scanning dir '%s'\n", path.string()); in scanDirLocked()
1388 dir = opendir(path.string()); in scanDirLocked()
1412 fileType = ::getFileType(path.appendPathCopy(entry->d_name).string()); in scanDirLocked()
1422 info.setSourceName(path.appendPathCopy(info.getFileName())); in scanDirLocked()
1446 pZip = mZipSet.getZip(ap.path); in scanAndMergeZipLocked()
1448 ALOGW("Failure opening zip %s\n", ap.path.string()); in scanAndMergeZipLocked()
1452 zipName = ZipSet::getPathName(ap.path.string()); in scanAndMergeZipLocked()
1797 AssetManager::SharedZip::SharedZip(const String8& path, time_t modWhen) in SharedZip() argument
1798 : mPath(path), mZipFile(NULL), mModWhen(modWhen), in SharedZip()
1811 sp<AssetManager::SharedZip> AssetManager::SharedZip::get(const String8& path) in get() argument
1814 time_t modWhen = getFileModDate(path); in get()
1815 sp<SharedZip> zip = gOpen.valueFor(path).promote(); in get()
1819 zip = new SharedZip(path, modWhen); in get()
1820 gOpen.add(path, zip); in get()
1927 ZipFileRO* AssetManager::ZipSet::getZip(const String8& path) in getZip() argument
1929 int idx = getIndex(path); in getZip()
1932 zip = SharedZip::get(path); in getZip()
1938 Asset* AssetManager::ZipSet::getZipResourceTableAsset(const String8& path) in getZipResourceTableAsset() argument
1940 int idx = getIndex(path); in getZipResourceTableAsset()
1943 zip = SharedZip::get(path); in getZipResourceTableAsset()
1949 Asset* AssetManager::ZipSet::setZipResourceTableAsset(const String8& path, in setZipResourceTableAsset() argument
1952 int idx = getIndex(path); in setZipResourceTableAsset()
1958 ResTable* AssetManager::ZipSet::getZipResourceTable(const String8& path) in getZipResourceTable() argument
1960 int idx = getIndex(path); in getZipResourceTable()
1963 zip = SharedZip::get(path); in getZipResourceTable()
1969 ResTable* AssetManager::ZipSet::setZipResourceTable(const String8& path, in setZipResourceTable() argument
1972 int idx = getIndex(path); in setZipResourceTable()