Home
last modified time | relevance | path

Searched refs:perms (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DScopedStorageCoreHostTest.java180 private void grantPermissions(String... perms) throws Exception { in grantPermissions() argument
182 for (String perm : perms) { in grantPermissions()
188 private void revokePermissions(String... perms) throws Exception { in revokePermissions() argument
190 for (String perm : perms) { in revokePermissions()
DScopedStorageHostTest.java363 private void grantPermissionsToPackage(String packageName, String... perms) throws Exception { in grantPermissionsToPackage() argument
365 for (String perm : perms) { in grantPermissionsToPackage()
371 private void grantPermissions(String... perms) throws Exception { in grantPermissions() argument
372 grantPermissionsToPackage("android.scopedstorage.cts", perms); in grantPermissions()
375 private void revokePermissions(String... perms) throws Exception { in revokePermissions() argument
377 for (String perm : perms) { in revokePermissions()
DLegacyStorageHostTest.java57 private void grantPermissions(String... perms) throws Exception { in grantPermissions() argument
59 for (String perm : perms) { in grantPermissions()
65 private void revokePermissions(String... perms) throws Exception { in revokePermissions() argument
67 for (String perm : perms) { in revokePermissions()
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DUtilsProvider.java106 final List<UriPermission> perms = context.getContentResolver() in verifyOutgoingPersisted() local
110 if (perms.size() != 1) { in verifyOutgoingPersisted()
113 final UriPermission perm = perms.get(0); in verifyOutgoingPersisted()
120 if (perms.size() != 0) { in verifyOutgoingPersisted()
/cts/tests/app/FgsTest/src/android/app/cts/fgstest/
DActivityManagerForegroundServiceTypeTest.java456 final TestPermissionInfo[] perms = getListExceptIndex(allOfPermissions, i); in testPermissionEnforcementCommon() local
458 perms, anyOfPermissions), testPackageName); in testPermissionEnforcementCommon()
545 final ArrayList<TestPermissionInfo> perms = new ArrayList<>(); in triagePermissions() local
556 perms.add(new TestPermissionInfo(perm, false, null, false)); in triagePermissions()
558 perms.add(new TestPermissionInfo(perm, false, sSpecialPermissionOps.get(perm), in triagePermissions()
561 perms.add(new TestPermissionInfo(perm, false, null, true)); in triagePermissions()
565 perms.add(new TestPermissionInfo(perm, true, null, false)); in triagePermissions()
572 return perms.toArray(new TestPermissionInfo[perms.size()]); in triagePermissions()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAsserts.java288 final List<UriPermission> perms = getContext() in assertPersistedUriPermission() local
291 assertEquals("expected exactly one permission", 1, perms.size()); in assertPersistedUriPermission()
293 final UriPermission perm = perms.get(0); in assertPersistedUriPermission()
310 assertEquals("expected zero permissions", 0, perms.size()); in assertPersistedUriPermission()