Searched refs:notification (Results 1 - 25 of 50) sorted by relevance

12

/frameworks/base/core/java/android/service/notification/
H A DINotificationListener.aidl17 package android.service.notification;
19 import android.service.notification.StatusBarNotification;
24 void onNotificationPosted(in StatusBarNotification notification);
25 void onNotificationRemoved(in StatusBarNotification notification);
H A DStatusBarNotification.aidl17 package 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...]
/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/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 DINotificationManager.aidl21 import android.service.notification.StatusBarNotification;
25 import android.service.notification.INotificationListener;
35 in Notification notification, inout int[] idReceived, int userId);
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
/frameworks/base/core/java/com/android/internal/statusbar/
H A DIStatusBar.aidl20 import android.service.notification.StatusBarNotification;
27 void addNotification(IBinder key, in StatusBarNotification notification);
28 void updateNotification(IBinder key, in StatusBarNotification notification);
/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 DBaseStatusBar.java46 import android.service.notification.StatusBarNotification;
116 // used to notify status bar for suppressing notification LED
275 // Set up the initial notification state
312 Log.v(TAG, String.format("%s: current userid: %d, notification userid: %d",
623 StatusBarNotification sbn = entry.notification;
671 Log.e(TAG, "couldn't inflate view for notification " + ident, e);
697 debug.setText("U " + entry.notification.getUserId());
769 * The LEDs are turned o)ff when the notification panel is shown, even just a little bit.
771 * are handled, because the notification isn't really cancelled. The lights are just
787 * Cancel this notification an
816 createNotificationViews(IBinder key, StatusBarNotification notification) argument
857 addNotificationViews(IBinder key, StatusBarNotification notification) argument
895 updateNotification(IBinder key, StatusBarNotification notification) argument
1021 updateNotificationViews(NotificationData.Entry entry, StatusBarNotification notification) argument
[all...]
H A DCommandQueue.java22 import android.service.notification.StatusBarNotification;
74 StatusBarNotification notification; field in class:CommandQueue.NotificationQueueEntry
85 public void addNotification(IBinder key, StatusBarNotification notification); argument
86 public void updateNotification(IBinder key, StatusBarNotification notification); argument
126 public void addNotification(IBinder key, StatusBarNotification notification) { argument
130 ne.notification = notification;
135 public void updateNotification(IBinder key, StatusBarNotification notification) { argument
139 ne.notification = notification;
[all...]
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 + ")";
/frameworks/testing/androidtestlib/src/com/android/test/runner/
H A DTestRequest.java19 import org.junit.runner.notification.Failure;
/frameworks/testing/androidtestlib/src/com/android/test/runner/junit3/
H A DNonExecutingJUnit3ClassRunner.java21 import org.junit.runner.notification.RunNotifier;
/frameworks/base/core/tests/notificationtests/src/android/app/
H A DNotificationStressTest.java31 * Test which spams notification manager with a large number of notifications, for both stress and
72 // Cancel one of every five notifications to vary load on notification manager
80 // Create "typical" notification with random icon
81 Notification notification = new Notification(ICONS[mRandom.nextInt(ICONS.length)], text,
88 notification.setLatestEventInfo(mContext, title, subtitle, pendingIntent);
89 mNotificationManager.notify(id, notification);
/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/testing/androidtestlib/src/com/android/test/runner/listener/
H A DDelayInjector.java21 import org.junit.runner.notification.RunListener;
H A DInstrumentationRunListener.java21 import org.junit.runner.notification.RunListener;
H A DSuiteAssignmentPrinter.java22 import org.junit.runner.notification.Failure;
23 import org.junit.runner.notification.RunListener;
/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...]
/frameworks/base/services/java/com/android/server/
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";
289 sb.append(" notification");
299 // We don't want to store the heavy bits of the notification in the archive,
440 /** Use this when you actually want to post a notification or toast.
546 * Remove notification acces
1620 enqueueNotificationWithTag(String pkg, String basePkg, String tag, int id, Notification notification, int[] idOut, int userId) argument
1634 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
1969 sendAccessibilityEvent(Notification notification, CharSequence packageName) argument
[all...]
H A DDeviceStorageMonitorService.java55 * default 10%) a low memory notification is displayed to alert the
56 * user. If the user clicks on the low memory notification the
133 * notification if the device runs low on disk space
270 Slog.i(TAG, "Running low on memory. Sending notification");
275 "notification already sent. do nothing");
281 Slog.i(TAG, "Memory available. Cancelling notification");
351 * This method sends a notification to NotificationManager to display
356 if(localLOGV) Slog.i(TAG, "Sending low memory notification");
374 Notification notification = new Notification();
375 notification
[all...]
/frameworks/base/services/java/com/android/server/usb/
H A DUsbDeviceManager.java193 // We do not show the USB notification if the primary volume supports mass storage.
670 // There is a different notification for USB tethering so we don't need one here
677 // clear notification if title needs changing
688 Notification notification = new Notification();
689 notification.icon = com.android.internal.R.drawable.stat_sys_data_usb;
690 notification.when = 0;
691 notification.flags = Notification.FLAG_ONGOING_EVENT;
692 notification.tickerText = title;
693 notification.defaults = 0; // please be quiet
694 notification
[all...]
/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
H A DFixVibrateSetting.java96 String notification = getSettingValue(AudioManager.VIBRATE_TYPE_NOTIFICATION);
97 String text = getString(R.string.current_setting, ringer, notification);
112 Notification n = new Notification(R.drawable.stat_sys_warning, "Test notification",
116 n.setLatestEventInfo(this, "Test notification", "Test notification", pending);

Completed in 1226 milliseconds

12