Home
last modified time | relevance | path

Searched refs:mStatusBarNotification (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarNotificationListenerTest.java66 private StatusBarNotification mStatusBarNotification; field in CarNotificationListenerTest
84 when(mStatusBarNotification.getKey()).thenReturn(TEST_KEY); in setup()
85 when(mStatusBarNotification.getOverrideGroupKey()).thenReturn(TEST_OVERRIDE_GROUP_KEY); in setup()
92 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isHun_notForCurrentUser_ignoresTheEvent()
95 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_notForCurrentUser_ignoresTheEvent()
104 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isNotHun_notForCurrentUser_ignoresTheEvent()
107 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isNotHun_notForCurrentUser_ignoresTheEvent()
116 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager()
119 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager()
127 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isHun_isForCurrentUser_doesNotAddItToActiveNotifications()
[all …]
DNotificationUtilsTest.java52 private StatusBarNotification mStatusBarNotification; field in NotificationUtilsTest
58 when(mStatusBarNotification.getKey()).thenReturn("TEST_KEY"); in setup()
59 mAlertEntry = new AlertEntry(mStatusBarNotification); in setup()
185 when(mStatusBarNotification.getNotification()).thenReturn(notification); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
186 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
199 when(mStatusBarNotification.getNotification()).thenReturn(notification); in onGetNotificationViewType_notificationHasBigTextAndSummaryText_returnsInbox()
200 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onGetNotificationViewType_notificationHasBigTextAndSummaryText_returnsInbox()
209 when(mStatusBarNotification.getNotification()).thenReturn(notification); in onGetNotificationViewType_unrecognizedTypeWithoutBigTextOrSummary_returnsBasic()
210 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onGetNotificationViewType_unrecognizedTypeWithoutBigTextOrSummary_returnsBasic()
DCarHeadsUpNotificationManagerTest.java87 StatusBarNotification mStatusBarNotification; field in CarHeadsUpNotificationManagerTest
122 mAlertEntrySpy = Mockito.spy(new AlertEntry(mStatusBarNotification)); in setupBaseActivityAndLayout()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/template/
DCarNotificationActionsViewTest.java70 private StatusBarNotification mStatusBarNotification; field in CarNotificationActionsViewTest
84 when(mStatusBarNotification.getKey()).thenReturn(TEST_KEY); in setup()
114 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onBind_noAction_doesNotCreateButtons()
130 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onBind_actionExists_isCarCompatibleMessage_playButtonIsVisible()
144 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onBind_actionExists_isCarCompatibleMessage_playButtonHasClickListener()
158 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onBind_actionExists_isCarCompatibleMessage_playButtonShowsPlayLabel()
173 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onBind_actionExists_isCarCompatibleMessage_muteButtonIsVisible()
187 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onBind_actionExists_isCarCompatibleMessage_muteButtonHasClickListener()
202 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onBind_actionExists_isCarCompatibleMessage_muted_muteButtonShowsUnmuteLabel()
218 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onBind_actionExists_isCarCompatibleMessage_unmuted_muteButtonShowsMuteLabel()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DAlertEntry.java31 private StatusBarNotification mStatusBarNotification; field in AlertEntry
35 mStatusBarNotification = statusBarNotification; in AlertEntry()
68 return mStatusBarNotification; in getStatusBarNotification()
93 return mStatusBarNotification.getNotification(); in getNotification()
/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/
DFallbackAssistant.java238 private final StatusBarNotification mStatusBarNotification; field in FallbackAssistant.ActionRequestInfo
243 mStatusBarNotification = statusBarNotification; in ActionRequestInfo()
249 return mStatusBarNotification; in getStatusBarNotification()