Home
last modified time | relevance | path

Searched refs:notification (Results 1 – 25 of 687) sorted by relevance

12345678910>>...28

/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationViewAdapter.java16 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 …]
DPreprocessingManager.java16 package com.android.car.notification;
25 import android.service.notification.NotificationListenerService;
26 import android.service.notification.NotificationListenerService.RankingMap;
27 import android.service.notification.StatusBarNotification;
31 import com.android.car.notification.template.MessageNotificationViewHolder;
129 StatusBarNotification notification = optimizeForDriving(sbn); in updateNotifications() local
130 boolean isUpdate = mOldNotifications.containsKey(notification.getKey()); in updateNotifications()
133 mOldNotifications.put(notification.getKey(), notification); in updateNotifications() local
138 mOldNotifications.put(notification.getKey(), notification); in updateNotifications() local
140 additionalRank(additionalGroup(notification), newRankingMap)); in updateNotifications()
[all …]
DCarNotificationItemTouchListener.java17 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 …]
DNotificationDataManager.java16 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()
116 public boolean isMessageNotificationMuted(StatusBarNotification notification) { in isMessageNotificationMuted() argument
117 if (!mMessageNotificationToMuteStateMap.containsKey(notification.getKey())) { in isMessageNotificationMuted()
118 addNewMessageNotification(notification); in isMessageNotificationMuted()
120 return mMessageNotificationToMuteStateMap.getOrDefault(notification.getKey(), false); in isMessageNotificationMuted()
/packages/apps/Dialer/java/com/android/dialer/notification/
DDialerNotificationManager.java17 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 …]
DNotificationThrottler.java17 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/
DSmartActionsHelperTest.java16 package android.ext.services.notification;
41 import android.service.notification.NotificationAssistantService;
42 import android.service.notification.StatusBarNotification;
124 Notification notification = mNotificationBuilder.setContentText(MESSAGE).build(); in testSuggest_notMessageNotification() local
125 setStatusBarNotification(notification); in testSuggest_notMessageNotification()
135 Notification notification = in testSuggest_noInlineReply() local
140 setStatusBarNotification(notification); in testSuggest_noInlineReply()
156 Notification notification = createMessageNotification(); in testSuggest_settingsOff() local
157 setStatusBarNotification(notification); in testSuggest_settingsOff()
169 Notification notification = createMessageNotification(); in testSuggest_settings_repliesOnActionsOff() local
[all …]
/packages/modules/ExtServices/src/android/ext/services/notification/
DNotificationEntry.java16 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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java1 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/Launcher3/src/com/android/launcher3/notification/
DNotificationInfo.java17 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/apps/Settings/tests/robotests/assets/
Dgrandfather_not_implementing_index_provider53 com.android.settings.notification.AppNotificationSettings
54 com.android.settings.notification.ChannelGroupNotificationSettings
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
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmNotifications.java27 import android.service.notification.StatusBarNotification;
129 final Notification notification = builder.build(); in showLowPriorityNotification() local
130 nm.notify(id, notification); in showLowPriorityNotification()
131 updateUpcomingAlarmGroupNotification(context, -1, notification); in showLowPriorityNotification()
170 final Notification notification = builder.build(); in showHighPriorityNotification() local
171 nm.notify(id, notification); in showHighPriorityNotification()
172 updateUpcomingAlarmGroupNotification(context, -1, notification); in showHighPriorityNotification()
333 final Notification notification = builder.build(); in showSnoozeNotification() local
334 nm.notify(id, notification); in showSnoozeNotification()
335 updateUpcomingAlarmGroupNotification(context, -1, notification); in showSnoozeNotification()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DProgressNotificationViewHolder.java16 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()
DCarNotificationBaseViewHolder.java17 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 …]
DMessageNotificationViewHolder.java16 package com.android.car.notification.template;
25 import android.service.notification.StatusBarNotification;
32 import com.android.car.notification.NotificationClickHandlerFactory;
33 import com.android.car.notification.PreprocessingManager;
34 import com.android.car.notification.R;
107 Notification notification = statusBarNotification.getNotification(); in bindBody() local
113 Bundle extras = notification.extras; in bindBody()
135 messageCount = notification.number; in bindBody()
152 avatar = notification.getLargeIcon(); in bindBody()
160 if (isInGroup && notification.showsTime()) { in bindBody()
[all …]
DNavigationNotificationViewHolder.java16 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()
DBasicNotificationViewHolder.java16 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()
DInboxNotificationViewHolder.java16 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()
DCallNotificationViewHolder.java16 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()
DEmergencyNotificationViewHolder.java16 package com.android.car.notification.template;
22 import android.service.notification.StatusBarNotification;
27 import com.android.car.notification.NotificationClickHandlerFactory;
28 import com.android.car.notification.R;
66 Notification notification = statusBarNotification.getNotification(); in bind() local
72 Bundle extraData = notification.extras; in bind()
75 Icon icon = notification.getLargeIcon(); in bind()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DVisualVoicemailUpdateTask.java21 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 …]
DMissedCallNotifier.java28 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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DNotificationHelperTest.java29 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/UnifiedEmail/src/com/android/mail/utils/
DNotificationUtils.java380 for (NotificationKey notification : keys) { in resendNotifications()
381 final Folder folder = notification.folder; in resendNotifications()
383 getNotificationId(notification.account.getAccountManagerAccount(), folder); in resendNotifications()
387 if (accountUri != null && !Objects.equal(accountUri, notification.account.uri) && in resendNotifications()
391 notification.account.uri, folder.folderUri, accountUri, folderUri); in resendNotifications()
396 notification.account.uri, folder.folderUri); in resendNotifications()
401 validateNotifications(context, folder, notification.account, true, in resendNotifications()
402 false, notification, contactFetcher); in resendNotifications()
427 for (NotificationKey notification : keys) { in validateAccountNotifications()
428 if (notification.account.getAccountManagerAccount().name.equals(email)) { in validateAccountNotifications()
[all …]
/packages/apps/Settings/src/com/android/settings/core/gateway/
DSettingsGateway.java107 import com.android.settings.notification.AppBubbleNotificationSettings;
108 import com.android.settings.notification.AppNotificationSettings;
109 import com.android.settings.notification.ChannelGroupNotificationSettings;
110 import com.android.settings.notification.ChannelNotificationSettings;
111 import com.android.settings.notification.ConfigureNotificationSettings;
112 import com.android.settings.notification.NotificationAccessSettings;
113 import com.android.settings.notification.NotificationAssistantPicker;
114 import com.android.settings.notification.NotificationStation;
115 import com.android.settings.notification.SoundSettings;
116 import com.android.settings.notification.ZenAccessSettings;
[all …]

12345678910>>...28