Home
last modified time | relevance | path

Searched refs:PERMISSION_DENIED (Results 1 – 21 of 21) sorted by relevance

/cts/tests/tests/slice/src/android/slice/cts/
DSlicePermissionsTest.java17 import static android.content.pm.PackageManager.PERMISSION_DENIED;
61 assertEquals(PERMISSION_DENIED, in testGrant()
76 assertEquals(PERMISSION_DENIED, in testGrantParent()
91 assertEquals(PERMISSION_DENIED, in testGrantParentExpands()
99 assertEquals(PERMISSION_DENIED, in testGrantParentExpands()
117 assertEquals(PERMISSION_DENIED, in testGrantChild()
123 assertEquals(PERMISSION_DENIED, in testGrantChild()
129 assertEquals(PERMISSION_DENIED, in testRevoke()
139 assertEquals(PERMISSION_DENIED, in testRevoke()
148 assertEquals(PERMISSION_DENIED, in testRevokeParent()
[all …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DUsePermissionTest23.java92 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testInteractiveGrant()
94 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testInteractiveGrant()
142 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testRuntimeGroupGrantSpecificity()
144 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testRuntimeGroupGrantSpecificity()
167 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testRuntimeGroupGrantSpecificity()
174 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testRuntimeGroupGrantExpansion()
176 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testRuntimeGroupGrantExpansion()
208 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testCancelledPermissionRequest()
234 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testRequestGrantedPermission()
268 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testDenialWithPrejudice()
[all …]
DBasePermissionsTest.java91 : PackageManager.PERMISSION_DENIED, result.grantResults[i]); in assertPermissionRequestResult()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java99 assertPermissionGrantState(PackageManager.PERMISSION_DENIED); in testPermissionGrantState()
100 assertPermissionRequest(PackageManager.PERMISSION_DENIED); in testPermissionGrantState()
104 assertPermissionGrantState(PackageManager.PERMISSION_DENIED); in testPermissionGrantState()
121 assertPermissionRequest(PackageManager.PERMISSION_DENIED); in testPermissionPolicy()
124 assertPermissionRequest(PackageManager.PERMISSION_DENIED); in testPermissionPolicy()
126 assertPermissionRequest(PackageManager.PERMISSION_DENIED); in testPermissionPolicy()
145 assertPermissionRequest(PackageManager.PERMISSION_DENIED); in testPermissionMixedPolicies()
148 assertPermissionRequest(PackageManager.PERMISSION_DENIED); in testPermissionMixedPolicies()
151 assertPermissionRequest(PackageManager.PERMISSION_DENIED); in testPermissionMixedPolicies()
177 assertPermissionRequest(PackageManager.PERMISSION_DENIED, null, CUSTOM_PERM_B_NAME); in testPermissionGrantOfDisallowedPermissionWhileOtherPermIsGranted()
[all …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp26/src/com/android/cts/usepermission/
DUsePermissionTest26.java35 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testRuntimeGroupGrantNoExpansion()
37 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext() in testRuntimeGroupGrantNoExpansion()
61 assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getTargetContext() in testRuntimeGroupGrantNoExpansion()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp28/src/com/android/cts/usepermission/
DUsePermissionTest28.java21 import static android.content.pm.PackageManager.PERMISSION_DENIED;
42 assertEquals(PERMISSION_DENIED, context.checkSelfPermission(ACCESS_FINE_LOCATION)); in testLocationPermissionWasSplit()
43 assertEquals(PERMISSION_DENIED, context.checkSelfPermission(ACCESS_BACKGROUND_LOCATION)); in testLocationPermissionWasSplit()
/cts/tests/tests/content/src/android/content/pm/cts/
DPermissionFeatureTest.java34 assertEquals(PackageManager.PERMISSION_DENIED, in testPermissionRequiredFeatureUndefined()
41 assertEquals(PackageManager.PERMISSION_DENIED, in testPermissionRequiredNotFeatureDefined()
55 assertEquals(PackageManager.PERMISSION_DENIED, in testPermissionRequiredMultiDeny()
DPackageManagerTest.java526 assertEquals(PackageManager.PERMISSION_DENIED, in testCheckPermissionNotGranted()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java30 import static android.content.pm.PackageManager.PERMISSION_DENIED;
104 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)); in testGrantDeniedRuntimePermission()
144 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testNoTriStateRuntimePermission()
145 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testNoTriStateRuntimePermission()
180 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testGrantForegroundRuntimePermission()
285 eventually(() -> assertEquals(PERMISSION_DENIED, checkPermission(APP, WRITE_CONTACTS))); in testRestoreOfFlagDoesNotGrantPermission()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java903 assertEquals(PackageManager.PERMISSION_DENIED, retValue); in testCheckCallingOrSelfUriPermission()
920 assertEquals(PackageManager.PERMISSION_DENIED, returnValue); in testCheckPermissionNotGranted()
939 assertEquals(PackageManager.PERMISSION_DENIED, returnValue); in testCheckPermissionInvalidRequest()
949 assertEquals(PackageManager.PERMISSION_DENIED, returnValue); in testCheckSelfPermissionNotGranted()
974 assertEquals(PackageManager.PERMISSION_DENIED, retValue); in testCheckCallingOrSelfPermission_noIpc()
986 assertEquals(PackageManager.PERMISSION_DENIED, retValue); in testCheckCallingOrSelfPermission_ipc()
1024 assertEquals(PackageManager.PERMISSION_DENIED, retValue); in testCheckCallingPermission_noIpc()
1062 assertEquals(PackageManager.PERMISSION_DENIED, returnValue); in testCheckCallingPermission_ipc()
1104 assertEquals(PackageManager.PERMISSION_DENIED, retValue); in testCheckUriPermission1()
1118 assertEquals(PackageManager.PERMISSION_DENIED, retValue); in testCheckUriPermission2()
[all …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp29/src/com/android/cts/usepermission/
DUsePermissionTest29.java21 import static android.content.pm.PackageManager.PERMISSION_DENIED;
45 assertEquals(PERMISSION_DENIED, getInstrumentation().getContext() in assertDenied()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPermissionMaxSdkVersionTest.java43 PackageManager.PERMISSION_DENIED); in testMaxSdkInPast()
/cts/tests/JobScheduler/src/android/jobscheduler/
DMockJobService.java80 int permCheckRead = PackageManager.PERMISSION_DENIED; in onStartJob()
81 int permCheckWrite = PackageManager.PERMISSION_DENIED; in onStartJob()
152 != PackageManager.PERMISSION_DENIED) { in onStartJob()
165 != PackageManager.PERMISSION_DENIED) { in onStartJob()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/
DMockJobService.java80 int permCheckRead = PackageManager.PERMISSION_DENIED; in onStartJob()
81 int permCheckWrite = PackageManager.PERMISSION_DENIED; in onStartJob()
152 != PackageManager.PERMISSION_DENIED) { in onStartJob()
165 != PackageManager.PERMISSION_DENIED) { in onStartJob()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTest.java117 context.getPackageName()), PackageManager.PERMISSION_DENIED); in testAdoptAllShellPermissions()
152 assertSame(PackageManager.PERMISSION_DENIED, context.checkSelfPermission( in testAdoptSomeShellPermissions()
154 assertSame(PackageManager.PERMISSION_DENIED, context.checkSelfPermission( in testAdoptSomeShellPermissions()
164 assertSame(PackageManager.PERMISSION_DENIED, context.checkSelfPermission( in testAdoptSomeShellPermissions()
179 assertSame(PackageManager.PERMISSION_DENIED, context.checkSelfPermission( in testAdoptSomeShellPermissions()
/cts/tests/tests/os/src/android/os/cts/
DActivityTestsBase.java28 public static final String PERMISSION_DENIED = "android.os.cts.permission.TEST_DENIED"; field in ActivityTestsBase
/cts/tests/app/app/src/android/app/stubs/
DActivityTestsBase.java28 public static final String PERMISSION_DENIED = "android.app.cts.permission.TEST_DENIED"; field in ActivityTestsBase
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DConstraintTest.java147 != PackageManager.PERMISSION_DENIED) { in waitPermissionRevoke()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DConstraintTest.java150 != PackageManager.PERMISSION_DENIED) { in waitPermissionRevoke()
/cts/tests/tests/permission/src/android/permission/cts/
DPermissionControllerTest.java28 import static android.content.pm.PackageManager.PERMISSION_DENIED;
180 APP)).isEqualTo(PERMISSION_DENIED); in revokeSinglePermission()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java1137 is(PackageManager.PERMISSION_DENIED)); in testInstallPermissionNotGranted()