Searched refs:deviceMessage (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/ |
D | SecureBleChannel.java | 234 DeviceMessage deviceMessage = new DeviceMessage(/* recipient = */ null, in sendUniqueIdToClient() local 237 mStream.writeMessage(deviceMessage, OperationType.ENCRYPTION_HANDSHAKE); in sendUniqueIdToClient() 252 DeviceMessage deviceMessage = new DeviceMessage(/* recipient = */ null, in sendHandshakeMessage() local 254 mStream.writeMessage(deviceMessage, OperationType.ENCRYPTION_HANDSHAKE); in sendHandshakeMessage() 263 DeviceMessage deviceMessage = new DeviceMessage(/* recipient = */ null, in sendServerAuthToClient() local 265 mStream.writeMessage(deviceMessage, OperationType.ENCRYPTION_HANDSHAKE); in sendServerAuthToClient() 274 void sendEncryptedMessage(@NonNull DeviceMessage deviceMessage) throws IllegalStateException { in sendEncryptedMessage() argument 275 if (!deviceMessage.isMessageEncrypted()) { in sendEncryptedMessage() 276 loge(TAG, "Encryption not required for this message " + deviceMessage + "."); in sendEncryptedMessage() 284 byte[] encryptedMessage = key.encryptData(deviceMessage.getMessage()); in sendEncryptedMessage() [all …]
|
D | BleDeviceMessageStream.java | 120 void writeMessage(@NonNull DeviceMessage deviceMessage) { in writeMessage() argument 121 writeMessage(deviceMessage, OperationType.CLIENT_MESSAGE); in writeMessage() 134 void writeMessage(@NonNull DeviceMessage deviceMessage, OperationType operationType) { in writeMessage() argument 138 .setIsPayloadEncrypted(deviceMessage.isMessageEncrypted()) in writeMessage() 139 .setPayload(ByteString.copyFrom(deviceMessage.getMessage())); in writeMessage() 141 UUID recipient = deviceMessage.getRecipient(); in writeMessage() 318 DeviceMessage deviceMessage = new DeviceMessage( in processPacket() local 322 mMessageReceivedListener.onMessageReceived(deviceMessage, message.getOperation()); in processPacket() 359 void onMessageReceived(@NonNull DeviceMessage deviceMessage, OperationType operationType); in onMessageReceived() argument
|
D | DeviceMessage.java | 76 DeviceMessage deviceMessage = (DeviceMessage) obj; in equals() local 77 return Objects.equals(mRecipient, deviceMessage.mRecipient) in equals() 78 && mIsMessageEncrypted == deviceMessage.mIsMessageEncrypted in equals() 79 && Arrays.equals(mMessage, deviceMessage.mMessage); in equals()
|
D | CarBlePeripheralManager.java | 540 public void onMessageReceived(DeviceMessage deviceMessage) { 548 + " with " + deviceMessage.getMessage().length + " bytes in its " 552 deviceMessage));
|
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/ |
D | SecureBleChannelTest.java | 207 public void onMessageReceived(DeviceMessage deviceMessage) { in onMessageReceived() argument
|
D | BleDeviceMessageStreamTest.java | 196 return spy((deviceMessage, operationType) -> semaphore.release()); in createMessageReceivedListener()
|