Home
last modified time | relevance | path

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

/cts/tests/tests/permission3/src/android/permission3/cts/
DPermissionTest23.kt50 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, true) in testGranted()
51 assertAppHasPermission(android.Manifest.permission.WRITE_CALENDAR, true) in testGranted()
58 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, false) in testInteractiveGrant()
59 assertAppHasPermission(android.Manifest.permission.WRITE_CALENDAR, false) in testInteractiveGrant()
77 assertAppHasPermission(android.Manifest.permission.READ_CONTACTS, false) in testRuntimeGroupGrantSpecificity()
78 assertAppHasPermission(android.Manifest.permission.WRITE_CONTACTS, false) in testRuntimeGroupGrantSpecificity()
87 assertAppHasPermission(android.Manifest.permission.READ_CONTACTS, false) in testRuntimeGroupGrantSpecificity()
93 assertAppHasPermission(android.Manifest.permission.WRITE_CONTACTS, false) in testCancelledPermissionRequest()
105 assertAppHasPermission(android.Manifest.permission.WRITE_CONTACTS, false) in testRequestGrantedPermission()
121 assertAppHasPermission(android.Manifest.permission.WRITE_CONTACTS, false) in testDenialWithPrejudice()
[all …]
DPermissionGroupTest.kt54 assertAppHasPermission(android.Manifest.permission.RECEIVE_SMS, false) in testPartiallyGrantedGroupExpansion()
55 assertAppHasPermission(android.Manifest.permission.SEND_SMS, false) in testPartiallyGrantedGroupExpansion()
60 assertAppHasPermission(android.Manifest.permission.RECEIVE_SMS, true) in testPartiallyGrantedGroupExpansion()
66 assertAppHasPermission(android.Manifest.permission.SEND_SMS, true) in testPartiallyGrantedGroupExpansion()
71 assertAppHasPermission(android.Manifest.permission.RECEIVE_SMS, false) in testRuntimeGroupGrantExpansion()
72 assertAppHasPermission(android.Manifest.permission.SEND_SMS, false) in testRuntimeGroupGrantExpansion()
80 assertAppHasPermission(android.Manifest.permission.SEND_SMS, expectExpansion) in testRuntimeGroupGrantExpansion()
DPermissionTest30.kt34 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testCantRequestFgAndBgAtOnce()
35 assertAppHasPermission(ACCESS_BACKGROUND_LOCATION, false) in testCantRequestFgAndBgAtOnce()
46 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testRequestBothInSequence()
47 assertAppHasPermission(ACCESS_BACKGROUND_LOCATION, false) in testRequestBothInSequence()
63 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testRequestFgLocationAndNoAccuracyOptions()
64 assertAppHasPermission(ACCESS_COARSE_LOCATION, false) in testRequestFgLocationAndNoAccuracyOptions()
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.kt44 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testTapjackGrantDialog_fullOverlay()
63 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in testTapjackGrantDialog_partialOverlay()
96 assertAppHasPermission(ACCESS_FINE_LOCATION, true) in tryClicking()
102 assertAppHasPermission(ACCESS_FINE_LOCATION, false) in tryClicking()
114 assertAppHasPermission(ACCESS_FINE_LOCATION, true) in tryClicking()
DPermissionUpgradeTest.kt70 assertAppHasPermission(it, true) in assertAllPermissionsGrantedByDefault()
97 assertAppHasPermission(android.Manifest.permission.WRITE_CALENDAR, false) in testRevokePropagatedOnUpgradeOldToNewModel()
105 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, false) in testRevokePropagatedOnUpgradeNewToNewModel()
106 assertAppHasPermission(android.Manifest.permission.READ_EXTERNAL_STORAGE, false) in testRevokePropagatedOnUpgradeNewToNewModel()
117 assertAppHasPermission(android.Manifest.permission.READ_CALENDAR, true) in testRevokePropagatedOnUpgradeNewToNewModel()
119 assertAppHasPermission(android.Manifest.permission.READ_EXTERNAL_STORAGE, false) in testRevokePropagatedOnUpgradeNewToNewModel()
151 assertAppHasPermission(it, expectPermissions) in assertAppHasAllOrNoPermissions()
DPermissionSplitTest.kt57 assertAppHasPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, false) in testLocationPermissionSplit()
58 assertAppHasPermission(android.Manifest.permission.ACCESS_BACKGROUND_LOCATION, false) in testLocationPermissionSplit()
70 assertAppHasPermission(android.Manifest.permission.ACCESS_BACKGROUND_LOCATION, expectSplit) in testLocationPermissionSplit()
DBaseUsePermissionTest.kt279 assertAppHasPermission(permission, it.second) in <lambda>()
634 protected fun assertAppHasPermission(permissionName: String, expectPermission: Boolean) { in <lambda>() method in android.permission3.cts.BaseUsePermissionTest