Home
last modified time | relevance | path

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

123456789

/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/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 mBadgeIcon = notification.getBadgeIconType(); in NotificationInfo()
71 … Icon icon = mBadgeIcon == Notification.BADGE_ICON_SMALL ? null : notification.getLargeIcon(); in NotificationInfo()
74 icon = notification.getSmallIcon(); in NotificationInfo()
89 intent = notification.contentIntent; in NotificationInfo()
90 autoCancel = (notification.flags & Notification.FLAG_AUTO_CANCEL) != 0; in NotificationInfo()
[all …]
DNotificationListener.java17 package com.android.launcher3.notification;
24 import android.service.notification.NotificationListenerService;
25 import android.service.notification.StatusBarNotification;
225 Notification notification = sbn.getNotification(); in shouldBeFilteredOut() local
228 if ((notification.flags & Notification.FLAG_ONGOING_EVENT) != 0) { in shouldBeFilteredOut()
232 boolean isGroupHeader = (notification.flags & Notification.FLAG_GROUP_SUMMARY) != 0; in shouldBeFilteredOut()
233 CharSequence title = notification.extras.getCharSequence(Notification.EXTRA_TITLE); in shouldBeFilteredOut()
234 CharSequence text = notification.extras.getCharSequence(Notification.EXTRA_TEXT); in shouldBeFilteredOut()
/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/Dialer/java/com/android/dialer/notification/
DGroupedNotificationUtil.java17 package com.android.dialer.notification;
20 import android.service.notification.StatusBarNotification;
45 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in removeNotification()
46 if (notification.getId() == id) { in removeNotification()
47 notificationManager.cancel(notification.getTag(), id); in removeNotification()
55 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in removeNotification()
56 if (notification.getId() == id && !Objects.equals(summaryTag, notification.getTag())) { in removeNotification()
/packages/apps/Settings/tests/robotests/assets/
Dgrandfather_not_implementing_indexable2 com.android.settings.notification.ZenModeVisualInterruptionSettings
8 com.android.settings.notification.ZenModeEventRuleSettings
27 com.android.settings.notification.ChannelNotificationSettings
38 com.android.settings.notification.ZenModeAutomationSettings
46 com.android.settings.notification.ZenModeScheduleRuleSettings
48 com.android.settings.notification.NotificationStation
54 com.android.settings.notification.RedactionInterstitial$RedactionInterstitialFragment
74 com.android.settings.notification.AppNotificationSettings
79 com.android.settings.notification.ZenAccessSettings
86 com.android.settings.notification.NotificationAccessSettings
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerNotificationBuilder.java151 final Builder notification = new NotificationCompat.Builder(context) in build() local
166 notification.addAction(action); in build()
170 notification.setCustomContentView(buildChronometer(pname, base, running, stateText)) in build()
185 notification.setContentTitle(stateText).setContentText(contentTextPreN); in build()
210 return notification.build(); in build()
264 final Builder notification = new NotificationCompat.Builder(context) in buildHeadsUp() local
278 notification.addAction(action); in buildHeadsUp()
282 notification.setCustomContentView(buildChronometer(pname, base, true, stateText)); in buildHeadsUp()
288 notification.setContentTitle(stateText).setContentText(contentTextPreN); in buildHeadsUp()
291 return notification.build(); in buildHeadsUp()
[all …]
DTimerModel.java751 final Notification notification = in updateNotification() local
754 mNotificationManager.notify(notificationId, notification); in updateNotification()
776 final Notification notification = mNotificationBuilder.buildMissed(mContext, in updateMissedNotification() local
779 mNotificationManager.notify(notificationId, notification); in updateMissedNotification()
802 final Notification notification = mNotificationBuilder.buildHeadsUp(mContext, expired); in updateHeadsUpNotification() local
804 mService.startForeground(notificationId, notification); in updateHeadsUpNotification()
/packages/apps/Settings/src/com/android/settings/core/gateway/
DSettingsGateway.java99 import com.android.settings.notification.AppNotificationSettings;
100 import com.android.settings.notification.ChannelNotificationSettings;
101 import com.android.settings.notification.ConfigureNotificationSettings;
102 import com.android.settings.notification.NotificationAccessSettings;
103 import com.android.settings.notification.NotificationStation;
104 import com.android.settings.notification.SoundSettings;
105 import com.android.settings.notification.ZenAccessSettings;
106 import com.android.settings.notification.ZenModeEventRuleSettings;
107 import com.android.settings.notification.ZenModePrioritySettings;
108 import com.android.settings.notification.ZenModeScheduleRuleSettings;
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DMissedCallNotifier.java28 import android.service.notification.StatusBarNotification;
49 import com.android.dialer.notification.NotificationChannelManager;
50 import com.android.dialer.notification.NotificationChannelManager.Channel;
198 Notification notification = groupSummary.build(); in updateMissedCallNotification() local
199 configureLedOnNotification(notification); in updateMissedCallNotification()
202 getNotificationMgr().notify(NOTIFICATION_TAG, NOTIFICATION_ID, notification); in updateMissedCallNotification()
304 Notification notification = builder.build(); in getNotificationForCall() local
305 configureLedOnNotification(notification); in getNotificationForCall()
306 return notification; in getNotificationForCall()
404 private void configureLedOnNotification(Notification notification) { in configureLedOnNotification() argument
[all …]
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/notify/
DWifiNotificationController.java430 Notification notification = in displayNotification() local
433 postNotification(notification); in displayNotification()
463 Notification notification = in updateOnConnecting() local
465 postNotification(notification); in updateOnConnecting()
482 Notification notification = in updateOnConnect() local
484 postNotification(notification); in updateOnConnect()
504 Notification notification = mWifiNotificationHelper.createFailedToConnectNotification(); in updateOnFailedToConnect() local
505 postNotification(notification); in updateOnFailedToConnect()
525 private void postNotification(Notification notification) { in postNotification() argument
526 mNotificationManager.notify(NOTIFICATION_TAG, NOTIFICATION_ID, notification); in postNotification()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java335 Notification notification = job.getSetupNotification(); in onStart() local
339 foregroundManager.startForeground(NOTIFICATION_ID_PROGRESS, notification); in onStart()
345 job.id, NOTIFICATION_ID_PROGRESS, notification); in onStart()
395 Notification notification = (candidate.getState() == Job.STATE_STARTED) in updateForegroundState() local
398 foregroundManager.startForeground(NOTIFICATION_ID_PROGRESS, notification); in updateForegroundState()
400 notification); in updateForegroundState()
489 public void startForeground(int id, Notification notification) { in createForegroundManager()
490 service.startForeground(id, notification); in createForegroundManager()
502 void startForeground(int id, Notification notification);
/packages/apps/Contacts/src/com/android/contacts/vcard/
DExportProcessor.java268 final Notification notification = in doProgressNotification() local
272 mService.startForeground(mJobId, notification); in doProgressNotification()
279 final Notification notification = in doCancelNotification() local
282 mJobId, notification); in doCancelNotification()
289 final Notification notification = in doFinishNotification() local
293 mJobId, notification); in doFinishNotification()
309 final Notification notification = in doFinishNotificationWithShareAction() local
313 mJobId, notification); in doFinishNotificationWithShareAction()
DVCardService.java169 final Notification notification = in handleImportRequest() local
171 if (notification != null) { in handleImportRequest()
172 startForeground(mCurrentJobId, notification); in handleImportRequest()
202 final Notification notification = listener.onExportProcessed(request,mCurrentJobId); in handleExportRequest() local
203 if (notification != null) { in handleExportRequest()
204 startForeground(mCurrentJobId, notification); in handleExportRequest()
DNotificationImportExportListener.java134 final Notification notification = in onImportFinished() local
138 jobId, notification); in onImportFinished()
153 final Notification notification = in onImportCanceled() local
156 jobId, notification); in onImportCanceled()
182 final Notification notification = constructCancelNotification(mContext, description); in onCancelRequest() local
183 mNotificationManager.notify(DEFAULT_NOTIFICATION_TAG, request.jobId, notification); in onCancelRequest()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertService.java374 NotificationWrapper notification; in generateAlerts() local
380 notification = AlertReceiver.makeBasicNotification(context, info.eventName, in generateAlerts()
386 notification = AlertReceiver.makeDigestNotification(context, in generateAlerts()
391 addNotificationOptions(notification, true, expiredDigestTitle, in generateAlerts()
402 nm.notify(AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID, notification); in generateAlerts()
871 NotificationWrapper notification = AlertReceiver.makeExpandingNotification(context, in postNotification() local
884 addNotificationOptions(notification, quietUpdate, tickerText, in postNotification()
889 notificationMgr.notify(notificationId, notification); in postNotification()
933 Notification notification = nw.mNotification; in addNotificationOptions() local
935 notification.flags |= Notification.FLAG_SHOW_LIGHTS; in addNotificationOptions()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java20 import android.service.notification.StatusBarNotification;
28 import com.android.launcher3.notification.NotificationInfo;
29 import com.android.launcher3.notification.NotificationKeyData;
30 import com.android.launcher3.notification.NotificationListener;
118 for (StatusBarNotification notification : activeNotifications) { in onNotificationFullRefresh()
119 PackageUserKey packageUserKey = PackageUserKey.fromNotification(notification); in onNotificationFullRefresh()
126 .fromNotification(notification)); in onNotificationFullRefresh()
DPopupPopulator.java23 import android.service.notification.StatusBarNotification;
35 import com.android.launcher3.notification.NotificationInfo;
36 import com.android.launcher3.notification.NotificationItemView;
37 import com.android.launcher3.notification.NotificationKeyData;
61 NOTIFICATION(R.layout.notification, false),
198 StatusBarNotification notification = notifications.get(i); in createUpdateRunnable() local
199 infos.add(new NotificationInfo(launcher, notification)); in createUpdateRunnable()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DResumeNotificationHelperTest.java28 import android.service.notification.StatusBarNotification;
72 StatusBarNotification notification = notifications[0]; in testShowResumeNotification() local
73 assertEquals(notification.getId(), NOTIFICATION_ID); in testShowResumeNotification()
74 assertEquals(notification.getNotification().getChannel(), CHANNEL_ID); in testShowResumeNotification()
75 assertEquals(notification.getNotification().extras.getString(Notification.EXTRA_TITLE), in testShowResumeNotification()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestNotificationManager.java44 private void notify(String tag, int id, Notification notification) { in notify() argument
45 if (notification == mForegroundManager.getForegroundNotification() in notify()
54 mNotifications.get(id).put(tag, notification); in notify()
60 final Notification notification = idMap.get(tag); in cancel() local
62 if (mForegroundManager.getForegroundNotification() != notification) { in cancel()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DCarNavExtender.java119 public CarNavExtender(@NonNull Notification notification) { in CarNavExtender() argument
120 Bundle extras = NotificationCompat.getExtras(notification); in CarNavExtender()
177 public static boolean isExtended(Notification notification) { in isExtended() argument
178 Bundle extras = NotificationCompat.getExtras(notification); in isExtended()
242 public static int getType(Notification notification) { in getType() argument
243 Bundle extras = NotificationCompat.getExtras(notification); in getType()
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
DMessagingNotificationHandler.java24 import android.service.notification.StatusBarNotification;
48 Notification notification = sbn.getNotification(); in handleMessage() local
49 if (notification != null) { in handleMessage()
52 + notification.extras.toString()); in handleMessage()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPackageUserKey.java4 import android.service.notification.StatusBarNotification;
22 public static PackageUserKey fromNotification(StatusBarNotification notification) { in fromNotification() argument
23 return new PackageUserKey(notification.getPackageName(), notification.getUser()); in fromNotification()
/packages/apps/Settings/src/com/android/settings/search/
DSearchIndexableResources.java68 import com.android.settings.notification.ChannelImportanceSettings;
69 import com.android.settings.notification.ConfigureNotificationSettings;
70 import com.android.settings.notification.SoundSettings;
71 import com.android.settings.notification.ZenModePrioritySettings;
72 import com.android.settings.notification.ZenModeSettings;
73 import com.android.settings.notification.ZenModeVisualInterruptionSettings;
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationAccessConfirmationActivity.java18 package com.android.settings.notification;
20 import static com.android.internal.notification.NotificationAccessConfirmationActivityContract
22 import static com.android.internal.notification.NotificationAccessConfirmationActivityContract
24 import static com.android.internal.notification.NotificationAccessConfirmationActivityContract

123456789