/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmNotifications.java | 27 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/ |
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 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 …]
|
D | NotificationListener.java | 17 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/ |
D | NotificationUtils.java | 380 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/ |
D | GroupedNotificationUtil.java | 17 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/ |
D | grandfather_not_implementing_indexable | 2 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/ |
D | TimerNotificationBuilder.java | 151 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 …]
|
D | TimerModel.java | 751 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/ |
D | SettingsGateway.java | 99 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/ |
D | MissedCallNotifier.java | 28 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/ |
D | WifiNotificationController.java | 430 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/ |
D | FileOperationService.java | 335 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/ |
D | ExportProcessor.java | 268 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()
|
D | VCardService.java | 169 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()
|
D | NotificationImportExportListener.java | 134 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/ |
D | AlertService.java | 374 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/ |
D | PopupDataProvider.java | 20 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()
|
D | PopupPopulator.java | 23 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/ |
D | ResumeNotificationHelperTest.java | 28 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/ |
D | TestNotificationManager.java | 44 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/ |
D | CarNavExtender.java | 119 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/ |
D | MessagingNotificationHandler.java | 24 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/ |
D | PackageUserKey.java | 4 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/ |
D | SearchIndexableResources.java | 68 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/ |
D | NotificationAccessConfirmationActivity.java | 18 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
|