Home
last modified time | relevance | path

Searched refs:withShellPermissionIdentity (Results 1 – 25 of 26) sorted by relevance

12

/cts/tests/tests/companion/core/src/android/companion/cts/core/
DSelfPresenceReportingTest.kt57 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_selfReporting_singleDevice_multipleServices()
60 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_selfReporting_singleDevice_multipleServices()
78 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_selfReporting_singleDevice_multipleServices()
97 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_selfReporting_multipleDevices_multipleServices()
112 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_selfReporting_multipleDevices_multipleServices()
127 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_selfReporting_multipleDevices_multipleServices()
139 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_selfReporting_multipleDevices_multipleServices()
153 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_notifyAppearAndDisappear_invalidId()
158 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_notifyAppearAndDisappear_invalidId()
163 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_notifyAppearAndDisappear_invalidId()
[all …]
DInactiveSelfManagedAssociationsRemovalTest.kt48 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_inactive_associations_removal()
53 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_inactive_associations_removal()
62 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_inactive_associations_removal()
80 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in <lambda>()
92 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in <lambda>()
114 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_active_associations_do_not_get_removed()
123 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_active_associations_do_not_get_removed()
DTransportsListenerTest.kt61 withShellPermissionIdentity(Manifest.permission.USE_COMPANION_TRANSPORTS) { in <lambda>()
73 withShellPermissionIdentity(Manifest.permission.USE_COMPANION_TRANSPORTS) { in <lambda>()
92 withShellPermissionIdentity(Manifest.permission.USE_COMPANION_TRANSPORTS) { in <lambda>()
104 withShellPermissionIdentity(Manifest.permission.USE_COMPANION_TRANSPORTS) { in <lambda>()
123 withShellPermissionIdentity(Manifest.permission.USE_COMPANION_TRANSPORTS) { in <lambda>()
135 withShellPermissionIdentity(Manifest.permission.USE_COMPANION_TRANSPORTS) { in <lambda>()
146 withShellPermissionIdentity(Manifest.permission.USE_COMPANION_TRANSPORTS) { in <lambda>()
173 withShellPermissionIdentity(Manifest.permission.USE_COMPANION_TRANSPORTS) { in <lambda>()
178 withShellPermissionIdentity(Manifest.permission.USE_COMPANION_TRANSPORTS) { in <lambda>()
DDeviceEventDeviceLockedTest.kt66 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_ble_event_on_device_locked()
91 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_ble_event_on_device_locked()
106 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_bt_event_on_device_locked()
131 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_bt_event_on_device_locked()
146 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_bt_ble_event_on_device_locked()
177 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_bt_ble_event_on_device_locked()
219 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_ble_event_disappeared_before_device_unlocked()
246 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_ble_event_disappeared_before_device_unlocked()
260 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_bt_event_disconnected_before_device_unlocked()
282 withShellPermissionIdentity( in test_bt_event_disconnected_before_device_unlocked()
DAssociationsCleanUpTest.kt50 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
63 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
76 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
89 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
96 withShellPermissionIdentity { in <lambda>()
DRetrieveAssociationsTest.kt145 withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in test_getAllAssociations_requiresPermission()
154 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
160 assertEmpty(withShellPermissionIdentity { cdm.allAssociations }) in <lambda>()
167 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
173 assertEmpty(withShellPermissionIdentity { cdm.allAssociations }) in <lambda>()
182 actual = withShellPermissionIdentity { cdm.allAssociations }, in test_getAllAssociations_sameAndOtherApps()
199 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_ObservePresence_updatesAssociationInfo()
217 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_associationChanges_persistCorrectly()
DDisassociateTest.kt97 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
101 val association = withShellPermissionIdentity { in <lambda>()
113 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
121 withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in <lambda>()
125 withShellPermissionIdentity { in <lambda>()
134 withShellPermissionIdentity { in test_disassociate_invalidId()
DLegacyDisassociateTest.kt77 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
87 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
94 withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in <lambda>()
99 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
108 withShellPermissionIdentity { in test_disassociate_invalidId()
DDeviceEventTest.kt42 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_ble_device_event()
62 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_ble_device_event()
72 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_classic_bt_device_event()
92 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_classic_bt_device_event()
102 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_both_bt_ble_device_event()
127 withShellPermissionIdentity(Manifest.permission.REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_both_bt_ble_device_event()
DObservingDevicePresenceTest.kt92 withShellPermissionIdentity(REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_startObservingDevicePresence_requiresPermission()
104 withShellPermissionIdentity(REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_startObservingDevicePresence_singleDevice()
147 withShellPermissionIdentity(REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_stopObservingDevicePresence()
189 withShellPermissionIdentity(REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_startObservingDevicePresence_alreadyPresent()
214 withShellPermissionIdentity(REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_startObservingDevicePresence_multipleDevices()
288 withShellPermissionIdentity(REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_stopObservingDevicePresence_unbindsApplication()
307 withShellPermissionIdentity(REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_stopObservingDevicePresence_unbindsApplication()
316 withShellPermissionIdentity(REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_stopObservingDevicePresence_unbindsApplication()
DDeviceAssociatedForWifiConnectionTest.kt56 withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in test_isDeviceAssociatedForWifiConnection_no_association()
63 withShellPermissionIdentity(MANAGE_COMPANION_DEVICES, COMPANION_APPROVE_WIFI_CONNECTIONS) { in test_isDeviceAssociatedForWifiConnection_no_association()
74 withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in test_isDeviceAssociatedForWifiConnection_no_wifi_permission()
DAssociationsChangedListenerTest.kt69 withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in <lambda>()
81 withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in <lambda>()
97 withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in <lambda>()
117 withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in <lambda>()
124 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in <lambda>()
DDumpSysTest.kt61 withShellPermissionIdentity(Manifest.permission.REQUEST_COMPANION_SELF_MANAGED) { in test_dump_singleDevice()
72 withShellPermissionIdentity(Manifest.permission.REQUEST_COMPANION_SELF_MANAGED) { in test_dump_singleDevice()
92 withShellPermissionIdentity(Manifest.permission.REQUEST_COMPANION_SELF_MANAGED) { in test_dump_multiDevice()
103 withShellPermissionIdentity(Manifest.permission.REQUEST_COMPANION_SELF_MANAGED) { in test_dump_multiDevice()
DAssociateTest.kt106 val association = withShellPermissionIdentity { in <lambda>()
115 withShellPermissionIdentity { in <lambda>()
119 val associationWithTag = withShellPermissionIdentity { in <lambda>()
130 val association = withShellPermissionIdentity { in <lambda>()
DObservingDeviceUuidEventTest.kt76 withShellPermissionIdentity( in test_startObservingDeviceUuidPresence_requiresPermission()
84 withShellPermissionIdentity( in test_startObservingDeviceUuidPresence_requiresPermission()
92 withShellPermissionIdentity( in test_startObservingDeviceUuidPresence_requiresPermission()
196 withShellPermissionIdentity(REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_observingDevicePresence_bothAssociationAndUuid()
215 withShellPermissionIdentity(REQUEST_OBSERVE_COMPANION_DEVICE_PRESENCE) { in test_observingDevicePresence_bothAssociationAndUuid()
DAssociateSelfManagedTest.kt65 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_associate_selfManaged_requiresPermission()
79 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_associate_selfManaged_nullProfile_leadsToNoUiFlow()
114 withShellPermissionIdentity( in test_associate_selfManaged_alreadyRoleHolder_leadsToNoUiFlow()
DDeviceProfilesTest.kt71 withShellPermissionIdentity(permission) { in <lambda>()
83 fun test_unsupportedProfiles() = withShellPermissionIdentity { in <lambda>()
DBackupAndRestoreTest.kt207 withShellPermissionIdentity { in <lambda>()
219 withShellPermissionIdentity { in <lambda>()
/cts/tests/tests/companion/multiprocess/src/android/companion/cts/multiprocess/
DRebindServiceTest.kt54 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in <lambda>()
70 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in <lambda>()
85 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in <lambda>()
110 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in <lambda>()
125 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in <lambda>()
DBinderLifecycleTest.kt48 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_binderDied_primaryProcess()
67 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_binderDied_secondaryProcess()
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DAssociationRevokedTest.kt66 val associations = withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in <lambda>()
81 withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in <lambda>()
104 val associations = withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in <lambda>()
119 withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in <lambda>()
DUiAutomationTestBase.kt99 withShellPermissionIdentity { roleManager.isBypassingRoleQualification = true } in <lambda>()
109 withShellPermissionIdentity { roleManager.isBypassingRoleQualification = false } in <lambda>()
332 withShellPermissionIdentity(*toTypedArray()) { in <lambda>()
363 val roleHolders = withShellPermissionIdentity(Manifest.permission.MANAGE_ROLE_HOLDERS) { in <lambda>()
DAssociationRevokedTestBase.kt73 val roleHolders = withShellPermissionIdentity(Manifest.permission.MANAGE_ROLE_HOLDERS) { in getRoleHolders()
/cts/tests/tests/companion/noservices/src/android/companion/cts/noservices/
DNoCompanionDeviceServiceTest.kt59 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_noService()
81 withShellPermissionIdentity(REQUEST_COMPANION_SELF_MANAGED) { in test_noService()
/cts/tests/tests/companion/common/src/android/companion/cts/common/
DTestBase.kt90 assertEmpty(withShellPermissionIdentity { in base_setUp()
109 withShellPermissionIdentity { cdm.disassociateAll() } in base_tearDown()
120 protected fun <T> withShellPermissionIdentity( in withShellPermissionIdentity() method in android.companion.cts.common.TestBase
147 withShellPermissionIdentity(Manifest.permission.REQUEST_COMPANION_SELF_MANAGED) { in createSelfManagedAssociation()
171 withShellPermissionIdentity { in setSystemPropertyDuration()
179 withShellPermissionIdentity { in disableLocation()

12