Searched defs:notification (Results 1 - 19 of 19) sorted by relevance

/frameworks/base/core/java/android/app/
H A DNotificationManager.java45 * unspecified. This pair identifies this notification from your app to the
48 * a new set of notification parameters, it will be updated. For example,
52 * this notification.
81 IBinder b = ServiceManager.getService("notification");
97 * Post a notification to be shown in the status bar. If a notification with
101 * @param id An identifier for this notification unique within your
103 * @param notification A {@link Notification} object describing what to show the user. Must not
106 public void notify(int id, Notification notification) argument
108 notify(null, id, notification);
122 notify(String tag, int id, Notification notification) argument
144 notifyAsUser(String tag, int id, Notification notification, UserHandle user) argument
[all...]
H A DService.java619 * notification to be shown to the user while in this state.
634 * @param id The identifier for this notification as per
637 * @param notification The Notification to be displayed.
641 public final void startForeground(int id, Notification notification) { argument
645 notification, true);
653 * @param removeNotification If true, the notification previously provided
H A DActivityManagerNative.java763 Notification notification = null;
765 notification = Notification.CREATOR.createFromParcel(data);
768 setServiceForeground(className, token, id, notification, removeNotification);
2702 int id, Notification notification, boolean removeNotification) throws RemoteException {
2709 if (notification != null) {
2711 notification.writeToParcel(data, 0);
2701 setServiceForeground(ComponentName className, IBinder token, int id, Notification notification, boolean removeNotification) argument
H A DIActivityManager.java139 int id, Notification notification, boolean keepNotification) throws RemoteException;
138 setServiceForeground(ComponentName className, IBinder token, int id, Notification notification, boolean keepNotification) argument
/frameworks/base/core/java/com/android/internal/statusbar/
H A DStatusBarNotification.java25 boolean clearable = !n.ongoingEvent && ((notification.flags & Notification.FLAG_NO_CLEAR) == 0);
47 public final Notification notification; field in class:StatusBarNotification
54 Notification notification) {
55 this(pkg, id, tag, uid, initialPid, score, notification, UserHandle.OWNER);
59 Notification notification, UserHandle user) {
61 if (notification == null) throw new NullPointerException();
69 this.notification = notification;
71 this.notification.setUser(user);
85 this.notification
53 StatusBarNotification(String pkg, int id, String tag, int uid, int initialPid, int score, Notification notification) argument
58 StatusBarNotification(String pkg, int id, String tag, int uid, int initialPid, int score, Notification notification, UserHandle user) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DStatusBarIconView.java54 public StatusBarIconView(Context context, String slot, Notification notification) { argument
62 mNotification = notification;
63 setContentDescription(notification);
65 // We do not resize and scale system icons (on the right), only notification icons (on the
67 if (notification != null) {
268 private void setContentDescription(Notification notification) { argument
269 if (notification != null) {
270 CharSequence tickerText = notification.tickerText;
279 + " notification=" + mNotification + ")";
H A DNotificationData.java36 public StatusBarNotification notification; field in class:NotificationData.Entry
46 this.notification = n;
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, argument
133 entry.notification = notification;
168 if (e.notification
[all...]
H A DCommandQueue.java73 StatusBarNotification notification; field in class:CommandQueue.NotificationQueueEntry
84 public void addNotification(IBinder key, StatusBarNotification notification); argument
85 public void updateNotification(IBinder key, StatusBarNotification notification); argument
124 public void addNotification(IBinder key, StatusBarNotification notification) { argument
128 ne.notification = notification;
133 public void updateNotification(IBinder key, StatusBarNotification notification) { argument
137 ne.notification = notification;
267 mCallbacks.addNotification(ne.key, ne.notification);
[all...]
H A DBaseStatusBar.java117 // used to notify status bar for suppressing notification LED
241 // Set up the initial notification state
287 Slog.v(TAG, String.format("%s: current userid: %d, notification userid: %d",
323 if (sbn.notification.contentView.getLayoutId() !=
706 StatusBarNotification sbn = entry.notification;
707 RemoteViews oneU = sbn.notification.contentView;
708 RemoteViews large = sbn.notification.bigContentView;
734 PendingIntent contentIntent = sbn.notification.contentIntent;
754 Slog.e(TAG, "couldn't inflate view for notification " + ident, e);
782 debug.setText("U " + entry.notification
903 addNotificationViews(IBinder key, StatusBarNotification notification) argument
992 updateNotification(IBinder key, StatusBarNotification notification) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DTicker.java67 StatusBarNotification notification; field in class:Ticker.Segment
144 this.notification = n;
192 // a notification storm).
195 if (n.pkg.equals(seg.notification.pkg)
196 && n.notification.icon == seg.notification.notification.icon
197 && n.notification.iconLevel == seg.notification.notification
[all...]
H A DPhoneStatusBar.java184 NotificationPanelView mNotificationPanel; // the sliding/resizing panel within the notification window
494 mLocationController = new LocationController(mContext); // will post a notification
856 public void addNotification(IBinder key, StatusBarNotification notification) { argument
857 if (DEBUG) Slog.d(TAG, "addNotification score=" + notification.score);
858 StatusBarIconView iconView = addNotificationViews(key, notification);
874 notification.notification.intruderView != null)) {
875 Slog.d(TAG, "Presenting high-priority notification");
879 if (notification.notification
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
H A DTabletTicker.java92 public void add(IBinder key, StatusBarNotification notification) { argument
102 mQueue[mQueuePos] = notification;
253 private View makeTickerView(StatusBarNotification notification) { argument
254 final Notification n = notification.notification;
279 final String ident = notification.pkg
280 + "/0x" + Integer.toHexString(notification.id);
281 Slog.e(TAG, "couldn't inflate view for notification " + ident, exception);
291 new StatusBarIcon(notification.pkg, notification
[all...]
H A DTabletStatusBar.java136 ViewGroup mFeedbackIconArea; // notification icons, IME icon, compat icon
433 if (DEBUG) Slog.d(TAG, "max notification icons: " + mMaxNotificationIcons);
469 // the button to open the notification area
484 mLocationController = new LocationController(mContext); // will post a notification
708 if (DEBUG) Slog.d(TAG, "opening notification peek window; arg=" + m.arg1);
731 entry.notification,
766 if (DEBUG) Slog.d(TAG, "closing notification peek window");
849 public void addNotification(IBinder key, StatusBarNotification notification) { argument
850 if (DEBUG) Slog.d(TAG, "addNotification(" + key + " -> " + notification + ")");
851 addNotificationViews(key, notification);
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/
H A DTvStatusBar.java48 public void addNotification(IBinder key, StatusBarNotification notification) { argument
52 public void updateNotification(IBinder key, StatusBarNotification notification) { argument
/frameworks/base/services/java/com/android/server/
H A DStatusBarManagerService.java450 * invisible to visible in order to clear the notification light.
455 // tell the notification manager to turn off the lights.
488 public IBinder addNotification(StatusBarNotification notification) { argument
491 mNotifications.put(key, notification);
494 mBar.addNotification(key, notification);
502 public void updateNotification(IBinder key, StatusBarNotification notification) { argument
507 mNotifications.put(key, notification);
510 mBar.updateNotification(key, notification);
H A DNotificationManagerService.java146 // for enabling and disabling notification pulse behavior
165 private static final String TAG_BODY = "notification-policy";
330 final Notification notification; field in class:NotificationManagerService.NotificationRecord
335 int userId, int score, Notification notification)
344 this.notification = notification;
349 pw.println(prefix + " icon=0x" + Integer.toHexString(notification.icon)
350 + " / " + idDebugString(baseContext, this.pkg, notification.icon));
351 pw.println(prefix + " pri=" + notification.priority);
353 pw.println(prefix + " contentIntent=" + notification
334 NotificationRecord(String pkg, String tag, int id, int uid, int initialPid, int userId, int score, Notification notification) argument
901 enqueueNotificationWithTag(String pkg, String tag, int id, Notification notification, int[] idOut, int userId) argument
914 enqueueNotificationInternal(String pkg, int callingUid, int callingPid, String tag, int id, Notification notification, int[] idOut, int userId) argument
1199 sendAccessibilityEvent(Notification notification, CharSequence packageName) argument
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DActiveServices.java369 int id, Notification notification, boolean removeNotification) {
376 if (notification == null) {
377 throw new IllegalArgumentException("null notification");
383 notification.flags |= Notification.FLAG_FOREGROUND_SERVICE;
384 r.foregroundNoti = notification;
368 setServiceForegroundLocked(ComponentName className, IBinder token, int id, Notification notification, boolean removeNotification) argument
H A DActivityManagerService.java1178 Notification notification = new Notification();
1179 notification.icon = com.android.internal.R.drawable.stat_sys_adb; //context.getApplicationInfo().icon;
1180 notification.when = 0;
1181 notification.flags = Notification.FLAG_ONGOING_EVENT;
1182 notification.tickerText = text;
1183 notification.defaults = 0; // please be quiet
1184 notification.sound = null;
1185 notification.vibrate = null;
1186 notification.setLatestEventInfo(context, text,
1196 notification, outI
10977 setServiceForeground(ComponentName className, IBinder token, int id, Notification notification, boolean removeNotification) argument
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_location_GpsLocationProvider.cpp183 static void gps_ni_notify_callback(GpsNiNotification *notification) argument
187 jstring requestor_id = env->NewStringUTF(notification->requestor_id);
188 jstring text = env->NewStringUTF(notification->text);
189 jstring extras = env->NewStringUTF(notification->extras);
193 notification->notification_id, notification->ni_type,
194 notification->notify_flags, notification->timeout,
195 notification->default_response, requestor_id, text,
196 notification
[all...]

Completed in 1062 milliseconds