• Home
  • Raw
  • Download

Lines Matching refs:ap

141     asset_path ap;  in addAssetPath()  local
147 ap.type = ::getFileType(realPath.string()); in addAssetPath()
148 if (ap.type == kFileTypeRegular) { in addAssetPath()
149 ap.path = realPath; in addAssetPath()
151 ap.path = path; in addAssetPath()
152 ap.type = ::getFileType(path.string()); in addAssetPath()
153 if (ap.type != kFileTypeDirectory && ap.type != kFileTypeRegular) { in addAssetPath()
155 path.string(), (int)ap.type); in addAssetPath()
162 if (mAssetPaths[i].path == ap.path) { in addAssetPath()
171 ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.string()); in addAssetPath()
173 mAssetPaths.add(ap); in addAssetPath()
196 if (isIdmapStaleLocked(ap.path, oap.path, oap.idmap)) { in addAssetPath()
197 addOverlay = createIdmapFileLocked(ap.path, oap.path, oap.idmap); in addAssetPath()
267 asset_path ap; in getZipEntryCrcLocked() local
268 ap.path = zipPath; in getZipEntryCrcLocked()
269 const ZipFileRO* zip = getZipFileLocked(ap); in getZipEntryCrcLocked()
298 asset_path ap; in createIdmapFileLocked() local
299 ap.type = kFileTypeRegular; in createIdmapFileLocked()
300 ap.path = *paths[i]; in createIdmapFileLocked()
301 Asset* ass = openNonAssetInPathLocked("resources.arsc", Asset::ACCESS_BUFFER, ap); in createIdmapFileLocked()
303 LOGW("failed to find resources.arsc in %s\n", ap.path.string()); in createIdmapFileLocked()
622 const asset_path& ap = mAssetPaths.itemAt(i); in getResTable() local
623 Asset* idmap = openIdmapLocked(ap); in getResTable()
624 LOGV("Looking for resource asset in '%s'\n", ap.path.string()); in getResTable()
625 if (ap.type != kFileTypeDirectory) { in getResTable()
630 mZipSet.getZipResourceTable(ap.path); in getResTable()
634 mZipSet.getZipResourceTableAsset(ap.path); in getResTable()
636 LOGV("loading resource table %s\n", ap.path.string()); in getResTable()
640 ap); in getResTable()
643 mZipSet.setZipResourceTableAsset(ap.path, ass); in getResTable()
651 LOGV("Creating shared resources for %s", ap.path.string()); in getResTable()
655 mZipSet.setZipResourceTable(ap.path, sharedRes); in getResTable()
659 LOGV("loading resource table %s\n", ap.path.string()); in getResTable()
663 ap); in getResTable()
673 LOGV("Copying existing resources for %s", ap.path.string()); in getResTable()
676 LOGV("Parsing resources for %s", ap.path.string()); in getResTable()
721 Asset* AssetManager::openIdmapLocked(const struct asset_path& ap) const in openIdmapLocked()
724 if (ap.idmap.size() != 0) { in openIdmapLocked()
726 openAssetFromFileLocked(ap.idmap, Asset::ACCESS_BUFFER); in openIdmapLocked()
728 LOGV("loading idmap %s\n", ap.idmap.string()); in openIdmapLocked()
730 LOGW("failed to load idmap %s\n", ap.idmap.string()); in openIdmapLocked()
764 const asset_path& ap) in openNonAssetInPathLocked() argument
769 if (ap.type == kFileTypeDirectory) { in openNonAssetInPathLocked()
770 String8 path(ap.path); in openNonAssetInPathLocked()
794 pZip = getZipFileLocked(ap); in openNonAssetInPathLocked()
807 createZipSourceNameLocked(ZipSet::getPathName(ap.path.string()), String8(""), in openNonAssetInPathLocked()
823 const asset_path& ap) in openInPathLocked() argument
831 pAsset = openInLocaleVendorLocked(fileName, mode, ap, mLocale, mVendor); in openInPathLocked()
833 pAsset = openInLocaleVendorLocked(fileName, mode, ap, NULL, mVendor); in openInPathLocked()
835 pAsset = openInLocaleVendorLocked(fileName, mode, ap, mLocale, NULL); in openInPathLocked()
837 pAsset = openInLocaleVendorLocked(fileName, mode, ap, NULL, NULL); in openInPathLocked()
852 const asset_path& ap, const char* locale, const char* vendor) in openInLocaleVendorLocked() argument
856 if (ap.type == kFileTypeDirectory) { in openInLocaleVendorLocked()
859 String8 path(createPathNameLocked(ap, locale, vendor)); in openInLocaleVendorLocked()
882 String8 path(createPathNameLocked(ap, locale, vendor)); in openInLocaleVendorLocked()
937 if (pAsset == NULL && ap.type == kFileTypeRegular) { in openInLocaleVendorLocked()
948 pZip = getZipFileLocked(ap); in openInLocaleVendorLocked()
961 pAsset->setAssetSource(createZipSourceNameLocked(ZipSet::getPathName(ap.path.string()), in openInLocaleVendorLocked()
988 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* locale, in createPathNameLocked() argument
991 String8 path(ap.path); in createPathNameLocked()
1000 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* rootDir) in createPathNameLocked() argument
1002 String8 path(ap.path); in createPathNameLocked()
1020 ZipFileRO* AssetManager::getZipFileLocked(const asset_path& ap) in getZipFileLocked() argument
1024 return mZipSet.getZip(ap.path); in getZipFileLocked()
1147 const asset_path& ap = mAssetPaths.itemAt(i); in openDir() local
1148 if (ap.type == kFileTypeRegular) { in openDir()
1149 LOGV("Adding directory %s from zip %s", dirName, ap.path.string()); in openDir()
1150 scanAndMergeZipLocked(pMergedInfo, ap, kAssetsRoot, dirName); in openDir()
1152 LOGV("Adding directory %s from dir %s", dirName, ap.path.string()); in openDir()
1153 scanAndMergeDirLocked(pMergedInfo, ap, kAssetsRoot, dirName); in openDir()
1201 const asset_path& ap = mAssetPaths.itemAt(which); in openNonAssetDir() local
1202 if (ap.type == kFileTypeRegular) { in openNonAssetDir()
1203 LOGV("Adding directory %s from zip %s", dirName, ap.path.string()); in openNonAssetDir()
1204 scanAndMergeZipLocked(pMergedInfo, ap, NULL, dirName); in openNonAssetDir()
1206 LOGV("Adding directory %s from dir %s", dirName, ap.path.string()); in openNonAssetDir()
1207 scanAndMergeDirLocked(pMergedInfo, ap, NULL, dirName); in openNonAssetDir()
1232 const asset_path& ap, const char* rootDir, const char* dirName) in scanAndMergeDirLocked() argument
1250 path = createPathNameLocked(ap, rootDir); in scanAndMergeDirLocked()
1295 path = createPathNameLocked(ap, rootDir); in scanAndMergeDirLocked()
1420 const asset_path& ap, const char* rootDir, const char* baseDirName) in scanAndMergeZipLocked() argument
1428 pZip = mZipSet.getZip(ap.path); in scanAndMergeZipLocked()
1430 LOGW("Failure opening zip %s\n", ap.path.string()); in scanAndMergeZipLocked()
1434 zipName = ZipSet::getPathName(ap.path.string()); in scanAndMergeZipLocked()
1681 const asset_path& ap = mAssetPaths.itemAt(i); in fncScanLocked() local
1682 fncScanAndMergeDirLocked(pMergedInfo, ap, NULL, NULL, dirName); in fncScanLocked()
1684 fncScanAndMergeDirLocked(pMergedInfo, ap, mLocale, NULL, dirName); in fncScanLocked()
1686 fncScanAndMergeDirLocked(pMergedInfo, ap, NULL, mVendor, dirName); in fncScanLocked()
1688 fncScanAndMergeDirLocked(pMergedInfo, ap, mLocale, mVendor, dirName); in fncScanLocked()
1700 const asset_path& ap, const char* locale, const char* vendor, in fncScanAndMergeDirLocked() argument
1710 partialPath = createPathNameLocked(ap, locale, vendor); in fncScanAndMergeDirLocked()
1730 fncScanAndMergeDirLocked(pMergedInfo, ap, locale, vendor, subdir.string()); in fncScanAndMergeDirLocked()
1742 tmpInfo.setSourceName(createPathNameLocked(ap, locale, vendor)); in fncScanAndMergeDirLocked()