/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationViewAdapter.java | 16 package com.android.car.notification; 23 import android.service.notification.StatusBarNotification; 31 import com.android.car.notification.template.BasicNotificationViewHolder; 32 import com.android.car.notification.template.CallNotificationViewHolder; 33 import com.android.car.notification.template.CarNotificationFooterViewHolder; 34 import com.android.car.notification.template.CarNotificationHeaderViewHolder; 35 import com.android.car.notification.template.EmergencyNotificationViewHolder; 36 import com.android.car.notification.template.GroupNotificationViewHolder; 37 import com.android.car.notification.template.GroupSummaryNotificationViewHolder; 38 import com.android.car.notification.template.InboxNotificationViewHolder; [all …]
|
D | PreprocessingManager.java | 16 package com.android.car.notification; 28 import android.service.notification.NotificationListenerService; 29 import android.service.notification.NotificationListenerService.RankingMap; 30 import android.service.notification.StatusBarNotification; 35 import com.android.car.notification.template.MessageNotificationViewHolder; 164 StatusBarNotification notification = optimizeForDriving(sbn); in updateNotifications() local 165 boolean isUpdate = mOldNotifications.containsKey(notification.getKey()); in updateNotifications() 168 mOldNotifications.put(notification.getKey(), notification); in updateNotifications() local 173 mOldNotifications.put(notification.getKey(), notification); in updateNotifications() local 175 additionalRank(additionalGroup(notification), newRankingMap)); in updateNotifications() [all …]
|
D | NotificationDataManager.java | 16 package com.android.car.notification; 18 import android.service.notification.StatusBarNotification; 78 void addNewMessageNotification(StatusBarNotification notification) { in addNewMessageNotification() argument 79 if (CarAssistUtils.isCarCompatibleMessagingNotification(notification)) { in addNewMessageNotification() 81 .putIfAbsent(notification.getKey(), /* muteState= */ in addNewMessageNotification() 84 if (mUnseenNotificationMap.containsKey(notification.getKey())) { in addNewMessageNotification() 85 mUnseenNotificationMap.put(notification.getKey(), true); in addNewMessageNotification() 94 void untrackUnseenNotification(StatusBarNotification notification) { in untrackUnseenNotification() argument 95 if (mUnseenNotificationMap.containsKey(notification.getKey())) { in untrackUnseenNotification() 96 mUnseenNotificationMap.remove(notification.getKey()); in untrackUnseenNotification() [all …]
|
D | CarNotificationItemTouchListener.java | 17 package com.android.car.notification; 26 import android.service.notification.NotificationStats; 27 import android.service.notification.StatusBarNotification; 36 import com.android.car.notification.template.CarNotificationBaseViewHolder; 37 import com.android.car.notification.template.CarNotificationFooterViewHolder; 38 import com.android.car.notification.template.CarNotificationHeaderViewHolder; 39 import com.android.car.notification.template.GroupNotificationViewHolder; 109 StatusBarNotification notification = viewHolder.getStatusBarNotification(); in CarNotificationItemTouchListener() 113 notification.getKey(), in CarNotificationItemTouchListener() 142 notification.getPackageName(), in CarNotificationItemTouchListener() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/notification/ |
D | DialerNotificationManager.java | 17 package com.android.dialer.notification; 22 import android.service.notification.StatusBarNotification; 41 public static void notify(@NonNull Context context, int id, @NonNull Notification notification) { in notify() argument 43 Assert.isNotNull(notification); in notify() 48 @NonNull Context context, @NonNull String tag, int id, @NonNull Notification notification) { in notify() argument 50 Assert.isNotNull(notification); in notify() 54 Assert.checkArgument(!TextUtils.isEmpty(notification.getChannelId())); in notify() 57 getNotificationManager(context).notify(tag, id, notification); in notify() 58 throttledNotificationSet.addAll(NotificationThrottler.throttle(context, notification)); in notify() 94 for (StatusBarNotification notification : notifications) { in cancelAll() [all …]
|
D | NotificationThrottler.java | 17 package com.android.dialer.notification; 22 import android.service.notification.StatusBarNotification; 60 @NonNull Context context, @NonNull Notification notification) { in throttle() argument 62 Assert.isNotNull(notification); in throttle() 66 String groupKey = notification.getGroup(); in throttle() 112 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in getSortedMatchingNotifications() 113 if (isNotificationInGroup(notification, groupKey)) { in getSortedMatchingNotifications() 114 notifications.add(notification); in getSortedMatchingNotifications() 129 @NonNull StatusBarNotification notification, @NonNull String groupKey) { in isNotificationInGroup() 131 if ((notification.getNotification().flags & Notification.FLAG_GROUP_SUMMARY) != 0) { in isNotificationInGroup() [all …]
|
/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | SmartActionsHelperTest.java | 16 package android.ext.services.notification; 41 import android.service.notification.NotificationAssistantService; 42 import android.service.notification.StatusBarNotification; 126 Notification notification = mNotificationBuilder.setContentText(MESSAGE).build(); in testSuggest_notMessageNotification() local 127 setStatusBarNotification(notification); in testSuggest_notMessageNotification() 137 Notification notification = in testSuggest_noInlineReply() local 142 setStatusBarNotification(notification); in testSuggest_noInlineReply() 158 Notification notification = createMessageNotification(); in testSuggest_settingsOff() local 159 setStatusBarNotification(notification); in testSuggest_settingsOff() 171 Notification notification = createMessageNotification(); in testSuggest_settings_repliesOnActionsOff() local [all …]
|
/packages/modules/ExtServices/src/android/ext/services/notification/ |
D | NotificationEntry.java | 16 package android.ext.services.notification; 41 import android.service.notification.StatusBarNotification; 86 private static void lightenNotificationPayload(Notification notification) { in lightenNotificationPayload() argument 87 notification.tickerView = null; in lightenNotificationPayload() 88 notification.contentView = null; in lightenNotificationPayload() 89 notification.bigContentView = null; in lightenNotificationPayload() 90 notification.headsUpContentView = null; in lightenNotificationPayload() 91 notification.largeIcon = null; in lightenNotificationPayload() 92 if (notification.extras != null && !notification.extras.isEmpty()) { in lightenNotificationPayload() 93 final Set<String> keyset = notification.extras.keySet(); in lightenNotificationPayload() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
D | NotificationInfo.java | 17 package com.android.launcher3.notification; 27 import android.service.notification.StatusBarNotification; 64 Notification notification = statusBarNotification.getNotification(); in NotificationInfo() local 65 title = notification.extras.getCharSequence(Notification.EXTRA_TITLE); in NotificationInfo() 66 text = notification.extras.getCharSequence(Notification.EXTRA_TEXT); in NotificationInfo() 68 int iconType = notification.getBadgeIconType(); in NotificationInfo() 71 Icon icon = iconType == Notification.BADGE_ICON_SMALL ? null : notification.getLargeIcon(); in NotificationInfo() 74 icon = notification.getSmallIcon(); in NotificationInfo() 88 intent = notification.contentIntent; in NotificationInfo() 89 autoCancel = (notification.flags & Notification.FLAG_AUTO_CANCEL) != 0; in NotificationInfo() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/ |
D | NotificationFragment.java | 1 package com.google.android.car.kitchensink.notification; 121 Notification notification = new Notification in initCarCategoriesButton() 128 mManager.notify(mCurrentNotificationId++, notification); in initCarCategoriesButton() 133 Notification notification = new Notification in initCarCategoriesButton() 144 mManager.notify(mCurrentNotificationId++, notification); in initCarCategoriesButton() 148 Notification notification = new Notification in initCarCategoriesButton() 157 mManager.notify(mCurrentNotificationId++, notification); in initCarCategoriesButton() 194 Notification notification = new Notification in initImportanceDefaultButton() 199 mManager.notify(mCurrentNotificationId++, notification); in initImportanceDefaultButton() 206 Notification notification = new Notification.Builder(mContext, IMPORTANCE_LOW_ID) in initImportanceLowButton() [all …]
|
/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | ProgressNotificationViewHolder.java | 16 package com.android.car.notification.template; 23 import android.service.notification.StatusBarNotification; 27 import com.android.car.notification.NotificationClickHandlerFactory; 28 import com.android.car.notification.R; 29 import com.android.car.notification.ThemesUtil; 72 Notification notification = statusBarNotification.getNotification(); in bindBody() local 74 Bundle extraData = notification.extras; in bindBody() 77 Icon icon = notification.getLargeIcon(); in bindBody() 89 if (notification.color != Notification.COLOR_DEFAULT) { in bindBody() 91 notification.color, mCardBackgroundColor); in bindBody()
|
D | CarNotificationBaseViewHolder.java | 17 package com.android.car.notification.template; 24 import android.service.notification.StatusBarNotification; 30 import com.android.car.notification.NotificationClickHandlerFactory; 31 import com.android.car.notification.NotificationUtils; 32 import com.android.car.notification.R; 33 import com.android.car.notification.ThemesUtil; 181 Notification notification = getStatusBarNotification().getNotification(); in initializeColors() 183 mHasColor = notification.color != Notification.COLOR_DEFAULT; in initializeColors() 184 mIsColorized = notification.extras.getBoolean(Notification.EXTRA_COLORIZED, false); in initializeColors() 189 mBackgroundColor = notification.color; in initializeColors() [all …]
|
D | MessageNotificationViewHolder.java | 16 package com.android.car.notification.template; 25 import android.service.notification.StatusBarNotification; 34 import com.android.car.notification.NotificationClickHandlerFactory; 35 import com.android.car.notification.PreprocessingManager; 36 import com.android.car.notification.R; 109 Notification notification = statusBarNotification.getNotification(); in bindBody() local 116 MessagingStyle.extractMessagingStyleFromNotification(notification); in bindBody() 119 Bundle extras = notification.extras; in bindBody() 141 messageCount = notification.number; in bindBody() 158 avatar = notification.getLargeIcon(); in bindBody() [all …]
|
D | CarNotificationHeaderView.java | 16 package com.android.car.notification.template; 27 import android.service.notification.StatusBarNotification; 40 import com.android.car.notification.NotificationUtils; 41 import com.android.car.notification.R; 119 Notification notification = statusBarNotification.getNotification(); in bind() local 125 Drawable drawable = notification.getSmallIcon().loadDrawable(packageContext); in bind() 140 Bundle extras = notification.extras; in bind() 155 if (notification.showsTime()) { in bind() 158 mTimeView.setTime(notification.when); in bind() 211 Notification notification = statusBarNotification.getNotification(); in loadHeaderAppName() local [all …]
|
D | NavigationNotificationViewHolder.java | 16 package com.android.car.notification.template; 21 import android.service.notification.StatusBarNotification; 24 import com.android.car.notification.NotificationClickHandlerFactory; 25 import com.android.car.notification.R; 62 Notification notification = statusBarNotification.getNotification(); in bindBody() local 63 Bundle extraData = notification.extras; in bindBody() 66 Icon icon = notification.getLargeIcon(); in bindBody()
|
D | CallNotificationViewHolder.java | 16 package com.android.car.notification.template; 21 import android.service.notification.StatusBarNotification; 24 import com.android.car.notification.NotificationClickHandlerFactory; 25 import com.android.car.notification.R; 62 Notification notification = statusBarNotification.getNotification(); in bindBody() local 63 Bundle extraData = notification.extras; in bindBody() 66 Icon icon = notification.getSmallIcon(); in bindBody()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | VisualVoicemailUpdateTask.java | 21 import android.service.notification.StatusBarNotification; 37 import com.android.dialer.notification.DialerNotificationManager; 128 for (StatusBarNotification notification : in getExistingNotificationCount() 130 if (notification.getId() != VisualVoicemailNotifier.NOTIFICATION_ID) { in getExistingNotificationCount() 133 if (TextUtils.isEmpty(notification.getTag()) in getExistingNotificationCount() 134 || !notification.getTag().startsWith(VisualVoicemailNotifier.NOTIFICATION_TAG_PREFIX)) { in getExistingNotificationCount() 152 for (StatusBarNotification notification : in getAndUpdateVoicemailsWithExistingNotification() 154 if (notification.getId() != VisualVoicemailNotifier.NOTIFICATION_ID) { in getAndUpdateVoicemailsWithExistingNotification() 157 if (TextUtils.isEmpty(notification.getTag()) in getAndUpdateVoicemailsWithExistingNotification() 158 || !notification.getTag().startsWith(VisualVoicemailNotifier.NOTIFICATION_TAG_PREFIX)) { in getAndUpdateVoicemailsWithExistingNotification() [all …]
|
D | MissedCallNotifier.java | 28 import android.service.notification.StatusBarNotification; 57 import com.android.dialer.notification.DialerNotificationManager; 58 import com.android.dialer.notification.NotificationChannelId; 59 import com.android.dialer.notification.missedcalls.MissedCallConstants; 60 import com.android.dialer.notification.missedcalls.MissedCallNotificationCanceller; 61 import com.android.dialer.notification.missedcalls.MissedCallNotificationTags; 221 Notification notification = groupSummary.build(); in updateMissedCallNotification() local 222 configureLedOnNotification(notification); in updateMissedCallNotification() 229 notification); in updateMissedCallNotification() 391 Notification notification = builder.build(); in getNotificationForCall() local [all …]
|
/packages/apps/Car/libs/car-messenger-common/proto/ |
D | notification_msg.proto | 25 // The unique key of the message notification, same in phone and car. 27 // notification posted on the phone. 58 // The unique key of the message notification, same in phone and car. 60 // notification posted on the phone. 93 // A message notification originating from the user's phone. 96 // Display name of the application that posted this notification. 99 // Package name of the application that posted this notification. 105 // The time, in milliseconds, this message notification was last updated. 108 // Small app icon of the application that posted this notification. 132 // Timestamp of when the message notification was originally posted on the [all …]
|
/packages/apps/Settings/tests/robotests/assets/ |
D | grandfather_not_implementing_index_provider | 54 com.android.settings.notification.AppNotificationSettings 55 com.android.settings.notification.ChannelNotificationSettings 56 com.android.settings.notification.NotificationStation 57 com.android.settings.notification.RedactionInterstitial$RedactionInterstitialFragment 58 com.android.settings.notification.ZenModeEventRuleSettings 59 com.android.settings.notification.ZenModeScheduleRuleSettings 60 com.android.settings.notification.ZenCustomRuleNotificationsSettings 61 com.android.settings.notification.ZenCustomRuleCallsSettings 62 com.android.settings.notification.ZenCustomRuleConfigSettings 63 com.android.settings.notification.ZenCustomRuleSettings [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | NotificationHelperTest.java | 29 import android.service.notification.StatusBarNotification; 72 StatusBarNotification notification = notifications[0]; in testShowResumeNotification() local 73 assertThat(notification.getId()).isEqualTo(ENCRYPTION_NOTIFICATION_ID); in testShowResumeNotification() 74 assertThat(notification.getNotification().getChannel()).isEqualTo(CHANNEL_ID); in testShowResumeNotification() 75 assertThat(notification.getNotification().extras.getString(Notification.EXTRA_TITLE)) in testShowResumeNotification() 89 StatusBarNotification notification = notifications[0]; in testShowPrivacyReminderNotification() local 90 assertThat(notification.getId()).isEqualTo(PRIVACY_REMINDER_NOTIFICATION_ID); in testShowPrivacyReminderNotification() 91 assertThat(notification.getNotification().getChannel()).isEqualTo(CHANNEL_ID); in testShowPrivacyReminderNotification() 92 assertThat(notification.getNotification().extras.getString(Notification.EXTRA_TITLE)) in testShowPrivacyReminderNotification()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmNotifications.kt | 29 import android.service.notification.StatusBarNotification 168 val notification: Notification = builder.build() in showLowPriorityNotification() constant 169 nm.notify(id, notification) in showLowPriorityNotification() 170 updateUpcomingAlarmGroupNotification(context, -1, notification) in showLowPriorityNotification() 223 val notification: Notification = builder.build() in showHighPriorityNotification() constant 224 nm.notify(id, notification) in showHighPriorityNotification() 225 updateUpcomingAlarmGroupNotification(context, -1, notification) in showHighPriorityNotification() 428 val notification: Notification = builder.build() in showSnoozeNotification() constant 429 nm.notify(id, notification) in showSnoozeNotification() 430 updateUpcomingAlarmGroupNotification(context, -1, notification) in showSnoozeNotification() [all …]
|
D | AlarmNotifications.java | 33 import android.service.notification.StatusBarNotification; 143 final Notification notification = builder.build(); in showUpcomingNotification() local 144 nm.notify(id, notification); in showUpcomingNotification() 145 updateUpcomingAlarmGroupNotification(context, -1, notification); in showUpcomingNotification() 309 final Notification notification = builder.build(); in showSnoozeNotification() local 310 nm.notify(id, notification); in showSnoozeNotification() 311 updateUpcomingAlarmGroupNotification(context, -1, notification); in showSnoozeNotification() 356 final Notification notification = builder.build(); in showMissedNotification() local 357 nm.notify(id, notification); in showMissedNotification() 358 updateMissedAlarmGroupNotification(context, -1, notification); in showMissedNotification() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | PopupDataProvider.java | 20 import android.service.notification.StatusBarNotification; 27 import com.android.launcher3.notification.NotificationKeyData; 28 import com.android.launcher3.notification.NotificationListener; 123 for (StatusBarNotification notification : activeNotifications) { in onNotificationFullRefresh() 124 PackageUserKey packageUserKey = PackageUserKey.fromNotification(notification); in onNotificationFullRefresh() 130 dotInfo.addOrUpdateNotificationKey(NotificationKeyData.fromNotification(notification)); in onNotificationFullRefresh() 254 return notifications.stream().filter((NotificationKeyData notification) -> { in getNotificationsForItem() 255 if (notification.shortcutId != null) { in getNotificationsForItem() 256 return notification.shortcutId.equals(shortcutId); in getNotificationsForItem() 258 if (notification.personKeysFromNotification.length != 0) { in getNotificationsForItem() [all …]
|
/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/ |
D | CarAssistUtils.java | 31 import android.service.notification.StatusBarNotification; 205 public static List<NotificationCompat.Action> getAllActions(Notification notification) { in getAllActions() argument 207 actions.addAll(NotificationCompat.getInvisibleActions(notification)); in getAllActions() 208 for (int i = 0; i < NotificationCompat.getActionCount(notification); i++) { in getAllActions() 209 actions.add(NotificationCompat.getAction(notification, i)); in getAllActions() 219 public static NotificationCompat.Action getMarkAsReadAction(Notification notification) { in getMarkAsReadAction() argument 220 for (NotificationCompat.Action action : getAllActions(notification)) { in getMarkAsReadAction() 234 private static NotificationCompat.Action getReplyAction(Notification notification) { in getReplyAction() argument 235 for (NotificationCompat.Action action : getAllActions(notification)) { in getReplyAction() 259 final Notification notification = sbn.getNotification(); in assistantCallbacksShowNoUi() local [all …]
|