Home
last modified time | relevance | path

Searched refs:onMessageReceived (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Car/Messenger/tests/robotests/src/com/android/car/messenger/
DMessengerDelegateTest.java122 mMessengerDelegate.onMessageReceived(mMessageOneIntent); in testOnDeviceDisconnected_connectedDevice_withMessages()
132 mMessengerDelegate.onMessageReceived(mMessageOneIntent); in testOnDeviceDisconnected_notConnectedDevice_withMessagesFromConnectedDevice()
143 mMessengerDelegate.onMessageReceived(mMessageOneIntent); in testOnDeviceDisconnected_connectedDevice_retainsMessagesFromConnectedDevice()
161 mMessengerDelegate.onMessageReceived(mMessageOneIntent); in testOnMessageReceived_newMessage()
170 mMessengerDelegate.onMessageReceived(mMessageOneIntent); in testOnMessageReceived_duplicateMessage()
171 mMessengerDelegate.onMessageReceived(mMessageOneIntent); in testOnMessageReceived_duplicateMessage()
179 mMessengerDelegate.onMessageReceived(mMessageOneIntent); in testClearNotification_keepsNotificationData()
190 mMessengerDelegate.onMessageReceived(mMessageOneIntent); in testHandleMarkAsRead()
206 mMessengerDelegate.onMessageReceived(readMessageIntent); in testMessageReadOnPhone()
223 mMessengerDelegate.onMessageReceived(existingMessageIntent); in testNotificationsNotShownForExistingMessages()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/
DConnectedDeviceManagerTest.java321 mConnectedDeviceManager.onMessageReceived(connectedDevice.getDeviceId(), message); in registerDeviceCallback_blacklistsDuplicateRecipientId()
328 verify(firstDeviceCallback, times(0)).onMessageReceived(any(), any()); in registerDeviceCallback_blacklistsDuplicateRecipientId()
329 verify(secondDeviceCallback, times(0)).onMessageReceived(any(), any()); in registerDeviceCallback_blacklistsDuplicateRecipientId()
384 mConnectedDeviceManager.onMessageReceived(connectedDevice.getDeviceId(), message); in deviceCallback_onMessageReceivedInvokedForSameRecipientId()
386 verify(deviceCallback).onMessageReceived(connectedDevice, payload); in deviceCallback_onMessageReceivedInvokedForSameRecipientId()
401 mConnectedDeviceManager.onMessageReceived(connectedDevice.getDeviceId(), message); in deviceCallback_onMessageReceivedNotInvokedForDifferentRecipientId()
445 mConnectedDeviceManager.onMessageReceived(connectedDevice.getDeviceId(), message); in registerDeviceCallback_sendsMissedMessageAfterRegistration()
450 verify(deviceCallback).onMessageReceived(connectedDevice, payload); in registerDeviceCallback_sendsMissedMessageAfterRegistration()
462 mConnectedDeviceManager.onMessageReceived(connectedDevice.getDeviceId(), message); in registerDeviceCallback_doesNotSendMissedMessageForDifferentRecipient()
481 mConnectedDeviceManager.onMessageReceived(otherDevice.getDeviceId(), message); in registerDeviceCallback_doesNotSendMissedMessageForDifferentDevice()
[all …]
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/
DSecureBleChannelTest.java162 mMessageReceivedListener.onMessageReceived(message, OperationType.ENCRYPTION_HANDSHAKE); in sendDeviceId()
171 mMessageReceivedListener.onMessageReceived(message, OperationType.ENCRYPTION_HANDSHAKE); in initHandshakeMessage()
180 mMessageReceivedListener.onMessageReceived(message, OperationType.ENCRYPTION_HANDSHAKE); in respondToContinueMessage()
207 public void onMessageReceived(DeviceMessage deviceMessage) { in onMessageReceived() method in SecureBleChannelTest.ChannelCallback
DBleDeviceMessageStreamTest.java106 verify(listener).onMessageReceived(messageCaptor.capture(), any()); in processPacket_notifiesWithEntireMessageForSinglePacketMessage()
119 verify(listener).onMessageReceived(messageCaptor.capture(), any()); in processPacket_notifiesWithEntireMessageForMultiPacketMessage()
142 verify(listener).onMessageReceived(messageCaptor.capture(), any()); in processPacket_receivingMultipleMessagesInParallelParsesSuccessfully()
149 verify(listener).onMessageReceived(messageCaptor.capture(), any()); in processPacket_receivingMultipleMessagesInParallelParsesSuccessfully()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/trust/
DTrustedDeviceFeature.java59 protected void onMessageReceived(CompanionDevice device, byte[] message) { in onMessageReceived() method in TrustedDeviceFeature
61 mCallback.onMessageReceived(device, message); in onMessageReceived()
95 void onMessageReceived(@NonNull CompanionDevice device, @NonNull byte[] message); in onMessageReceived() method
/packages/apps/Car/Messenger/src/com/android/car/messenger/bluetooth/
DBluetoothMonitor.java85 void onMessageReceived(Intent intent); in onMessageReceived() method
129 private void onMessageReceived(Intent intent) { in onMessageReceived() method in BluetoothMonitor
130 mListeners.forEach(listener -> listener.onMessageReceived(intent)); in onMessageReceived()
269 onMessageReceived(intent); in onReceive()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/
DLocalFeature.java164 protected void onMessageReceived(@NonNull ConnectedDevice device, @NonNull byte[] message) { } in onMessageReceived() method in LocalFeature
200 public void onMessageReceived(ConnectedDevice device, byte[] message) {
201 LocalFeature.this.onMessageReceived(device, message);
DRemoteFeature.java200 protected void onMessageReceived(@NonNull CompanionDevice device, @NonNull byte[] message) { } in onMessageReceived() method in RemoteFeature
263 public void onMessageReceived(CompanionDevice companionDevice, byte[] message) {
264 RemoteFeature.this.onMessageReceived(companionDevice, message);
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/
DSecureBleChannel.java381 public void onMessageReceived(DeviceMessage deviceMessage,
398 notifyCallback(callback -> callback.onMessageReceived(
414 callback -> callback.onMessageReceived(deviceMessage));
449 void onMessageReceived(@NonNull DeviceMessage deviceMessage); in onMessageReceived() method
DBleDeviceMessageStream.java322 mMessageReceivedListener.onMessageReceived(deviceMessage, message.getOperation()); in processPacket()
359 void onMessageReceived(@NonNull DeviceMessage deviceMessage, OperationType operationType); in onMessageReceived() method
DCarBlePeripheralManager.java540 public void onMessageReceived(DeviceMessage deviceMessage) {
551 callback ->callback.onMessageReceived(connectedDevice.mDeviceId,
DCarBleManager.java244 void onMessageReceived(@NonNull String deviceId, @NonNull DeviceMessage message); in onMessageReceived() method
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/
DConnectedDeviceManager.java435 deviceCallback.onMessageReceived(device, message)); in registerDeviceCallback()
664 void onMessageReceived(@NonNull String deviceId, @NonNull DeviceMessage message) { in onMessageReceived() method in ConnectedDeviceManager
699 callback -> callback.onMessageReceived(connectedDevice.mConnectedDevice, in onMessageReceived()
808 public void onMessageReceived(String deviceId, DeviceMessage message) { in generateCarBleCallback() method in ConnectedDeviceManager
809 ConnectedDeviceManager.this.onMessageReceived(deviceId, message); in generateCarBleCallback()
898 void onMessageReceived(@NonNull ConnectedDevice device, @NonNull byte[] message);
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/notificationmsg/
DNotificationMsgFeature.java71 protected void onMessageReceived(CompanionDevice device, byte[] message) { in onMessageReceived() method in NotificationMsgFeature
86 mNotificationMsgDelegate.onMessageReceived(device, phoneToCarMessage); in onMessageReceived()
DNotificationMsgDelegate.java80 public void onMessageReceived(CompanionDevice device, PhoneToCarMessage message) { in onMessageReceived() method in NotificationMsgDelegate
/packages/apps/Car/CompanionDeviceSupport/tests/unit/src/com/android/car/companiondevicesupport/feature/calendarsync/
DCalendarSyncFeatureTest.java129 public void onMessageReceived() { in onMessageReceived() method in CalendarSyncFeatureTest
133 mCalendarSyncFeature.onMessageReceived(mCompanionDevice, expectedCalendars.toByteArray()); in onMessageReceived()
/packages/apps/Nfc/src/com/android/nfc/ndefpush/
DNdefPushServer.java54 void onMessageReceived(NdefMessage msg); in onMessageReceived() method
103 mCallback.onMessageReceived(msg.getImmediate()); in run()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/api/external/
DConnectedDeviceManagerBinder.java144 public void onMessageReceived(ConnectedDevice device, byte[] message) { in registerDeviceCallback()
146 callback.onMessageReceived(new CompanionDevice(device), message); in registerDeviceCallback()
DIDeviceCallback.aidl30 void onMessageReceived(in CompanionDevice companionDevice, in byte[] message); in onMessageReceived() method
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DBugleActionToasts.java98 public static void onMessageReceived(final String conversationId, in onMessageReceived() method in BugleActionToasts
DReceiveMmsMessageAction.java125 BugleActionToasts.onMessageReceived(conversationId, sender, message); in executeAction()
DReceiveSmsMessageAction.java153 BugleActionToasts.onMessageReceived(conversationId, sender, message); in executeAction()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/calendarsync/
DCalendarSyncFeature.java88 protected void onMessageReceived(CompanionDevice device, byte[] message) { in onMessageReceived() method in CalendarSyncFeature
/packages/apps/Car/CompanionDeviceSupport/tests/unit/src/com/android/car/companiondevicesupport/api/external/
DConnectedDeviceManagerBinderTest.java201 public void onMessageReceived(CompanionDevice companionDevice, byte[] message) {
/packages/apps/Car/Messenger/src/com/android/car/messenger/
DMessengerDelegate.java100 public void onMessageReceived(Intent intent) { in onMessageReceived() method in MessengerDelegate

12