/cts/tests/tests/companion/core/src/android/companion/cts/core/ |
D | SelfPresenceReportingTest.kt | 57 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 …]
|
D | InactiveSelfManagedAssociationsRemovalTest.kt | 48 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()
|
D | TransportsListenerTest.kt | 61 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>()
|
D | DeviceEventDeviceLockedTest.kt | 66 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()
|
D | AssociationsCleanUpTest.kt | 50 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>()
|
D | RetrieveAssociationsTest.kt | 145 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()
|
D | DisassociateTest.kt | 97 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()
|
D | LegacyDisassociateTest.kt | 77 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()
|
D | DeviceEventTest.kt | 42 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()
|
D | ObservingDevicePresenceTest.kt | 92 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()
|
D | DeviceAssociatedForWifiConnectionTest.kt | 56 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()
|
D | AssociationsChangedListenerTest.kt | 69 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>()
|
D | DumpSysTest.kt | 61 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()
|
D | AssociateTest.kt | 106 val association = withShellPermissionIdentity { in <lambda>() 115 withShellPermissionIdentity { in <lambda>() 119 val associationWithTag = withShellPermissionIdentity { in <lambda>() 130 val association = withShellPermissionIdentity { in <lambda>()
|
D | ObservingDeviceUuidEventTest.kt | 76 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()
|
D | AssociateSelfManagedTest.kt | 65 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()
|
D | DeviceProfilesTest.kt | 71 withShellPermissionIdentity(permission) { in <lambda>() 83 fun test_unsupportedProfiles() = withShellPermissionIdentity { in <lambda>()
|
D | BackupAndRestoreTest.kt | 207 withShellPermissionIdentity { in <lambda>() 219 withShellPermissionIdentity { in <lambda>()
|
/cts/tests/tests/companion/multiprocess/src/android/companion/cts/multiprocess/ |
D | RebindServiceTest.kt | 54 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>()
|
D | BinderLifecycleTest.kt | 48 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/ |
D | AssociationRevokedTest.kt | 66 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>()
|
D | UiAutomationTestBase.kt | 99 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>()
|
D | AssociationRevokedTestBase.kt | 73 val roleHolders = withShellPermissionIdentity(Manifest.permission.MANAGE_ROLE_HOLDERS) { in getRoleHolders()
|
/cts/tests/tests/companion/noservices/src/android/companion/cts/noservices/ |
D | NoCompanionDeviceServiceTest.kt | 59 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/ |
D | TestBase.kt | 90 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()
|