Home
last modified time | relevance | path

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

/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DUtilsProvider.java99 final List<UriPermission> perms = context.getContentResolver() in verifyOutgoingPersisted() local
103 if (perms.size() != 1) { in verifyOutgoingPersisted()
106 final UriPermission perm = perms.get(0); in verifyOutgoingPersisted()
113 if (perms.size() != 0) { in verifyOutgoingPersisted()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DUsePermissionTest23.java493 ArrayList<String> perms = new ArrayList<>(Arrays.asList( in testNoResidualPermissionsOnUninstall_part1() local
503 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() local
670 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()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java241 Set<String> perms = new HashSet<>(); in testImageCaptureWithInadequeteLocationPermissions() local
242 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()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAccessPermissionWithDiffSigTest.java1360 final List<UriPermission> perms = getContext() in assertPersistedUriPermission() local
1363 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()