Searched refs:perms (Results 1 – 4 of 4) sorted by relevance
99 final List<UriPermission> perms = context.getContentResolver() in verifyOutgoingPersisted() local103 if (perms.size() != 1) { in verifyOutgoingPersisted()106 final UriPermission perm = perms.get(0); in verifyOutgoingPersisted()113 if (perms.size() != 0) { in verifyOutgoingPersisted()
493 ArrayList<String> perms = new ArrayList<>(Arrays.asList( in testNoResidualPermissionsOnUninstall_part1() local503 perms.add(Manifest.permission.READ_EXTERNAL_STORAGE); in testNoResidualPermissionsOnUninstall_part1()506 grantPermissions(perms.toArray(new String[perms.size()])); in testNoResidualPermissionsOnUninstall_part1()643 ArrayList<String> perms = new ArrayList<>(Arrays.asList( in assertAllPermissionsGrantState() local670 perms.add(Manifest.permission.READ_EXTERNAL_STORAGE); in assertAllPermissionsGrantState()671 perms.add(Manifest.permission.WRITE_EXTERNAL_STORAGE); in assertAllPermissionsGrantState()672 assertPermissionsGrantState(perms.toArray(new String[perms.size()]), grantState); in assertAllPermissionsGrantState()
241 Set<String> perms = new HashSet<>(); in testImageCaptureWithInadequeteLocationPermissions() local242 perms.add(ACCESS_COARSE_LOCATION); in testImageCaptureWithInadequeteLocationPermissions()243 perms.add(ACCESS_BACKGROUND_LOCATION); in testImageCaptureWithInadequeteLocationPermissions()244 perms.add(ACCESS_MEDIA_LOCATION); in testImageCaptureWithInadequeteLocationPermissions()245 testImageCaptureWithoutLocation(perms); in testImageCaptureWithInadequeteLocationPermissions()
1360 final List<UriPermission> perms = getContext() in assertPersistedUriPermission() local1363 assertEquals("expected exactly one permission", 1, perms.size()); in assertPersistedUriPermission()1365 final UriPermission perm = perms.get(0); in assertPersistedUriPermission()1382 assertEquals("expected zero permissions", 0, perms.size()); in assertPersistedUriPermission()