Searched refs:mNotificationMsgDelegate (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Car/CompanionDeviceSupport/tests/unit/src/com/android/car/companiondevicesupport/feature/notificationmsg/ |
D | NotificationMsgDelegateTest.java | 154 NotificationMsgDelegate mNotificationMsgDelegate; field in NotificationMsgDelegateTest 163 mNotificationMsgDelegate = new NotificationMsgDelegate(mContext); in setUp() 164 mNotificationMsgDelegate.setNotificationManager(mMockNotificationManager); in setUp() 165 mNotificationMsgDelegate.setProjectionStateListener(mMockProjectionStateListener); in setUp() 184 mNotificationMsgDelegate.onMessageReceived(mCompanionDevice, VALID_CONVERSATION_MSG); in newConversationShouldPostNewNotification() 194 mNotificationMsgDelegate.onMessageReceived(mCompanionDevice, VALID_CONVERSATION_MSG); in multipleNewConversationShouldPostMultipleNewNotifications() 200 mNotificationMsgDelegate.onMessageReceived(mCompanionDevice, in multipleNewConversationShouldPostMultipleNewNotifications() 216 mNotificationMsgDelegate.onMessageReceived(mCompanionDevice, newConvo); in invalidConversationShouldDoNothing() 224 mNotificationMsgDelegate.onMessageReceived(mCompanionDevice, VALID_CONVERSATION_MSG); in newMessageShouldUpdateConversationNotification() 251 mNotificationMsgDelegate.onMessageReceived(mCompanionDevice, VALID_CONVERSATION_MSG); in existingConversationShouldUpdateNotification() [all …]
|
D | NotificationMsgFeatureTest.java | 63 private NotificationMsgDelegate mNotificationMsgDelegate; field in NotificationMsgFeatureTest 79 mNotificationMsgFeature = new NotificationMsgFeature(mContext, mNotificationMsgDelegate); in setUp() 88 verify(mNotificationMsgDelegate).cleanupMessagesAndNotifications( in startShouldClearInternalMemory() 111 verify(mNotificationMsgDelegate).onDestroy(); in stopShouldDestroyDelegate() 120 verify(mNotificationMsgDelegate).onMessageReceived(mCompanionDevice, PHONE_TO_CAR_MESSAGE); in onMessageReceivedShouldPassMessageToDelegate() 131 verify(mNotificationMsgDelegate, never()).onMessageReceived(mCompanionDevice, in onMessageReceivedShouldCheckDeviceConnection() 142 verify(mNotificationMsgDelegate, never()).onDeviceDisconnected(DEVICE_ID); in unknownDeviceDisconnectedShouldDoNothing() 150 verify(mNotificationMsgDelegate).onDeviceDisconnected(DEVICE_ID); in secureDeviceDisconnectedShouldAlertDelegate()
|
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/notificationmsg/ |
D | NotificationMsgFeature.java | 44 private final NotificationMsgDelegate mNotificationMsgDelegate; field in NotificationMsgFeature 51 mNotificationMsgDelegate = notificationMsgDelegate; in NotificationMsgFeature() 58 mNotificationMsgDelegate.cleanupMessagesAndNotifications(key -> true); in start() 66 mNotificationMsgDelegate.onDestroy(); in stop() 86 mNotificationMsgDelegate.onMessageReceived(device, phoneToCarMessage); in onMessageReceived() 108 mNotificationMsgDelegate.onDeviceDisconnected(device.getDeviceId()); in onDeviceDisconnected()
|
D | NotificationMsgService.java | 57 private NotificationMsgDelegate mNotificationMsgDelegate; field in NotificationMsgService 78 mNotificationMsgDelegate = new NotificationMsgDelegate(this); in onCreate() 79 mNotificationMsgFeature = new NotificationMsgFeature(this, mNotificationMsgDelegate); in onCreate() 147 mNotificationMsgDelegate.dismiss(key).toByteArray()); in handleDismissNotificationIntent() 157 mNotificationMsgDelegate.markAsRead(key).toByteArray()); in handleMarkAsReadIntent() 169 mNotificationMsgDelegate.reply(key, message.toString()).toByteArray()); in handleReplyIntent()
|