Home
last modified time | relevance | path

Searched refs:perm (Results 1 – 15 of 15) sorted by relevance

/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DScopedStorageCoreHostTest.java182 for (String perm : perms) { in grantPermissions()
184 currentUserId, perm); in grantPermissions()
190 for (String perm : perms) { in revokePermissions()
192 currentUserId, perm); in revokePermissions()
DLegacyStorageHostTest.java59 for (String perm : perms) { in grantPermissions()
61 currentUserId, perm); in grantPermissions()
67 for (String perm : perms) { in revokePermissions()
69 currentUserId, perm); in revokePermissions()
DScopedStorageHostTest.java365 for (String perm : perms) { in grantPermissionsToPackage()
367 currentUserId, packageName, perm); in grantPermissionsToPackage()
377 for (String perm : perms) { in revokePermissions()
379 currentUserId, perm); in revokePermissions()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2023_20927.java72 for (PermissionInfo perm : permissionArray) { in testPocCVE_2023_20927()
73 if (missingPermissions.contains(perm.name)) { in testPocCVE_2023_20927()
74 missingPermissions.remove(perm.name); in testPocCVE_2023_20927()
/cts/tests/app/FgsTest/src/android/app/cts/fgstest/
DActivityManagerForegroundServiceTypeTest.java444 for (TestPermissionInfo perm: anyOfPermissions) { in testPermissionEnforcementCommon()
446 allOfPermissions, new TestPermissionInfo[] {perm}), in testPermissionEnforcementCommon()
471 private static int regularPermissionToAppOpIfPossible(TestPermissionInfo perm) { in regularPermissionToAppOpIfPossible() argument
472 return !perm.mIsAppOps && perm.mSpecialOp == null in regularPermissionToAppOpIfPossible()
473 ? AppOpsManager.permissionToOpCode(perm.mName) in regularPermissionToAppOpIfPossible()
548 for (String perm : permissions) { in triagePermissions()
551 pi = mPackageManager.getPermissionInfo(perm, 0); in triagePermissions()
556 perms.add(new TestPermissionInfo(perm, false, null, false)); in triagePermissions()
557 } else if (sSpecialPermissionOps.containsKey(perm)) { in triagePermissions()
558 perms.add(new TestPermissionInfo(perm, false, sSpecialPermissionOps.get(perm), in triagePermissions()
[all …]
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DUtilsProvider.java113 final UriPermission perm = perms.get(0); in verifyOutgoingPersisted() local
114 if (!perm.getUri().equals(uri)) { in verifyOutgoingPersisted()
116 "Expected " + uri + " but found " + perm.getUri()); in verifyOutgoingPersisted()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAsserts.java293 final UriPermission perm = perms.get(0); in assertPersistedUriPermission() local
294 assertEquals("unexpected uri", uri, perm.getUri()); in assertPersistedUriPermission()
296 final long actual = perm.getPersistedTime(); in assertPersistedUriPermission()
306 assertEquals("unexpected read status", expectedRead, perm.isReadPermission()); in assertPersistedUriPermission()
307 assertEquals("unexpected write status", expectedWrite, perm.isWritePermission()); in assertPersistedUriPermission()
/cts/hostsidetests/appsecurity/certs/pkgsigverify/
DAndroid.bp102 name: "ec-p256-por_1_2-no-perm-cap",
104 "ec-p256-por_1_2-no-perm-cap",
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/
DResultsAssertionsUtils.java75 for (UriPermission perm : uriPermissions) { in assertPersistedGrant()
76 if (perm.isReadPermission()) { in assertPersistedGrant()
77 uris.add(perm.getUri()); in assertPersistedGrant()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpDefinitionTest.kt56 for ((opStr, perm, permType) in missingPerms) { in ensureRuntimeAppOpMappingIsCorrect() constant
57 message.append("$opStr missing mapping to $permType permission $perm \n") in ensureRuntimeAppOpMappingIsCorrect()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1540 public static void pollForPermission(String perm, boolean granted) throws Exception { in pollForPermission() argument
1541 pollForCondition(() -> granted == checkPermissionAndAppOp(perm), in pollForPermission()
1542 "Timed out while waiting for permission " + perm + " to be " in pollForPermission()
1549 public static void pollForPermission(TestApp app, String perm, boolean granted) in pollForPermission() argument
1551 pollForPermission(app.getPackageName(), perm, granted); in pollForPermission() local
1557 public static void pollForPermission(String packageName, String perm, boolean granted) in pollForPermission() argument
1560 () -> granted == checkPermission(packageName, perm), in pollForPermission()
1561 "Timed out while waiting for permission " + perm + " to be " in pollForPermission()
1568 public static boolean checkPermission(String packageName, String perm) { in checkPermission() argument
1575 return checkPermissionAndAppOp(perm, packageName, pid, uid); in checkPermission()
[all …]
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java276 public static void pollForPermission(String perm, boolean granted) throws Exception { in pollForPermission() argument
277 pollForCondition(() -> granted == checkPermissionAndAppOp(perm), in pollForPermission()
278 "Timed out while waiting for permission " + perm + " to be " in pollForPermission()
/cts/hostsidetests/appsecurity/
DAndroid.bp189 ":v3-ec-p256-with-por_1_2-no-perm-cap-sharedUid",
319 ":v3-ec-p256-with-por_1_2-no-perm-cap-sharedUid",
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBaseDefaultPermissionGrantPolicyTest.java543 for (String perm: pkg.requestedPermissions) { in addImplicitlyGrantedPermission()
544 if (perm.equals(permissionToAdd)) { in addImplicitlyGrantedPermission()
/cts/hostsidetests/appsecurity/test-apps/tinyapp/
DAndroid.bp183 name: "v3-ec-p256-with-por_1_2-no-perm-cap-sharedUid",
187 lineage: ":ec-p256-por_1_2-no-perm-cap",