Home
last modified time | relevance | path

Searched refs:assertAppHasPermission (Results 1 – 16 of 16) sorted by relevance

/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DPermissionRationalePermissionGrantDialogTest.kt69 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in requestLocationPerm_flagDisabled_noPermissionRationale()
70 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in requestLocationPerm_flagDisabled_noPermissionRationale()
81 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in requestLocationPerm_apkHasNoInstallSource_noPermissionRationale()
82 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in requestLocationPerm_apkHasNoInstallSource_noPermissionRationale()
93 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in requestLocationPerm_noAppMetadata_noPermissionRationale()
94 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in requestLocationPerm_noAppMetadata_noPermissionRationale()
105 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in requestLocationPerm_nullAppMetadata_noPermissionRationale()
106 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in requestLocationPerm_nullAppMetadata_noPermissionRationale()
117 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in requestLocationPerm_emptyAppMetadata_noPermissionRationale()
118 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in requestLocationPerm_emptyAppMetadata_noPermissionRationale()
[all …]
DLocationAccuracyTest.kt56 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testCoarsePermissionIsGranted()
57 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in testCoarsePermissionIsGranted()
58 assertAppHasPermission(ACCESS_BACKGROUND_LOCATION, false) in testCoarsePermissionIsGranted()
75 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testPrecisePermissionIsGranted()
76 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in testPrecisePermissionIsGranted()
77 assertAppHasPermission(ACCESS_BACKGROUND_LOCATION, false) in testPrecisePermissionIsGranted()
94 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testPermissionUpgradeFlow()
95 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in testPermissionUpgradeFlow()
96 assertAppHasPermission(ACCESS_BACKGROUND_LOCATION, false) in testPermissionUpgradeFlow()
122 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testCoarseRequestAndGrant()
[all …]
DPermissionTest23.kt53 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, true) in testGranted()
54 assertAppHasPermission(android.Manifest.permission.WRITE_CALENDAR, true) in testGranted()
62 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, false) in testInteractiveGrant()
63 assertAppHasPermission(android.Manifest.permission.WRITE_CALENDAR, false) in testInteractiveGrant()
82 assertAppHasPermission(android.Manifest.permission.READ_CONTACTS, false) in testRuntimeGroupGrantSpecificity()
83 assertAppHasPermission(android.Manifest.permission.WRITE_CONTACTS, false) in testRuntimeGroupGrantSpecificity()
92 assertAppHasPermission(android.Manifest.permission.READ_CONTACTS, false) in testRuntimeGroupGrantSpecificity()
99 assertAppHasPermission(android.Manifest.permission.WRITE_CONTACTS, false) in testCancelledPermissionRequest()
112 assertAppHasPermission(android.Manifest.permission.WRITE_CONTACTS, false) in testRequestGrantedPermission()
132 assertAppHasPermission(android.Manifest.permission.WRITE_CONTACTS, false) in testDenialWithPrejudice()
[all …]
DMediaPermissionTest.kt39 assertAppHasPermission(permission, state) in assertStorageAndMediaPermissionState()
126 assertAppHasPermission(Manifest.permission.READ_EXTERNAL_STORAGE, false) in testWhenA33AppRequestsAuralThenDialogAndGrant()
127 assertAppHasPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, false) in testWhenA33AppRequestsAuralThenDialogAndGrant()
128 assertAppHasPermission(Manifest.permission.READ_MEDIA_AUDIO, true) in testWhenA33AppRequestsAuralThenDialogAndGrant()
129 assertAppHasPermission(Manifest.permission.READ_MEDIA_VIDEO, false) in testWhenA33AppRequestsAuralThenDialogAndGrant()
130 assertAppHasPermission(Manifest.permission.READ_MEDIA_IMAGES, false) in testWhenA33AppRequestsAuralThenDialogAndGrant()
146 assertAppHasPermission(Manifest.permission.READ_EXTERNAL_STORAGE, false) in testWhenA33AppRequestsVisualThenDialogAndGrant()
147 assertAppHasPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, false) in testWhenA33AppRequestsVisualThenDialogAndGrant()
148 assertAppHasPermission(Manifest.permission.READ_MEDIA_AUDIO, false) in testWhenA33AppRequestsVisualThenDialogAndGrant()
149 assertAppHasPermission(Manifest.permission.READ_MEDIA_VIDEO, true) in testWhenA33AppRequestsVisualThenDialogAndGrant()
[all …]
DPermissionTest29.kt46 assertAppHasPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, false) in assertAppHasNoPermissions()
47 assertAppHasPermission(android.Manifest.permission.ACCESS_BACKGROUND_LOCATION, false) in assertAppHasNoPermissions()
57 assertAppHasPermission(android.Manifest.permission.ACCESS_BACKGROUND_LOCATION, false) in testRequestOnlyBackgroundNotPossible()
80 assertAppHasPermission(android.Manifest.permission.ACCESS_BACKGROUND_LOCATION, false) in testRequestBothInSequence()
90 assertAppHasPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, true) in testRequestBothInSequence()
153 assertAppHasPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, false) in testGrantDialogToSettingsNoOp()
154 assertAppHasPermission(android.Manifest.permission.ACCESS_BACKGROUND_LOCATION, false) in testGrantDialogToSettingsNoOp()
167 assertAppHasPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, true) in testGrantDialogToSettingsNoOp()
168 assertAppHasPermission(android.Manifest.permission.ACCESS_BACKGROUND_LOCATION, false) in testGrantDialogToSettingsNoOp()
211 assertAppHasPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, false) in testGrantDialogToSettingsDowngrade()
[all …]
DPermissionGroupTest.kt54 assertAppHasPermission(android.Manifest.permission.RECEIVE_SMS, false) in testPartiallyGrantedGroupExpansion()
55 assertAppHasPermission(android.Manifest.permission.SEND_SMS, false) in testPartiallyGrantedGroupExpansion()
62 assertAppHasPermission(android.Manifest.permission.RECEIVE_SMS, true) in testPartiallyGrantedGroupExpansion()
71 assertAppHasPermission(android.Manifest.permission.SEND_SMS, true) in testPartiallyGrantedGroupExpansion()
76 assertAppHasPermission(android.Manifest.permission.RECEIVE_SMS, false) in testRuntimeGroupGrantExpansion()
77 assertAppHasPermission(android.Manifest.permission.SEND_SMS, false) in testRuntimeGroupGrantExpansion()
88 assertAppHasPermission(android.Manifest.permission.SEND_SMS, expectExpansion) in testRuntimeGroupGrantExpansion()
DSafetyProtectionTest.kt57 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in testSafetyProtectionSectionView_safetyProtection_belowT()
58 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testSafetyProtectionSectionView_safetyProtection_belowT()
69 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in testSafetyProtectionSectionView_safetyProtectionDisabled_aboveT()
70 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testSafetyProtectionSectionView_safetyProtectionDisabled_aboveT()
81 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in testSafetyProtectionSectionView_safetyProtectionEnabled_aboveT()
82 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testSafetyProtectionSectionView_safetyProtectionEnabled_aboveT()
93 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in testSafetyProtectionSectionView_safetyProtectionResourcesNotExist_aboveT()
94 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testSafetyProtectionSectionView_safetyProtectionResourcesNotExist_aboveT()
DPhotoPickerPermissionTest.kt172 assertAppHasPermission(READ_MEDIA_VISUAL_USER_SELECTED, expectPermission = true) in testImplicitUserSelectHasOneTimeGrantsWithoutAppOp()
173 assertAppHasPermission(READ_MEDIA_VIDEO, expectPermission = true) in testImplicitUserSelectHasOneTimeGrantsWithoutAppOp()
197 assertAppHasPermission(READ_MEDIA_VISUAL_USER_SELECTED, true) in testImplicitShowsMorePhotosOnceSet()
274 assertAppHasPermission(READ_MEDIA_VISUAL_USER_SELECTED, expectPermission = true) in testGrantAllPhotosStateSameForImplicitAndNot()
294 assertAppHasPermission(READ_MEDIA_IMAGES, expectPermission = true) in testGrantAllPhotosInSettings()
295 assertAppHasPermission(READ_MEDIA_VIDEO, expectPermission = true) in testGrantAllPhotosInSettings()
296 assertAppHasPermission(ACCESS_MEDIA_LOCATION, expectPermission = true) in testGrantAllPhotosInSettings()
297 assertAppHasPermission(READ_MEDIA_VISUAL_USER_SELECTED, expectPermission = true) in testGrantAllPhotosInSettings()
308 assertAppHasPermission(READ_MEDIA_IMAGES, expectPermission = false) in testSelectPhotosInSettingsImplicit()
309 assertAppHasPermission(READ_MEDIA_VIDEO, expectPermission = false) in testSelectPhotosInSettingsImplicit()
[all …]
DPermissionTest30.kt36 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testCantRequestFgAndBgAtOnce()
37 assertAppHasPermission(ACCESS_BACKGROUND_LOCATION, false) in testCantRequestFgAndBgAtOnce()
51 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testRequestBothInSequence()
52 assertAppHasPermission(ACCESS_BACKGROUND_LOCATION, false) in testRequestBothInSequence()
70 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testRequestFgLocationAndNoAccuracyOptions()
71 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in testRequestFgLocationAndNoAccuracyOptions()
DPermissionSplitTest.kt80 assertAppHasPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, false) in testLocationPermissionSplit()
81 assertAppHasPermission(android.Manifest.permission.ACCESS_BACKGROUND_LOCATION, false) in testLocationPermissionSplit()
98 assertAppHasPermission(android.Manifest.permission.ACCESS_BACKGROUND_LOCATION, expectSplit) in testLocationPermissionSplit()
102 assertAppHasPermission(android.Manifest.permission.BODY_SENSORS, false) in testBodySensorPermissionSplit()
103 assertAppHasPermission(android.Manifest.permission.BODY_SENSORS_BACKGROUND, false) in testBodySensorPermissionSplit()
120 assertAppHasPermission(android.Manifest.permission.BODY_SENSORS_BACKGROUND, expectSplit) in testBodySensorPermissionSplit()
DPermissionUpgradeTest.kt70 .forEach { assertAppHasPermission(it, true) } in assertAllPermissionsGrantedByDefault()
96 assertAppHasPermission(android.Manifest.permission.WRITE_CALENDAR, false) in testRevokePropagatedOnUpgradeOldToNewModel()
104 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, false) in testRevokePropagatedOnUpgradeNewToNewModel()
105 assertAppHasPermission(android.Manifest.permission.READ_EXTERNAL_STORAGE, false) in testRevokePropagatedOnUpgradeNewToNewModel()
118 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, true) in testRevokePropagatedOnUpgradeNewToNewModel()
120 assertAppHasPermission(android.Manifest.permission.READ_EXTERNAL_STORAGE, false) in testRevokePropagatedOnUpgradeNewToNewModel()
152 .forEach { assertAppHasPermission(it, expectPermissions) } in assertAppHasAllOrNoPermissions()
DPermissionTest22.kt39 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, true) in testCompatDefault()
40 assertAppHasPermission(android.Manifest.permission.WRITE_CALENDAR, true) in testCompatDefault()
50 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, true) in testCompatRevoked()
51 assertAppHasPermission(android.Manifest.permission.WRITE_CALENDAR, true) in testCompatRevoked()
DPermissionTapjackingTest.kt49 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testTapjackGrantDialog_fullOverlay()
72 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testTapjackGrantDialog_partialOverlay()
112 assertAppHasPermission(ACCESS_FINE_LOCATION, true) in tryClicking()
120 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in tryClicking()
133 assertAppHasPermission(ACCESS_FINE_LOCATION, true) in tryClicking()
DPermissionRationaleTest.kt76 assertAppHasPermission(Manifest.permission.ACCESS_FINE_LOCATION, false) in <lambda>()
191 assertAppHasPermission(Manifest.permission.ACCESS_FINE_LOCATION, true) in <lambda>()
209 assertAppHasPermission(Manifest.permission.ACCESS_FINE_LOCATION, false) in <lambda>()
DBaseUsePermissionTest.kt770 it.first?.let { permission -> assertAppHasPermission(permission, it.second) } in <lambda>()
1403 protected fun assertAppHasPermission(permissionName: String, expectPermission: Boolean) { in <lambda>() method in android.permissionui.cts.BaseUsePermissionTest
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DRevokeSawPermissionTest.kt47 assertAppHasPermission(android.Manifest.permission.SYSTEM_ALERT_WINDOW, true) in testPre23AppsWithSystemAlertWindowGetDeniedOnUpgrade()
49 assertAppHasPermission(android.Manifest.permission.SYSTEM_ALERT_WINDOW, false) in testPre23AppsWithSystemAlertWindowGetDeniedOnUpgrade()
52 private fun assertAppHasPermission(permissionName: String, expectPermission: Boolean) { in assertAppHasPermission() method