/frameworks/base/services/core/java/com/android/server/om/ |
D | IdmapDaemon.java | 130 String createIdmap(@NonNull String targetPath, @NonNull String overlayPath, in createIdmap() argument 137 + "\", \"" + overlayPath + "\", \"" + overlayName + "\", " + policies + ", " in createIdmap() 142 return idmap2.createIdmap(targetPath, overlayPath, TextUtils.emptyIfNull(overlayName), in createIdmap() 147 boolean removeIdmap(String overlayPath, int userId) throws TimeoutException, RemoteException { in removeIdmap() argument 151 Slog.w(TAG, "idmap2d service is not ready for removeIdmap(\"" + overlayPath in removeIdmap() 156 return idmap2.removeIdmap(overlayPath, userId); in removeIdmap() 160 boolean verifyIdmap(@NonNull String targetPath, @NonNull String overlayPath, in verifyIdmap() argument 167 + "\", \"" + overlayPath + "\", \"" + overlayName + "\", " + policies + ", " in verifyIdmap() 172 return idmap2.verifyIdmap(targetPath, overlayPath, TextUtils.emptyIfNull(overlayName), in verifyIdmap() 177 boolean idmapExists(String overlayPath, int userId) { in idmapExists() argument [all …]
|
D | IdmapManager.java | 172 String dumpIdmap(@NonNull String overlayPath) { in dumpIdmap() argument 173 return mIdmapDaemon.dumpIdmap(overlayPath); in dumpIdmap()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTests.java | 247 final String overlayPath = state.select(OVERLAY, USER).apkPath; in testConfigSignaturePolicyOk() local 248 assertTrue(idmapd.idmapExists(overlayPath, USER)); in testConfigSignaturePolicyOk() 250 final FakeIdmapDaemon.IdmapHeader idmap = idmapd.getIdmap(overlayPath); in testConfigSignaturePolicyOk() 267 final String overlayPath = state.select(OVERLAY, USER).apkPath; in testConfigSignaturePolicyCertNok() local 268 assertTrue(idmapd.idmapExists(overlayPath, USER)); in testConfigSignaturePolicyCertNok() 270 final FakeIdmapDaemon.IdmapHeader idmap = idmapd.getIdmap(overlayPath); in testConfigSignaturePolicyCertNok() 284 final String overlayPath = state.select(OVERLAY, USER).apkPath; in testConfigSignaturePolicyNoConfig() local 285 assertTrue(idmapd.idmapExists(overlayPath, USER)); in testConfigSignaturePolicyNoConfig() 287 final FakeIdmapDaemon.IdmapHeader idmap = idmapd.getIdmap(overlayPath); in testConfigSignaturePolicyNoConfig() 300 final String overlayPath = state.select(OVERLAY, USER).apkPath; in testConfigSignaturePolicyNoRefPkg() local [all …]
|
D | OverlayManagerServiceImplTestsBase.java | 482 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() 486 return overlayPath; in createIdmap() 490 boolean removeIdmap(String overlayPath, int userId) { in removeIdmap() argument 491 return mIdmapFiles.remove(overlayPath) != null; in removeIdmap() 495 boolean verifyIdmap(String targetPath, String overlayPath, String overlayName, int policies, in verifyIdmap() argument 497 final IdmapHeader idmap = mIdmapFiles.get(overlayPath); in verifyIdmap() 501 return idmap.isUpToDate(getCrc(targetPath), getCrc(overlayPath), targetPath, policies, in verifyIdmap() 506 boolean idmapExists(String overlayPath, int userId) { in idmapExists() argument [all …]
|
/frameworks/base/core/java/android/content/pm/overlay/ |
D | OverlayPaths.java | 71 public Builder addApkPath(@NonNull String overlayPath) { in addApkPath() argument 72 addUniquePath(mPaths.mResourceDirs, overlayPath); in addApkPath() 73 addUniquePath(mPaths.mOverlayPaths, overlayPath); in addApkPath()
|
/frameworks/base/core/jni/ |
D | com_android_internal_content_om_OverlayConfig.cpp | 33 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()
|
D | com_android_internal_content_om_OverlayManagerImpl.cpp | 128 const std::string& overlayPath, const std::string& idmapPath, in callCreateIdmapFile() argument 132 return createIdmapFileFuncPtr_(out_error, targetPath, overlayPath, idmapPath, overlayName, in callCreateIdmapFile() 166 const std::string& overlayPath, 332 const ScopedUtfChars overlayPath(env, jsOverlayPath); in CreateIdmapFile() local 333 if (overlayPath.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/ |
D | SelfTargeting.cpp | 131 CreateIdmapFile(std::string& out_err, const std::string& targetPath, const std::string& overlayPath, in CreateIdmapFile() argument 148 const auto overlay = OverlayResourceContainer::FromPath(overlayPath); in CreateIdmapFile() 150 out_err = base::StringPrintf("Failed to load overlay %s because of %s", overlayPath.c_str(), in CreateIdmapFile()
|
/frameworks/native/libs/input/tests/ |
D | InputDevice_test.cpp | 90 std::string overlayPath = base::GetExecutableDirectory() + "/data/german.kcm"; in TEST_F() local 92 KeyCharacterMap::load(overlayPath, KeyCharacterMap::Format::OVERLAY); in TEST_F() 93 ASSERT_TRUE(overlay.ok()) << "Cannot load KeyCharacterMap at " << overlayPath; in TEST_F()
|
/frameworks/base/libs/androidfw/ |
D | AssetManager.cpp | 257 String8 overlayPath; in addOverlayPath() local 259 NULL, NULL, NULL, &targetPath, &overlayPath)) { in addOverlayPath() 266 if (overlayPath != packagePath) { in addOverlayPath() 268 idmapPath.c_str(), packagePath.c_str(), overlayPath.c_str()); in addOverlayPath() 279 if (access(overlayPath.c_str(), R_OK) != 0) { in addOverlayPath() 280 ALOGW("failed to access file %s: %s\n", overlayPath.c_str(), strerror(errno)); in addOverlayPath() 285 oap.path = overlayPath; in addOverlayPath() 286 oap.type = ::getFileType(overlayPath.c_str()); in addOverlayPath() 290 targetPath.c_str(), overlayPath.c_str(), idmapPath.c_str()); in addOverlayPath()
|
D | ResourceTypes.cpp | 7398 const char* targetPath, const char* overlayPath, in createIdmap() argument 7401 if (targetPath == NULL || overlayPath == NULL || outData == NULL || outSize == NULL) { in createIdmap() 7409 if (strlen(overlayPath) > 255) { in createIdmap() 7504 pathLen = strlen(overlayPath); in createIdmap() 7506 *charData++ = i < pathLen ? overlayPath[i] : '\0'; // write: overlay path in createIdmap()
|
/frameworks/base/core/java/com/android/internal/content/om/ |
D | OverlayManagerImpl.java | 390 @NonNull String overlayPath, in createIdmapFile() argument 402 @NonNull String overlayPath) throws IOException; in getFabricatedOverlayInfo()
|
D | OverlayConfig.java | 587 @NonNull String[] overlayPath, @NonNull String[] policies, boolean enforceOverlayable); in createIdmap() argument
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceTypes.h | 2266 const char* targetPath, const char* overlayPath,
|