Home
last modified time | relevance | path

Searched refs:companionDevice (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Car/CompanionDeviceSupport/tests/unit/src/com/android/car/companiondevicesupport/api/external/
DConnectedDeviceManagerBinderTest.java111 CompanionDevice companionDevice = new CompanionDevice(UUID.randomUUID().toString(), in registerDeviceCallback_mirrorsConnectedDeviceManager() local
114 mBinder.registerDeviceCallback(companionDevice, mRecipientId, in registerDeviceCallback_mirrorsConnectedDeviceManager()
117 refEq(companionDevice.toConnectedDevice()), refEq(mRecipientId.getUuid()), in registerDeviceCallback_mirrorsConnectedDeviceManager()
124 CompanionDevice companionDevice = new CompanionDevice(UUID.randomUUID().toString(), in unregisterDeviceCallback_mirrorsConnectedDeviceManager() local
127 mBinder.registerDeviceCallback(companionDevice, mRecipientId, deviceCallback); in unregisterDeviceCallback_mirrorsConnectedDeviceManager()
128 mBinder.unregisterDeviceCallback(companionDevice, mRecipientId, deviceCallback); in unregisterDeviceCallback_mirrorsConnectedDeviceManager()
130 refEq(companionDevice.toConnectedDevice()), refEq(mRecipientId.getUuid()), in unregisterDeviceCallback_mirrorsConnectedDeviceManager()
136 CompanionDevice companionDevice = new CompanionDevice(UUID.randomUUID().toString(), in sendMessageSecurely_mirrorsConnectedDeviceManager() local
140 mBinder.sendMessageSecurely(companionDevice, mRecipientId, message); in sendMessageSecurely_mirrorsConnectedDeviceManager()
142 refEq(companionDevice.toConnectedDevice()), in sendMessageSecurely_mirrorsConnectedDeviceManager()
[all …]
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/
DRemoteFeature.java242 public void onDeviceConnected(CompanionDevice companionDevice) throws RemoteException {
243 mConnectedDeviceManager.registerDeviceCallback(companionDevice, mFeatureId,
245 RemoteFeature.this.onDeviceConnected(companionDevice);
249 public void onDeviceDisconnected(CompanionDevice companionDevice) throws RemoteException {
250 mConnectedDeviceManager.unregisterDeviceCallback(companionDevice, mFeatureId,
252 RemoteFeature.this.onDeviceDisconnected(companionDevice);
258 public void onSecureChannelEstablished(CompanionDevice companionDevice) {
259 RemoteFeature.this.onSecureChannelEstablished(companionDevice);
263 public void onMessageReceived(CompanionDevice companionDevice, byte[] message) {
264 RemoteFeature.this.onMessageReceived(companionDevice, message);
[all …]
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/api/external/
DConnectedDeviceManagerBinder.java131 public void registerDeviceCallback(CompanionDevice companionDevice, ParcelUuid recipientId, in registerDeviceCallback() argument
161 mConnectedDeviceManager.registerDeviceCallback(companionDevice.toConnectedDevice(), in registerDeviceCallback()
165 iBinder -> unregisterDeviceCallback(companionDevice, recipientId, callback)); in registerDeviceCallback()
170 public void unregisterDeviceCallback(CompanionDevice companionDevice, ParcelUuid recipientId, in unregisterDeviceCallback() argument
185 mConnectedDeviceManager.unregisterDeviceCallback(companionDevice.toConnectedDevice(), in unregisterDeviceCallback()
192 public boolean sendMessageSecurely(CompanionDevice companionDevice, ParcelUuid recipientId, in sendMessageSecurely() argument
195 mConnectedDeviceManager.sendMessageSecurely(companionDevice.toConnectedDevice(), in sendMessageSecurely()
205 public void sendMessageUnsecurely(CompanionDevice companionDevice, ParcelUuid recipientId, in sendMessageUnsecurely() argument
207 mConnectedDeviceManager.sendMessageUnsecurely(companionDevice.toConnectedDevice(), in sendMessageUnsecurely()
DCompanionDevice.java102 CompanionDevice companionDevice = (CompanionDevice) obj; in equals() local
103 return Objects.equals(mDeviceId, companionDevice.getDeviceId()) in equals()
104 && Objects.equals(mDeviceName, companionDevice.getDeviceName()) in equals()
105 && mIsActiveUser == companionDevice.isActiveUser() in equals()
106 && mHasSecureChannel == companionDevice.hasSecureChannel(); in equals()
DIConnectedDeviceManager.aidl54 void registerDeviceCallback(in CompanionDevice companionDevice, in ParcelUuid recipientId, in registerDeviceCallback() argument
64 void unregisterDeviceCallback(in CompanionDevice companionDevice, in ParcelUuid recipientId, in unregisterDeviceCallback() argument
75 boolean sendMessageSecurely(in CompanionDevice companionDevice, in ParcelUuid recipientId, in sendMessageSecurely() argument
85 void sendMessageUnsecurely(in CompanionDevice companionDevice, in ParcelUuid recipientId, in sendMessageUnsecurely() argument
DIDeviceCallback.aidl27 void onSecureChannelEstablished(in CompanionDevice companionDevice); in onSecureChannelEstablished() argument
30 void onMessageReceived(in CompanionDevice companionDevice, in byte[] message); in onMessageReceived() argument
33 void onDeviceError(in CompanionDevice companionDevice, int error); in onDeviceError() argument
DIConnectionCallback.aidl24 void onDeviceConnected(in CompanionDevice companionDevice); in onDeviceConnected() argument
27 void onDeviceDisconnected(in CompanionDevice companionDevice); in onDeviceDisconnected() argument
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/activity/
DAssociatedDeviceViewModel.java386 public void onDeviceConnected(CompanionDevice companionDevice) {
387 mConnectedDevices.add(companionDevice);
392 public void onDeviceDisconnected(CompanionDevice companionDevice) {
393 mConnectedDevices.removeIf(d -> d.getDeviceId().equals(companionDevice.getDeviceId()));