Lines Matching refs:ap

159     asset_path ap;
165 ap.type = ::getFileType(realPath.string());
166 if (ap.type == kFileTypeRegular) {
167 ap.path = realPath;
169 ap.path = path;
170 ap.type = ::getFileType(path.string());
171 if (ap.type != kFileTypeDirectory && ap.type != kFileTypeRegular) {
173 path.string(), (int)ap.type);
180 if (mAssetPaths[i].path == ap.path) {
189 ap.type == kFileTypeDirectory ? "dir" : "zip", ap.path.string());
191 mAssetPaths.add(ap);
214 if (isIdmapStaleLocked(ap.path, oap.path, oap.idmap)) {
215 addOverlay = createIdmapFileLocked(ap.path, oap.path, oap.idmap);
285 asset_path ap;
286 ap.path = zipPath;
287 const ZipFileRO* zip = getZipFileLocked(ap);
316 asset_path ap;
317 ap.type = kFileTypeRegular;
318 ap.path = *paths[i];
319 Asset* ass = openNonAssetInPathLocked("resources.arsc", Asset::ACCESS_BUFFER, ap);
321 ALOGW("failed to find resources.arsc in %s\n", ap.path.string());
640 const asset_path& ap = mAssetPaths.itemAt(i);
641 Asset* idmap = openIdmapLocked(ap);
642 ALOGV("Looking for resource asset in '%s'\n", ap.path.string());
643 if (ap.type != kFileTypeDirectory) {
648 mZipSet.getZipResourceTable(ap.path);
652 mZipSet.getZipResourceTableAsset(ap.path);
654 ALOGV("loading resource table %s\n", ap.path.string());
658 ap);
661 mZipSet.setZipResourceTableAsset(ap.path, ass);
669 ALOGV("Creating shared resources for %s", ap.path.string());
673 mZipSet.setZipResourceTable(ap.path, sharedRes);
677 ALOGV("loading resource table %s\n", ap.path.string());
681 ap);
691 ALOGV("Copying existing resources for %s", ap.path.string());
694 ALOGV("Parsing resources for %s", ap.path.string());
739 Asset* AssetManager::openIdmapLocked(const struct asset_path& ap) const
742 if (ap.idmap.size() != 0) {
744 openAssetFromFileLocked(ap.idmap, Asset::ACCESS_BUFFER);
746 ALOGV("loading idmap %s\n", ap.idmap.string());
748 ALOGW("failed to load idmap %s\n", ap.idmap.string());
782 const asset_path& ap)
787 if (ap.type == kFileTypeDirectory) {
788 String8 path(ap.path);
812 pZip = getZipFileLocked(ap);
825 createZipSourceNameLocked(ZipSet::getPathName(ap.path.string()), String8(""),
841 const asset_path& ap)
849 pAsset = openInLocaleVendorLocked(fileName, mode, ap, mLocale, mVendor);
851 pAsset = openInLocaleVendorLocked(fileName, mode, ap, NULL, mVendor);
853 pAsset = openInLocaleVendorLocked(fileName, mode, ap, mLocale, NULL);
855 pAsset = openInLocaleVendorLocked(fileName, mode, ap, NULL, NULL);
870 const asset_path& ap, const char* locale, const char* vendor)
874 if (ap.type == kFileTypeDirectory) {
877 String8 path(createPathNameLocked(ap, locale, vendor));
900 String8 path(createPathNameLocked(ap, locale, vendor));
955 if (pAsset == NULL && ap.type == kFileTypeRegular) {
966 pZip = getZipFileLocked(ap);
979 pAsset->setAssetSource(createZipSourceNameLocked(ZipSet::getPathName(ap.path.string()),
1006 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* locale,
1009 String8 path(ap.path);
1018 String8 AssetManager::createPathNameLocked(const asset_path& ap, const char* rootDir)
1020 String8 path(ap.path);
1038 ZipFileRO* AssetManager::getZipFileLocked(const asset_path& ap)
1042 return mZipSet.getZip(ap.path);
1165 const asset_path& ap = mAssetPaths.itemAt(i);
1166 if (ap.type == kFileTypeRegular) {
1167 ALOGV("Adding directory %s from zip %s", dirName, ap.path.string());
1168 scanAndMergeZipLocked(pMergedInfo, ap, kAssetsRoot, dirName);
1170 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string());
1171 scanAndMergeDirLocked(pMergedInfo, ap, kAssetsRoot, dirName);
1219 const asset_path& ap = mAssetPaths.itemAt(which);
1220 if (ap.type == kFileTypeRegular) {
1221 ALOGV("Adding directory %s from zip %s", dirName, ap.path.string());
1222 scanAndMergeZipLocked(pMergedInfo, ap, NULL, dirName);
1224 ALOGV("Adding directory %s from dir %s", dirName, ap.path.string());
1225 scanAndMergeDirLocked(pMergedInfo, ap, NULL, dirName);
1250 const asset_path& ap, const char* rootDir, const char* dirName)
1268 path = createPathNameLocked(ap, rootDir);
1313 path = createPathNameLocked(ap, rootDir);
1438 const asset_path& ap, const char* rootDir, const char* baseDirName)
1446 pZip = mZipSet.getZip(ap.path);
1448 ALOGW("Failure opening zip %s\n", ap.path.string());
1452 zipName = ZipSet::getPathName(ap.path.string());
1699 const asset_path& ap = mAssetPaths.itemAt(i);
1700 fncScanAndMergeDirLocked(pMergedInfo, ap, NULL, NULL, dirName);
1702 fncScanAndMergeDirLocked(pMergedInfo, ap, mLocale, NULL, dirName);
1704 fncScanAndMergeDirLocked(pMergedInfo, ap, NULL, mVendor, dirName);
1706 fncScanAndMergeDirLocked(pMergedInfo, ap, mLocale, mVendor, dirName);
1718 const asset_path& ap, const char* locale, const char* vendor,
1728 partialPath = createPathNameLocked(ap, locale, vendor);
1748 fncScanAndMergeDirLocked(pMergedInfo, ap, locale, vendor, subdir.string());
1760 tmpInfo.setSourceName(createPathNameLocked(ap, locale, vendor));