Home
last modified time | relevance | path

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

/cts/hostsidetests/appsecurity/test-apps/KeyRotationTest/src/android/appsecurity/cts/keyrotationtest/service/
DSignatureQueryService.java369 if (packageManager.checkSignatures(packageName, companionPackageName) in verifyCheckSignatures()
373 if (packageManager.checkSignatures(uid, companionUid) in verifyCheckSignatures()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DCrossUserPackageVisibilityTests.java145 assertThat(mPackageManager.checkSignatures(selfPackageName, TARGET_STUB)) in testCheckSignatures_cannotDetectStubPkg()
147 assertThat(mPackageManager.checkSignatures(TARGET_STUB, selfPackageName)) in testCheckSignatures_cannotDetectStubPkg()
152 assertThat(mPackageManager.checkSignatures(selfPackageName, TARGET_STUB)) in testCheckSignatures_cannotDetectStubPkg()
154 assertThat(mPackageManager.checkSignatures(TARGET_STUB, selfPackageName)) in testCheckSignatures_cannotDetectStubPkg()
276 assertThat(mPackageManager.checkSignatures(uidStub, uidStubSharedUser)) in testCheckUidSignatures_cannotDetectStubPkgs()
DAppEnumerationTests.java682 checkSignatures(QUERIES_NOTHING, targetSharedUid)); in queriesNothing_checkSignatures_consistentVisibility()
684 checkSignatures(QUERIES_NOTHING, targetUid)); in queriesNothing_checkSignatures_consistentVisibility()
693 checkSignatures(QUERIES_NOTHING_PERM, targetSharedUid)); in queriesNothingHasPermission_checkSignatures_consistentVisibility()
694 Assert.assertEquals(SIGNATURE_MATCH, checkSignatures(QUERIES_NOTHING_PERM, targetUid)); in queriesNothingHasPermission_checkSignatures_consistentVisibility()
1516 private int checkSignatures(String sourcePackageName, int targetUid) throws Exception { in checkSignatures() method in AppEnumerationTests
/cts/hostsidetests/appsecurity/test-apps/KeyRotationTest/ServiceTest/
DAndroid.bp20 // the PackageManager checkSignatures APIs.
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPermissionUtils.java302 return pm.checkSignatures(packageName, PLATFORM_PACKAGE_NAME) in isPlatformSigned()
DBaseDefaultPermissionGrantPolicyTest.java323 properties.put("has platform signature", (pm.checkSignatures(info.packageName, in getPackageProperties()
472 boolean isPlatformSigned = pm.checkSignatures(pkg.packageName, PLATFORM_PACKAGE_NAME) in getPlatformSignedPackages()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java796 assertEquals(PackageManager.SIGNATURE_MATCH, mPackageManager.checkSignatures(PACKAGE_NAME, in testCheckSignaturesMatch_byPackageName()
799 assertEquals(PackageManager.SIGNATURE_MATCH, mPackageManager.checkSignatures(PACKAGE_NAME, in testCheckSignaturesMatch_byPackageName()
811 assertEquals(PackageManager.SIGNATURE_MATCH, mPackageManager.checkSignatures(uid1, uid2)); in testCheckSignaturesMatch_byUid()
814 assertEquals(PackageManager.SIGNATURE_MATCH, mPackageManager.checkSignatures(uid1, uid1)); in testCheckSignaturesMatch_byUid()
820 assertEquals(PackageManager.SIGNATURE_NO_MATCH, mPackageManager.checkSignatures( in testCheckSignaturesNoMatch_byPackageName()
832 mPackageManager.checkSignatures(uid1, uid2)); in testCheckSignaturesNoMatch_byUid()
837 assertEquals(PackageManager.SIGNATURE_UNKNOWN_PACKAGE, mPackageManager.checkSignatures( in testCheckSignaturesUnknownPackage()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java754 final int signatureResult = getPackageManager().checkSignatures(uid1, uid2); in sendCheckSignatures()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt12932 method @CheckResult public abstract int checkSignatures(@NonNull String, @NonNull String);
12933 method @CheckResult public abstract int checkSignatures(int, int);