Home
last modified time | relevance | path

Searched refs:Notification (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java19 import android.app.Notification;
91 Notification n = new Notification();
113 Notification n = new Notification(R.drawable.icon1, null,
116 n.flags |= Notification.FLAG_ONGOING_EVENT;
126 Notification n = new Notification(R.drawable.icon1, null,
138 Notification n = new Notification(R.drawable.icon1, "tick tick tick",
148 Notification n = new Notification(R.drawable.icon1, "No view",
156 Notification n = new Notification(R.drawable.icon1, "No intent",
167 Notification n;
169 n = new Notification(NotificationTestList.this,
[all …]
DStatusBarTest.java20 import android.app.Notification;
27 import android.app.Notification;
170 Notification not = new Notification();
178 not.flags |= Notification.FLAG_HIGH_PRIORITY;
283 new Notification(
DNotificationBuilderTest.java22 import android.app.Notification;
186 final Notification n = buildNotification(id); in sendNotification()
190 private Notification buildNotification(int id) { in buildNotification()
191 Notification.Builder b = new Notification.Builder(this); in buildNotification()
347 defaults |= Notification.DEFAULT_SOUND; in buildNotification()
350 defaults |= Notification.DEFAULT_VIBRATE; in buildNotification()
353 defaults |= Notification.DEFAULT_LIGHTS; in buildNotification()
DPowerTest.java20 import android.app.Notification;
31 import android.app.Notification;
DTestActivity.java20 import android.app.Notification;
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarNotification.java19 import android.app.Notification;
48 public Notification notification;
55 int uid, int initialPid, Notification notification) { in StatusBarNotification()
84 this.notification = new Notification(in); in readFromParcel()
131 return (notification.flags & Notification.FLAG_ONGOING_EVENT) != 0; in isOngoing()
135 return ((notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) in isClearable()
136 && ((notification.flags & Notification.FLAG_NO_CLEAR) == 0); in isClearable()
/frameworks/base/core/java/android/app/
DINotificationManager.aidl21 import android.app.Notification;
28 …void enqueueNotification(String pkg, int id, in Notification notification, inout int[] idReceived); in enqueueNotification()
35 …void enqueueNotificationWithTag(String pkg, String tag, int id, in Notification notification, inou… in enqueueNotificationWithTag()
36 …ationWithTagPriority(String pkg, String tag, int id, int priority, in Notification notification, i… in enqueueNotificationWithTagPriority()
DNotification.java48 public class Notification implements Parcelable class
314 public Notification() in Notification() method in Notification
322 public Notification(Context context, int icon, CharSequence tickerText, long when, in Notification() method in Notification
345 public Notification(int icon, CharSequence tickerText, long when) in Notification() method in Notification
355 public Notification(Parcel parcel) in Notification() method in Notification
399 public Notification clone() { in clone()
400 Notification that = new Notification(); in clone()
522 public static final Parcelable.Creator<Notification> CREATOR
523 = new Parcelable.Creator<Notification>()
525 public Notification createFromParcel(Parcel parcel)
[all …]
DNotificationManager.java101 public void notify(int id, Notification notification) in notify()
117 public void notify(String tag, int id, Notification notification) in notify()
DNotification.aidl19 parcelable Notification;
/frameworks/base/docs/html/guide/topics/ui/notifiers/
Dnotifications.jd20 <li><a href="#CreateANotification">Creating a Notification</a>
29 <li><a href="#CustomExpandedView">Creating a Custom Notification Layout</a></li>
33 <li>{@link android.app.Notification}</li>
42 {@link android.content.Intent} that is defined by the {@link android.app.Notification} (usually to
73 classes: {@link android.app.Notification} and {@link android.app.NotificationManager}.</p>
75 <p>Use an instance of the {@link android.app.Notification} class to define the properties of your
80 to give it your {@link android.app.Notification}, you must retrieve a reference to the
83 then, when you want to notify the user, pass it your {@link android.app.Notification} with
84 {@link android.app.NotificationManager#notify(int,Notification) notify()}. </p>
94 <!-- use Notification.Builder in 3.0 -->
[all …]
Dindex.jd22 <li>A <a href="#Toast">Toast Notification</a>, for brief messages that come
24 <li>A <a href="#StatusBar">Status Bar Notification</a>, for persistent reminders
26 <li>A <a href="#Dialog">Dialog Notification</a>, for Activity-related notifications.</li>
33 <h2 id="Toast">Toast Notification</h2>
47 <a href="#StatusBar">Status Bar Notification</a> instead.</p>
52 <h2 id="StatusBar">Status Bar Notification</h2>
68 <a href="#Dialog">Dialog Notification</a> instead.</p>
74 <h2 id="Dialog">Dialog Notification</h2>
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java19 import android.app.Notification;
49 private Notification mUsbStorageNotification;
61 private Notification mMediaStorageNotification;
298 mUsbStorageNotification = new Notification(); in setUsbStorageNotification()
304 mUsbStorageNotification.defaults |= Notification.DEFAULT_SOUND; in setUsbStorageNotification()
306 mUsbStorageNotification.defaults &= ~Notification.DEFAULT_SOUND; in setUsbStorageNotification()
309 mUsbStorageNotification.flags = Notification.FLAG_ONGOING_EVENT; in setUsbStorageNotification()
347 ((mMediaStorageNotification.flags & Notification.FLAG_AUTO_CANCEL) == in getMediaStorageNotificationDismissable()
348 Notification.FLAG_AUTO_CANCEL)) in getMediaStorageNotificationDismissable()
386 mMediaStorageNotification = new Notification(); in setMediaStorageNotification()
[all …]
/frameworks/base/services/java/com/android/server/
DNotificationManagerService.java25 import android.app.Notification;
149 final Notification notification;
153 Notification notification) in NotificationRecord()
260 cancelNotification(pkg, tag, id, Notification.FLAG_AUTO_CANCEL,
261 Notification.FLAG_FOREGROUND_SERVICE, false);
266 Notification.FLAG_ONGOING_EVENT | Notification.FLAG_FOREGROUND_SERVICE,
651 public void enqueueNotification(String pkg, int id, Notification notification, int[] idOut) in enqueueNotification()
656 … public void enqueueNotificationWithTag(String pkg, String tag, int id, Notification notification, in enqueueNotificationWithTag()
664 Notification notification, int[] idOut) in enqueueNotificationWithTagPriority()
673 String tag, int id, Notification notification, int[] idOut) in enqueueNotificationInternal()
[all …]
DDeviceStorageMonitorService.java19 import android.app.Notification;
351 Notification notification = new Notification(); in sendNotification()
354 notification.flags |= Notification.FLAG_NO_CLEAR; in sendNotification()
DUiModeManagerService.java23 import android.app.Notification;
589 Notification n = new Notification(); in adjustStatusBarCarModeLocked()
591 n.defaults = Notification.DEFAULT_LIGHTS; in adjustStatusBarCarModeLocked()
592 n.flags = Notification.FLAG_ONGOING_EVENT; in adjustStatusBarCarModeLocked()
/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
DFixVibrateSetting.java20 import android.app.Notification;
112 Notification n = new Notification(R.drawable.stat_sys_warning, "Test notification", in test()
119 n.flags |= Notification.FLAG_AUTO_CANCEL; in test()
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java21 import android.app.Notification;
127 private Notification mNiNotification;
197 mNiNotification = new Notification(); in setNiNotification()
203 mNiNotification.defaults |= Notification.DEFAULT_SOUND; in setNiNotification()
205 mNiNotification.defaults &= ~Notification.DEFAULT_SOUND; in setNiNotification()
208 mNiNotification.flags = Notification.FLAG_ONGOING_EVENT | Notification.FLAG_AUTO_CANCEL; in setNiNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationController.java21 import android.app.Notification;
92 Notification n = new Notification.Builder(mContext) in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DGlobalScreenshot.java24 import android.app.Notification;
89 private Notification.Builder mNotificationBuilder;
134 mNotificationBuilder = new Notification.Builder(context) in SaveImageInBackgroundTask()
142 Notification n = mNotificationBuilder.getNotification(); in SaveImageInBackgroundTask()
143 n.flags |= Notification.FLAG_NO_CLEAR; in SaveImageInBackgroundTask()
215 Notification n = mNotificationBuilder.getNotification(); in onPostExecute()
216 n.flags &= ~Notification.FLAG_NO_CLEAR; in onPostExecute()
574 Notification n = new Notification.Builder(context) in notifyScreenshotError()
/frameworks/base/core/tests/notificationtests/src/android/app/
DNotificationStressTest.java81 Notification notification = new Notification(ICONS[mRandom.nextInt(ICONS.length)], text, in sendNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java19 import android.app.Notification;
50 private Notification mNotification;
52 public StatusBarIconView(Context context, String slot, Notification notification) { in StatusBarIconView()
249 private void setContentDescription(Notification notification) { in setContentDescription()
/frameworks/base/services/java/com/android/server/usb/
DUsbDeviceManager.java20 import android.app.Notification;
562 Notification notification = new Notification(); in updateUsbNotification()
565 notification.flags = Notification.FLAG_ONGOING_EVENT; in updateUsbNotification()
595 Notification notification = new Notification(); in updateAdbNotification()
598 notification.flags = Notification.FLAG_ONGOING_EVENT; in updateAdbNotification()
/frameworks/base/services/java/com/android/server/connectivity/
DVpn.java19 import android.app.Notification;
319 Notification notification = new Notification.Builder(mContext) in showNotification()
325 .setDefaults(Notification.DEFAULT_ALL) in showNotification()
/frameworks/base/core/tests/coretests/src/android/accounts/
DAccountManagerServiceTest.java19 import android.app.Notification;
242 protected void installNotification(final int notificationId, final Notification n) { in installNotification()

123