Home
last modified time | relevance | path

Searched refs:association (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DSystemDataTransferTest.kt80 val association = associate() in <lambda>() constant
81 cdm.buildPermissionTransferUserConsentIntent(association.id) in <lambda>()
118 val association = associate() in <lambda>() constant
121 assertFalse(cdm.isPermissionTransferUserConsented(association.id)) in <lambda>()
125 association.id, in <lambda>()
131 assertFalse(cdm.isPermissionTransferUserConsented(association.id)) in <lambda>()
137 val association = associate() in <lambda>() constant
140 assertFalse(cdm.isPermissionTransferUserConsented(association.id)) in <lambda>()
143 requestPermissionTransferUserConsent(association.id, ACTION_PRESS_BACK) in <lambda>()
146 assertFalse(cdm.isPermissionTransferUserConsented(association.id)) in <lambda>()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/companion/
DDevicePresenceListener.java46 public void onDeviceAppeared(AssociationInfo association) { in onDeviceAppeared() argument
47 NEARBY_DEVICES.add(association.getId()); in onDeviceAppeared()
48 String message = "Device appeared: " + association.getDeviceMacAddress(); in onDeviceAppeared()
54 public void onDeviceDisappeared(AssociationInfo association) { in onDeviceDisappeared() argument
55 NEARBY_DEVICES.remove(association.getId()); in onDeviceDisappeared()
56 String message = "Device disappeared: " + association.getDeviceMacAddress(); in onDeviceDisappeared()
DCompanionDeviceServiceTestActivity.java113 for (AssociationInfo association : mCompanionDeviceManager.getMyAssociations()) { in getAssociation()
114 if (association.getId() == id) return association; in getAssociation()
120 private void disassociate(AssociationInfo association) { in disassociate() argument
121 String deviceAddress = association.getDeviceMacAddress().toString(); in disassociate()
123 mCompanionDeviceManager.disassociate(association.getId()); in disassociate()
129 for (AssociationInfo association : mCompanionDeviceManager.getMyAssociations()) { in cleanUp()
130 disassociate(association); in cleanUp()
142 AssociationInfo association = in onActivityResult() local
147 if (association == null || association.getDeviceMacAddress() == null) { in onActivityResult()
152 String deviceAddress = association.getDeviceMacAddress().toString(); in onActivityResult()
[all …]
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DAssociateTest.kt94 val association = cdm.myAssociations[0] in test_association_invalid_tag() constant
97 cdm.setAssociationTag(association.id, ASSOCIATION_TAG_INVALID) in test_association_invalid_tag()
106 val association = withShellPermissionIdentity { in <lambda>() constant
112 cdm.setAssociationTag(association.id, ASSOCIATION_TAG) in <lambda>()
116 cdm.setAssociationTag(association.id, ASSOCIATION_TAG) in <lambda>()
130 val association = withShellPermissionIdentity { in <lambda>() constant
134 cdm.setAssociationTag(association.id, ASSOCIATION_TAG) in <lambda>()
140 cdm.clearAssociationTag(association.id) in <lambda>()
DDisassociateTest.kt101 val association = withShellPermissionIdentity { in <lambda>() constant
110 cdm.disassociate(association.id) in <lambda>()
122 cdm.disassociate(association.id) in <lambda>()
/cts/tests/tests/companion/multidevice/client/src/android/companion/cts/multidevice/
DBluetoothConnector.kt96 val association = cdm.myAssociations.stream() in getRemoteDevice() constant
100 val address = association.deviceMacAddress in getRemoteDevice()
DCompanionDeviceManagerSnippet.kt95 val association = checkNotNull(result.getParcelableExtra( in associate() constant
100 return association.id in associate()
/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/
DFakeAssociationRule.java168 for (AssociationInfo association : associations) { in clearExistingAssociations()
169 disassociate(association.getId()); in clearExistingAssociations()
/cts/tests/tests/companion/PermissionsSyncTestApp/src/android/os/cts/companiontestapp/
DMainActivity.java154 private void updateAssociationInfo(AssociationInfo association) { in updateAssociationInfo() argument
155 mAssociationInfo = association; in updateAssociationInfo()