Home
last modified time | relevance | path

Searched refs:getNotification (Results 1 – 25 of 48) sorted by relevance

12

/packages/apps/Car/Notification/src/com/android/car/notification/
DPreprocessingManager.java217 alertEntry.getNotification().category)); in filter()
225 (alertEntry.getNotification().flags in isLessImportantForegroundNotification()
244 Notification notification = alertEntry.getNotification(); in isMediaOrNavigationNotification()
271 if (Notification.CATEGORY_MESSAGE.equals(alertEntry.getNotification().category)){ in optimizeForDriving()
275 Bundle extras = alertEntry.getNotification().extras; in optimizeForDriving()
323 Notification notification = alertEntry.getNotification(); in group()
391 if (notification.getNotification().showsTime()) { in group()
394 notification.getNotification().when); in group()
399 groupSummaryNotification.getNotification().extras.putBoolean( in group()
401 groupSummaryNotification.getNotification().when = greatestTimestamp; in group()
[all …]
DCarNotificationDiff.java129 && oldItem.getNotification().flags == newItem.getNotification().flags; in sameNotificationKeyAndFlags()
198 Notification oldNotification = oldItem.getNotification(); in sameNotificationContent()
199 Notification newNotification = newItem.getNotification(); in sameNotificationContent()
DCarHeadsUpNotificationManager.java161 || alertAgain(alertEntry.getNotification())) { in maybeShowHeadsUp()
268 alertEntry.getNotification()); in addNewHeadsUpEntry()
274 alertEntry.getNotification()); in addNewHeadsUpEntry()
439 && Objects.equals(alertEntry.getNotification().category, Notification.CATEGORY_CALL) in shouldDismissOnSwipe()
461 return alertEntry.getNotification().fullScreenIntent != null; in hasFullScreenIntent()
555 Notification notification = alertEntry.getNotification(); in shouldShowHeadsUp()
DNotificationClickHandlerFactory.java116 Notification notification = alertEntry.getNotification(); in getClickHandler()
160 Notification notification = alertEntry.getNotification(); in getActionClickHandler()
239 CarAssistUtils.getMuteAction(messageNotification.getNotification());
397 int flags = alertEntry.getNotification().flags;
DAlertEntry.java92 public Notification getNotification() { in getNotification() method in AlertEntry
93 return mStatusBarNotification.getNotification(); in getNotification()
DNotificationGroup.java133 (notification.getNotification().flags & Notification.FLAG_FOREGROUND_SERVICE) in isDismissible()
179 Bundle extras = notification.getNotification().extras; in generateChildTitles()
DNotificationUtils.java111 String category = alertEntry.getNotification().category; in getNotificationViewType()
130 Bundle extras = alertEntry.getNotification().extras; in getNotificationViewType()
/packages/modules/ExtServices/java/src/android/ext/services/notification/
DNotificationEntry.java134 cloneNotificationLight(sbn.getNotification()), in cloneStatusBarNotificationLight()
159 final Notification n = getNotification(); in calculateAudioAttributes()
182 final Notification n = getNotification(); in calculateInitialImportance()
222 return Objects.equals(getNotification().category, category); in isCategory()
230 Notification publicVersion = getNotification().publicVersion; in isPublicVersionCategory()
243 ArrayList<Person> people = getNotification().extras.getParcelableArrayList( in hasPerson()
249 String templateClass = getNotification().extras.getString(Notification.EXTRA_TEMPLATE); in hasStyle()
254 return (getNotification().flags & Notification.FLAG_FOREGROUND_SERVICE) != 0; in isOngoing()
279 Notification.Action[] actions = getNotification().actions; in hasInlineReply()
325 public Notification getNotification() { in getNotification() method in NotificationEntry
[all …]
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DPreprocessingManagerTest.java185 when(mStatusBarNotification1.getNotification()).thenReturn(mBackgroundNotification); in setup()
186 when(mStatusBarNotification2.getNotification()).thenReturn(mForegroundNotification); in setup()
187 when(mStatusBarNotification3.getNotification()).thenReturn(mMediaNotification); in setup()
188 when(mStatusBarNotification4.getNotification()).thenReturn(mNavigationNotification); in setup()
189 when(mStatusBarNotification5.getNotification()).thenReturn(mBackgroundNotification); in setup()
190 when(mStatusBarNotification6.getNotification()).thenReturn(mForegroundNotification); in setup()
191 when(mSummaryStatusBarNotification.getNotification()).thenReturn(mSummaryNotification); in setup()
262 when(callSBN.getNotification()).thenReturn(callNotification); in onFilter_doShowLessImportantNotifications_filtersCalls()
275 when(callSBN.getNotification()).thenReturn(callNotification); in onFilter_dontShowLessImportantNotifications_filtersCalls()
301 when(mNavigation.getNotification()).thenReturn(nonMessageNotification); in onOptimizeForDriving_alertEntryHasNonMessageNotification_trimsNotificationTexts()
[all …]
DNotificationClickHandlerFactoryTest.java119 when(mStatusBarNotification1.getNotification()).thenReturn(notification1); in setUp()
120 when(mStatusBarNotification2.getNotification()).thenReturn(notification2); in setUp()
151 mAlertEntry1.getNotification().contentIntent = null; in onClickClickHandler_noIntent_returnsImmediately()
152 mAlertEntry1.getNotification().fullScreenIntent = null; in onClickClickHandler_noIntent_returnsImmediately()
190 mAlertEntry1.getStatusBarNotification().getNotification().flags = in onClickClickHandler_shouldAutoCancel_callsBarServiceOnNotificationClear()
191 mStatusBarNotification1.getNotification().flags | Notification.FLAG_AUTO_CANCEL; in onClickClickHandler_shouldAutoCancel_callsBarServiceOnNotificationClear()
253 mStatusBarNotification1.getNotification().actions = actions; in onClickActionClickHandler_notCarCompatibleMessage_sendsPendingIntent()
278 mStatusBarNotification1.getNotification().actions = actions; in onClickActionClickHandler_notCarCompatibleMessage_invokesRegisteredListeners()
DNotificationGroupTest.java182 mNotification1.getNotification().flags = in isDismissible_containsOngoingNotification_returnsFalse()
183 mNotification1.getNotification().flags | Notification.FLAG_ONGOING_EVENT; in isDismissible_containsOngoingNotification_returnsFalse()
192 mNotification1.getNotification().flags = in isDismissible_containsForegroundService_returnsFalse()
193 mNotification1.getNotification().flags | Notification.FLAG_FOREGROUND_SERVICE; in isDismissible_containsForegroundService_returnsFalse()
DCarNotificationViewTest.java239 notification.getNotification().flags = in getNotificationGroup()
240 notification.getNotification().flags | Notification.FLAG_ONGOING_EVENT; in getNotificationGroup()
241 notification.getNotification().flags = in getNotificationGroup()
242 notification.getNotification().flags | Notification.FLAG_FOREGROUND_SERVICE; in getNotificationGroup()
DNotificationUtilsTest.java203 when(mStatusBarNotification.getNotification()).thenReturn(notification); in onGetNotificationViewType_notificationIsARecognizedType_returnsCorrectType()
217 when(mStatusBarNotification.getNotification()).thenReturn(notification); in onGetNotificationViewType_notificationHasBigTextAndSummaryText_returnsInbox()
227 when(mStatusBarNotification.getNotification()).thenReturn(notification); in onGetNotificationViewType_unrecognizedTypeWithoutBigTextOrSummary_returnsBasic()
/packages/apps/Settings/src/com/android/settings/notification/history/
DNotificationSbnAdapter.java117 holder.setTitle(getTitleString(sbn.getNotification())); in onBindViewHolder()
118 holder.setSummary(getTextString(mContext, sbn.getNotification())); in onBindViewHolder()
129 sbn.getNotification().contentIntent, sbn.getInstanceId(), mIsSnoozed, in onBindViewHolder()
134 .putExtra(EXTRA_CHANNEL_ID, sbn.getNotification().getChannelId()) in onBindViewHolder()
135 .putExtra(EXTRA_CONVERSATION_ID, sbn.getNotification().getShortcutId()); in onBindViewHolder()
147 int color = sbn.getNotification().color; in loadBackground()
184 if (sbn.isGroup() && sbn.getNotification().isGroupSummary()) { in shouldShowSbn()
241 Drawable draw = sbn.getNotification().getSmallIcon().loadDrawableAsUser( in loadIcon()
DNotificationStation.java124 logd("onNotificationPosted: %s, with update for %d", sbn.getNotification(),
127 if (sbn.getNotification().isGroupSummary()) {
138 if (sbn.getNotification().isGroupSummary()) {
346 Drawable draw = sbn.getNotification().getSmallIcon().loadDrawableAsUser( in loadIcon()
352 draw.setColorFilter(sbn.getNotification().color, PorterDuff.Mode.SRC_ATOP); in loadIcon()
386 if (sbn.getNotification().isGroupSummary()) { in loadNotifications()
406 final Notification n = sbn.getNotification(); in createFromSbn()
422 info.channelId = sbn.getNotification().getChannelId(); in createFromSbn()
512 final Notification n = sbn.getNotification(); in generateExtraText()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/
DNotificationHelperTest.java58 assertThat(notification.getNotification().getChannelId()).isEqualTo(CHANNEL_ID); in showResumeNotification_showsExpectedNotification()
59 assertThat(notification.getNotification().extras.getString(Notification.EXTRA_TITLE)) in showResumeNotification_showsExpectedNotification()
72 assertThat(notification.getNotification().getChannelId()).isEqualTo(CHANNEL_ID); in showPrivacyReminderNotification_showsExpectedNotification()
73 assertThat(notification.getNotification().extras.getString(Notification.EXTRA_TITLE)) in showPrivacyReminderNotification_showsExpectedNotification()
/packages/apps/Car/libs/car-assist-lib/src/com/android/car/assist/payloadhandlers/
DNotificationPayloadHandler.java66 public Notification getNotification(Bundle args) { in getNotification() method in NotificationPayloadHandler
69 return sbn == null ? null : sbn.getNotification(); in getNotification()
81 Notification notification = getNotification(args); in getMessages()
99 Notification notification = getNotification(args); in getAction()
/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/
DNotificationEntryTest.java115 sbn.getNotification().extras.putParcelableArrayList(Notification.EXTRA_PEOPLE_LIST, people); in testHasPerson()
259 assertNull(entry.getNotification().getSmallIcon()); in testShrinkNotification()
260 assertNull(entry.getNotification().getLargeIcon()); in testShrinkNotification()
261 assertNull(entry.getNotification().largeIcon); in testShrinkNotification()
262 assertNull(entry.getNotification().extras.getParcelable(Notification.EXTRA_LARGE_ICON)); in testShrinkNotification()
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationBaseViewHolder.java215 Notification notification = getAlertEntry().getNotification(); in initializeColors()
237 Notification notification = getAlertEntry().getNotification(); in canChangeCardBackgroundColor()
254 int color = getAlertEntry().getNotification().color; in getAccentColor()
325 return (getAlertEntry().getNotification().flags in isDismissible()
DCarNotificationHeaderView.java118 Notification notification = alertEntry.getNotification(); in bind()
220 final Notification notification = sbn.getNotification(); in loadHeaderAppName()
/packages/apps/Dialer/java/com/android/dialer/notification/
DDialerNotificationManager.java111 return notification.getNotification().getGroup(); in findGroupKey()
123 if (TextUtils.equals(groupKey, notification.getNotification().getGroup())) { in getGroupSummaryAndCount()
124 if ((notification.getNotification().flags & Notification.FLAG_GROUP_SUMMARY) != 0) { in getGroupSummaryAndCount()
DNotificationThrottler.java131 if ((notification.getNotification().flags & Notification.FLAG_GROUP_SUMMARY) != 0) { in isNotificationInGroup()
135 return TextUtils.equals(groupKey, notification.getNotification().getGroup()); in isNotificationInGroup()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationInfo.java68 Notification notification = statusBarNotification.getNotification(); in NotificationInfo()
80 mIconColor = statusBarNotification.getNotification().color; in NotificationInfo()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestNotificationService.java124 mCancelled = doCancel(sbn.getNotification()); in onNotificationPosted()
148 boolean isStartProgress = isStartProgress(sbn.getNotification()); in onNotificationRemoved()
/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/
DFallbackAssistant.java109 Parcelable[] messagesBundle = sbn.getNotification().extras in handleReadAction()
192 sbn.getNotification()); in sendMarkAsReadIntent()

12