Home
last modified time | relevance | path

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

/cts/tests/tests/companion/core/src/android/companion/cts/core/
DDeviceEventTest.kt9 import android.companion.cts.common.PrimaryCompanionService
47 PrimaryCompanionService.waitAssociationToAppear(associationId) in test_ble_device_event()
51 actual = PrimaryCompanionService.getCurrentEvent() in test_ble_device_event()
55 PrimaryCompanionService.waitAssociationToDisappear(associationId) in test_ble_device_event()
58 actual = PrimaryCompanionService.getCurrentEvent() in test_ble_device_event()
61 PrimaryCompanionService.forgetDevicePresence(associationId) in test_ble_device_event()
77 PrimaryCompanionService.waitAssociationToBtConnect(idA) in test_classic_bt_device_event()
80 actual = PrimaryCompanionService.getCurrentEvent() in test_classic_bt_device_event()
84 PrimaryCompanionService.waitAssociationToBtDisconnect(idA) in test_classic_bt_device_event()
85 PrimaryCompanionService.waitAssociationToDisappear(idA) in test_classic_bt_device_event()
[all …]
DObservingDeviceUuidEventTest.kt29 import android.companion.cts.common.PrimaryCompanionService
66 PrimaryCompanionService.clearDeviceUuidPresence() in tearDown()
118 PrimaryCompanionService.waitDeviceUuidConnect(UUID_A) in test_startObservingDeviceUuidPresence_singleDevice()
119 PrimaryCompanionService.getCurrentEvent() in test_startObservingDeviceUuidPresence_singleDevice()
125 PrimaryCompanionService.waitDeviceUuidDisconnect(UUID_A) in test_startObservingDeviceUuidPresence_singleDevice()
126 PrimaryCompanionService.getCurrentEvent() in test_startObservingDeviceUuidPresence_singleDevice()
140 PrimaryCompanionService.waitDeviceUuidConnect(UUID_A) in test_startObservingDeviceUuidPresence_multiDevices()
141 PrimaryCompanionService.getCurrentEvent() in test_startObservingDeviceUuidPresence_multiDevices()
145 actual = PrimaryCompanionService.connectedUuidBondDevices, in test_startObservingDeviceUuidPresence_multiDevices()
152 PrimaryCompanionService.waitDeviceUuidConnect(UUID_B) in test_startObservingDeviceUuidPresence_multiDevices()
[all …]
DDeviceEventDeviceLockedTest.kt24 import android.companion.cts.common.PrimaryCompanionService
51 PrimaryCompanionService.clearConnectedDevices() in tearDown()
52 PrimaryCompanionService.clearDeviceUuidPresence() in tearDown()
82 PrimaryCompanionService.waitAssociationToAppear(associationId) in test_ble_event_on_device_locked()
84 PrimaryCompanionService.getCurrentEvent() in test_ble_event_on_device_locked()
122 PrimaryCompanionService.waitAssociationToBtConnect(associationId) in test_bt_event_on_device_locked()
124 PrimaryCompanionService.getCurrentEvent() in test_bt_event_on_device_locked()
169 PrimaryCompanionService.waitAssociationToAppear(associationId) in test_bt_ble_event_on_device_locked()
170 PrimaryCompanionService.waitAssociationToBtConnect(associationId) in test_bt_ble_event_on_device_locked()
197 PrimaryCompanionService.waitDeviceUuidConnect(UUID_A) in test_uuid_event_on_device_locked()
[all …]
DSelfPresenceReportingTest.kt26 import android.companion.cts.common.PrimaryCompanionService
74 PrimaryCompanionService.getCurrentEvent() in test_selfReporting_singleDevice_multipleServices()
85 PrimaryCompanionService.getCurrentEvent() in test_selfReporting_singleDevice_multipleServices()
108 actual = PrimaryCompanionService.associationIdsForConnectedDevices, in test_selfReporting_multipleDevices_multipleServices()
119 actual = PrimaryCompanionService.associationIdsForConnectedDevices, in test_selfReporting_multipleDevices_multipleServices()
211 PrimaryCompanionService.waitAssociationToAppear(associationId) in test_notifyAppears_from_onAssociationCreated()
DObservingDevicePresenceTest.kt25 import android.companion.cts.common.PrimaryCompanionService
69 assertEmpty(PrimaryCompanionService.connectedDevices) in test_observingDevicePresence_isOffByDefault()
163 assertEmpty(PrimaryCompanionService.connectedDevices) in test_stopObservingDevicePresence()
231 actual = PrimaryCompanionService.associationIdsForConnectedDevices, in test_startObservingDevicePresence_multipleDevices()
244 actual = PrimaryCompanionService.associationIdsForConnectedDevices, in test_startObservingDevicePresence_multipleDevices()
306 PrimaryCompanionService.forgetDevicePresence(idA) in test_stopObservingDevicePresence_unbindsApplication()
315 PrimaryCompanionService.forgetDevicePresence(idB) in test_stopObservingDevicePresence_unbindsApplication()
/cts/tests/tests/companion/noservices/src/android/companion/cts/noservices/
DNoCompanionDeviceServiceTest.kt23 import android.companion.cts.common.PrimaryCompanionService
66 val isBound = PrimaryCompanionService.isBound || in test_noService()
70 val receivedCallback = PrimaryCompanionService.connectedDevices.isNotEmpty() || in test_noService()
/cts/tests/tests/companion/common/src/android/companion/cts/common/
DTestBase.kt273 PrimaryCompanionService.isBound && SecondaryCompanionService.isBound in assertValidCompanionDeviceServicesBind()
284 !PrimaryCompanionService.isBound || !SecondaryCompanionService.isBound in assertValidCompanionDeviceServicesRemainBound()
295 !PrimaryCompanionService.isBound && !SecondaryCompanionService.isBound in assertValidCompanionDeviceServicesUnbind()
306 PrimaryCompanionService.isBound || SecondaryCompanionService.isBound in assertValidCompanionDeviceServicesRemainUnbound()
335 PrimaryCompanionService.waitAssociationToAppear(associationId) in assertOnlyPrimaryCompanionDeviceServiceNotified()
336 assertContains(PrimaryCompanionService.associationIdsForConnectedDevices, associationId) in assertOnlyPrimaryCompanionDeviceServiceNotified()
338 PrimaryCompanionService.waitAssociationToDisappear(associationId) in assertOnlyPrimaryCompanionDeviceServiceNotified()
340 PrimaryCompanionService.associationIdsForConnectedDevices.contains(associationId) in assertOnlyPrimaryCompanionDeviceServiceNotified()
DCompanionService.kt257 class PrimaryCompanionService : CompanionService<PrimaryCompanionService>(Companion) { class
258 companion object : InstanceHolder<PrimaryCompanionService>()