Home
last modified time | relevance | path

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

/frameworks/base/cmds/idmap2/self_targeting/
DSelfTargeting.cpp132 const std::string& idmapPath, const std::string& overlayName, in CreateIdmapFile() argument
139 unlink(idmapPath.c_str()); in CreateIdmapFile()
167 std::ofstream fout(idmapPath.c_str()); in CreateIdmapFile()
169 out_err = base::StringPrintf("Failed to create idmap %s because of %s", idmapPath.c_str(), in CreateIdmapFile()
178 unlink(idmapPath.c_str()); in CreateIdmapFile()
179 out_err = base::StringPrintf("Failed to write idmap %s because of %s", idmapPath.c_str(), in CreateIdmapFile()
183 if (chmod(idmapPath.c_str(), kIdmapFilePermission) == -1) { in CreateIdmapFile()
184 out_err = base::StringPrintf("Failed to change the file permission %s", idmapPath.c_str()); in CreateIdmapFile()
/frameworks/base/core/java/com/android/internal/content/om/
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
/frameworks/base/core/jni/
Dcom_android_internal_content_om_OverlayManagerImpl.cpp128 const std::string& overlayPath, const std::string& idmapPath, in callCreateIdmapFile() argument
132 return createIdmapFileFuncPtr_(out_error, targetPath, overlayPath, idmapPath, overlayName, in callCreateIdmapFile()
167 const std::string& idmapPath,
337 const ScopedUtfChars idmapPath(env, jsIdmapPath); in CreateIdmapFile() local
338 if (idmapPath.c_str() == nullptr) { in CreateIdmapFile()
348 targetPath.c_str(), overlayPath.c_str(), idmapPath.c_str(), overlayName.c_str()); in CreateIdmapFile()
352 idmapPath.c_str(), overlayName.c_str(), in CreateIdmapFile()
/frameworks/base/core/java/android/content/res/loader/
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()
/frameworks/base/core/java/android/content/pm/overlay/
DOverlayPaths.java62 public Builder addNonApkPath(@NonNull String idmapPath) { in addNonApkPath() argument
63 mPaths.mOverlayPaths.add(idmapPath); in addNonApkPath()
/frameworks/base/libs/androidfw/
DAssetManager.cpp239 const String8 idmapPath = idmapPathForPackagePath(packagePath); in addOverlayPath() local
244 if (mAssetPaths[i].idmap == idmapPath) { in addOverlayPath()
251 if ((idmap = openAssetFromFileLocked(idmapPath, Asset::ACCESS_BUFFER)) == NULL) { in addOverlayPath()
252 ALOGW("failed to open idmap file %s\n", idmapPath.c_str()); in addOverlayPath()
260 ALOGW("failed to read idmap file %s\n", idmapPath.c_str()); in addOverlayPath()
268 idmapPath.c_str(), packagePath.c_str(), overlayPath.c_str()); in addOverlayPath()
275 if (access(idmapPath.c_str(), R_OK) != 0) { in addOverlayPath()
276 ALOGW("failed to access file %s: %s\n", idmapPath.c_str(), strerror(errno)); in addOverlayPath()
287 oap.idmap = idmapPath; in addOverlayPath()
290 targetPath.c_str(), overlayPath.c_str(), idmapPath.c_str()); in addOverlayPath()
/frameworks/base/core/java/android/content/res/
DApkAssets.java221 public static @NonNull ApkAssets loadOverlayFromPath(@NonNull String idmapPath, in loadOverlayFromPath() argument
223 return new ApkAssets(FORMAT_IDMAP, idmapPath, flags, null /* assets */); in loadOverlayFromPath()
DAssetManager.java265 for (String idmapPath : systemIdmapPaths) { in createSystemAssetsInZygoteLocked()
266 apkAssets.add(ApkAssets.loadOverlayFromPath(idmapPath, ApkAssets.PROPERTY_SYSTEM)); in createSystemAssetsInZygoteLocked()
/frameworks/base/core/java/android/app/
DResourcesManager.java608 for (final String idmapPath : key.mOverlayPaths) { in extractApkKeys()
609 apkKeys.add(new ApkKey(idmapPath, false /*sharedLib*/, true /*overlay*/)); in extractApkKeys()