Home
last modified time | relevance | path

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

/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/
DLocalFeature.java30 import com.android.car.connecteddevice.model.ConnectedDevice;
63 List<ConnectedDevice> activeUsersDevices = in start()
65 for (ConnectedDevice device : activeUsersDevices) { in start()
75 for (ConnectedDevice device : mConnectedDeviceManager.getActiveUserConnectedDevices()) { in stop()
100 ConnectedDevice device = getConnectedDeviceById(deviceId); in sendMessageSecurely()
112 public void sendMessageSecurely(@NonNull ConnectedDevice device, byte[] message) { in sendMessageSecurely()
118 ConnectedDevice device = getConnectedDeviceById(deviceId); in sendMessageUnsecurely()
130 public void sendMessageUnsecurely(@NonNull ConnectedDevice device, @NonNull byte[] message) { in sendMessageUnsecurely()
139 public ConnectedDevice getConnectedDeviceById(@NonNull String deviceId) { in getConnectedDeviceById()
140 List<ConnectedDevice> connectedDevices = in getConnectedDeviceById()
[all …]
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/
DConnectedDeviceManagerTest.java47 import com.android.car.connecteddevice.model.ConnectedDevice;
127 List<ConnectedDevice> activeUserDevices = in getActiveUserConnectedDevices_includesNewlyConnectedDevice()
129 ConnectedDevice expectedDevice = new ConnectedDevice(deviceId, /* deviceName = */ null, in getActiveUserConnectedDevices_includesNewlyConnectedDevice()
148 ConnectedDevice connectedDevice = in getActiveUserConnectedDevices_reflectsSecureChannelEstablished()
170 ConnectedDevice device = mConnectedDeviceManager.getActiveUserConnectedDevices().get(0); in sendMessageSecurely_throwsIllegalStateExceptionIfNoSecureChannel()
180 ConnectedDevice device = mConnectedDeviceManager.getActiveUserConnectedDevices().get(0); in sendMessageSecurely_sendsEncryptedMessage()
192 ConnectedDevice device = mConnectedDeviceManager.getActiveUserConnectedDevices().get(0); in sendMessageSecurely_doesNotSendIfDeviceDisconnected()
203 ConnectedDevice device = mConnectedDeviceManager.getActiveUserConnectedDevices().get(0); in sendMessageUnsecurely_sendsMessageWithoutEncryption()
221 ArgumentCaptor<ConnectedDevice> deviceCaptor = in connectionCallback_onDeviceConnectedInvokedForNewlyConnectedDevice()
222 ArgumentCaptor.forClass(ConnectedDevice.class); in connectionCallback_onDeviceConnectedInvokedForNewlyConnectedDevice()
[all …]
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/
DConnectedDeviceManager.java38 import com.android.car.connecteddevice.model.ConnectedDevice;
222 public List<ConnectedDevice> getActiveUserConnectedDevices() { in getActiveUserConnectedDevices()
223 List<ConnectedDevice> activeUserConnectedDevices = new ArrayList<>(); in getActiveUserConnectedDevices()
407 public void registerDeviceCallback(@NonNull ConnectedDevice device, @NonNull UUID recipientId, in registerDeviceCallback()
448 private void notifyOfBlacklisting(@NonNull ConnectedDevice device, @NonNull UUID recipientId, in notifyOfBlacklisting()
491 public void unregisterDeviceCallback(@NonNull ConnectedDevice device, in unregisterDeviceCallback()
520 public void sendMessageSecurely(@NonNull ConnectedDevice device, @NonNull UUID recipientId, in sendMessageSecurely()
532 public void sendMessageUnsecurely(@NonNull ConnectedDevice device, @NonNull UUID recipientId, in sendMessageUnsecurely()
537 private void sendMessage(@NonNull ConnectedDevice device, @NonNull UUID recipientId, in sendMessage()
597 ConnectedDevice connectedDevice = new ConnectedDevice( in addConnectedDevice()
[all …]
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/api/external/
DConnectedDeviceManagerBinder.java30 import com.android.car.connecteddevice.model.ConnectedDevice;
72 List<ConnectedDevice> connectedDevices = in getActiveUserConnectedDevices()
75 for (ConnectedDevice device : connectedDevices) { in getActiveUserConnectedDevices()
85 public void onDeviceConnected(ConnectedDevice device) { in registerActiveUserConnectionCallback()
94 public void onDeviceDisconnected(ConnectedDevice device) { in registerActiveUserConnectionCallback()
135 public void onSecureChannelEstablished(ConnectedDevice device) { in registerDeviceCallback()
144 public void onMessageReceived(ConnectedDevice device, byte[] message) { in registerDeviceCallback()
153 public void onDeviceError(ConnectedDevice device, int error) { in registerDeviceCallback()
DCompanionDevice.java24 import com.android.car.connecteddevice.model.ConnectedDevice;
39 public CompanionDevice(ConnectedDevice device) { in CompanionDevice()
125 public ConnectedDevice toConnectedDevice() { in toConnectedDevice()
126 return new ConnectedDevice(mDeviceId, mDeviceName, mIsActiveUser, mHasSecureChannel); in toConnectedDevice()
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/model/
DConnectedDevice.java27 public class ConnectedDevice { class
45 public ConnectedDevice(@NonNull String deviceId, @Nullable String deviceName, in ConnectedDevice() method in ConnectedDevice
82 if (!(obj instanceof ConnectedDevice)) { in equals()
85 ConnectedDevice connectedDevice = (ConnectedDevice) obj; in equals()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/api/internal/association/
DAssociationBinder.java31 import com.android.car.connecteddevice.model.ConnectedDevice;
178 List<ConnectedDevice> connectedDevices = in getActiveUserConnectedDevices()
181 for (ConnectedDevice device : connectedDevices) { in getActiveUserConnectedDevices()
192 public void onDeviceConnected(ConnectedDevice device) { in setConnectionCallback()
206 public void onDeviceDisconnected(ConnectedDevice device) { in setConnectionCallback()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/howitzer/
DConnectionHowitzer.java28 import com.android.car.connecteddevice.model.ConnectedDevice;
51 protected void onSecureChannelEstablished(ConnectedDevice device) { in onSecureChannelEstablished()
57 private void sendMessage(ConnectedDevice device, int messageSize) { in sendMessage()
/packages/apps/Car/CompanionDeviceSupport/tests/unit/src/com/android/car/companiondevicesupport/api/external/
DConnectedDeviceManagerBinderTest.java36 import com.android.car.connecteddevice.model.ConnectedDevice;
81 ConnectedDevice connectedDevice = new ConnectedDevice(UUID.randomUUID().toString(), in getActiveUserConnectedDevices_mirrorsConnectedDeviceManager()