Home
last modified time | relevance | path

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

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DBaseStatusBar.java284 if (sbn.notification.contentView.getLayoutId() != in applyLegacyRowBackground()
538 StatusBarNotification sbn = entry.notification;
539 RemoteViews oneU = sbn.notification.contentView;
540 RemoteViews large = sbn.notification.bigContentView;
566 PendingIntent contentIntent = sbn.notification.contentIntent;
725 return entry.notification;
729 StatusBarNotification notification) {
731 Slog.d(TAG, "addNotificationViews(key=" + key + ", notification=" + notification);
735 notification.pkg + "/0x" + Integer.toHexString(notification.id),
736 notification.notification);
[all …]
DNotificationData.java36 public StatusBarNotification notification; field in NotificationData.Entry
46 this.notification = n; in Entry()
79 final StatusBarNotification na = a.notification;
80 final StatusBarNotification nb = b.notification;
84 : (int)(na.notification.when - nb.notification.when);
117 public int add(IBinder key, StatusBarNotification notification, View row, View content, in add() argument
121 entry.notification = notification; in add()
156 if (e.notification.isClearable()) { in hasClearableItems()
DCommandQueue.java82 StatusBarNotification notification; field in CommandQueue.NotificationQueueEntry
93 public void addNotification(IBinder key, StatusBarNotification notification); in addNotification() argument
94 public void updateNotification(IBinder key, StatusBarNotification notification); in updateNotification() argument
132 public void addNotification(IBinder key, StatusBarNotification notification) { in addNotification() argument
136 ne.notification = notification; in addNotification()
141 public void updateNotification(IBinder key, StatusBarNotification notification) { in updateNotification() argument
145 ne.notification = notification; in updateNotification()
272 mCallbacks.addNotification(ne.key, ne.notification); in handleMessage()
277 mCallbacks.updateNotification(ne.key, ne.notification); in handleMessage()
DStatusBarIconView.java53 public StatusBarIconView(Context context, String slot, Notification notification) { in StatusBarIconView() argument
61 mNotification = notification; in StatusBarIconView()
62 setContentDescription(notification); in StatusBarIconView()
66 if (notification != null) { in StatusBarIconView()
262 private void setContentDescription(Notification notification) { in setContentDescription() argument
263 if (notification != null) { in setContentDescription()
264 CharSequence tickerText = notification.tickerText; in setContentDescription()
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarNotification.java46 public Notification notification; field in StatusBarNotification
53 int uid, int initialPid, int score, Notification notification) { in StatusBarNotification() argument
55 if (notification == null) throw new NullPointerException(); in StatusBarNotification()
63 this.notification = notification; in StatusBarNotification()
81 this.notification = new Notification(in); in readFromParcel()
96 this.notification.writeToParcel(out, flags); in writeToParcel()
119 this.uid, this.initialPid, this.score, this.notification.clone()); in clone()
124 + " score=" + score + " notn=" + notification + ")"; in toString()
128 return (notification.flags & Notification.FLAG_ONGOING_EVENT) != 0; in isOngoing()
132 return ((notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) in isClearable()
[all …]
DIStatusBar.aidl27 void addNotification(IBinder key, in StatusBarNotification notification); in addNotification() argument
28 void updateNotification(IBinder key, in StatusBarNotification notification); in updateNotification() argument
/frameworks/base/services/java/com/android/server/
DNotificationManagerService.java317 final Notification notification; field in NotificationManagerService.NotificationRecord
321 …cord(String pkg, String tag, int id, int uid, int initialPid, int score, Notification notification) in NotificationRecord() argument
329 this.notification = notification; in NotificationRecord()
334 pw.println(prefix + " icon=0x" + Integer.toHexString(notification.icon) in dump()
335 + " / " + idDebugString(baseContext, this.pkg, notification.icon)); in dump()
336 pw.println(prefix + " pri=" + notification.priority); in dump()
338 pw.println(prefix + " contentIntent=" + notification.contentIntent); in dump()
339 pw.println(prefix + " deleteIntent=" + notification.deleteIntent); in dump()
340 pw.println(prefix + " tickerText=" + notification.tickerText); in dump()
341 pw.println(prefix + " contentView=" + notification.contentView); in dump()
[all …]
DDeviceStorageMonitorService.java358 Notification notification = new Notification(); in sendNotification() local
359 notification.icon = com.android.internal.R.drawable.stat_notify_disk_full; in sendNotification()
360 notification.tickerText = title; in sendNotification()
361 notification.flags |= Notification.FLAG_NO_CLEAR; in sendNotification()
362 notification.setLatestEventInfo(mContext, title, details, intent); in sendNotification()
363 mNotificationMgr.notify(LOW_MEMORY_NOTIFICATION_ID, notification); in sendNotification()
DEventLogTags.logtags43 # 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),(notification|3)
56 # when someone tries to cancel a notification, the notification manager sometimes
DStatusBarManagerService.java459 public IBinder addNotification(StatusBarNotification notification) { in addNotification() argument
462 mNotifications.put(key, notification); in addNotification()
465 mBar.addNotification(key, notification); in addNotification()
473 public void updateNotification(IBinder key, StatusBarNotification notification) { in updateNotification() argument
478 mNotifications.put(key, notification); in updateNotification()
481 mBar.updateNotification(key, notification); in updateNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DTicker.java57 StatusBarNotification notification; field in Ticker.Segment
134 this.notification = n; in Segment()
185 if (n.pkg.equals(seg.notification.pkg) in addEntry()
186 && n.notification.icon == seg.notification.notification.icon in addEntry()
187 && n.notification.iconLevel == seg.notification.notification.iconLevel in addEntry()
188 && CharSequences.equals(seg.notification.notification.tickerText, in addEntry()
189 n.notification.tickerText)) { in addEntry()
195 new StatusBarIcon(n.pkg, n.notification.icon, n.notification.iconLevel, 0, in addEntry()
196 n.notification.tickerText)); in addEntry()
197 final Segment newSegment = new Segment(n, icon, n.notification.tickerText); in addEntry()
[all …]
/frameworks/base/docs/html/guide/topics/ui/notifiers/
Dnotifications.jd10 <li>A status notification allows your application to notify the user of an event
12 <li>You can attach an intent to your notification that the system will initiate when the
23 <li><a href="#Updating">Updating the notification</a></li>
46 <p>A status notification adds an icon to the system's status bar
47 (with an optional ticker-text message) and a notification message in the notifications window.
48 When the user selects the notification, Android fires an
51 You can also configure the notification to alert the user with a sound, a vibration, and flashing
54 <p>A status notification should be used for any case in
58 The service should instead create a status notification that will launch the activity
61 <p>Figure 1 shows the status bar with a notification icon on the left side.</p>
[all …]
Dindex.jd13 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
Dtoasts.jd29 <p>A toast notification is a message that pops up on the surface of the window.
31 activity remains visible and interactive. The notification automatically fades in and
34 <p>The screenshot below shows an example toast notification from the Alarm application.
40 {@link android.app.Service}. If you create a toast notification from a Service, it
43 <p>If user response to the notification is required, consider using a
53 object. You can display the toast notification with {@link android.widget.Toast#show()},
76 <p>A standard toast notification appears near the bottom of the screen, centered horizontally.
96 toast notification. To create a custom layout, define a View layout,
/frameworks/base/docs/html/design/patterns/
Dnotifications.jd4 <p>The notification system allows your app to keep the user informed about important events, such as
9 <h4>When to display a notification</h4>
13 resource more akin to a thread, and creating a notification momentarily blocks the user thread as
14 they process and then dismiss the interruptive notification.</p>
15 <p>Android's notification system has been designed to quickly inform users of events while they foc…
17 notification.</p>
19 app actually should interrupt the user with an unprompted notification.</p>
23 Calendar events are another good example of when to use a notification and grab the user's
33 <h4>When not to display a notification</h4>
42 <p>Don't create a notification if the relevant new information is currently on screen. Instead, use
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
DTabletTicker.java91 public void add(IBinder key, StatusBarNotification notification) { in add() argument
101 mQueue[mQueuePos] = notification; in add()
252 private View makeTickerView(StatusBarNotification notification) { in makeTickerView() argument
253 final Notification n = notification.notification; in makeTickerView()
278 final String ident = notification.pkg in makeTickerView()
279 + "/0x" + Integer.toHexString(notification.id); in makeTickerView()
290 new StatusBarIcon(notification.pkg, n.icon, n.iconLevel, 0, n.tickerText)); in makeTickerView()
316 PendingIntent contentIntent = notification.notification.contentIntent; in makeTickerView()
321 notification.pkg, notification.tag, notification.id); in makeTickerView()
/frameworks/base/core/java/android/app/
DNotificationManager.java101 public void notify(int id, Notification notification) in notify() argument
103 notify(null, id, notification); in notify()
117 public void notify(String tag, int id, Notification notification) in notify() argument
122 if (localLOGV) Log.v(TAG, pkg + ": notify(" + id + ", " + notification + ")"); in notify()
124 service.enqueueNotificationWithTag(pkg, tag, id, notification, idOut); in notify()
DINotificationManager.aidl28 …void enqueueNotification(String pkg, int id, in Notification notification, inout int[] idReceived); in enqueueNotification() argument
35 …void enqueueNotificationWithTag(String pkg, String tag, int id, in Notification notification, inou… in enqueueNotificationWithTag() argument
DService.java641 public final void startForeground(int id, Notification notification) { in startForeground() argument
645 notification, true); in startForeground()
/frameworks/base/services/java/com/android/server/usb/
DUsbDeviceManager.java644 Notification notification = new Notification(); in updateUsbNotification() local
645 notification.icon = com.android.internal.R.drawable.stat_sys_data_usb; in updateUsbNotification()
646 notification.when = 0; in updateUsbNotification()
647 notification.flags = Notification.FLAG_ONGOING_EVENT; in updateUsbNotification()
648 notification.tickerText = title; in updateUsbNotification()
649 notification.defaults = 0; // please be quiet in updateUsbNotification()
650 notification.sound = null; in updateUsbNotification()
651 notification.vibrate = null; in updateUsbNotification()
652 notification.priority = Notification.PRIORITY_MIN; in updateUsbNotification()
659 notification.setLatestEventInfo(mContext, title, message, pi); in updateUsbNotification()
[all …]
/frameworks/base/services/jni/
Dcom_android_server_location_GpsLocationProvider.cpp183 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/
DNotificationStressTest.java81 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/wifi/java/android/net/wifi/
DWifiWatchdogStateMachine.java463 Notification notification = new Notification(); in setWalledGardenNotificationVisible() local
464 notification.when = 0; in setWalledGardenNotificationVisible()
465 notification.icon = com.android.internal.R.drawable.stat_notify_wifi_in_range; in setWalledGardenNotificationVisible()
466 notification.flags = Notification.FLAG_AUTO_CANCEL; in setWalledGardenNotificationVisible()
467 notification.contentIntent = PendingIntent.getActivity(mContext, 0, intent, 0); in setWalledGardenNotificationVisible()
468 notification.tickerText = title; in setWalledGardenNotificationVisible()
469 notification.setLatestEventInfo(mContext, title, details, notification.contentIntent); in setWalledGardenNotificationVisible()
471 notificationManager.notify(WALLED_GARDEN_NOTIFICATION_ID, 1, notification); in setWalledGardenNotificationVisible()
/frameworks/base/services/java/com/android/server/location/
DGpsLocationProvider.java1431 GpsNiNotification notification = new GpsNiNotification(); in reportNiNotification() local
1433 notification.notificationId = notificationId; in reportNiNotification()
1434 notification.niType = niType; in reportNiNotification()
1435 notification.needNotify = (notifyFlags & GpsNetInitiatedHandler.GPS_NI_NEED_NOTIFY) != 0; in reportNiNotification()
1436 notification.needVerify = (notifyFlags & GpsNetInitiatedHandler.GPS_NI_NEED_VERIFY) != 0; in reportNiNotification()
1437notification.privacyOverride = (notifyFlags & GpsNetInitiatedHandler.GPS_NI_PRIVACY_OVERRIDE) != 0; in reportNiNotification()
1438 notification.timeout = timeout; in reportNiNotification()
1439 notification.defaultResponse = defaultResponse; in reportNiNotification()
1440 notification.requestorId = requestorId; in reportNiNotification()
1441 notification.text = text; in reportNiNotification()
[all …]
/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
DFixVibrateSetting.java96 String notification = getSettingValue(AudioManager.VIBRATE_TYPE_NOTIFICATION); in update() local
97 String text = getString(R.string.current_setting, ringer, notification); in update()

1234