Home
last modified time | relevance | path

Searched refs:associations (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/companion/core/src/android/companion/cts/core/
DAssociateTest.kt72 var associations = cdm.myAssociations in <lambda>() variable
75 associations[0].systemDataSyncFlags and FLAG_CALL_METADATA in <lambda>()
78 cdm.enableSystemDataSyncForTypes(associations[0].id, FLAG_CALL_METADATA) in <lambda>()
79 associations = cdm.myAssociations in <lambda>()
82 associations[0].systemDataSyncFlags and FLAG_CALL_METADATA in <lambda>()
85 cdm.disableSystemDataSyncForTypes(associations[0].id, FLAG_CALL_METADATA) in <lambda>()
86 associations = cdm.myAssociations in <lambda>()
87 assertEquals(0, associations[0].systemDataSyncFlags and FLAG_CALL_METADATA) in <lambda>()
DAssociationsChangedListenerTest.kt89 listener.invocations[0].let { associations -> in <lambda>() method
90 assertEquals(actual = associations.size, expected = 1) in <lambda>()
91 assertEquals(actual = associations[0].deviceMacAddress, expected = MAC_ADDRESS_A) in <lambda>()
92 assertEquals(actual = associations[0].packageName, expected = TEST_APP_PACKAGE_NAME) in <lambda>()
140 assertEquals(1, event1.associations.size) in <lambda>()
141 val associationInfoFromListener = event1.associations.first() in <lambda>()
DDisassociateTest.kt50 val associations = cdm.myAssociations in <lambda>() constant
52 actual = associations, in <lambda>()
56 cdm.disassociate(associations[0].id) in <lambda>()
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DAssociationRevokedTest.kt66 val associations = withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in <lambda>() constant
72 assumeFalse(associations.isEmpty()) in <lambda>()
82 cdm.disassociate(associations[0].id) in <lambda>()
104 val associations = withShellPermissionIdentity(MANAGE_COMPANION_DEVICES) { in <lambda>() constant
111 assumeFalse(associations.isEmpty()) in <lambda>()
120 cdm.disassociate(associations[0].id) in <lambda>()
/cts/tests/tests/companion/common/src/android/companion/cts/common/
DRecordingCdmEventObserver.kt46 override fun onAssociationsChanged(associations: List<AssociationInfo>) =
47 recordInvocation(AssociationChange(associations))
64 data class AssociationChange(val associations: List<AssociationInfo>) : CdmEvent constant in android.companion.cts.common.AssociationChange
DRecordingOnAssociationsChangedListener.kt28 override fun onAssociationsChanged(associations: List<AssociationInfo>) =
29 recordInvocation(associations)
DRecordingOnTransportsChangedListener.kt28 override fun accept(associations: List<AssociationInfo>) =
29 recordInvocation(associations)
/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/
DFakeAssociationRule.java112 List<AssociationInfo> associations = mCompanionDeviceManager.getMyAssociations(); in createManagedAssociation() local
115 final AssociationInfo associationInfo = associations.stream() in createManagedAssociation()
121 assertThat(associations).hasSize(1); in createManagedAssociation()
122 return associations.get(0); in createManagedAssociation()
167 List<AssociationInfo> associations = mCompanionDeviceManager.getMyAssociations(); in clearExistingAssociations() local
168 for (AssociationInfo association : associations) { in clearExistingAssociations()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/companion/
DCompanionDeviceTestActivity.java140 List<String> associations = mCompanionDeviceManager.getAssociations(); in onActivityResult() local
141 if (associations.contains(deviceAddress)) { in onActivityResult()
144 + associations); in onActivityResult()
/cts/tests/tests/companion/multidevice/host/
Dcdm_multi_device_test.py26 associations = self.primary.cdm.getMyAssociations()
27 asserts.assert_true(secondary_id in associations, 'Association not found.')
/cts/tests/tests/companion/CompanionDeviceTestApp/src/android.os.cts.companiondevicetestapp/
DCompanionDeviceTestAppActivity.kt124 cdm.associations.forEach { address -> in <lambda>()
134 cdm.associations.forEach { address -> in <lambda>()
/cts/tests/tests/virtualdevice/core/src/android/virtualdevice/cts/core/
DVirtualDeviceManagerBasicTest.java234 List<AssociationInfo> associations = cdm.getMyAssociations(); in createVirtualDevice_invalidDeviceProfile_shouldThrowIllegalArgumentException() local
235 final AssociationInfo associationInfo = associations.stream() in createVirtualDevice_invalidDeviceProfile_shouldThrowIllegalArgumentException()