• Home
  • Raw
  • Download

Lines Matching refs:ap

171     asset_path ap;  in addAssetPath()  local
177 ap.type = ::getFileType(realPath.string()); in addAssetPath()
178 if (ap.type == kFileTypeRegular) { in addAssetPath()
179 ap.path = realPath; in addAssetPath()
181 ap.path = path; in addAssetPath()
182 ap.type = ::getFileType(path.string()); in addAssetPath()
183 if (ap.type != kFileTypeDirectory && ap.type != kFileTypeRegular) { in addAssetPath()
185 path.string(), (int)ap.type); in addAssetPath()
192 if (mAssetPaths[i].path == ap.path) { in addAssetPath()
201 ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.string()); in addAssetPath()
203 mAssetPaths.add(ap); in addAssetPath()
226 if (isIdmapStaleLocked(ap.path, oap.path, oap.idmap)) { in addAssetPath()
227 addOverlay = createIdmapFileLocked(ap.path, oap.path, oap.idmap); in addAssetPath()
297 asset_path ap; in getZipEntryCrcLocked() local
298 ap.path = zipPath; in getZipEntryCrcLocked()
299 const ZipFileRO* zip = getZipFileLocked(ap); in getZipEntryCrcLocked()
328 asset_path ap; in createIdmapFileLocked() local
329 ap.type = kFileTypeRegular; in createIdmapFileLocked()
330 ap.path = *paths[i]; in createIdmapFileLocked()
331 Asset* ass = openNonAssetInPathLocked("resources.arsc", Asset::ACCESS_BUFFER, ap); in createIdmapFileLocked()
333 ALOGW("failed to find resources.arsc in %s\n", ap.path.string()); in createIdmapFileLocked()
652 const asset_path& ap = mAssetPaths.itemAt(i); in getResTable() local
653 MY_TRACE_BEGIN(ap.path.string()); in getResTable()
654 Asset* idmap = openIdmapLocked(ap); in getResTable()
655 ALOGV("Looking for resource asset in '%s'\n", ap.path.string()); in getResTable()
656 if (ap.type != kFileTypeDirectory) { in getResTable()
661 mZipSet.getZipResourceTable(ap.path); in getResTable()
665 mZipSet.getZipResourceTableAsset(ap.path); in getResTable()
667 ALOGV("loading resource table %s\n", ap.path.string()); in getResTable()
671 ap); in getResTable()
674 mZipSet.setZipResourceTableAsset(ap.path, ass); in getResTable()
682 ALOGV("Creating shared resources for %s", ap.path.string()); in getResTable()
686 mZipSet.setZipResourceTable(ap.path, sharedRes); in getResTable()
690 ALOGV("loading resource table %s\n", ap.path.string()); in getResTable()
694 ap); in getResTable()
704 ALOGV("Copying existing resources for %s", ap.path.string()); in getResTable()
707 ALOGV("Parsing resources for %s", ap.path.string()); in getResTable()
753 Asset* AssetManager::openIdmapLocked(const struct asset_path& ap) const in openIdmapLocked()
756 if (ap.idmap.size() != 0) { in openIdmapLocked()
758 openAssetFromFileLocked(ap.idmap, Asset::ACCESS_BUFFER); in openIdmapLocked()
760 ALOGV("loading idmap %s\n", ap.idmap.string()); in openIdmapLocked()
762 ALOGW("failed to load idmap %s\n", ap.idmap.string()); in openIdmapLocked()
796 const asset_path& ap) in openNonAssetInPathLocked() argument
801 if (ap.type == kFileTypeDirectory) { in openNonAssetInPathLocked()
802 String8 path(ap.path); in openNonAssetInPathLocked()
826 pZip = getZipFileLocked(ap); in openNonAssetInPathLocked()
839 createZipSourceNameLocked(ZipSet::getPathName(ap.path.string()), String8(""), in openNonAssetInPathLocked()
855 const asset_path& ap) in openInPathLocked() argument
863 pAsset = openInLocaleVendorLocked(fileName, mode, ap, mLocale, mVendor); in openInPathLocked()
865 pAsset = openInLocaleVendorLocked(fileName, mode, ap, NULL, mVendor); in openInPathLocked()
867 pAsset = openInLocaleVendorLocked(fileName, mode, ap, mLocale, NULL); in openInPathLocked()
869 pAsset = openInLocaleVendorLocked(fileName, mode, ap, NULL, NULL); in openInPathLocked()
884 const asset_path& ap, const char* locale, const char* vendor) in openInLocaleVendorLocked() argument
888 if (ap.type == kFileTypeDirectory) { in openInLocaleVendorLocked()
891 String8 path(createPathNameLocked(ap, locale, vendor)); in openInLocaleVendorLocked()
914 String8 path(createPathNameLocked(ap, locale, vendor)); in openInLocaleVendorLocked()
969 if (pAsset == NULL && ap.type == kFileTypeRegular) { in openInLocaleVendorLocked()
980 pZip = getZipFileLocked(ap); in openInLocaleVendorLocked()
993 pAsset->setAssetSource(createZipSourceNameLocked(ZipSet::getPathName(ap.path.string()), in openInLocaleVendorLocked()
1020 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* locale, in createPathNameLocked() argument
1023 String8 path(ap.path); in createPathNameLocked()
1032 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* rootDir) in createPathNameLocked() argument
1034 String8 path(ap.path); in createPathNameLocked()
1052 ZipFileRO* AssetManager::getZipFileLocked(const asset_path& ap) in getZipFileLocked() argument
1056 return mZipSet.getZip(ap.path); in getZipFileLocked()
1179 const asset_path& ap = mAssetPaths.itemAt(i); in openDir() local
1180 if (ap.type == kFileTypeRegular) { in openDir()
1181 ALOGV("Adding directory %s from zip %s", dirName, ap.path.string()); in openDir()
1182 scanAndMergeZipLocked(pMergedInfo, ap, kAssetsRoot, dirName); in openDir()
1184 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string()); in openDir()
1185 scanAndMergeDirLocked(pMergedInfo, ap, kAssetsRoot, dirName); in openDir()
1233 const asset_path& ap = mAssetPaths.itemAt(which); in openNonAssetDir() local
1234 if (ap.type == kFileTypeRegular) { in openNonAssetDir()
1235 ALOGV("Adding directory %s from zip %s", dirName, ap.path.string()); in openNonAssetDir()
1236 scanAndMergeZipLocked(pMergedInfo, ap, NULL, dirName); in openNonAssetDir()
1238 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string()); in openNonAssetDir()
1239 scanAndMergeDirLocked(pMergedInfo, ap, NULL, dirName); in openNonAssetDir()
1264 const asset_path& ap, const char* rootDir, const char* dirName) in scanAndMergeDirLocked() argument
1282 path = createPathNameLocked(ap, rootDir); in scanAndMergeDirLocked()
1327 path = createPathNameLocked(ap, rootDir); in scanAndMergeDirLocked()
1452 const asset_path& ap, const char* rootDir, const char* baseDirName) in scanAndMergeZipLocked() argument
1460 pZip = mZipSet.getZip(ap.path); in scanAndMergeZipLocked()
1462 ALOGW("Failure opening zip %s\n", ap.path.string()); in scanAndMergeZipLocked()
1466 zipName = ZipSet::getPathName(ap.path.string()); in scanAndMergeZipLocked()
1713 const asset_path& ap = mAssetPaths.itemAt(i); in fncScanLocked() local
1714 fncScanAndMergeDirLocked(pMergedInfo, ap, NULL, NULL, dirName); in fncScanLocked()
1716 fncScanAndMergeDirLocked(pMergedInfo, ap, mLocale, NULL, dirName); in fncScanLocked()
1718 fncScanAndMergeDirLocked(pMergedInfo, ap, NULL, mVendor, dirName); in fncScanLocked()
1720 fncScanAndMergeDirLocked(pMergedInfo, ap, mLocale, mVendor, dirName); in fncScanLocked()
1732 const asset_path& ap, const char* locale, const char* vendor, in fncScanAndMergeDirLocked() argument
1742 partialPath = createPathNameLocked(ap, locale, vendor); in fncScanAndMergeDirLocked()
1762 fncScanAndMergeDirLocked(pMergedInfo, ap, locale, vendor, subdir.string()); in fncScanAndMergeDirLocked()
1774 tmpInfo.setSourceName(createPathNameLocked(ap, locale, vendor)); in fncScanAndMergeDirLocked()