/cts/tests/tests/slice/src/android/slice/cts/ |
D | SlicePermissionsTest.java | 18 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/ |
D | UndefinedGroupPermissionTest.kt | 107 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/ |
D | PermissionsTest.java | 19 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/ |
D | PermissionUtils.java | 21 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/ |
D | PermissionsTest.java | 26 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/ |
D | PermissionTest.java | 30 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/ |
D | PermissionRequestTest.kt | 49 .isEqualTo(PackageManager.PERMISSION_DENIED) in verifyPermissionsDeniedAndInstallerUnchanged() 51 .isEqualTo(PackageManager.PERMISSION_DENIED) in verifyPermissionsDeniedAndInstallerUnchanged()
|
/cts/hostsidetests/appsecurity/test-apps/EscalateToRuntimePermissions/src/com/android/cts/escalatepermission/ |
D | PermissionEscalationTest.java | 69 PackageManager.PERMISSION_DENIED); in testRuntimePermissionsAreNotGranted() 80 PackageManager.PERMISSION_DENIED); in testRuntimePermissionsAreNotGranted()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | WifiNetworkConfigurationWithoutFineLocationPermissionTest.java | 62 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/ |
D | PermissionWhitelistTest.kt | 51 .isEqualTo(PackageManager.PERMISSION_DENIED) in verifyNoInstallPackagesPermissions() 93 .isEqualTo(PackageManager.PERMISSION_DENIED) in removeWhitelistRestrictedPermission()
|
/cts/tests/tests/permission3/src/android/permission3/cts/ |
D | PermissionTapjackingTest.kt | 92 PackageManager.PERMISSION_DENIED) { in tryClicking() 110 PackageManager.PERMISSION_DENIED) { in tryClicking()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 19 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/ |
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/content/src/android/content/pm/cts/ |
D | PermissionFeatureTest.java | 81 assertEquals(PackageManager.PERMISSION_DENIED, in assertPermissionDenied()
|
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/ |
D | DeviceStateTest.java | 21 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/ |
D | UiAutomationTest.java | 136 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/ |
D | AutoRevokeTest.kt | 26 import android.content.pm.PackageManager.PERMISSION_DENIED in <lambda>() 151 assertPermission(PERMISSION_DENIED) in <lambda>() 261 assertPermission(PERMISSION_DENIED) in <lambda>()
|
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/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/ |
D | BaseNetworkService.java | 135 if (hasPerm != PackageManager.PERMISSION_DENIED) {
|
/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 | BaseJobSchedulerTest.java | 152 != PackageManager.PERMISSION_DENIED) { in waitPermissionRevoke()
|
/cts/hostsidetests/accounts/test-apps/AccountManagerCrossUserApp/src/com/android/cts/accountmanager/ |
D | AccountManagerCrossUserTest.java | 236 mContext.getPackageName())).isEqualTo(PackageManager.PERMISSION_DENIED); in assertPermissionRevoked()
|