Searched refs:mStatusBarNotification (Results 1 – 6 of 6) sorted by relevance
65 private StatusBarNotification mStatusBarNotification; field in CarNotificationListenerTest83 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 …]
55 private StatusBarNotification mStatusBarNotification; field in NotificationUtilsTest62 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()
75 private StatusBarNotification mStatusBarNotification; field in CarNotificationActionsViewTest103 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 …]
31 private StatusBarNotification mStatusBarNotification; field in AlertEntry35 mStatusBarNotification = statusBarNotification; in AlertEntry()68 return mStatusBarNotification; in getStatusBarNotification()93 return mStatusBarNotification.getNotification(); in getNotification()
56 @Mock private StatusBarNotification mStatusBarNotification; field in WifiNotificationManagerTest103 .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()
238 private final StatusBarNotification mStatusBarNotification; field in FallbackAssistant.ActionRequestInfo243 mStatusBarNotification = statusBarNotification; in ActionRequestInfo()249 return mStatusBarNotification; in getStatusBarNotification()