Home
last modified time | relevance | path

Searched refs:mConnectedDeviceManager (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/
DConnectedDeviceManagerTest.java91 private ConnectedDeviceManager mConnectedDeviceManager; field in ConnectedDeviceManagerTest
105 mConnectedDeviceManager = new ConnectedDeviceManager(mMockStorage, mMockCentralManager, in setUp()
109 mConnectedDeviceManager.start(); in setUp()
121 assertThat(mConnectedDeviceManager.getActiveUserConnectedDevices()).isEmpty(); in getActiveUserConnectedDevices_initiallyShouldReturnEmptyList()
128 mConnectedDeviceManager.getActiveUserConnectedDevices(); in getActiveUserConnectedDevices_includesNewlyConnectedDevice()
140 mConnectedDeviceManager.addConnectedDevice(deviceId, mMockCentralManager); in getActiveUserConnectedDevices_excludesDevicesNotBelongingToActiveUser()
141 assertThat(mConnectedDeviceManager.getActiveUserConnectedDevices()).isEmpty(); in getActiveUserConnectedDevices_excludesDevicesNotBelongingToActiveUser()
147 mConnectedDeviceManager.onSecureChannelEstablished(deviceId, mMockCentralManager); in getActiveUserConnectedDevices_reflectsSecureChannelEstablished()
149 mConnectedDeviceManager.getActiveUserConnectedDevices().get(0); in getActiveUserConnectedDevices_reflectsSecureChannelEstablished()
156 mConnectedDeviceManager.removeConnectedDevice(deviceId, mMockCentralManager); in getActiveUserConnectedDevices_excludesDisconnectedDevice()
[all …]
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/api/internal/association/
DAssociationBinder.java44 private final ConnectedDeviceManager mConnectedDeviceManager; field in AssociationBinder
72 mConnectedDeviceManager = connectedDeviceManager; in AssociationBinder()
97 mConnectedDeviceManager.startAssociation(mAssociationCallback); in startAssociation()
102 mConnectedDeviceManager.stopAssociation(mAssociationCallback); in stopAssociation()
108 mConnectedDeviceManager.getActiveUserAssociatedDevices(); in getActiveUserAssociatedDevices()
118 mConnectedDeviceManager.notifyOutOfBandAccepted(); in acceptVerification()
123 mConnectedDeviceManager.removeActiveUserAssociatedDevice(deviceId); in removeAssociatedDevice()
161 mConnectedDeviceManager.registerDeviceAssociationCallback(mDeviceAssociationCallback, in setDeviceAssociationCallback()
170 mConnectedDeviceManager.unregisterDeviceAssociationCallback(mDeviceAssociationCallback); in clearDeviceAssociationCallback()
179 mConnectedDeviceManager.getActiveUserConnectedDevices(); in getActiveUserConnectedDevices()
[all …]
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/
DRemoteFeature.java57 private IConnectedDeviceManager mConnectedDeviceManager; field in RemoteFeature
77 mConnectedDeviceManager.unregisterConnectionCallback(mConnectionCallback); in stop()
78 for (CompanionDevice device : mConnectedDeviceManager.getActiveUserConnectedDevices()) { in stop()
79 mConnectedDeviceManager.unregisterDeviceCallback(device, mFeatureId, in stop()
82 mConnectedDeviceManager.unregisterDeviceAssociationCallback(mDeviceAssociationCallback); in stop()
101 return mConnectedDeviceManager; in getConnectedDeviceManager()
217 mConnectedDeviceManager = IConnectedDeviceManager.Stub.asInterface(service);
219 mConnectedDeviceManager.registerActiveUserConnectionCallback(mConnectionCallback);
220 mConnectedDeviceManager
224 mConnectedDeviceManager.getActiveUserConnectedDevices();
[all …]
DLocalFeature.java44 private final ConnectedDeviceManager mConnectedDeviceManager; field in LocalFeature
53 mConnectedDeviceManager = connectedDeviceManager; in LocalFeature()
60 mConnectedDeviceManager.registerActiveUserConnectionCallback(mConnectionCallback, in start()
64 mConnectedDeviceManager.getActiveUserConnectedDevices(); in start()
66 mConnectedDeviceManager.registerDeviceCallback(device, mFeatureId, in start()
74 mConnectedDeviceManager.unregisterConnectionCallback(mConnectionCallback); in stop()
75 for (ConnectedDevice device : mConnectedDeviceManager.getActiveUserConnectedDevices()) { in stop()
76 mConnectedDeviceManager.unregisterDeviceCallback(device, mFeatureId, mDeviceCallback); in stop()
89 return mConnectedDeviceManager; in getConnectedDeviceManager()
180 mConnectedDeviceManager.registerDeviceCallback(device, mFeatureId,
[all …]
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/api/external/
DConnectedDeviceManagerBinder.java46 private final ConnectedDeviceManager mConnectedDeviceManager; field in ConnectedDeviceManagerBinder
67 mConnectedDeviceManager = connectedDeviceManager; in ConnectedDeviceManagerBinder()
73 mConnectedDeviceManager.getActiveUserConnectedDevices(); in getActiveUserConnectedDevices()
102 mConnectedDeviceManager.registerActiveUserConnectionCallback(connectionCallback, in registerActiveUserConnectionCallback()
124 mConnectedDeviceManager.unregisterConnectionCallback(connectionCallback); in unregisterConnectionCallback()
161 mConnectedDeviceManager.registerDeviceCallback(companionDevice.toConnectedDevice(), in registerDeviceCallback()
185 mConnectedDeviceManager.unregisterDeviceCallback(companionDevice.toConnectedDevice(), in unregisterDeviceCallback()
195 mConnectedDeviceManager.sendMessageSecurely(companionDevice.toConnectedDevice(), in sendMessageSecurely()
207 mConnectedDeviceManager.sendMessageUnsecurely(companionDevice.toConnectedDevice(), in sendMessageUnsecurely()
245 mConnectedDeviceManager.registerDeviceAssociationCallback(associationCallback, in registerDeviceAssociationCallback()
[all …]
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/service/
DCompanionDeviceSupportService.java79 private ConnectedDeviceManager mConnectedDeviceManager; field in CompanionDeviceSupportService
90 mConnectedDeviceManager = new ConnectedDeviceManager(this); in onCreate()
91 mLocalFeatures.add(new ConnectionHowitzer(this, mConnectedDeviceManager)); in onCreate()
93 new ConnectedDeviceManagerBinder(mConnectedDeviceManager); in onCreate()
94 mAssociationBinder = new AssociationBinder(mConnectedDeviceManager); in onCreate()
149 mConnectedDeviceManager.reset(); in cleanup()
161 mConnectedDeviceManager.start(); in initializeFeatures()
171 return mConnectedDeviceManager; in getConnectedDeviceManager()