/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RuntimePermissionProperties.kt | 82 for (perm in platformFgPerms) { in allRuntimeForegroundPermissionNeedAnAppOp() method 83 assertWithMessage("AppOp for ${perm.name}").that(permissionToOp(perm.name)).isNotNull() in allRuntimeForegroundPermissionNeedAnAppOp() 89 for (perm in platformRuntimePerms) { in groupOfRuntimePermissionsShouldBeUnknown() method 90 assertWithMessage("Group of ${perm.name}").that(perm.group).isEqualTo(UNDEFINED) in groupOfRuntimePermissionsShouldBeUnknown() 103 for (perm in platformAppOpPerms) { in allAppOpPermissionNeedAnAppOp() method 104 assertWithMessage("AppOp for ${perm.name}").that(permissionToOp(perm.name)).isNotNull() in allAppOpPermissionNeedAnAppOp() 116 for (perm in platformBgPerms) { in allRuntimeBackgroundPermissionCantHaveAnAppOp() method 117 assertWithMessage("AppOp for ${perm.name}").that(permissionToOp(perm.name)).isNull() in allRuntimeBackgroundPermissionCantHaveAnAppOp()
|
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/ |
D | ScopedStorageCoreHostTest.java | 117 for (String perm : perms) { in grantPermissions() 119 currentUserId, perm); in grantPermissions() 125 for (String perm : perms) { in revokePermissions() 127 currentUserId, perm); in revokePermissions()
|
D | LegacyStorageHostTest.java | 57 for (String perm : perms) { in grantPermissions() 59 currentUserId, perm); in grantPermissions() 65 for (String perm : perms) { in revokePermissions() 67 currentUserId, perm); in revokePermissions()
|
D | ScopedStorageHostTest.java | 323 for (String perm : perms) { in grantPermissionsToPackage() 325 currentUserId, packageName, perm); in grantPermissionsToPackage() 335 for (String perm : perms) { in revokePermissions() 337 currentUserId, perm); in revokePermissions()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | ServicePermissionTest.java | 61 for (String perm : sServicePermissions) { in testServicePermissions() 63 new String[] { perm }, PackageManager.MATCH_UNINSTALLED_PACKAGES); in testServicePermissions() 66 failures.add(perm + " held by " + pi.packageName); in testServicePermissions()
|
D | PermissionControllerTest.java | 160 private void setAppOp(@NonNull String pkg, @NonNull String perm, int mode) throws Exception { in setAppOp() argument 161 sContext.getSystemService(AppOpsManager.class).setUidMode(permissionToOp(perm), in setAppOp()
|
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/ |
D | UtilsProvider.java | 113 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/ |
D | Asserts.java | 293 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/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 317 for (String perm : getPermissions(packageName)) { in getRuntimePermissions() 318 PermissionInfo info = sContext.getPackageManager().getPermissionInfo(perm, 0); in getRuntimePermissions() 320 runtimePermissions.add(perm); in getRuntimePermissions()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 1064 public static void pollForPermission(String perm, boolean granted) throws Exception { in pollForPermission() argument 1065 pollForCondition(() -> granted == checkPermissionAndAppOp(perm), in pollForPermission() 1066 "Timed out while waiting for permission " + perm + " to be " in pollForPermission() 1073 public static void pollForPermission(TestApp app, String perm, boolean granted) in pollForPermission() argument 1075 pollForPermission(app.getPackageName(), perm, granted); in pollForPermission() local 1081 public static void pollForPermission(String packageName, String perm, boolean granted) in pollForPermission() argument 1084 () -> granted == checkPermission(packageName, perm), in pollForPermission() 1085 "Timed out while waiting for permission " + perm + " to be " in pollForPermission() 1092 public static boolean checkPermission(String packageName, String perm) { in checkPermission() argument 1099 return checkPermissionAndAppOp(perm, packageName, pid, uid); in checkPermission() [all …]
|
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/ |
D | TranscodeTestUtils.java | 247 public static void pollForPermission(String perm, boolean granted) throws Exception { in pollForPermission() argument 248 pollForCondition(() -> granted == checkPermissionAndAppOp(perm), in pollForPermission() 249 "Timed out while waiting for permission " + perm + " to be " in pollForPermission()
|