/cts/tests/tests/security/src/android/security/cts/ |
D | PermissionBackupCertificateCheckTest.kt | 107 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)) in testRestore_sameCert_restoresRuntimePermissions() 130 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_diffCert_doesNotGrantRuntimePermissions() 131 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)) in testRestore_diffCert_doesNotGrantRuntimePermissions() 155 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)) in testRestore_midHistoryToRotated_restoresRuntimePermissions() 179 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)) in testRestore_origToRotated_restoresRuntimePermissions() 203 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)) in testRestore_rotatedToMidHistory_restoresRuntimePermissions() 227 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)) in testRestore_rotatedToOrig_restoresRuntimePermissions() 252 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)) in testRestore_sameWithHistory_restoresRuntimePermissions() 277 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)) in testRestore_sameWithoutHistory_restoresRuntimePermissions() 300 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_FINE_LOCATION)) in testRestore_notInBackedUpHistory_doesNotRestoreRuntimePerms() [all …]
|
/cts/tests/tests/slice/src/android/slice/cts/ |
D | SlicePermissionsTest.java | 17 import static android.content.pm.PackageManager.PERMISSION_DENIED; 74 assertEquals(PERMISSION_DENIED, in testGrant() 90 assertEquals(PERMISSION_DENIED, in testGrantParent() 106 assertEquals(PERMISSION_DENIED, in testGrantParentExpands() 114 assertEquals(PERMISSION_DENIED, in testGrantParentExpands() 133 assertEquals(PERMISSION_DENIED, in testGrantChild() 139 assertEquals(PERMISSION_DENIED, in testGrantChild() 146 assertEquals(PERMISSION_DENIED, in testRevoke() 156 assertEquals(PERMISSION_DENIED, in testRevoke() 166 assertEquals(PERMISSION_DENIED, in testRevokeParent() [all …]
|
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | VirtualDevicePermissionTest.java | 96 .isEqualTo(PackageManager.PERMISSION_DENIED); in setUp() 114 .isEqualTo(PackageManager.PERMISSION_DENIED); in normalPermissionDenied_appRunningOnDefaultDevice_hasPermissionDenied() 120 .isEqualTo(PackageManager.PERMISSION_DENIED); in normalPermissionDenied_appRunningOnVirtualDevice_hasPermissionDenied() 138 .isEqualTo(PackageManager.PERMISSION_DENIED); in dangerousPermissionDenied_appRunningOnDefaultDevice_hasPermissionDenied() 145 .isEqualTo(PackageManager.PERMISSION_DENIED); in dangerousPermissionDenied_appRunningOnVirtualDevice_hasPermissionDenied() 167 .isEqualTo(PackageManager.PERMISSION_DENIED); in privilegedPermissionDenied_appRunningOnDefaultDevice_hasPermissionDenied() 173 .isEqualTo(PackageManager.PERMISSION_DENIED); in privilegedPermissionDenied_appRunningOnVirtualDevice_hasPermissionDenied() 195 .isEqualTo(PackageManager.PERMISSION_DENIED); in signaturePermissionDenied_appRunningOnDefaultDevice_hasPermissionDenied() 201 .isEqualTo(PackageManager.PERMISSION_DENIED); in signaturePermissionDenied_appRunningOnVirtualDevice_hasPermissionDenied()
|
/cts/hostsidetests/media/app/MediaRouterWithModifyAudioRoutingApp/src/android/media/router/cts/modifyaudioroutingapp/ |
D | MediaRouter2DeviceTestWithModifyAudioRouting.java | 84 .isEqualTo(PackageManager.PERMISSION_DENIED); in getSystemController_withModifyAudioRouting_returnsDeviceRoute() 86 .isEqualTo(PackageManager.PERMISSION_DENIED); in getSystemController_withModifyAudioRouting_returnsDeviceRoute() 102 .isEqualTo(PackageManager.PERMISSION_DENIED); in getRoutes_withModifyAudioRouting_returnsDeviceRoute() 104 .isEqualTo(PackageManager.PERMISSION_DENIED); in getRoutes_withModifyAudioRouting_returnsDeviceRoute()
|
/cts/common/device-side/bedstead/modules/permissions/src/test/kotlin/com/android/bedstead/permissions/ |
D | PermissionsAnnotationExecutorTest.kt | 67 .isEqualTo(PackageManager.PERMISSION_DENIED) in <lambda>() 74 .isEqualTo(PackageManager.PERMISSION_DENIED) in <lambda>() 76 .isEqualTo(PackageManager.PERMISSION_DENIED) in <lambda>() 90 .isEqualTo(PackageManager.PERMISSION_DENIED) in <lambda>()
|
D | PermissionsTest.kt | 59 .isEqualTo(PackageManager.PERMISSION_DENIED) in default_permissionIsNotGranted() 99 )).isEqualTo(PackageManager.PERMISSION_DENIED) in withoutPermission_permissionIsNotGranted() 143 .isEqualTo(PackageManager.PERMISSION_DENIED) in withoutPermission_permissionIsAlreadyGrantedInInstrumentedApp_permissionIsNotGranted() 192 .isEqualTo(PackageManager.PERMISSION_DENIED) in withPermissionAndWithoutPermission_bothApplied() 205 .isEqualTo(PackageManager.PERMISSION_DENIED) in withoutPermissionAndWithPermission_bothApplied()
|
/cts/hostsidetests/media/app/ProxyMediaRouterMediaRoutingControl/src/android/media/router/cts/proxyroutingapp/ |
D | MediaRouter2DeviceTest.java | 140 .isEqualTo(PackageManager.PERMISSION_DENIED); in getInstance_withoutMediaRoutingControl_throwsSecurityException() 175 .isEqualTo(PackageManager.PERMISSION_DENIED); in getInstance_withinUser_withoutMediaRoutingControl_throwsSecurityException() 177 .isEqualTo(PackageManager.PERMISSION_DENIED); in getInstance_withinUser_withoutMediaRoutingControl_throwsSecurityException() 441 .isEqualTo(PackageManager.PERMISSION_DENIED); in revokingMediaRoutingControl_onAppOpsManager_revokesProxyRouterAccess() 443 .isEqualTo(PackageManager.PERMISSION_DENIED); in revokingMediaRoutingControl_onAppOpsManager_revokesProxyRouterAccess() 480 .isEqualTo(PackageManager.PERMISSION_DENIED); in revokeMediaRoutingControl_callsAllOnInstanceInvalidatedListeners() 482 .isEqualTo(PackageManager.PERMISSION_DENIED); in revokeMediaRoutingControl_callsAllOnInstanceInvalidatedListeners() 521 .isEqualTo(PackageManager.PERMISSION_DENIED); in getInstance_withRevocableMediaRoutingControl_throwsWithNoCallback() 523 .isEqualTo(PackageManager.PERMISSION_DENIED); in getInstance_withRevocableMediaRoutingControl_throwsWithNoCallback() 554 .isEqualTo(PackageManager.PERMISSION_DENIED); in revokeMediaRoutingControl_invalidatesAllInstancesAcrossTargetPackageNames() [all …]
|
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/ |
D | PermissionUtils.java | 22 import static android.content.pm.PackageManager.PERMISSION_DENIED; 105 case PERMISSION_DENIED: in launchActivityAndRequestPermission() 185 == PERMISSION_DENIED) { in checkPermissionAndAppOps() 186 return PERMISSION_DENIED; in checkPermissionAndAppOps() 194 return PERMISSION_DENIED; in checkPermissionAndAppOps() 218 case PERMISSION_DENIED: in findPermissionPromptButton() 269 case PERMISSION_DENIED: in findPermissionPromptButtonAutomotive()
|
/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/tests/wearable/src/android/wearable/cts/ |
D | WearableSensingManagerTest.java | 117 assertEquals(PackageManager.PERMISSION_DENIED, mContext.checkCallingOrSelfPermission( in noAccessWhenAttemptingprovideDataStream() 129 assertEquals(PackageManager.PERMISSION_DENIED, mContext.checkCallingOrSelfPermission( in noAccessWhenAttemptingProvideData() 143 PackageManager.PERMISSION_DENIED, in noAccessWhenAttemptingProvideConnection() 164 PackageManager.PERMISSION_DENIED, in noAccessWhenAttemptingRegisterDataRequestObserver() 184 PackageManager.PERMISSION_DENIED, in noAccessWhenAttemptingUnregisterDataRequestObserver() 204 PackageManager.PERMISSION_DENIED, in noAccessWhenAttemptingStartHotwordRecognition() 220 PackageManager.PERMISSION_DENIED, in noAccessWhenAttemptingStopHotwordRecognition()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 30 import static android.content.pm.PackageManager.PERMISSION_DENIED; 109 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)); in testGrantDeniedRuntimePermission() 155 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testNoTriStateRuntimePermission() 156 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testNoTriStateRuntimePermission() 196 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testGrantForegroundRuntimePermission() 325 eventually(() -> assertEquals(PERMISSION_DENIED, checkPermission(APP, WRITE_CONTACTS))); in testRestoreOfFlagDoesNotGrantPermission()
|
/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/app/src/android/app/cts/ |
D | ComponentCallerTest.java | 63 import static android.content.pm.PackageManager.PERMISSION_DENIED; 220 PERMISSION_DENIED, TestResults.sCheckContentUriPermissionRes); in testActivityInitialCaller_checkContentUriPermission_getDataContentUriViaPermission_noPermission() 255 PERMISSION_DENIED, TestResults.sCheckContentUriPermissionRes); in testActivityInitialCaller_checkContentUriPermission_getDataContentUriViaPermission_hasReadButNoWrite() 274 PERMISSION_DENIED, TestResults.sCheckContentUriPermissionRes); in testActivityInitialCaller_checkContentUriPermission_clipDataContentUri_noPermission() 311 PERMISSION_DENIED, TestResults.sCheckContentUriPermissionRes); in testActivityInitialCaller_checkContentUriPermission_clipDataContentUri_hasReadButNoWrite() 330 PERMISSION_DENIED, TestResults.sCheckContentUriPermissionRes); in testActivityInitialCaller_checkContentUriPermission_extraStreamContentUri_noPermission() 367 PERMISSION_DENIED, TestResults.sCheckContentUriPermissionRes); in testActivityInitialCaller_checkContentUriPermission_extraStreamContentUri_hasReadButNoWrite() 388 PERMISSION_DENIED, TestResults.sCheckContentUriPermissionRes); in testActivityInitialCaller_checkContentUriPermission_arrayListExtraStreamsContentUri_noPermission() 429 PERMISSION_DENIED, TestResults.sCheckContentUriPermissionRes); in testActivityInitialCaller_checkContentUriPermission_arrayListExtraStreamsContentUri_hasReadButNoWrite() 608 PERMISSION_DENIED, TestResults.sCheckContentUriPermissionRes); in testActivityNewIntentCaller_checkContentUriPermission_getDataContentUriViaPermission_noPermission() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PermissionsTest.java | 26 import static android.content.pm.PackageManager.PERMISSION_DENIED; 216 PermissionUtils.checkPermissionAndAppOps(context, permission, PERMISSION_DENIED, in assertCanSetPermissionGrantStatePreMApp() 329 PERMISSION_DENIED, PERMISSION_APP_PACKAGE_NAME, PERMISSIONS_ACTIVITY_NAME); in testPermissionPrompts() 330 PermissionUtils.checkPermission(READ_CONTACTS, PERMISSION_DENIED, in testPermissionPrompts() 410 mReceiver, permission, PERMISSION_DENIED, in assertCannotRequestPermissionFromActivity()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40126/src/android/security/cts/CVE_2023_40126/ |
D | DeviceTest.java | 20 import static android.content.pm.PackageManager.PERMISSION_DENIED; 83 == PERMISSION_DENIED) { in testPocCVE_2023_40126()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PermissionFeatureTest.java | 81 assertEquals(PackageManager.PERMISSION_DENIED, in assertPermissionDenied()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 23 import static android.content.pm.PackageManager.PERMISSION_DENIED; 1375 assertEquals(PERMISSION_DENIED, retValue[0]); in testCheckCallingOrSelfUriPermissions() 1376 assertEquals(PERMISSION_DENIED, retValue[1]); in testCheckCallingOrSelfUriPermissions() 1385 assertEquals(PERMISSION_DENIED, retValue); in testCheckCallingOrSelfUriPermission() 1405 assertEquals(PERMISSION_DENIED, returnValue); in testCheckPermissionNotGranted() 1426 assertEquals(PERMISSION_DENIED, returnValue); in testCheckPermissionInvalidRequest() 1438 assertEquals(PERMISSION_DENIED, returnValue); in testCheckSelfPermissionNotGranted() 1466 assertEquals(PERMISSION_DENIED, retValue); in testCheckCallingOrSelfPermission_noIpc() 1479 assertEquals(PERMISSION_DENIED, retValue); in testCheckCallingOrSelfPermission_ipc() 1520 assertEquals(PERMISSION_DENIED, retValue); in testCheckCallingPermission_noIpc() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21254/test-app/src/android/security/cts/CVE_2023_21254_test/ |
D | DeviceTest.java | 22 import static android.content.pm.PackageManager.PERMISSION_DENIED; 75 == PERMISSION_DENIED; in testPocCVE_2023_21254()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21249/test-app/src/android/security/cts/CVE_2023_21249_test/ |
D | DeviceTest.java | 22 import static android.content.pm.PackageManager.PERMISSION_DENIED; 77 == PERMISSION_DENIED; in testPocCVE_2023_21249()
|
/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() 153 != PackageManager.PERMISSION_DENIED) { in onStartJob() 166 != PackageManager.PERMISSION_DENIED) { in onStartJob()
|
/cts/hostsidetests/media/app/MediaRouterWithBTPermissionsApp/src/android/media/router/cts/bluetoothpermissionsapp/ |
D | MediaRouter2DeviceTest.java | 622 .isEqualTo(PackageManager.PERMISSION_DENIED); in getRoutes_withoutBTPermissions_returnsDefaultRoute() 624 .isEqualTo(PackageManager.PERMISSION_DENIED); in getRoutes_withoutBTPermissions_returnsDefaultRoute() 626 .isEqualTo(PackageManager.PERMISSION_DENIED); in getRoutes_withoutBTPermissions_returnsDefaultRoute() 644 .isEqualTo(PackageManager.PERMISSION_DENIED); in getRoutes_withBTPermissions_returnsDeviceRoute() 666 .isEqualTo(PackageManager.PERMISSION_DENIED); in getSystemController_withBTPermissions_returnsDeviceRoute() 684 .isEqualTo(PackageManager.PERMISSION_DENIED); in getSystemController_withoutBTPermissions_returnsDefaultRoute() 686 .isEqualTo(PackageManager.PERMISSION_DENIED); in getSystemController_withoutBTPermissions_returnsDefaultRoute() 688 .isEqualTo(PackageManager.PERMISSION_DENIED); in getSystemController_withoutBTPermissions_returnsDefaultRoute()
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/ |
D | VirtualCameraPermissionTest.java | 153 .isEqualTo(PackageManager.PERMISSION_DENIED); in virtualDevice_doesNotHaveCameraPermissionByDefault() 159 .isEqualTo(PackageManager.PERMISSION_DENIED); in virtualDevice_cameraPermissionGranted()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | MockJobService.java | 99 int permCheckRead = PackageManager.PERMISSION_DENIED; in onStartJob() 100 int permCheckWrite = PackageManager.PERMISSION_DENIED; in onStartJob() 176 != PackageManager.PERMISSION_DENIED) { in onStartJob() 190 != PackageManager.PERMISSION_DENIED) { in onStartJob()
|