Home
last modified time | relevance | path

Searched refs:idmapPath (Results 1 – 9 of 9) sorted by relevance

/aosp14/frameworks/base/cmds/idmap2/self_targeting/
H A DSelfTargeting.cpp131 const std::string& idmapPath, const std::string& overlayName, in CreateIdmapFile() argument
138 unlink(idmapPath.c_str()); in CreateIdmapFile()
166 std::ofstream fout(idmapPath.c_str()); in CreateIdmapFile()
168 out_err = base::StringPrintf("Failed to create idmap %s because of %s", idmapPath.c_str(), in CreateIdmapFile()
177 unlink(idmapPath.c_str()); in CreateIdmapFile()
178 out_err = base::StringPrintf("Failed to write idmap %s because of %s", idmapPath.c_str(), in CreateIdmapFile()
182 if (chmod(idmapPath.c_str(), kIdmapFilePermission) == -1) { in CreateIdmapFile()
183 out_err = base::StringPrintf("Failed to change the file permission %s", idmapPath.c_str()); in CreateIdmapFile()
/aosp14/frameworks/base/core/java/com/android/internal/content/om/
H A DOverlayManagerImpl.java246 final Path idmapPath = mBasePath.resolve(overlayName + IDMAP_EXTENSION); in registerFabricatedOverlay() local
253 idmapPath.toString(), in registerFabricatedOverlay()
279 final Path idmapPath = mBasePath.resolve(overlayName + IDMAP_EXTENSION); in unregisterFabricatedOverlay() local
284 if (!idmapPath.toFile().delete()) { in unregisterFabricatedOverlay()
285 Log.w(TAG, "Failed to delete file " + idmapPath); in unregisterFabricatedOverlay()
391 @NonNull String idmapPath, in createIdmapFile() argument
/aosp14/frameworks/base/core/jni/
H A Dcom_android_internal_content_om_OverlayManagerImpl.cpp125 const std::string& overlayPath, const std::string& idmapPath, in callCreateIdmapFile() argument
129 return createIdmapFileFuncPtr_(out_error, targetPath, overlayPath, idmapPath, overlayName, in callCreateIdmapFile()
164 const std::string& idmapPath,
324 const ScopedUtfChars idmapPath(env, jsIdmapPath); in CreateIdmapFile() local
325 if (idmapPath.c_str() == nullptr) { in CreateIdmapFile()
335 targetPath.c_str(), overlayPath.c_str(), idmapPath.c_str(), overlayName.c_str()); in CreateIdmapFile()
339 idmapPath.c_str(), overlayName.c_str(), in CreateIdmapFile()
/aosp14/frameworks/base/core/java/android/content/res/loader/
H A DResourcesProvider.java105 final Path idmapPath = frroPath.getParent().resolve(overlayName + ".idmap"); in loadOverlay() local
106 if (!Files.isRegularFile(idmapPath)) { in loadOverlay()
112 idmapPath.toString(), 0 /* flags: self targeting overlay */)); in loadOverlay()
/aosp14/frameworks/base/core/java/android/content/pm/overlay/
H A DOverlayPaths.java55 public Builder addNonApkPath(@NonNull String idmapPath) { in addNonApkPath() argument
56 mPaths.mOverlayPaths.add(idmapPath); in addNonApkPath()
/aosp14/frameworks/base/libs/androidfw/
H A DAssetManager.cpp238 const String8 idmapPath = idmapPathForPackagePath(packagePath); in addOverlayPath() local
243 if (mAssetPaths[i].idmap == idmapPath) { in addOverlayPath()
250 if ((idmap = openAssetFromFileLocked(idmapPath, Asset::ACCESS_BUFFER)) == NULL) { in addOverlayPath()
251 ALOGW("failed to open idmap file %s\n", idmapPath.string()); in addOverlayPath()
259 ALOGW("failed to read idmap file %s\n", idmapPath.string()); in addOverlayPath()
267 idmapPath.string(), packagePath.string(), overlayPath.string()); in addOverlayPath()
274 if (access(idmapPath.string(), R_OK) != 0) { in addOverlayPath()
275 ALOGW("failed to access file %s: %s\n", idmapPath.string(), strerror(errno)); in addOverlayPath()
286 oap.idmap = idmapPath; in addOverlayPath()
289 targetPath.string(), overlayPath.string(), idmapPath.string()); in addOverlayPath()
/aosp14/frameworks/base/core/java/android/content/res/
H A DApkAssets.java216 public static @NonNull ApkAssets loadOverlayFromPath(@NonNull String idmapPath, in loadOverlayFromPath() argument
218 return new ApkAssets(FORMAT_IDMAP, idmapPath, flags, null /* assets */); in loadOverlayFromPath()
H A DAssetManager.java253 for (String idmapPath : systemIdmapPaths) { in createSystemAssetsInZygoteLocked()
254 apkAssets.add(ApkAssets.loadOverlayFromPath(idmapPath, ApkAssets.PROPERTY_SYSTEM)); in createSystemAssetsInZygoteLocked()
483 final String idmapPath = "/data/resource-cache/" in addAssetPathInternal() local
486 assets = ApkAssets.loadOverlayFromPath(idmapPath, 0 /* flags */); in addAssetPathInternal()
/aosp14/frameworks/base/core/java/android/app/
H A DResourcesManager.java514 for (final String idmapPath : key.mOverlayPaths) { in extractApkKeys()
515 apkKeys.add(new ApkKey(idmapPath, false /*sharedLib*/, true /*overlay*/)); in extractApkKeys()