Home
last modified time | relevance | path

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

12

/cts/tests/tests/slice/src/android/slice/cts/
DSlicePermissionsTest.java18 import static android.content.pm.PackageManager.PERMISSION_DENIED;
69 assertEquals(PERMISSION_DENIED, in testGrant()
85 assertEquals(PERMISSION_DENIED, in testGrantParent()
101 assertEquals(PERMISSION_DENIED, in testGrantParentExpands()
109 assertEquals(PERMISSION_DENIED, in testGrantParentExpands()
128 assertEquals(PERMISSION_DENIED, in testGrantChild()
134 assertEquals(PERMISSION_DENIED, in testGrantChild()
141 assertEquals(PERMISSION_DENIED, in testRevoke()
151 assertEquals(PERMISSION_DENIED, in testRevoke()
161 assertEquals(PERMISSION_DENIED, in testRevokeParent()
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DUndefinedGroupPermissionTest.kt107 PackageManager.PERMISSION_DENIED) in testCustomPermissionGrantedAlone()
109 PackageManager.PERMISSION_DENIED) in testCustomPermissionGrantedAlone()
111 PackageManager.PERMISSION_DENIED) in testCustomPermissionGrantedAlone()
119 PackageManager.PERMISSION_DENIED) in testCustomPermissionGrantedAlone()
121 PackageManager.PERMISSION_DENIED) in testCustomPermissionGrantedAlone()
174 PackageManager.PERMISSION_DENIED) in testOtherGroupPermissionsNotGranted()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/permissions/
DPermissionsTest.java19 import static android.content.pm.PackageManager.PERMISSION_DENIED;
60 .isEqualTo(PERMISSION_DENIED); in default_permissionIsNotGranted()
95 .isEqualTo(PERMISSION_DENIED); in withoutPermission_permissionIsNotGranted()
137 .isEqualTo(PERMISSION_DENIED); in withoutPermission_permissionIsAlreadyGrantedInInstrumentedApp_permissionIsNotGranted()
184 .isEqualTo(PERMISSION_DENIED); in withPermissionAndWithoutPermission_bothApplied()
197 .isEqualTo(PERMISSION_DENIED); in withoutPermissionAndWithPermission_bothApplied()
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DPermissionUtils.java21 import static android.content.pm.PackageManager.PERMISSION_DENIED;
85 case PERMISSION_DENIED: in launchActivityAndRequestPermission()
135 == PERMISSION_DENIED) { in checkPermissionAndAppOps()
136 return PERMISSION_DENIED; in checkPermissionAndAppOps()
144 return PERMISSION_DENIED; in checkPermissionAndAppOps()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java26 import static android.content.pm.PackageManager.PERMISSION_DENIED;
273 PermissionUtils.checkPermission(DEVELOPMENT_PERMISSION, PERMISSION_DENIED, in assertCannotSetPermissionGrantStateDevelopmentPermission()
322 PermissionUtils.checkPermissionAndAppOps(permission, PERMISSION_DENIED, in assertCanSetPermissionGrantStatePreMApp()
432 PERMISSION_DENIED, PERMISSION_APP_PACKAGE_NAME, PERMISSIONS_ACTIVITY_NAME); in testPermissionPrompts()
433 PermissionUtils.checkPermission(READ_CONTACTS, PERMISSION_DENIED, in testPermissionPrompts()
477 PermissionUtils.checkPermission(sensorPermission, PERMISSION_DENIED, in testSensorsRelatedPermissionsNotGrantedViaPolicy()
501 sensorPermission, PERMISSION_DENIED, PERMISSION_APP_PACKAGE_NAME, in testStateOfSensorsRelatedPermissionsCannotBeRead()
531 PackageManager.PERMISSION_DENIED); in assertFailedToSetPermissionGrantState()
578 mReceiver, permission, PERMISSION_DENIED, in assertCannotRequestPermissionFromActivity()
590 mReceiver, permission, PERMISSION_DENIED, in assertNoPermissionFromActivity()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java30 import static android.content.pm.PackageManager.PERMISSION_DENIED;
108 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)); in testGrantDeniedRuntimePermission()
154 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testNoTriStateRuntimePermission()
155 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testNoTriStateRuntimePermission()
195 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testGrantForegroundRuntimePermission()
324 eventually(() -> assertEquals(PERMISSION_DENIED, checkPermission(APP, WRITE_CONTACTS))); in testRestoreOfFlagDoesNotGrantPermission()
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerPermissionRequestApp/src/com/android/cts/packageinstallerpermissionrequestapp/
DPermissionRequestTest.kt49 .isEqualTo(PackageManager.PERMISSION_DENIED) in verifyPermissionsDeniedAndInstallerUnchanged()
51 .isEqualTo(PackageManager.PERMISSION_DENIED) in verifyPermissionsDeniedAndInstallerUnchanged()
/cts/hostsidetests/appsecurity/test-apps/EscalateToRuntimePermissions/src/com/android/cts/escalatepermission/
DPermissionEscalationTest.java69 PackageManager.PERMISSION_DENIED); in testRuntimePermissionsAreNotGranted()
80 PackageManager.PERMISSION_DENIED); in testRuntimePermissionsAreNotGranted()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DWifiNetworkConfigurationWithoutFineLocationPermissionTest.java62 PackageManager.PERMISSION_DENIED, Manifest.permission.ACCESS_FINE_LOCATION, mUserId) in testAddAndRetrieveCallerConfiguredNetworks()
65 .isEqualTo(PackageManager.PERMISSION_DENIED); in testAddAndRetrieveCallerConfiguredNetworks()
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerWhitelistApp/src/com/android/cts/packageinstallerpermissionwhitelistapp/
DPermissionWhitelistTest.kt51 .isEqualTo(PackageManager.PERMISSION_DENIED) in verifyNoInstallPackagesPermissions()
93 .isEqualTo(PackageManager.PERMISSION_DENIED) in removeWhitelistRestrictedPermission()
/cts/tests/tests/permission3/src/android/permission3/cts/
DPermissionTapjackingTest.kt92 PackageManager.PERMISSION_DENIED) { in tryClicking()
110 PackageManager.PERMISSION_DENIED) { in tryClicking()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java19 import static android.content.pm.PackageManager.PERMISSION_DENIED;
1235 assertEquals(PERMISSION_DENIED, retValue[0]); in testCheckCallingOrSelfUriPermissions()
1236 assertEquals(PERMISSION_DENIED, retValue[1]); in testCheckCallingOrSelfUriPermissions()
1244 assertEquals(PackageManager.PERMISSION_DENIED, retValue); in testCheckCallingOrSelfUriPermission()
1261 assertEquals(PackageManager.PERMISSION_DENIED, returnValue); in testCheckPermissionNotGranted()
1280 assertEquals(PackageManager.PERMISSION_DENIED, returnValue); in testCheckPermissionInvalidRequest()
1290 assertEquals(PackageManager.PERMISSION_DENIED, returnValue); in testCheckSelfPermissionNotGranted()
1315 assertEquals(PackageManager.PERMISSION_DENIED, retValue); in testCheckCallingOrSelfPermission_noIpc()
1327 assertEquals(PackageManager.PERMISSION_DENIED, retValue); in testCheckCallingOrSelfPermission_ipc()
1365 assertEquals(PackageManager.PERMISSION_DENIED, retValue); in testCheckCallingPermission_noIpc()
[all …]
/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/content/src/android/content/pm/cts/
DPermissionFeatureTest.java81 assertEquals(PackageManager.PERMISSION_DENIED, in assertPermissionDenied()
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateTest.java21 import static android.content.pm.PackageManager.PERMISSION_DENIED;
275 .checkSelfPermission(TEST_PERMISSION_1)).isEqualTo(PERMISSION_DENIED); in ensureDoesNotHavePermission_permissionIsDenied()
282 .checkSelfPermission(TEST_PERMISSION_1)).isEqualTo(PERMISSION_DENIED); in ensureDoesNotHavePermission_multiplePermissions_permissionsAreDenied()
284 .checkSelfPermission(TEST_PERMISSION_2)).isEqualTo(PERMISSION_DENIED); in ensureDoesNotHavePermission_multiplePermissions_permissionsAreDenied()
294 .checkSelfPermission(TEST_PERMISSION_2)).isEqualTo(PERMISSION_DENIED); in ensureHasPermissionAndDoesNotHavePermission_permissionsAreCorrect()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTest.java136 assertSame(PackageManager.PERMISSION_DENIED, context.checkSelfPermission( in testAdoptSomeShellPermissions()
138 assertSame(PackageManager.PERMISSION_DENIED, context.checkSelfPermission( in testAdoptSomeShellPermissions()
148 assertSame(PackageManager.PERMISSION_DENIED, context.checkSelfPermission( in testAdoptSomeShellPermissions()
163 assertSame(PackageManager.PERMISSION_DENIED, context.checkSelfPermission( in testAdoptSomeShellPermissions()
/cts/tests/tests/os/src/android/os/cts/
DAutoRevokeTest.kt26 import android.content.pm.PackageManager.PERMISSION_DENIED in <lambda>()
151 assertPermission(PERMISSION_DENIED) in <lambda>()
261 assertPermission(PERMISSION_DENIED) in <lambda>()
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/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/
DBaseNetworkService.java135 if (hasPerm != PackageManager.PERMISSION_DENIED) {
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DConstraintTest.java147 != PackageManager.PERMISSION_DENIED) { in waitPermissionRevoke()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DBaseJobSchedulerTest.java152 != PackageManager.PERMISSION_DENIED) { in waitPermissionRevoke()
/cts/hostsidetests/accounts/test-apps/AccountManagerCrossUserApp/src/com/android/cts/accountmanager/
DAccountManagerCrossUserTest.java236 mContext.getPackageName())).isEqualTo(PackageManager.PERMISSION_DENIED); in assertPermissionRevoked()

12