/frameworks/base/core/java/com/android/internal/statusbar/ |
D | StatusBarNotification.java | 47 public final Notification notification; field in StatusBarNotification 54 Notification notification) { in StatusBarNotification() argument 55 this(pkg, id, tag, uid, initialPid, score, notification, UserHandle.OWNER); in StatusBarNotification() 59 Notification notification, UserHandle user) { in StatusBarNotification() argument 61 if (notification == null) throw new NullPointerException(); in StatusBarNotification() 69 this.notification = notification; in StatusBarNotification() 71 this.notification.setUser(user); in StatusBarNotification() 85 this.notification = new Notification(in); in StatusBarNotification() 87 this.notification.setUser(user); in StatusBarNotification() 102 this.notification.writeToParcel(out, flags); in writeToParcel() [all …]
|
D | IStatusBar.aidl | 27 void addNotification(IBinder key, in StatusBarNotification notification); in addNotification() argument 28 void updateNotification(IBinder key, in StatusBarNotification notification); in updateNotification() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | BaseStatusBar.java | 323 if (sbn.notification.contentView.getLayoutId() != in applyLegacyRowBackground() 706 StatusBarNotification sbn = entry.notification; 707 RemoteViews oneU = sbn.notification.contentView; 708 RemoteViews large = sbn.notification.bigContentView; 734 PendingIntent contentIntent = sbn.notification.contentIntent; 782 debug.setText("U " + entry.notification.getUserId()); 900 return entry.notification; 904 StatusBarNotification notification) { 906 Slog.d(TAG, "addNotificationViews(key=" + key + ", notification=" + notification); 910 notification.pkg + "/0x" + Integer.toHexString(notification.id), [all …]
|
D | NotificationData.java | 36 public StatusBarNotification notification; field in NotificationData.Entry 46 this.notification = n; in Entry() 91 final StatusBarNotification na = a.notification; 92 final StatusBarNotification nb = b.notification; 96 : (int)(na.notification.when - nb.notification.when); 129 public int add(IBinder key, StatusBarNotification notification, View row, View content, in add() argument 133 entry.notification = notification; in add() 168 if (e.notification.isClearable()) { in hasClearableItems()
|
D | CommandQueue.java | 73 StatusBarNotification notification; field in CommandQueue.NotificationQueueEntry 84 public void addNotification(IBinder key, StatusBarNotification notification); in addNotification() argument 85 public void updateNotification(IBinder key, StatusBarNotification notification); in updateNotification() argument 124 public void addNotification(IBinder key, StatusBarNotification notification) { in addNotification() argument 128 ne.notification = notification; in addNotification() 133 public void updateNotification(IBinder key, StatusBarNotification notification) { in updateNotification() argument 137 ne.notification = notification; in updateNotification() 267 mCallbacks.addNotification(ne.key, ne.notification); in handleMessage() 272 mCallbacks.updateNotification(ne.key, ne.notification); in handleMessage()
|
D | StatusBarIconView.java | 54 public StatusBarIconView(Context context, String slot, Notification notification) { in StatusBarIconView() argument 62 mNotification = notification; in StatusBarIconView() 63 setContentDescription(notification); in StatusBarIconView() 67 if (notification != null) { in StatusBarIconView() 268 private void setContentDescription(Notification notification) { in setContentDescription() argument 269 if (notification != null) { in setContentDescription() 270 CharSequence tickerText = notification.tickerText; in setContentDescription()
|
/frameworks/base/core/java/android/app/ |
D | NotificationManager.java | 106 public void notify(int id, Notification notification) in notify() argument 108 notify(null, id, notification); in notify() 122 public void notify(String tag, int id, Notification notification) in notify() argument 127 if (notification.sound != null) { in notify() 128 notification.sound = notification.sound.getCanonicalUri(); in notify() 130 if (localLOGV) Log.v(TAG, pkg + ": notify(" + id + ", " + notification + ")"); in notify() 132 service.enqueueNotificationWithTag(pkg, tag, id, notification, idOut, in notify() 144 public void notifyAsUser(String tag, int id, Notification notification, UserHandle user) in notifyAsUser() argument 149 if (notification.sound != null) { in notifyAsUser() 150 notification.sound = notification.sound.getCanonicalUri(); in notifyAsUser() [all …]
|
/frameworks/base/services/java/com/android/server/ |
D | NotificationManagerService.java | 330 final Notification notification; field in NotificationManagerService.NotificationRecord 335 int userId, int score, Notification notification) in NotificationRecord() argument 344 this.notification = notification; in NotificationRecord() 349 pw.println(prefix + " icon=0x" + Integer.toHexString(notification.icon) in dump() 350 + " / " + idDebugString(baseContext, this.pkg, notification.icon)); in dump() 351 pw.println(prefix + " pri=" + notification.priority); in dump() 353 pw.println(prefix + " contentIntent=" + notification.contentIntent); in dump() 354 pw.println(prefix + " deleteIntent=" + notification.deleteIntent); in dump() 355 pw.println(prefix + " tickerText=" + notification.tickerText); in dump() 356 pw.println(prefix + " contentView=" + notification.contentView); in dump() [all …]
|
D | DeviceStorageMonitorService.java | 401 Notification notification = new Notification(); in sendNotification() local 402 notification.icon = com.android.internal.R.drawable.stat_notify_disk_full; in sendNotification() 403 notification.tickerText = title; in sendNotification() 404 notification.flags |= Notification.FLAG_NO_CLEAR; in sendNotification() 405 notification.setLatestEventInfo(mContext, title, details, intent); in sendNotification() 406 mNotificationMgr.notifyAsUser(null, LOW_MEMORY_NOTIFICATION_ID, notification, in sendNotification()
|
D | EventLogTags.logtags | 43 # Device low memory notification and disk space free on the /data partition, in bytes at that time 55 2750 notification_enqueue (pkg|3),(id|1|5),(tag|3),(userid|1|5),(notification|3) 56 # when someone tries to cancel a notification, the notification manager sometimes
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | Ticker.java | 67 StatusBarNotification notification; field in Ticker.Segment 144 this.notification = n; in Segment() 195 if (n.pkg.equals(seg.notification.pkg) in addEntry() 196 && n.notification.icon == seg.notification.notification.icon in addEntry() 197 && n.notification.iconLevel == seg.notification.notification.iconLevel in addEntry() 198 && CharSequences.equals(seg.notification.notification.tickerText, in addEntry() 199 n.notification.tickerText)) { in addEntry() 205 new StatusBarIcon(n.pkg, n.user, n.notification.icon, n.notification.iconLevel, 0, in addEntry() 206 n.notification.tickerText)); in addEntry() 207 final CharSequence text = n.notification.tickerText; in addEntry() [all …]
|
/frameworks/base/docs/html/training/notify-user/ |
D | managing.jd | 42 When you need to issue a notification multiple times for the same type of event, you 43 should avoid making a completely new notification. Instead, you should consider updating a 44 previous notification, either by changing some of its values or by adding to it, or both. 52 To set up a notification so it can be updated, issue it with a notification ID by 54 NotificationManager.notify(ID, notification)}. To update this notification once you've issued 60 The following snippet demonstrates a notification that is updated to reflect the 61 number of events that have occurred. It stacks the notification, showing a summary: 66 // Sets an ID for the notification, so it can be updated 77 // Because the ID remains unchanged, the existing notification is 92 The user dismisses the notification either individually or by using "Clear All" (if [all …]
|
D | build-notification.jd | 45 <p>This lesson explains how to create and issue a notification.</p> 53 provide the best notification support for a wide range of platforms. </p> 57 <p>When creating a notification, specify the UI content and actions with a 81 .setContentTitle("My notification") 89 notification. An action takes users directly from the notification to an 91 event that caused the notification or do further work. Inside a notification, the action itself is 98 android.app.Activity} from a notification, you must preserve the user's expected 99 navigation experience. In the snippet below, clicking the notification opens a 100 new activity that effectively extends the behavior of the notification. In this 107 // Because clicking the notification opens a new ("special") activity, there's [all …]
|
D | expanded.jd | 42 <p>Notifications in the notification drawer appear in two main visual styles, 43 normal view and big view. The big view of a notification only appears when the 44 notification is expanded. This happens when the notification is at the top of 45 the drawer, or the user clicks the notification. </p> 59 <strong>Figure 1.</strong> Normal view notification. 67 <strong>Figure 2.</strong> Big view notification. 75 <li>The ability to snooze or dismiss the notification.</li> 80 when the user clicks the notification. Keep this in mind as you design your notifications—fir… 82 this is how many users will interact with the notification.</p> 87 to construct and issue the notification.</p> [all …]
|
D | index.jd | 5 next.link=build-notification.html 45 …A notification is a user interface element that you display outside your app's normal UI to indica… 46 …that an event has occurred. Users can choose to view the notification while using other apps and r… 54 implement the most common notification designs. 60 <strong><a href="build-notification.html">Building a Notification</a></strong> 63 Learn how to create a notification 65 required features, and issue the notification. 72 navigation for an {@link android.app.Activity} started from a notification. 88 Learn how to create a big view within an expanded notification, while still maintaining 98 Learn how to display the progress of an operation in a notification, both for
|
D | display-progress.jd | 63 To display a determinate progress bar, add the bar to your notification by calling 65 setProgress(max, progress, false)} and then issue the notification. 69 increment <code>progress</code>, and update the notification. At the end of the operation, 77 either case, remember to update the notification text to show that the operation is complete. 113 // When the loop is finished, updates the notification 125 notification during the operation; on the right side is a snapshot of it after the operation 138 To display a continuing (indeterminate) activity indicator, add it to your notification with 140 and issue the notification. The first two arguments are ignored, and the third argument 145 Issue the notification at the beginning of the operation. The animation will run until you 146 modify your notification. When the operation is done, call [all …]
|
/frameworks/base/docs/html/guide/topics/ui/notifiers/ |
D | notifications.jd | 16 <li><a href="#Required">Required notification contents</a></li> 17 <li><a href="#Optional">Optional notification contents and settings</a></li> 19 <li><a href="#SimpleNotification">Creating a simple notification</a></li> 20 <li><a href="#ApplyStyle">Applying a big view style to a notification</a></li> 66 A notification is a message you can display to the user outside of your application's 67 normal UI. When you tell the system to issue a notification, it first appears as an icon in the 68 <strong>notification area</strong>. To see the details of the notification, the user opens the 69 <strong>notification drawer</strong>. Both the notification area and the notification drawer 77 <strong>Figure 1.</strong> Notifications in the notification area. 82 <strong>Figure 2.</strong> Notifications in the notification drawer. [all …]
|
D | index.jd | 13 the application should create a notification that allows the user to respond at 20 <p>Each of these notification tasks can be achieved using a different technique:</p> 37 <p>A toast notification is a message that pops up on the surface of the window. 39 activity remains visible and interactive. The notification automatically fades in and 56 <p>A status notification adds an icon to the system's status bar 59 {@link android.content.Intent} that is defined by the notification (usually to launch an 61 You can also configure the notification to alert the user with a sound, a vibration, and flashing 64 <p>This kind of notification is ideal when your application is working in
|
/frameworks/base/docs/html/design/patterns/ |
D | notifications.jd | 4 <p>The notification system allows your app to keep the user informed about events, such as new chat… 9 …clude actions that enable the user to immediately act on a notification from the notification draw… 14 <h2>Anatomy of a notification</h2> 21 <li>the sending application's notification icon or the sender's photo</li> 22 <li>a notification title and message</li> 31 Base layout of a notification 44 …notification. With actions, users can handle the most common tasks for a particular notification f… 45 …<p>Be judicious with how many actions you include with a notification. The more actions you includ… 55 <li>duplicative of the default action of the notification (such as "Read" or "Open")</li> 61 Calendar reminder notification with two actions [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/ |
D | TabletTicker.java | 92 public void add(IBinder key, StatusBarNotification notification) { in add() argument 102 mQueue[mQueuePos] = notification; in add() 253 private View makeTickerView(StatusBarNotification notification) { in makeTickerView() argument 254 final Notification n = notification.notification; in makeTickerView() 279 final String ident = notification.pkg in makeTickerView() 280 + "/0x" + Integer.toHexString(notification.id); in makeTickerView() 291 new StatusBarIcon(notification.pkg, notification.user, n.icon, n.iconLevel, 0, in makeTickerView() 318 PendingIntent contentIntent = notification.notification.contentIntent; in makeTickerView() 323 notification.pkg, notification.tag, notification.id); in makeTickerView()
|
/frameworks/base/services/java/com/android/server/usb/ |
D | UsbDeviceManager.java | 690 Notification notification = new Notification(); in updateUsbNotification() local 691 notification.icon = com.android.internal.R.drawable.stat_sys_data_usb; in updateUsbNotification() 692 notification.when = 0; in updateUsbNotification() 693 notification.flags = Notification.FLAG_ONGOING_EVENT; in updateUsbNotification() 694 notification.tickerText = title; in updateUsbNotification() 695 notification.defaults = 0; // please be quiet in updateUsbNotification() 696 notification.sound = null; in updateUsbNotification() 697 notification.vibrate = null; in updateUsbNotification() 698 notification.priority = Notification.PRIORITY_MIN; in updateUsbNotification() 705 notification.setLatestEventInfo(mContext, title, message, pi); in updateUsbNotification() [all …]
|
/frameworks/base/core/java/android/net/ |
D | CaptivePortalTracker.java | 356 Notification notification = new Notification(); in setNotificationVisible() local 357 notification.when = 0; in setNotificationVisible() 358 notification.icon = icon; in setNotificationVisible() 359 notification.flags = Notification.FLAG_AUTO_CANCEL; in setNotificationVisible() 363 notification.contentIntent = PendingIntent.getActivity(mContext, 0, intent, 0); in setNotificationVisible() 364 notification.tickerText = title; in setNotificationVisible() 365 notification.setLatestEventInfo(mContext, title, details, notification.contentIntent); in setNotificationVisible() 367 notificationManager.notify(NOTIFICATION_ID, 1, notification); in setNotificationVisible()
|
/frameworks/base/services/jni/ |
D | com_android_server_location_GpsLocationProvider.cpp | 183 static void gps_ni_notify_callback(GpsNiNotification *notification) in gps_ni_notify_callback() argument 187 jstring requestor_id = env->NewStringUTF(notification->requestor_id); in gps_ni_notify_callback() 188 jstring text = env->NewStringUTF(notification->text); in gps_ni_notify_callback() 189 jstring extras = env->NewStringUTF(notification->extras); in gps_ni_notify_callback() 193 notification->notification_id, notification->ni_type, in gps_ni_notify_callback() 194 notification->notify_flags, notification->timeout, in gps_ni_notify_callback() 195 notification->default_response, requestor_id, text, in gps_ni_notify_callback() 196 notification->requestor_id_encoding, in gps_ni_notify_callback() 197 notification->text_encoding, extras); in gps_ni_notify_callback()
|
/frameworks/base/core/tests/notificationtests/src/android/app/ |
D | NotificationStressTest.java | 81 Notification notification = new Notification(ICONS[mRandom.nextInt(ICONS.length)], text, in sendNotification() local 88 notification.setLatestEventInfo(mContext, title, subtitle, pendingIntent); in sendNotification() 89 mNotificationManager.notify(id, notification); in sendNotification()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/ |
D | TvStatusBar.java | 48 public void addNotification(IBinder key, StatusBarNotification notification) { in addNotification() argument 52 public void updateNotification(IBinder key, StatusBarNotification notification) { in updateNotification() argument
|