Home
last modified time | relevance | path

Searched refs:cdm (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/tests/companion/multidevice/host/
Dcdm_multi_device_test.py19 secondary_address = self.secondary.cdm.btGetAddress()
22 self.secondary.cdm.btBecomeDiscoverable(cdm_base_test.BT_DISCOVERABLE_TIME)
23 secondary_id = self.primary.cdm.associate(secondary_address)
26 associations = self.primary.cdm.getMyAssociations()
33 primary_address = self.primary.cdm.btGetAddress()
34 secondary_address = self.secondary.cdm.btGetAddress()
37 self.primary.cdm.btBecomeDiscoverable(cdm_base_test.BT_DISCOVERABLE_TIME)
38 primary_id = self.secondary.cdm.associate(primary_address)
40 self.secondary.cdm.btBecomeDiscoverable(cdm_base_test.BT_DISCOVERABLE_TIME)
41 secondary_id = self.primary.cdm.associate(secondary_address)
[all …]
Dcdm_base_test.py31 device.cdm.btEnable()
34 device.cdm.disassociateAll()
49 self.primary.cdm.disassociateAll()
50 self.secondary.cdm.disassociateAll()
57 paired_devices = ad.cdm.btGetPairedDevices()
59 ad.cdm.btUnpairDevice(device['Address'])
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DDisassociateTest.kt50 val associations = cdm.myAssociations in <lambda>()
56 cdm.disassociate(associations[0].id) in <lambda>()
57 assertEmpty(cdm.myAssociations) in <lambda>()
66 actual = cdm.myAssociations, in test_disassociate_sameApp_multipleAssociations()
74 cdm.disassociate(cdm.getMyAssociationLinkedTo(MAC_ADDRESS_A).id) in test_disassociate_sameApp_multipleAssociations()
76 actual = cdm.myAssociations, in test_disassociate_sameApp_multipleAssociations()
83 cdm.disassociate(cdm.getMyAssociationLinkedTo(MAC_ADDRESS_B).id) in test_disassociate_sameApp_multipleAssociations()
85 actual = cdm.myAssociations, in test_disassociate_sameApp_multipleAssociations()
89 cdm.disassociate(cdm.getMyAssociationLinkedTo(MAC_ADDRESS_C).id) in test_disassociate_sameApp_multipleAssociations()
90 assertEmpty(cdm.myAssociations) in test_disassociate_sameApp_multipleAssociations()
[all …]
DRetrieveAssociationsTest.kt51 assertEmpty(cdm.myAssociations) in <lambda>()
55 actual = cdm.myAssociations, in <lambda>()
61 assertEmpty(cdm.myAssociations) in <lambda>()
66 assertEmpty(cdm.myAssociations) in <lambda>()
70 actual = cdm.myAssociations, in <lambda>()
77 actual = cdm.myAssociations, in <lambda>()
85 actual = cdm.myAssociations, in <lambda>()
94 actual = cdm.myAssociations, in <lambda>()
102 actual = cdm.myAssociations, in <lambda>()
108 assertEmpty(cdm.myAssociations) in <lambda>()
[all …]
DLegacyDisassociateTest.kt47 actual = cdm.myAssociations, in <lambda>()
54 cdm.disassociate(MAC_ADDRESS_A.toString()) in <lambda>()
56 actual = cdm.myAssociations, in <lambda>()
62 cdm.disassociate(MAC_ADDRESS_B.toString()) in <lambda>()
64 actual = cdm.myAssociations, in <lambda>()
69 cdm.disassociate(MAC_ADDRESS_C.toString()) in <lambda>()
70 assertEmpty(cdm.myAssociations) in <lambda>()
77 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
84 cdm.disassociate(MAC_ADDRESS_A.toString()) in <lambda>()
87 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
[all …]
DTransportsListenerTest.kt57 cdm.addOnTransportsChangedListener(SIMPLE_EXECUTOR, listener) in <lambda>()
62 cdm.addOnTransportsChangedListener(SIMPLE_EXECUTOR, listener) in <lambda>()
69 cdm.removeOnTransportsChangedListener(listener) in <lambda>()
74 cdm.removeOnTransportsChangedListener(listener) in <lambda>()
88 cdm.addOnMessageReceivedListener(SIMPLE_EXECUTOR, MESSAGE_REQUEST_PING, listener) in <lambda>()
93 cdm.addOnMessageReceivedListener(SIMPLE_EXECUTOR, MESSAGE_REQUEST_PING, listener) in <lambda>()
100 cdm.removeOnMessageReceivedListener(MESSAGE_REQUEST_PING, listener) in <lambda>()
105 cdm.removeOnMessageReceivedListener(MESSAGE_REQUEST_PING, listener) in <lambda>()
113 val associationId = cdm.myAssociations[0].id in <lambda>()
119 cdm.sendMessage(MESSAGE_REQUEST_PING, byteArrayOf(), intArrayOf(associationId)) in <lambda>()
[all …]
DAssociateTest.kt60 cdm.associate(request, SIMPLE_EXECUTOR, callback) in test_associate()
72 var associations = cdm.myAssociations in <lambda>()
78 cdm.enableSystemDataSyncForTypes(associations[0].id, FLAG_CALL_METADATA) in <lambda>()
79 associations = cdm.myAssociations in <lambda>()
85 cdm.disableSystemDataSyncForTypes(associations[0].id, FLAG_CALL_METADATA) in <lambda>()
86 associations = cdm.myAssociations in <lambda>()
94 val association = cdm.myAssociations[0] in test_association_invalid_tag()
97 cdm.setAssociationTag(association.id, ASSOCIATION_TAG_INVALID) in test_association_invalid_tag()
107 getAssociationForPackage(userId, packageName, MAC_ADDRESS_A, cdm) in <lambda>()
112 cdm.setAssociationTag(association.id, ASSOCIATION_TAG) in <lambda>()
[all …]
DSelfPresenceReportingTest.kt61 cdm.notifyDeviceAppeared(associationId) in test_selfReporting_singleDevice_multipleServices()
79 cdm.notifyDeviceDisappeared(associationId) in test_selfReporting_singleDevice_multipleServices()
98 cdm.notifyDeviceAppeared(idA) in test_selfReporting_multipleDevices_multipleServices()
113 cdm.notifyDeviceAppeared(idB) in test_selfReporting_multipleDevices_multipleServices()
128 cdm.notifyDeviceDisappeared(idA) in test_selfReporting_multipleDevices_multipleServices()
140 cdm.notifyDeviceDisappeared(idB) in test_selfReporting_multipleDevices_multipleServices()
154 cdm.notifyDeviceAppeared(-1) in test_notifyAppearAndDisappear_invalidId()
159 cdm.notifyDeviceAppeared(0) in test_notifyAppearAndDisappear_invalidId()
164 cdm.notifyDeviceAppeared(1) in test_notifyAppearAndDisappear_invalidId()
170 cdm.notifyDeviceDisappeared(-1) in test_notifyAppearAndDisappear_invalidId()
[all …]
DObservingDevicePresenceTest.kt58 val associationId = cdm.myAssociations[0].id in test_observingDevicePresence_isOffByDefault()
88 cdm.startObservingDevicePresence(MAC_ADDRESS_A.toUpperCaseString()) in test_startObservingDevicePresence_requiresPermission()
93 cdm.startObservingDevicePresence(MAC_ADDRESS_A.toUpperCaseString()) in test_startObservingDevicePresence_requiresPermission()
101 val associationId = cdm.myAssociations[0].id in test_startObservingDevicePresence_singleDevice()
105 cdm.startObservingDevicePresence(MAC_ADDRESS_A.toUpperCaseString()) in test_startObservingDevicePresence_singleDevice()
144 val associationId = cdm.myAssociations[0].id in test_stopObservingDevicePresence()
148 cdm.startObservingDevicePresence(MAC_ADDRESS_A.toUpperCaseString()) in test_stopObservingDevicePresence()
149 cdm.stopObservingDevicePresence(MAC_ADDRESS_A.toUpperCaseString()) in test_stopObservingDevicePresence()
178 val associationId = cdm.myAssociations[0].id in test_startObservingDevicePresence_alreadyPresent()
190 cdm.startObservingDevicePresence(MAC_ADDRESS_A.toUpperCaseString()) in test_startObservingDevicePresence_alreadyPresent()
[all …]
DInactiveSelfManagedAssociationsRemovalTest.kt49 cdm.notifyDeviceAppeared(idA) in test_inactive_associations_removal()
54 cdm.notifyDeviceAppeared(idB) in test_inactive_associations_removal()
63 cdm.notifyDeviceDisappeared(idA) in test_inactive_associations_removal()
64 cdm.notifyDeviceDisappeared(idB) in test_inactive_associations_removal()
72 assertEmpty(cdm.myAssociations) in test_inactive_associations_removal()
81 cdm.notifyDeviceAppeared(idA) in <lambda>()
93 cdm.notifyDeviceDisappeared(idA) in <lambda>()
103 actual = cdm.myAssociations, in <lambda>()
115 cdm.notifyDeviceAppeared(idA) in test_active_associations_do_not_get_removed()
124 cdm.notifyDeviceDisappeared(idA) in test_active_associations_do_not_get_removed()
[all …]
DDeviceEventDeviceLockedTest.kt60 val associationId = cdm.myAssociations[0].id in test_ble_event_on_device_locked()
67 cdm.startObservingDevicePresence(request) in test_ble_event_on_device_locked()
92 cdm.stopObservingDevicePresence(request) in test_ble_event_on_device_locked()
100 val associationId = cdm.myAssociations[0].id in test_bt_event_on_device_locked()
107 cdm.startObservingDevicePresence(request) in test_bt_event_on_device_locked()
132 cdm.stopObservingDevicePresence(request) in test_bt_event_on_device_locked()
140 val associationId = cdm.myAssociations[0].id in test_bt_ble_event_on_device_locked()
147 cdm.startObservingDevicePresence(request) in test_bt_ble_event_on_device_locked()
178 cdm.stopObservingDevicePresence(request) in test_bt_ble_event_on_device_locked()
213 val associationId = cdm.myAssociations[0].id in test_ble_event_disappeared_before_device_unlocked()
[all …]
DDeviceEventTest.kt40 val associationId = cdm.myAssociations[0].id in test_ble_device_event()
43 cdm.startObservingDevicePresence(MAC_ADDRESS_A.toUpperCaseString()) in test_ble_device_event()
63 cdm.stopObservingDevicePresence(MAC_ADDRESS_A.toUpperCaseString()) in test_ble_device_event()
70 val idA = cdm.myAssociations[0].id in test_classic_bt_device_event()
73 cdm.startObservingDevicePresence(MAC_ADDRESS_A.toUpperCaseString()) in test_classic_bt_device_event()
93 cdm.stopObservingDevicePresence(MAC_ADDRESS_A.toUpperCaseString()) in test_classic_bt_device_event()
100 val associationId = cdm.myAssociations[0].id in test_both_bt_ble_device_event()
103 cdm.startObservingDevicePresence(MAC_ADDRESS_A.toUpperCaseString()) in test_both_bt_ble_device_event()
128 cdm.stopObservingDevicePresence(MAC_ADDRESS_A.toUpperCaseString()) in test_both_bt_ble_device_event()
DAssociationsChangedListenerTest.kt65 cdm.addOnAssociationsChangedListener(SIMPLE_EXECUTOR, NO_OP_LISTENER) in <lambda>()
70 cdm.addOnAssociationsChangedListener(SIMPLE_EXECUTOR, NO_OP_LISTENER) in <lambda>()
73 cdm.removeOnAssociationsChangedListener(NO_OP_LISTENER) in <lambda>()
82 cdm.addOnAssociationsChangedListener(SIMPLE_EXECUTOR, listener) in <lambda>()
98 cdm.removeOnAssociationsChangedListener(listener) in <lambda>()
118 cdm.addOnAssociationsChangedListener(BACKGROUND_THREAD_EXECUTOR, observer) in <lambda>()
129 cdm.associate(request, BACKGROUND_THREAD_EXECUTOR, observer) in <lambda>()
DDeviceAssociatedForWifiConnectionTest.kt47 cdm.isDeviceAssociatedForWifiConnection( in test_isDeviceAssociatedForWifiConnection_requiresPermission()
57 assertFalse(cdm.isDeviceAssociatedForWifiConnection( in test_isDeviceAssociatedForWifiConnection_no_association()
64 assertTrue(cdm.isDeviceAssociatedForWifiConnection( in test_isDeviceAssociatedForWifiConnection_no_association()
75 assertTrue(cdm.isDeviceAssociatedForWifiConnection( in test_isDeviceAssociatedForWifiConnection_no_wifi_permission()
DAssociateSelfManagedTest.kt60 cdm.associate(request, SIMPLE_EXECUTOR, callback) in test_associate_selfManaged_requiresPermission()
66 cdm.associate(request, SIMPLE_EXECUTOR, callback) in test_associate_selfManaged_requiresPermission()
80 cdm.associate(request, SIMPLE_EXECUTOR, callback) in test_associate_selfManaged_nullProfile_leadsToNoUiFlow()
98 actual = cdm.myAssociations, in test_associate_selfManaged_nullProfile_leadsToNoUiFlow()
118 cdm.associate(request, SIMPLE_EXECUTOR, callback) in test_associate_selfManaged_alreadyRoleHolder_leadsToNoUiFlow()
136 actual = cdm.myAssociations, in test_associate_selfManaged_alreadyRoleHolder_leadsToNoUiFlow()
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>()
97 cdm.getAssociationForPackage(app.userId, app.packageName).isEmpty() in <lambda>()
DObservingDeviceUuidEventTest.kt79 cdm.startObservingDevicePresence(request_A) in test_startObservingDeviceUuidPresence_requiresPermission()
87 cdm.stopObservingDevicePresence(request_A) in test_startObservingDeviceUuidPresence_requiresPermission()
96 cdm.stopObservingDevicePresence(request_A) in test_startObservingDeviceUuidPresence_requiresPermission()
105 val associationId = cdm.myAssociations[0].id in test_DevicePresenceRequest_set_both_uuid_mac_address()
191 val associationId = cdm.myAssociations[0].id in test_observingDevicePresence_bothAssociationAndUuid()
197 cdm.startObservingDevicePresence(requestMacAddress) in test_observingDevicePresence_bothAssociationAndUuid()
216 cdm.stopObservingDevicePresence(requestMacAddress) in test_observingDevicePresence_bothAssociationAndUuid()
DDumpSysTest.kt62 cdm.notifyDeviceAppeared(associationId) in test_dump_singleDevice()
73 cdm.notifyDeviceDisappeared(associationId) in test_dump_singleDevice()
93 cdm.notifyDeviceAppeared(idA) in test_dump_multiDevice()
104 cdm.notifyDeviceDisappeared(idA) in test_dump_multiDevice()
/cts/tests/tests/companion/multiprocess/src/android/companion/cts/multiprocess/
DRebindServiceTest.kt55 cdm.notifyDeviceAppeared(associationId) in <lambda>()
57 assertApplicationBinds(cdm) in <lambda>()
71 cdm.notifyDeviceAppeared(associationId) in <lambda>()
74 assertApplicationBinds(cdm) in <lambda>()
86 cdm.notifyDeviceAppeared(associationId) in <lambda>()
89 assertApplicationBinds(cdm) in <lambda>()
111 cdm.notifyDeviceAppeared(idA) in <lambda>()
112 cdm.notifyDeviceAppeared(idB) in <lambda>()
115 assertApplicationBinds(cdm) in <lambda>()
126 cdm.notifyDeviceAppeared(idA) in <lambda>()
[all …]
DBinderLifecycleTest.kt49 cdm.notifyDeviceAppeared(associationId) in test_binderDied_primaryProcess()
51 assertApplicationBinds(cdm) in test_binderDied_primaryProcess()
58 assertApplicationUnbinds(cdm) in test_binderDied_primaryProcess()
68 cdm.notifyDeviceAppeared(associationId) in test_binderDied_secondaryProcess()
70 assertApplicationBinds(cdm) in test_binderDied_secondaryProcess()
77 assertApplicationRemainsBound(cdm) in test_binderDied_secondaryProcess()
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DSystemDataTransferTest.kt81 cdm.buildPermissionTransferUserConsentIntent(association.id) in <lambda>()
88 cdm.enableSecureTransport(false) in <lambda>()
95 cdm.enableSecureTransport(true) in <lambda>()
105 assertFalse(cdm.isPermissionTransferUserConsented(association1.id)) in <lambda>()
112 assertTrue(cdm.isPermissionTransferUserConsented(association1.id)) in <lambda>()
121 assertFalse(cdm.isPermissionTransferUserConsented(association.id)) in <lambda>()
131 assertFalse(cdm.isPermissionTransferUserConsented(association.id)) in <lambda>()
140 assertFalse(cdm.isPermissionTransferUserConsented(association.id)) in <lambda>()
146 assertFalse(cdm.isPermissionTransferUserConsented(association.id)) in <lambda>()
155 assertFalse(cdm.isPermissionTransferUserConsented(association.id)) in <lambda>()
[all …]
DAssociationRevokedTest.kt67 cdm.allAssociations.filter { in <lambda>()
82 cdm.disassociate(associations[0].id) in <lambda>()
105 cdm.allAssociations.filter { in <lambda>()
120 cdm.disassociate(associations[0].id) in <lambda>()
/cts/tests/tests/companion/CompanionDeviceTestApp/src/android.os.cts.companiondevicetestapp/
DCompanionDeviceTestAppActivity.kt67 val cdm: CompanionDeviceManager by lazy { val java = CompanionDeviceManager::class.java in <lambda>() constant in android.os.cts.companiondevicetestapp.CompanionDeviceTestAppActivity
117 cdm.requestNotificationAccess( in <lambda>()
124 cdm.associations.forEach { address -> in <lambda>()
126 cdm.disassociate(address) in <lambda>()
134 cdm.associations.forEach { address -> in <lambda>()
136 cdm.startObservingDevicePresence(address) in <lambda>()
144 cdm.myAssociations.firstNotNullOf { associationInfo -> in <lambda>()
147 val intentSender = cdm.buildPermissionTransferUserConsentIntent( in <lambda>()
178 cdm.associate(AssociationRequest.Builder() in <lambda>()
/cts/tests/tests/companion/multidevice/client/src/android/companion/cts/multidevice/
DBluetoothConnector.kt30 private val cdm: CompanionDeviceManager constant in android.companion.cts.multidevice.BluetoothConnector
58 cdm.attachSystemDataTransport( in attachClientSocket()
96 val association = cdm.myAssociations.stream() in getRemoteDevice()
107 cdm.detachSystemDataTransport(associationId) in detachClientSocket()
133 cdm.attachSystemDataTransport( in run()
149 cdm.detachSystemDataTransport(associationId) in shutdown()
/cts/tests/tests/companion/common/src/android/companion/cts/common/
DTestBase.kt75 protected val cdm: CompanionDeviceManager by lazy { in <lambda>() constant in android.companion.cts.common.TestBase
91 cdm.disassociateAll() in base_setUp()
92 cdm.allAssociations in base_setUp()
109 withShellPermissionIdentity { cdm.disassociateAll() } in base_tearDown()
148 cdm.associate(request, SIMPLE_EXECUTOR, callback) in createSelfManagedAssociation()
229 fun assertApplicationBinds(cdm: CompanionDeviceManager) { in assertApplicationBinds()
232 cdm.isCompanionApplicationBound in assertApplicationBinds()
237 fun assertApplicationUnbinds(cdm: CompanionDeviceManager) { in assertApplicationUnbinds()
240 !cdm.isCompanionApplicationBound in assertApplicationUnbinds()
245 fun assertApplicationRemainsBound(cdm: CompanionDeviceManager) { in assertApplicationRemainsBound()
[all …]

12