Searched refs:perms (Results 1 – 5 of 5) sorted by relevance
115 private void grantPermissions(String... perms) throws Exception { in grantPermissions() argument117 for (String perm : perms) { in grantPermissions()123 private void revokePermissions(String... perms) throws Exception { in revokePermissions() argument125 for (String perm : perms) { in revokePermissions()
321 private void grantPermissionsToPackage(String packageName, String... perms) throws Exception { in grantPermissionsToPackage() argument323 for (String perm : perms) { in grantPermissionsToPackage()329 private void grantPermissions(String... perms) throws Exception { in grantPermissions() argument330 grantPermissionsToPackage("android.scopedstorage.cts", perms); in grantPermissions()333 private void revokePermissions(String... perms) throws Exception { in revokePermissions() argument335 for (String perm : perms) { in revokePermissions()
55 private void grantPermissions(String... perms) throws Exception { in grantPermissions() argument57 for (String perm : perms) { in grantPermissions()63 private void revokePermissions(String... perms) throws Exception { in revokePermissions() argument65 for (String perm : perms) { in revokePermissions()
106 final List<UriPermission> perms = context.getContentResolver() in verifyOutgoingPersisted() local110 if (perms.size() != 1) { in verifyOutgoingPersisted()113 final UriPermission perm = perms.get(0); in verifyOutgoingPersisted()120 if (perms.size() != 0) { in verifyOutgoingPersisted()
288 final List<UriPermission> perms = getContext() in assertPersistedUriPermission() local291 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()