Home
last modified time | relevance | path

Searched refs:targetPath (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/core/java/android/os/incremental/
DIncrementalStorage.java66 public void bind(@NonNull String targetPath) throws IOException { in bind() argument
67 bind("", targetPath); in bind()
78 public void bind(@NonNull String sourcePath, @NonNull String targetPath) in bind() argument
81 int res = mService.makeBindMount(mId, sourcePath, targetPath, in bind()
98 public void bindPermanent(@NonNull String targetPath) throws IOException { in bindPermanent() argument
99 bindPermanent("", targetPath); in bindPermanent()
109 public void bindPermanent(@NonNull String sourcePath, @NonNull String targetPath) in bindPermanent() argument
112 int res = mService.makeBindMount(mId, sourcePath, targetPath, in bindPermanent()
127 public void unBind(@NonNull String targetPath) throws IOException { in unBind() argument
129 int res = mService.deleteBindMount(mId, targetPath); in unBind()
DIIncrementalService.aidl92 …int makeFileFromRange(int storageId, in @utf8InCpp String targetPath, in @utf8InCpp String sourceP… in makeFileFromRange() argument
/frameworks/base/services/core/java/com/android/server/om/
DIdmapDaemon.java130 String createIdmap(@NonNull String targetPath, @NonNull String overlayPath, in createIdmap() argument
136 Slog.w(TAG, "idmap2d service is not ready for createIdmap(\"" + targetPath in createIdmap()
142 return idmap2.createIdmap(targetPath, overlayPath, TextUtils.emptyIfNull(overlayName), in createIdmap()
160 boolean verifyIdmap(@NonNull String targetPath, @NonNull String overlayPath, in verifyIdmap() argument
166 Slog.w(TAG, "idmap2d service is not ready for verifyIdmap(\"" + targetPath in verifyIdmap()
172 return idmap2.verifyIdmap(targetPath, overlayPath, TextUtils.emptyIfNull(overlayName), in verifyIdmap()
DIdmapManager.java110 final String targetPath = targetPackage.getSplits().get(0).getPath(); in createIdmap() local
115 if (mIdmapDaemon.verifyIdmap(targetPath, overlayBasePath, overlayName, policies, in createIdmap()
119 final boolean idmapCreated = mIdmapDaemon.createIdmap(targetPath, overlayBasePath, in createIdmap()
123 Slog.w(TAG, "failed to generate idmap for " + targetPath + " and " in createIdmap()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTestsBase.java482 String createIdmap(String targetPath, String overlayPath, String overlayName, in createIdmap() argument
484 mIdmapFiles.put(overlayPath, new IdmapHeader(getCrc(targetPath), in createIdmap()
485 getCrc(overlayPath), targetPath, overlayName, policies, enforce)); in createIdmap()
495 boolean verifyIdmap(String targetPath, String overlayPath, String overlayName, int policies, in verifyIdmap() argument
501 return idmap.isUpToDate(getCrc(targetPath), getCrc(overlayPath), targetPath, policies, in verifyIdmap()
540 final String targetPath; field in OverlayManagerServiceImplTestsBase.FakeIdmapDaemon.IdmapHeader
545 private IdmapHeader(int targetCrc, int overlayCrc, String targetPath, in IdmapHeader() argument
549 this.targetPath = targetPath; in IdmapHeader()
559 && expectedTargetPath.equals(targetPath) && expectedPolicies == policies in isUpToDate()
/frameworks/base/core/jni/
Dcom_android_internal_content_om_OverlayConfig.cpp32 static jobjectArray createIdmap(JNIEnv* env, jclass /*clazz*/, jstring targetPath, in createIdmap() argument
40 const char* targetApkPath = env->GetStringUTFChars(targetPath, NULL /* isCopy */); in createIdmap()
45 env->ReleaseStringUTFChars(targetPath, targetApkPath); in createIdmap()
Dcom_android_internal_content_om_OverlayManagerImpl.cpp127 bool callCreateIdmapFile(std::string& out_error, const std::string& targetPath, in callCreateIdmapFile() argument
132 return createIdmapFileFuncPtr_(out_error, targetPath, overlayPath, idmapPath, overlayName, in callCreateIdmapFile()
165 typedef bool (*CreateIdmapFileFunc)(std::string& out_error, const std::string& targetPath,
327 const ScopedUtfChars targetPath(env, jsTargetPath); in CreateIdmapFile() local
328 if (targetPath.c_str() == nullptr) { in CreateIdmapFile()
348 targetPath.c_str(), overlayPath.c_str(), idmapPath.c_str(), overlayName.c_str()); in CreateIdmapFile()
351 if (!dlLoader.callCreateIdmapFile(err_result, targetPath.c_str(), overlayPath.c_str(), in CreateIdmapFile()
/frameworks/base/cmds/idmap2/self_targeting/
DSelfTargeting.cpp131 CreateIdmapFile(std::string& out_err, const std::string& targetPath, const std::string& overlayPath, in CreateIdmapFile() argument
141 const auto target = idmap2::TargetResourceContainer::FromPath(targetPath); in CreateIdmapFile()
143 out_err = base::StringPrintf("Failed to load target %s because of %s", targetPath.c_str(), in CreateIdmapFile()
/frameworks/base/tests/DynamicCodeLoggerIntegrationTests/src/com/android/server/pm/dex/
DDynamicCodeLoggerIntegrationTests.java316 File targetPath = new File(ourPath.toString() in testGeneratesEvents_spoofed_otherAppFile() local
319 assertWithMessage("Expected " + targetPath + " to not be readable") in testGeneratesEvents_spoofed_otherAppFile()
320 .that(targetPath.canRead()).isFalse(); in testGeneratesEvents_spoofed_otherAppFile()
324 + "path=\"" + targetPath + "\" " in testGeneratesEvents_spoofed_otherAppFile()
/frameworks/base/core/java/com/android/internal/content/om/
DOverlayConfig.java536 final String targetPath = "/system/framework/framework-res.apk"; in createImmutableFrameworkIdmapsInZygote() local
543 final String[] idmaps = createIdmap(targetPath, in createImmutableFrameworkIdmapsInZygote()
586 private static native String[] createIdmap(@NonNull String targetPath, in createIdmap() argument
DOverlayManagerImpl.java389 @NonNull String targetPath, in createIdmapFile()
/frameworks/base/core/java/com/android/internal/content/
DNativeLibraryHelper.java523 final Path targetPath = target.toPath(); in getRelativePath() local
524 final Path relativePath = basePath.relativize(targetPath); in getRelativePath()
/frameworks/base/services/incremental/
DBinderIncrementalService.h70 binder::Status makeFileFromRange(int32_t storageId, const std::string& targetPath,
DBinderIncrementalService.cpp239 const std::string& targetPath, in makeFileFromRange() argument
/frameworks/base/libs/androidfw/
DAssetManager.cpp256 String8 targetPath; in addOverlayPath() local
259 NULL, NULL, NULL, &targetPath, &overlayPath)) { in addOverlayPath()
271 if (access(targetPath.c_str(), R_OK) != 0) { in addOverlayPath()
272 ALOGW("failed to access file %s: %s\n", targetPath.c_str(), strerror(errno)); in addOverlayPath()
290 targetPath.c_str(), overlayPath.c_str(), idmapPath.c_str()); in addOverlayPath()
DResourceTypes.cpp7398 const char* targetPath, const char* overlayPath, in createIdmap() argument
7401 if (targetPath == NULL || overlayPath == NULL || outData == NULL || outSize == NULL) { in createIdmap()
7405 if (strlen(targetPath) > 255) { in createIdmap()
7500 size_t pathLen = strlen(targetPath); in createIdmap()
7502 *charData++ = i < pathLen ? targetPath[i] : '\0'; // write: target path in createIdmap()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceUtils.java1571 @NonNull File sourcePath, @NonNull File targetPath, in linkNativeLibraries() argument
1577 final File targetLibDir = new File(targetPath, libDirName); in linkNativeLibraries()
1614 @NonNull File sourcePath, @NonNull File targetPath, @NonNull File[] files, int mode) { in linkFilesAndSetModes() argument
1618 final File targetFile = new File(targetPath, fileName); in linkFilesAndSetModes()
1628 sourcePath.getAbsolutePath(), targetPath.getAbsolutePath()); in linkFilesAndSetModes()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h2266 const char* targetPath, const char* overlayPath,