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

/frameworks/base/core/java/com/android/internal/notification/
H A DNotificationScorer.java17 package com.android.internal.notification;
25 public int getScore(Notification notification, int score); argument
H A DDemoContactNotificationScorer.java17 package com.android.internal.notification;
39 * the mapping is defined by priorityBumpMap. In a production version of this scorer, a notification
170 public int getScore(Notification notification, int score) { argument
171 if (notification == null || !mEnabled) {
172 if (DBG) Slog.w(TAG, "empty notification? scorer disabled?");
175 boolean hasStarredPriority = hasStarredContact(notification.extras);
/frameworks/base/core/java/android/service/notification/
H A DStatusBarNotification.java17 package android.service.notification;
26 * the status bar and any {@link android.service.notification.NotificationListenerService}s.
36 private final Notification notification; field in class:StatusBarNotification
44 Notification notification, UserHandle user) {
45 this(pkg, null, id, tag, uid, initialPid, score, notification, user);
50 int initialPid, int score, Notification notification, UserHandle user) {
51 this(pkg, basePkg, id, tag, uid, initialPid, score, notification, user,
56 int initialPid, int score, Notification notification, UserHandle user,
59 if (notification == null) throw new NullPointerException();
68 this.notification
43 StatusBarNotification(String pkg, int id, String tag, int uid, int initialPid, int score, Notification notification, UserHandle user) argument
49 StatusBarNotification(String pkg, String basePkg, int id, String tag, int uid, int initialPid, int score, Notification notification, UserHandle user) argument
55 StatusBarNotification(String pkg, String basePkg, int id, String tag, int uid, int initialPid, int score, Notification notification, UserHandle user, long postTime) argument
[all...]
H A DNotificationListenerService.java17 package android.service.notification;
38 * <action android:name="android.service.notification.NotificationListenerService" />
56 = "android.service.notification.NotificationListenerService";
70 * This might occur because the user has dismissed the notification using system UI (or another
71 * notification listener) or because the app has withdrawn the notification.
95 * Inform the notification manager about dismissal of a single notification.
98 * notifications, similar to the behavior of Android's status bar and notification panel.
99 * It should be called after the user dismisses a single notification usin
[all...]
/frameworks/base/core/java/android/app/
H A DNotificationManager.java46 * unspecified. This pair identifies this notification from your app to the
49 * a new set of notification parameters, it will be updated. For example,
53 * this notification.
82 IBinder b = ServiceManager.getService("notification");
98 * Post a notification to be shown in the status bar. If a notification with
102 * @param id An identifier for this notification unique within your
104 * @param notification A {@link Notification} object describing what to show the user. Must not
107 public void notify(int id, Notification notification) argument
109 notify(null, id, notification);
123 notify(String tag, int id, Notification notification) argument
148 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.java838 Notification notification = null;
840 notification = Notification.CREATOR.createFromParcel(data);
843 setServiceForeground(className, token, id, notification, removeNotification);
3018 int id, Notification notification, boolean removeNotification) throws RemoteException {
3025 if (notification != null) {
3027 notification.writeToParcel(data, 0);
3017 setServiceForeground(ComponentName className, IBinder token, int id, Notification notification, boolean removeNotification) argument
H A DIActivityManager.java152 int id, Notification notification, boolean keepNotification) throws RemoteException;
151 setServiceForeground(ComponentName className, IBinder token, int id, Notification notification, boolean keepNotification) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationData.java20 import android.service.notification.StatusBarNotification;
35 public StatusBarNotification notification; field in class:NotificationData.Entry
46 this.notification = n;
71 final StatusBarNotification na = a.notification;
72 final StatusBarNotification nb = b.notification;
113 public int add(IBinder key, StatusBarNotification notification, ExpandableNotificationRow row, argument
117 entry.notification = notification;
152 if (e.notification.isClearable()) {
H A DStatusBarIconView.java52 public StatusBarIconView(Context context, String slot, Notification notification) { argument
60 mNotification = notification;
61 setContentDescription(notification);
63 // We do not resize and scale system icons (on the right), only notification icons (on the
65 if (notification != null) {
274 private void setContentDescription(Notification notification) { argument
275 if (notification != null) {
276 CharSequence tickerText = notification.tickerText;
285 + " notification=" + mNotification + ")";
H A DCommandQueue.java22 import android.service.notification.StatusBarNotification;
73 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;
[all...]
H A DBaseStatusBar.java45 import android.service.notification.StatusBarNotification;
116 // used to notify status bar for suppressing notification LED
273 // Set up the initial notification state
310 Log.v(TAG, String.format("%s: current userid: %d, notification userid: %d",
621 StatusBarNotification sbn = entry.notification;
669 Log.e(TAG, "couldn't inflate view for notification " + ident, e);
695 debug.setText("U " + entry.notification.getUserId());
765 * The LEDs are turned o)ff when the notification panel is shown, even just a little bit.
767 * are handled, because the notification isn't really cancelled. The lights are just
783 * Cancel this notification an
812 createNotificationViews(IBinder key, StatusBarNotification notification) argument
853 addNotificationViews(IBinder key, StatusBarNotification notification) argument
891 updateNotification(IBinder key, StatusBarNotification notification) argument
1017 updateNotificationViews(NotificationData.Entry entry, StatusBarNotification notification) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DTicker.java23 import android.service.notification.StatusBarNotification;
62 StatusBarNotification notification; field in class:Ticker.Segment
139 this.notification = n;
187 // a notification storm).
190 if (n.getPackageName().equals(seg.notification.getPackageName())
191 && n.getNotification().icon == seg.notification.getNotification().icon
192 && n.getNotification().iconLevel == seg.notification.getNotification().iconLevel
193 && charSequencesEqual(seg.notification.getNotification().tickerText,
205 // If there's already a notification schedule for this package and id, remove it.
208 if (n.getId() == seg.notification
[all...]
H A DPhoneStatusBar.java61 import android.service.notification.StatusBarNotification;
194 NotificationPanelView mNotificationPanel; // the sliding/resizing panel within the notification window
318 Log.d(TAG, "dismissing any existing heads up notification on disable event");
533 mLocationController = new LocationController(mContext); // will post a notification
904 public void addNotification(IBinder key, StatusBarNotification notification) { argument
905 if (DEBUG) Log.d(TAG, "addNotification score=" + notification.getScore());
906 Entry shadeEntry = createNotificationViews(key, notification);
910 if (mUseHeadsUp && shouldInterrupt(notification)) {
911 if (DEBUG) Log.d(TAG, "launching notification in heads up mode");
912 Entry interruptionCandidate = new Entry(key, notification, nul
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/
H A DTvStatusBar.java20 import android.service.notification.StatusBarNotification;
48 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.java20 import android.service.notification.StatusBarNotification;
459 * invisible to visible in order to clear the notification light.
464 // tell the notification manager to turn off the lights.
497 public IBinder addNotification(StatusBarNotification notification) { argument
500 mNotifications.put(key, notification);
503 mBar.addNotification(key, notification);
511 public void updateNotification(IBinder key, StatusBarNotification notification) { argument
516 mNotifications.put(key, notification);
519 mBar.updateNotification(key, notification);
H A DNotificationManagerService.java64 import android.service.notification.INotificationListener;
65 import android.service.notification.NotificationListenerService;
66 import android.service.notification.StatusBarNotification;
80 import com.android.internal.notification.NotificationScorer;
163 // for enabling and disabling notification pulse behavior
198 private static final String TAG_BODY = "notification-policy";
290 sb.append(" notification");
300 // We don't want to store the heavy bits of the notification in the archive,
441 /** Use this when you actually want to post a notification or toast.
547 * Remove notification acces
1631 enqueueNotificationWithTag(String pkg, String basePkg, String tag, int id, Notification notification, int[] idOut, int userId) argument
1645 enqueueNotificationInternal(final String pkg, String basePkg, final int callingUid, final int callingPid, final String tag, final int id, final Notification notification, int[] idOut, int incomingUserId) argument
1980 sendAccessibilityEvent(Notification notification, CharSequence packageName) argument
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DActiveServices.java547 int id, Notification notification, boolean removeNotification) {
554 if (notification == null) {
555 throw new IllegalArgumentException("null notification");
561 notification.flags |= Notification.FLAG_FOREGROUND_SERVICE;
562 r.foregroundNoti = notification;
546 setServiceForegroundLocked(ComponentName className, IBinder token, int id, Notification notification, boolean removeNotification) argument
H A DActivityManagerService.java1353 Notification notification = new Notification();
1354 notification.icon = com.android.internal.R.drawable.stat_sys_adb; //context.getApplicationInfo().icon;
1355 notification.when = 0;
1356 notification.flags = Notification.FLAG_ONGOING_EVENT;
1357 notification.tickerText = text;
1358 notification.defaults = 0; // please be quiet
1359 notification.sound = null;
1360 notification.vibrate = null;
1361 notification.setLatestEventInfo(context, text,
1371 notification, outI
12666 setServiceForeground(ComponentName className, IBinder token, int id, Notification notification, boolean removeNotification) argument
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_location_GpsLocationProvider.cpp191 static void gps_ni_notify_callback(GpsNiNotification *notification) argument
195 jstring requestor_id = env->NewStringUTF(notification->requestor_id);
196 jstring text = env->NewStringUTF(notification->text);
197 jstring extras = env->NewStringUTF(notification->extras);
201 notification->notification_id, notification->ni_type,
202 notification->notify_flags, notification->timeout,
203 notification->default_response, requestor_id, text,
204 notification
[all...]

Completed in 906 milliseconds