Home
last modified time | relevance | path

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

123456

/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java19 import android.app.Notification;
97 Notification n = new Notification();
119 Notification n = new Notification(R.drawable.icon1, null,
122 n.flags |= Notification.FLAG_ONGOING_EVENT;
132 Notification n = new Notification(R.drawable.icon1, null,
144 Notification n = new Notification(R.drawable.icon1, "tick tick tick",
154 Notification n = new Notification(R.drawable.icon1, "No view",
162 Notification n = new Notification(R.drawable.icon1, "No intent",
173 Notification n;
175 n = new Notification(NotificationTestList.this,
[all …]
DNotificationBuilderTest.java22 import android.app.Notification;
198 final Notification n = buildNotification(id); in sendNotification()
224 private Notification buildNotification(int id) { in buildNotification()
225 Notification.Builder b = new Notification.Builder(this); in buildNotification()
393 b.setPriority(Notification.PRIORITY_MIN); in buildNotification()
396 b.setPriority(Notification.PRIORITY_LOW); in buildNotification()
399 b.setPriority(Notification.PRIORITY_DEFAULT); in buildNotification()
402 b.setPriority(Notification.PRIORITY_HIGH); in buildNotification()
405 b.setPriority(Notification.PRIORITY_MAX); in buildNotification()
427 defaults |= Notification.DEFAULT_SOUND; in buildNotification()
[all …]
/frameworks/support/tests/java/android/support/v4/app/
DNotificationCompatActionWearableExtenderTest.java19 import android.app.Notification;
52 assertExtendersEqual(new Notification.Action.WearableExtender(), in testEmptyEquals()
58 Notification.Action.WearableExtender baseExtender = in testFullEquals()
59 new Notification.Action.WearableExtender() in testFullEquals()
75 Notification baseNotif = new Notification.Builder(getContext()) in testEmptyNotification()
77 Notification compatNotif = new NotificationCompat.Builder(getContext()) in testEmptyNotification()
87 Notification.Action.Builder baseAction = in testDefaultActionNotification()
88 new Notification.Action.Builder(mIcon, mTitle, mPendingIntent); in testDefaultActionNotification()
92 Notification.WearableExtender baseNoteExtender = in testDefaultActionNotification()
93 new Notification.WearableExtender() in testDefaultActionNotification()
[all …]
DNotificationCompatWearableExtenderTest.java19 import android.app.Notification;
50 assertExtendersEqual(new Notification.WearableExtender(), in testEmptyEquals()
57 Notification notif = new NotificationCompat.Builder(getContext()) in testRealReadCompatEmptyValue()
61 assertExtendersEqual(new Notification.WearableExtender(notif), compatExtender); in testRealReadCompatEmptyValue()
62 assertExtendersEqual(new Notification.WearableExtender(notif), in testRealReadCompatEmptyValue()
67 Notification.WearableExtender realExtender = in testCompatReadRealEmptyValue()
68 new Notification.WearableExtender(); in testCompatReadRealEmptyValue()
69 Notification notif = new Notification.Builder(getContext()) in testCompatReadRealEmptyValue()
74 assertExtendersEqual(new Notification.WearableExtender(notif), in testCompatReadRealEmptyValue()
94 Notification page2 = new Notification.Builder(getContext()) in testRealReadCompatValue()
[all …]
/frameworks/support/v4/api20/android/support/v4/app/
DNotificationCompatApi20.java19 import android.app.Notification;
33 private Notification.Builder b;
36 public Builder(Context context, Notification n, in Builder()
44 b = new Notification.Builder(context) in Builder()
53 .setOngoing((n.flags & Notification.FLAG_ONGOING_EVENT) != 0) in Builder()
54 .setOnlyAlertOnce((n.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0) in Builder()
55 .setAutoCancel((n.flags & Notification.FLAG_AUTO_CANCEL) != 0) in Builder()
64 (n.flags & Notification.FLAG_HIGH_PRIORITY) != 0) in Builder()
79 mExtras.putStringArray(Notification.EXTRA_PEOPLE, in Builder()
90 public Notification.Builder getBuilder() { in getBuilder()
[all …]
/frameworks/support/v4/api21/android/support/v4/app/
DNotificationCompatApi21.java19 import android.app.Notification;
31 public static final String CATEGORY_CALL = Notification.CATEGORY_CALL;
32 public static final String CATEGORY_MESSAGE = Notification.CATEGORY_MESSAGE;
33 public static final String CATEGORY_EMAIL = Notification.CATEGORY_EMAIL;
34 public static final String CATEGORY_EVENT = Notification.CATEGORY_EVENT;
35 public static final String CATEGORY_PROMO = Notification.CATEGORY_PROMO;
36 public static final String CATEGORY_ALARM = Notification.CATEGORY_ALARM;
37 public static final String CATEGORY_PROGRESS = Notification.CATEGORY_PROGRESS;
38 public static final String CATEGORY_SOCIAL = Notification.CATEGORY_SOCIAL;
39 public static final String CATEGORY_ERROR = Notification.CATEGORY_ERROR;
[all …]
/frameworks/support/v4/kitkat/android/support/v4/app/
DNotificationCompatKitKat.java19 import android.app.Notification;
33 private Notification.Builder b;
37 public Builder(Context context, Notification n, in Builder()
45 b = new Notification.Builder(context) in Builder()
54 .setOngoing((n.flags & Notification.FLAG_ONGOING_EVENT) != 0) in Builder()
55 .setOnlyAlertOnce((n.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0) in Builder()
56 .setAutoCancel((n.flags & Notification.FLAG_AUTO_CANCEL) != 0) in Builder()
65 (n.flags & Notification.FLAG_HIGH_PRIORITY) != 0) in Builder()
76 mExtras.putStringArray(Notification.EXTRA_PEOPLE, in Builder()
101 public Notification.Builder getBuilder() { in getBuilder()
[all …]
/frameworks/support/v4/honeycomb/android/support/v4/app/
DNotificationCompatHoneycomb.java19 import android.app.Notification;
26 static Notification add(Context context, Notification n, in add()
30 Notification.Builder b = new Notification.Builder(context) in add()
38 .setOngoing((n.flags & Notification.FLAG_ONGOING_EVENT) != 0) in add()
39 .setOnlyAlertOnce((n.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0) in add()
40 .setAutoCancel((n.flags & Notification.FLAG_AUTO_CANCEL) != 0) in add()
48 (n.flags & Notification.FLAG_HIGH_PRIORITY) != 0) in add()
/frameworks/support/v4/ics/android/support/v4/app/
DNotificationCompatIceCreamSandwich.java19 import android.app.Notification;
26 static Notification add(Context context, Notification n, in add()
31 Notification.Builder b = new Notification.Builder(context) in add()
39 .setOngoing((n.flags & Notification.FLAG_ONGOING_EVENT) != 0) in add()
40 .setOnlyAlertOnce((n.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0) in add()
41 .setAutoCancel((n.flags & Notification.FLAG_AUTO_CANCEL) != 0) in add()
49 (n.flags & Notification.FLAG_HIGH_PRIORITY) != 0) in add()
/frameworks/support/v4/java/android/support/v4/app/
DNotificationCompat.java19 import android.app.Notification;
445 public Notification build(Builder b); in build()
446 public Bundle getExtras(Notification n); in getExtras()
447 public int getActionCount(Notification n); in getActionCount()
448 public Action getAction(Notification n, int actionIndex); in getAction()
451 public String getCategory(Notification n); in getCategory()
452 public boolean getLocalOnly(Notification n); in getLocalOnly()
453 public String getGroup(Notification n); in getGroup()
454 public boolean isGroupSummary(Notification n); in isGroupSummary()
455 public String getSortKey(Notification n); in getSortKey()
[all …]
/frameworks/support/v4/jellybean/android/support/v4/app/
DNotificationCompatJellybean.java19 import android.app.Notification;
66 private Notification.Builder b;
70 public Builder(Context context, Notification n, in Builder()
77 b = new Notification.Builder(context) in Builder()
85 .setOngoing((n.flags & Notification.FLAG_ONGOING_EVENT) != 0) in Builder()
86 .setOnlyAlertOnce((n.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0) in Builder()
87 .setAutoCancel((n.flags & Notification.FLAG_AUTO_CANCEL) != 0) in Builder()
96 (n.flags & Notification.FLAG_HIGH_PRIORITY) != 0) in Builder()
128 public Notification.Builder getBuilder() { in getBuilder()
132 public Notification build() { in build()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/
DRankingHelperTest.java18 import android.app.Notification;
28 private Notification mNotiGroupGSortA;
29 private Notification mNotiGroupGSortB;
30 private Notification mNotiNoGroup;
31 private Notification mNotiNoGroup2;
32 private Notification mNotiNoGroupSortA;
46 mNotiGroupGSortA = new Notification.Builder(getContext()) in setUp()
55 mNotiGroupGSortB = new Notification.Builder(getContext()) in setUp()
64 mNotiNoGroup = new Notification.Builder(getContext()) in setUp()
71 mNotiNoGroup2 = new Notification.Builder(getContext()) in setUp()
[all …]
DValidateNotificationPeopleTest.java18 import android.app.Notification;
40 bundle.putString(Notification.EXTRA_PEOPLE, expected[0]); in testSingleString()
49 bundle.putCharArray(Notification.EXTRA_PEOPLE, expected[0].toCharArray()); in testSingleCharArray()
58 bundle.putCharSequence(Notification.EXTRA_PEOPLE, new SpannableString(expected[0])); in testSingleCharSequence()
67 bundle.putStringArray(Notification.EXTRA_PEOPLE, expected); in testStringArraySingle()
76 bundle.putStringArray(Notification.EXTRA_PEOPLE, expected); in testStringArrayMultiple()
85 bundle.putStringArray(Notification.EXTRA_PEOPLE, expected); in testStringArrayNulls()
98 bundle.putCharSequenceArray(Notification.EXTRA_PEOPLE, charSeqArray); in testCharSequenceArrayMultiple()
115 bundle.putCharSequenceArray(Notification.EXTRA_PEOPLE, charSeqArray); in testMixedCharSequenceArrayList()
128 bundle.putStringArrayList(Notification.EXTRA_PEOPLE, stringArrayList); in testStringArrayList()
[all …]
/frameworks/base/docs/html/sdk/api_diff/20/
DmissingSinces.txt1 NO DOC BLOCK: android.app.Notification.Action.Builder Class
2 NO DOC BLOCK: android.app.Notification.Action.Extender Interface
3 NO DOC BLOCK: android.app.Notification.Action.WearableExtender Class
4 NO DOC BLOCK: android.app.Notification.Extender Interface
5 NO DOC BLOCK: android.app.Notification.WearableExtender Class
11 NO DOC BLOCK: android.app.Notification.Builder Method addAction(android.app.Notification.Action)
12 NO DOC BLOCK: android.app.Notification.Builder Method addExtras(android.os.Bundle)
14 NO DOC BLOCK: android.app.Notification.Builder Method extend(android.app.Notification.Extender)
24 NO DOC BLOCK: android.app.Notification.Action Method getExtras()
25 NO DOC BLOCK: android.app.Notification.Builder Method getExtras()
[all …]
/frameworks/base/core/java/android/service/notification/
DStatusBarNotification.java19 import android.app.Notification;
38 private final Notification notification;
46 int initialPid, int score, Notification notification, UserHandle user) { in StatusBarNotification()
52 int initialPid, int score, Notification notification, UserHandle user, in StatusBarNotification()
83 this.notification = new Notification(in); in StatusBarNotification()
148 final Notification no = new Notification(); in cloneLight()
174 return (notification.flags & Notification.FLAG_ONGOING_EVENT) != 0; in isOngoing()
182 return ((notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) in isClearable()
183 && ((notification.flags & Notification.FLAG_NO_CLEAR) == 0); in isClearable()
228 public Notification getNotification() { in getNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java19 import android.app.Notification;
48 private Notification mUsbStorageNotification;
60 private Notification mMediaStorageNotification;
293 mUsbStorageNotification = new Notification(); in setUsbStorageNotification()
299 mUsbStorageNotification.defaults |= Notification.DEFAULT_SOUND; in setUsbStorageNotification()
301 mUsbStorageNotification.defaults &= ~Notification.DEFAULT_SOUND; in setUsbStorageNotification()
304 mUsbStorageNotification.flags = Notification.FLAG_ONGOING_EVENT; in setUsbStorageNotification()
315 mUsbStorageNotification.visibility = Notification.VISIBILITY_PUBLIC; in setUsbStorageNotification()
316 mUsbStorageNotification.category = Notification.CATEGORY_SYSTEM; in setUsbStorageNotification()
348 ((mMediaStorageNotification.flags & Notification.FLAG_AUTO_CANCEL) == in getMediaStorageNotificationDismissable()
[all …]
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DSchedulerService.java19 import android.app.Notification;
29 Notification status = new Notification(R.drawable.stat_happy, null, in onStartCommand()
31 status.flags |= Notification.FLAG_ONGOING_EVENT; in onStartCommand()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerNotificationWarnings.java19 import android.app.Notification;
154 final Notification.Builder nb = new Notification.Builder(mContext) in showInvalidChargerNotification()
161 .setPriority(Notification.PRIORITY_MAX) in showInvalidChargerNotification()
162 .setVisibility(Notification.VISIBILITY_PUBLIC) in showInvalidChargerNotification()
165 final Notification n = nb.build(); in showInvalidChargerNotification()
176 final Notification.Builder nb = new Notification.Builder(mContext) in showWarningNotification()
185 .setPriority(Notification.PRIORITY_MAX) in showWarningNotification()
186 .setVisibility(Notification.VISIBILITY_PUBLIC) in showWarningNotification()
203 final Notification n = nb.build(); in showWarningNotification()
211 final Notification.Builder nb = new Notification.Builder(mContext) in showSaverNotification()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationIntrusivenessExtractor.java19 import android.app.Notification;
45 final Notification notification = record.getNotification(); in process()
46 if ((notification.defaults & Notification.DEFAULT_VIBRATE) != 0 || in process()
48 (notification.defaults & Notification.DEFAULT_SOUND) != 0 || in process()
/frameworks/base/core/java/android/app/
DNotification.java77 public class Notification implements Parcelable class
1302 public Notification publicVersion;
1308 public Notification() in Notification() method in Notification
1317 public Notification(Context context, int icon, CharSequence tickerText, long when, in Notification() method in Notification
1340 public Notification(int icon, CharSequence tickerText, long when) in Notification() method in Notification
1350 public Notification(Parcel parcel) in Notification() method in Notification
1418 publicVersion = Notification.CREATOR.createFromParcel(parcel); in Notification()
1425 public Notification clone() { in clone()
1426 Notification that = new Notification(); in clone()
1436 public void cloneInto(Notification that, boolean heavy) { in cloneInto()
[all …]
DNotificationManager.java20 import android.app.Notification.Builder;
121 public void notify(int id, Notification notification) in notify()
137 public void notify(String tag, int id, Notification notification) in notify()
149 Notification stripped = notification.clone(); in notify()
164 public void notifyAsUser(String tag, int id, Notification notification, UserHandle user) in notifyAsUser()
176 Notification stripped = notification.clone(); in notifyAsUser()
/frameworks/support/v4/gingerbread/android/support/v4/app/
DNotificationCompatGingerbread.java19 import android.app.Notification;
24 public static Notification add(Notification notification, Context context, in add()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java19 import android.app.Notification;
20 import android.app.Notification.InboxStyle;
118 Notification.Builder builder = new Notification.Builder(mContext) in createPrintingNotification()
134 Notification.Builder builder = new Notification.Builder(mContext) in createFailedNotification()
152 Notification.Builder builder = new Notification.Builder(mContext) in createBlockedNotification()
168 Notification.Builder builder = new Notification.Builder(mContext) in createCancellingNotification()
182 Notification.Builder builder = new Notification.Builder(mContext) in createStackedNotification()
/frameworks/base/docs/html/training/notify-user/
Dbuild-notification.jd1 page.title=Building a Notification
15 <li><a href="#builder">Create a Notification Builder</a></li>
16 <li><a href="#action">Define the Notification's Action</a></li>
17 <li><a href="#click">Set the Notification's Click Behavior</a></li>
18 <li><a href="#notify">Issue the Notification</a></li>
53 <h2 id="builder">Create a Notification Builder</h2>
83 <h2 id="action">Define the Notification's Action</h2>
116 <h2 id="click">Set the Notification's Click Behavior</h2>
131 <h2 id="notify">Issue the Notification</h2>
144 returns a {@link android.app.Notification} object containing your
/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()

123456