Home
last modified time | relevance | path

Searched refs:overlayPath (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/om/
DIdmapDaemon.java107 String createIdmap(String targetPath, String overlayPath, int policies, boolean enforce, in createIdmap() argument
110 return mService.createIdmap(targetPath, overlayPath, policies, enforce, userId); in createIdmap()
114 boolean removeIdmap(String overlayPath, int userId) throws TimeoutException, RemoteException { in removeIdmap() argument
116 return mService.removeIdmap(overlayPath, userId); in removeIdmap()
120 boolean verifyIdmap(String targetPath, String overlayPath, int policies, boolean enforce, in verifyIdmap() argument
124 return mService.verifyIdmap(targetPath, overlayPath, policies, enforce, userId); in verifyIdmap()
128 boolean idmapExists(String overlayPath, int userId) { in idmapExists() argument
130 return new File(mService.getIdmapPath(overlayPath, userId)).isFile(); in idmapExists()
132 Slog.wtf(TAG, "failed to check if idmap exists for " + overlayPath + ": " in idmapExists()
DIdmapManager.java74 final String overlayPath = overlayPackage.applicationInfo.getBaseCodePath(); in createIdmap() local
78 if (mIdmapDaemon.verifyIdmap(targetPath, overlayPath, policies, enforce, userId)) { in createIdmap()
81 return mIdmapDaemon.createIdmap(targetPath, overlayPath, policies, in createIdmap()
85 + overlayPath + ": " + e.getMessage()); in createIdmap()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTestsBase.java396 String createIdmap(String targetPath, String overlayPath, int policies, boolean enforce, in createIdmap() argument
398 mIdmapFiles.put(overlayPath, new IdmapHeader(getCrc(targetPath), in createIdmap()
399 getCrc(overlayPath), targetPath, policies, enforce)); in createIdmap()
400 return overlayPath; in createIdmap()
404 boolean removeIdmap(String overlayPath, int userId) { in removeIdmap() argument
405 return mIdmapFiles.remove(overlayPath) != null; in removeIdmap()
409 boolean verifyIdmap(String targetPath, String overlayPath, int policies, boolean enforce, in verifyIdmap() argument
411 final IdmapHeader idmap = mIdmapFiles.get(overlayPath); in verifyIdmap()
415 return idmap.isUpToDate(getCrc(targetPath), getCrc(overlayPath), targetPath, policies, in verifyIdmap()
420 boolean idmapExists(String overlayPath, int userId) { in idmapExists() argument
[all …]
/frameworks/base/core/jni/
Dcom_android_internal_content_om_OverlayConfig.cpp33 jobjectArray overlayPath, jobjectArray policies, in createIdmap() argument
48 for (size_t i = 0, count = env->GetArrayLength(overlayPath); i < count; ++i) { in createIdmap()
49 jstring element = (jstring) env->GetObjectArrayElement(overlayPath, i); in createIdmap()
/frameworks/base/libs/androidfw/
DAssetManager.cpp256 String8 overlayPath; in addOverlayPath() local
258 NULL, NULL, NULL, &targetPath, &overlayPath)) { in addOverlayPath()
265 if (overlayPath != packagePath) { in addOverlayPath()
267 idmapPath.string(), packagePath.string(), overlayPath.string()); in addOverlayPath()
278 if (access(overlayPath.string(), R_OK) != 0) { in addOverlayPath()
279 ALOGW("failed to access file %s: %s\n", overlayPath.string(), strerror(errno)); in addOverlayPath()
284 oap.path = overlayPath; in addOverlayPath()
285 oap.type = ::getFileType(overlayPath.string()); in addOverlayPath()
289 targetPath.string(), overlayPath.string(), idmapPath.string()); in addOverlayPath()
DResourceTypes.cpp7124 const char* targetPath, const char* overlayPath, in createIdmap() argument
7127 if (targetPath == NULL || overlayPath == NULL || outData == NULL || outSize == NULL) { in createIdmap()
7135 if (strlen(overlayPath) > 255) { in createIdmap()
7230 pathLen = strlen(overlayPath); in createIdmap()
7232 *charData++ = i < pathLen ? overlayPath[i] : '\0'; // write: overlay path in createIdmap()
/frameworks/base/core/java/com/android/internal/content/om/
DOverlayConfig.java407 @NonNull String[] overlayPath, @NonNull String[] policies, boolean enforceOverlayable); in createIdmap() argument
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h2144 const char* targetPath, const char* overlayPath,