/cts/tests/tests/slice/src/android/slice/cts/ |
D | SlicePermissionsTest.java | 17 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/ |
D | UsePermissionTest23.java | 92 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 …]
|
D | BasePermissionsTest.java | 91 : PackageManager.PERMISSION_DENIED, result.grantResults[i]); in assertPermissionRequestResult()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PermissionsTest.java | 99 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/ |
D | UsePermissionTest26.java | 35 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/ |
D | UsePermissionTest28.java | 21 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/ |
D | PermissionFeatureTest.java | 34 assertEquals(PackageManager.PERMISSION_DENIED, in testPermissionRequiredFeatureUndefined() 41 assertEquals(PackageManager.PERMISSION_DENIED, in testPermissionRequiredNotFeatureDefined() 55 assertEquals(PackageManager.PERMISSION_DENIED, in testPermissionRequiredMultiDeny()
|
D | PackageManagerTest.java | 526 assertEquals(PackageManager.PERMISSION_DENIED, in testCheckPermissionNotGranted()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 30 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/ |
D | ContextTest.java | 903 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/ |
D | UsePermissionTest29.java | 21 import static android.content.pm.PackageManager.PERMISSION_DENIED; 45 assertEquals(PERMISSION_DENIED, getInstrumentation().getContext() in assertDenied()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | PermissionMaxSdkVersionTest.java | 43 PackageManager.PERMISSION_DENIED); in testMaxSdkInPast()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | MockJobService.java | 80 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/ |
D | MockJobService.java | 80 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/ |
D | UiAutomationTest.java | 117 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/ |
D | ActivityTestsBase.java | 28 public static final String PERMISSION_DENIED = "android.os.cts.permission.TEST_DENIED"; field in ActivityTestsBase
|
/cts/tests/app/app/src/android/app/stubs/ |
D | ActivityTestsBase.java | 28 public static final String PERMISSION_DENIED = "android.app.cts.permission.TEST_DENIED"; field in ActivityTestsBase
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/ |
D | ConstraintTest.java | 147 != PackageManager.PERMISSION_DENIED) { in waitPermissionRevoke()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ConstraintTest.java | 150 != PackageManager.PERMISSION_DENIED) { in waitPermissionRevoke()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PermissionControllerTest.java | 28 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/ |
D | ClientTest.java | 1137 is(PackageManager.PERMISSION_DENIED)); in testInstallPermissionNotGranted()
|