Home
last modified time | relevance | path

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

/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DScopedStorageCoreHostTest.java115 private void grantPermissions(String... perms) throws Exception { in grantPermissions() argument
117 for (String perm : perms) { in grantPermissions()
123 private void revokePermissions(String... perms) throws Exception { in revokePermissions() argument
125 for (String perm : perms) { in revokePermissions()
DScopedStorageHostTest.java321 private void grantPermissionsToPackage(String packageName, String... perms) throws Exception { in grantPermissionsToPackage() argument
323 for (String perm : perms) { in grantPermissionsToPackage()
329 private void grantPermissions(String... perms) throws Exception { in grantPermissions() argument
330 grantPermissionsToPackage("android.scopedstorage.cts", perms); in grantPermissions()
333 private void revokePermissions(String... perms) throws Exception { in revokePermissions() argument
335 for (String perm : perms) { in revokePermissions()
DLegacyStorageHostTest.java55 private void grantPermissions(String... perms) throws Exception { in grantPermissions() argument
57 for (String perm : perms) { in grantPermissions()
63 private void revokePermissions(String... perms) throws Exception { in revokePermissions() argument
65 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/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()