Home
last modified time | relevance | path

Searched refs:mCompanionDeviceManager (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/
DFakeAssociationRule.java77 private CompanionDeviceManager mCompanionDeviceManager; field in FakeAssociationRule
85 mCompanionDeviceManager = mContext.getSystemService(CompanionDeviceManager.class); in FakeAssociationRule()
99 + mCompanionDeviceManager.getMyAssociations().size()); in createManagedAssociation()
110 + mCompanionDeviceManager.getMyAssociations().size())) in createManagedAssociation()
112 List<AssociationInfo> associations = mCompanionDeviceManager.getMyAssociations(); in createManagedAssociation()
134 mCompanionDeviceManager.addOnAssociationsChangedListener( in before()
161 mCompanionDeviceManager.removeOnAssociationsChangedListener( in after()
167 List<AssociationInfo> associations = mCompanionDeviceManager.getMyAssociations(); in clearExistingAssociations()
171 assertThat(mCompanionDeviceManager.getMyAssociations()).isEmpty(); in clearExistingAssociations()
185 mCompanionDeviceManager.disassociate(associationId); in disassociate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/companion/
DCompanionDeviceTestActivity.java48 private CompanionDeviceManager mCompanionDeviceManager; field in CompanionDeviceTestActivity
58 mCompanionDeviceManager = getSystemService(CompanionDeviceManager.class); in onCreate()
74 mInitialAssociations = mCompanionDeviceManager.getAssociations(); in test()
95 mCompanionDeviceManager.associate(request, callback, null); in test()
118 List<String> newAssociations = mCompanionDeviceManager.getAssociations(); in onActivityResult()
139 mCompanionDeviceManager.disassociate(associatedDevice.getAddress()); in onActivityResult()
140 List<String> associations = mCompanionDeviceManager.getAssociations(); in onActivityResult()
DCompanionDeviceServiceTestActivity.java55 private CompanionDeviceManager mCompanionDeviceManager; field in CompanionDeviceServiceTestActivity
89 mCompanionDeviceManager = getSystemService(CompanionDeviceManager.class); in onCreate()
113 for (AssociationInfo association : mCompanionDeviceManager.getMyAssociations()) { in getAssociation()
122 mCompanionDeviceManager.stopObservingDevicePresence(deviceAddress); in disassociate()
123 mCompanionDeviceManager.disassociate(association.getId()); in disassociate()
129 for (AssociationInfo association : mCompanionDeviceManager.getMyAssociations()) { in cleanUp()
153 mCompanionDeviceManager.startObservingDevicePresence(deviceAddress); in onActivityResult()
285 mCompanionDeviceManager.associate(request, mCallback, null); in performTestAction()
/cts/tests/tests/companion/PermissionsSyncTestApp/src/android/os/cts/companiontestapp/
DMainActivity.java68 private CompanionDeviceManager mCompanionDeviceManager; field in MainActivity
89 mCompanionDeviceManager = getSystemService(CompanionDeviceManager.class); in onCreate()
94 mAssociateButton.setOnClickListener(v -> mCompanionDeviceManager.associate( in onCreate()
102 mCompanionDeviceManager.disassociate(mAssociationInfo.getId()); in onCreate()
108 if (Flags.permSyncUserConsent() && mCompanionDeviceManager in onCreate()
121 List<AssociationInfo> myAssociations = mCompanionDeviceManager.getMyAssociations(); in onCreate()
166 text = text + "\nuser consented=" + mCompanionDeviceManager in updateAssociationInfo()
187 final IntentSender intentSender = mCompanionDeviceManager in requestPermissionsSyncUserConsent()
209 mCompanionDeviceManager.startSystemDataTransfer(mAssociationInfo.getId(), in startPermissionsSync()
/cts/tests/wearable/src/android/wearable/cts/
DWearableSensingManagerIsolatedServiceTest.java117 private CompanionDeviceManager mCompanionDeviceManager; field in WearableSensingManagerIsolatedServiceTest
148 mCompanionDeviceManager = mContext.getSystemService(CompanionDeviceManager.class); in setUp()
215 mCompanionDeviceManager.sendMessage( in provideConnection_otherEndAttachedToCdm_canReceiveDataInWss()
615 mCompanionDeviceManager.associate( in attachTransportToCdm()
627 mCompanionDeviceManager.addOnTransportsChangedListener( in attachTransportToCdm()
638 mCompanionDeviceManager.attachSystemDataTransport( in attachTransportToCdm()
656 mCompanionDeviceManager.addOnMessageReceivedListener( in receiveMessageFromCdm()