Home
last modified time | relevance | path

Searched refs:setInstallerPackageName (Results 1 – 13 of 13) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DModifyInstallerPackageTest.java101 mPM.setInstallerPackageName(OTHER_PACKAGE, MY_PACKAGE); in setInstallPackage()
106 mPM.setInstallerPackageName(OTHER_PACKAGE, null); in setInstallPackage()
118 mPM.setInstallerPackageName("thisdoesnotexistihope!", MY_PACKAGE); in setInstallPackageBadTarget()
132 mPM.setInstallerPackageName(OTHER_PACKAGE, "thisdoesnotexistihope!"); in setInstallPackageBadInstaller()
152 mPM.setInstallerPackageName(OTHER_PACKAGE, OTHER_PACKAGE); in setInstallPackageWrongCertificate()
DModifyInstallerCrossPackageTest.kt88 assertThrows { packageManager.setInstallerPackageName(OTHER_PACKAGE, MY_PACKAGE) } in attemptTakeOver()
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DModifyInstallerCrossPackageTest.kt72 packageManager.setInstallerPackageName(context.packageName, context.packageName) in takeInstaller()
77 packageManager.setInstallerPackageName(context.packageName, null) in clearInstaller()
DUtilsProvider.java94 context.getPackageManager().setInstallerPackageName( in call()
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerWhitelistApp/src/com/android/cts/packageinstallerpermissionwhitelistapp/
DPermissionWhitelistTest.kt59 packageManager.setInstallerPackageName(TARGET_PKG, packageName) in setTargetInstallerPackage()
72 it.setInstallerPackageName(TARGET_PKG, packageName) in setTargetInstallerPackage()
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerPermissionRequestApp/src/com/android/cts/packageinstallerpermissionrequestapp/
DPermissionRequestTest.kt65 packageManager.setInstallerPackageName(packageName, packageName) in setSelfAsInstallerAndWhitelistPermission()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2024_0044.java59 params.setInstallerPackageName(vulnPackageName); in testPocCVE_2024_0044()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DCrossUserPackageVisibilityTests.java471 () -> mPackageManager.setInstallerPackageName( in testSetInstallerPackageName_cannotDetectStubPkg()
477 () -> mPackageManager.setInstallerPackageName( in testSetInstallerPackageName_cannotDetectStubPkg()
DAppEnumerationTests.java1106 () -> setInstallerPackageName(QUERIES_NOTHING, TARGET_NO_API, QUERIES_NOTHING)); in queriesNothing_setInstallerPackageName_targetIsNoApi_throwsException()
1113 () -> setInstallerPackageName(QUERIES_NOTHING, QUERIES_NOTHING, TARGET_NO_API)); in queriesNothing_setInstallerPackageName_installerIsNoApi_throwsException()
1664 private void setInstallerPackageName(String sourcePackageName, String targetPackageName, in setInstallerPackageName() method in AppEnumerationTests
/cts/tests/framework/base/locale/src/android/localemanager/cts/
DLocaleManagerTests.java251 (pm) -> pm.setInstallerPackageName(targetPackageName, INSTALLER_PACKAGE)); in setInstallerForPackage()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java971 getPackageManager().setInstallerPackageName(targetPackageName, installerPackageName); in sendSetInstallerPackageName()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java2110 params1.setInstallerPackageName(mContext.getPackageName()); in testInvalidInstallSessionParamsPackageNames()
2118 params2.setInstallerPackageName(maliciousPayload); in testInvalidInstallSessionParamsPackageNames()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt12858 method public void setInstallerPackageName(@Nullable String);
13078 method public abstract void setInstallerPackageName(@NonNull String, @Nullable String);