Home
last modified time | relevance | path

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

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarNotificationListenerTest.java65 private StatusBarNotification mStatusBarNotification; field in CarNotificationListenerTest
83 when(mStatusBarNotification.getKey()).thenReturn(TEST_KEY); in setup()
84 when(mStatusBarNotification.getOverrideGroupKey()).thenReturn(TEST_OVERRIDE_GROUP_KEY); in setup()
90 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isHun_notForCurrentUser_ignoresTheEvent()
93 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_notForCurrentUser_ignoresTheEvent()
102 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isNotHun_notForCurrentUser_ignoresTheEvent()
105 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isNotHun_notForCurrentUser_ignoresTheEvent()
114 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager()
117 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager()
125 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isHun_isForCurrentUser_doesNotAddItToActiveNotifications()
[all …]
DNotificationUtilsTest.java55 private StatusBarNotification mStatusBarNotification; field in NotificationUtilsTest
62 when(mStatusBarNotification.getKey()).thenReturn("TEST_KEY"); in setup()
63 when(mStatusBarNotification.getPackageName()).thenReturn("TEST_PACKAGE_NAME"); in setup()
64 mAlertEntry = new AlertEntry(mStatusBarNotification); in setup()
203 when(mStatusBarNotification.getNotification()).thenReturn(notification); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
204 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
217 when(mStatusBarNotification.getNotification()).thenReturn(notification); in onGetNotificationViewType_notificationHasBigTextAndSummaryText_returnsInbox()
218 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onGetNotificationViewType_notificationHasBigTextAndSummaryText_returnsInbox()
227 when(mStatusBarNotification.getNotification()).thenReturn(notification); in onGetNotificationViewType_unrecognizedTypeWithoutBigTextOrSummary_returnsBasic()
228 AlertEntry alertEntry = new AlertEntry(mStatusBarNotification); in onGetNotificationViewType_unrecognizedTypeWithoutBigTextOrSummary_returnsBasic()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/template/
DCarNotificationActionsViewTest.java75 private StatusBarNotification mStatusBarNotification; field in CarNotificationActionsViewTest
103 when(mStatusBarNotification.getKey()).thenReturn(TEST_KEY); in setup()
132 new AlertEntry(mStatusBarNotification)); in onBind_noAction_doesNotCreateButtons()
269 new AlertEntry(mStatusBarNotification)); in onBind_actionExists_notCarCompatibleMessage_buttonIsVisible()
281 new AlertEntry(mStatusBarNotification)); in onBind_actionExists_notCarCompatibleMessage_buttonShowsActionTitle()
293 new AlertEntry(mStatusBarNotification)); in onBind_actionExists_notCarCompatibleMessage_hasIntent_buttonHasClickListener()
310 new AlertEntry(mStatusBarNotification)); in onBind_actionExists_notCarCompatibleMessage_hasNoIntent_buttonHasNoClickListener()
327 when(mStatusBarNotification.getNotification()).thenReturn(notification); in onBind_actionCountExceedsMaximum_notCarCompatibleMessage_doesNotThrowError()
330 new AlertEntry(mStatusBarNotification)); in onBind_actionCountExceedsMaximum_notCarCompatibleMessage_doesNotThrowError()
339 new AlertEntry(mStatusBarNotification)); in onBind_actionExists_notCarCompatibleMessage_isCall_firstButtonHasBackground()
[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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiNotificationManagerTest.java56 @Mock private StatusBarNotification mStatusBarNotification; field in WifiNotificationManagerTest
103 .thenReturn(new StatusBarNotification[]{mStatusBarNotification}); in testUserSwitchNotificationSendCorrect()
104 when(mStatusBarNotification.getTag()).thenReturn(NOTIFICATION_TAG); in testUserSwitchNotificationSendCorrect()
105 when(mStatusBarNotification.getId()).thenReturn(TEST_MESSAGE_ID); in testUserSwitchNotificationSendCorrect()
/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()