Home
last modified time | relevance | path

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

12345678

/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/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java19 import android.app.Notification;
96 Notification n = new Notification.Builder(NotificationTestList.this)
121 Notification n = new Notification.Builder(NotificationTestList.this)
136 Notification n = new Notification.Builder(NotificationTestList.this)
150 Notification n = new Notification.Builder(NotificationTestList.this)
166 Notification.Builder n = new Notification.Builder(NotificationTestList.this)
187 Notification n = new Notification.Builder(NotificationTestList.this)
200 Notification n = new Notification.Builder(NotificationTestList.this)
213 Notification n = new Notification.Builder(NotificationTestList.this)
226 Notification n = new Notification.Builder(NotificationTestList.this)
[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/base/tests/notification/src/com/android/frameworks/tests/notification/
DNotificationTests.java100 public static Notification makeBigTextNotification(Context context, int update, int id, in makeBigTextNotification()
146 Notification.BigTextStyle bigTextStyle = new Notification.BigTextStyle() in makeBigTextNotification()
148 Notification bigText = new Notification.Builder(context) in makeBigTextNotification()
155 .setPriority(Notification.PRIORITY_HIGH) in makeBigTextNotification()
159 .setDefaults(Notification.DEFAULT_SOUND) in makeBigTextNotification()
165 public static Notification makeUploadNotification(Context context, int progress, long when) { in makeUploadNotification()
166 Notification.Builder uploadNotification = new Notification.Builder(context) in makeUploadNotification()
169 .setPriority(Notification.PRIORITY_MIN) in makeUploadNotification()
241 public static String summarize(Notification n) { in summarize()
243 n.extras.get(Notification.EXTRA_TITLE), in summarize()
[all …]
/frameworks/support/v4/ics/android/support/v4/app/
DNotificationCompatIceCreamSandwich.java19 import android.app.Notification;
29 private Notification.Builder b;
31 public Builder(Context context, Notification n, CharSequence contentTitle, in Builder()
35 b = new Notification.Builder(context) in Builder()
43 .setOngoing((n.flags & Notification.FLAG_ONGOING_EVENT) != 0) in Builder()
44 .setOnlyAlertOnce((n.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0) in Builder()
45 .setAutoCancel((n.flags & Notification.FLAG_AUTO_CANCEL) != 0) in Builder()
53 (n.flags & Notification.FLAG_HIGH_PRIORITY) != 0) in Builder()
60 public Notification.Builder getBuilder() { in getBuilder()
65 public Notification build() { in build()
/frameworks/support/v4/java/android/support/v4/app/
DNotificationCompat.java19 import android.app.Notification;
447 public Notification build(Builder b, BuilderExtender extender); in build()
448 public Bundle getExtras(Notification n); in getExtras()
449 public int getActionCount(Notification n); in getActionCount()
450 public Action getAction(Notification n, int actionIndex); in getAction()
453 public String getCategory(Notification n); in getCategory()
454 public boolean getLocalOnly(Notification n); in getLocalOnly()
455 public String getGroup(Notification n); in getGroup()
456 public boolean isGroupSummary(Notification n); in isGroupSummary()
457 public String getSortKey(Notification n); in getSortKey()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java19 import android.app.Notification;
20 import android.app.Notification.Action;
195 final Notification notif = new Notification.Builder(mContext) in updateMissingPrivateVolumes()
201 .setStyle(new Notification.BigTextStyle().bigText(text)) in updateMissingPrivateVolumes()
202 .setVisibility(Notification.VISIBILITY_PUBLIC) in updateMissingPrivateVolumes()
204 .setCategory(Notification.CATEGORY_SYSTEM) in updateMissingPrivateVolumes()
221 final Notification notif = new Notification.Builder(mContext) in onDiskScannedInternal()
227 .setStyle(new Notification.BigTextStyle().bigText(text)) in onDiskScannedInternal()
228 .setVisibility(Notification.VISIBILITY_PUBLIC) in onDiskScannedInternal()
230 .setCategory(Notification.CATEGORY_ERROR) in onDiskScannedInternal()
[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()
DNotificationBuilderWithBuilderAccessor.java19 import android.app.Notification;
29 public Notification.Builder getBuilder(); in getBuilder()
30 public Notification build(); in build()
/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.java21 import android.app.Notification;
32 private Notification mNotiGroupGSortA;
33 private Notification mNotiGroupGSortB;
34 private Notification mNotiNoGroup;
35 private Notification mNotiNoGroup2;
36 private Notification mNotiNoGroupSortA;
51 mNotiGroupGSortA = new Notification.Builder(getContext()) in setUp()
60 mNotiGroupGSortB = new Notification.Builder(getContext()) in setUp()
69 mNotiNoGroup = new Notification.Builder(getContext()) in setUp()
76 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;
41 private final Notification notification;
50 int initialPid, int score, Notification notification, UserHandle user) { in StatusBarNotification()
56 int initialPid, int score, Notification notification, UserHandle user, in StatusBarNotification()
87 this.notification = new Notification(in); in StatusBarNotification()
152 final Notification no = new Notification(); in cloneLight()
178 return (notification.flags & Notification.FLAG_ONGOING_EVENT) != 0; in isOngoing()
186 return ((notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) in isClearable()
187 && ((notification.flags & Notification.FLAG_NO_CLEAR) == 0); in isClearable()
232 public Notification getNotification() { in getNotification()
/frameworks/base/docs/html-intl/intl/ru/design/patterns/
Dnotifications.jd82 <p>Уведомления, созданные с помощью {@link android.app.Notification.Builder Notification.Builder}
211 {@link android.app.Notification.Builder#setLargeIcon setLargeIcon()}. Кроме того, в метаданные увед…
212 пользователе (см. {@link android.app.Notification#EXTRA_PEOPLE}).</p>
359 href="/reference/android/app/Notification.html#CATEGORY_CALL">CATEGORY_CALL</a></code></p>
369 href="/reference/android/app/Notification.html#CATEGORY_MESSAGE">CATEGORY_MESSAGE</a></code></p>
378 href="/reference/android/app/Notification.html#CATEGORY_EMAIL">CATEGORY_EMAIL</a></code></p>
387 href="/reference/android/app/Notification.html#CATEGORY_EVENT">CATEGORY_EVENT</a></code></p>
396 href="/reference/android/app/Notification.html#CATEGORY_PROMO">CATEGORY_PROMO</a></code></p>
405 href="/reference/android/app/Notification.html#CATEGORY_ALARM">CATEGORY_ALARM</a></code></p>
414 href="/reference/android/app/Notification.html#CATEGORY_PROGRESS">CATEGORY_PROGRESS</a></code></p>
[all …]
/frameworks/base/docs/html-intl/intl/ja/design/patterns/
Dnotifications.jd82 <p>従来のプラットフォーム バージョンの {@link android.app.Notification.Builder Notification.Builder} で作成された通知は、Andro…
209 <p>他人から送信されたアイテム(メッセージ、ステータス アップデートなど)の通知には、{@link android.app.Notification.Builder#setLargeIcon se…
211 また、通知のメタデータに相手に関する情報を添付します({@link android.app.Notification#EXTRA_PEOPLE} を参照)。
359 href="/reference/android/app/Notification.html#CATEGORY_CALL">CATEGORY_CALL</a></code></p>
369 href="/reference/android/app/Notification.html#CATEGORY_MESSAGE">CATEGORY_MESSAGE</a></code></p>
378 href="/reference/android/app/Notification.html#CATEGORY_EMAIL">CATEGORY_EMAIL</a></code></p>
387 href="/reference/android/app/Notification.html#CATEGORY_EVENT">CATEGORY_EVENT</a></code></p>
396 href="/reference/android/app/Notification.html#CATEGORY_PROMO">CATEGORY_PROMO</a></code></p>
405 href="/reference/android/app/Notification.html#CATEGORY_ALARM">CATEGORY_ALARM</a></code></p>
414 href="/reference/android/app/Notification.html#CATEGORY_PROGRESS">CATEGORY_PROGRESS</a></code></p>
[all …]
/frameworks/base/docs/html-intl/intl/zh-cn/design/patterns/
Dnotifications.jd82 <p>利用 {@link android.app.Notification.Builder Notification.Builder}为之前版本平台创建的通知,其外观和行为方式与在 Android
210 {@link android.app.Notification.Builder#setLargeIcon setLargeIcon()} 包含此人的头像。
211 另外将有关此人的信息附加到通知的元数据(参阅 {@link android.app.Notification#EXTRA_PEOPLE})。
359 href="/reference/android/app/Notification.html#CATEGORY_CALL">CATEGORY_CALL</a></code></p>
369 href="/reference/android/app/Notification.html#CATEGORY_MESSAGE">CATEGORY_MESSAGE</a></code></p>
378 href="/reference/android/app/Notification.html#CATEGORY_EMAIL">CATEGORY_EMAIL</a></code></p>
387 href="/reference/android/app/Notification.html#CATEGORY_EVENT">CATEGORY_EVENT</a></code></p>
396 href="/reference/android/app/Notification.html#CATEGORY_PROMO">CATEGORY_PROMO</a></code></p>
405 href="/reference/android/app/Notification.html#CATEGORY_ALARM">CATEGORY_ALARM</a></code></p>
414 href="/reference/android/app/Notification.html#CATEGORY_PROGRESS">CATEGORY_PROGRESS</a></code></p>
[all …]
/frameworks/base/docs/html-intl/intl/ko/design/patterns/
Dnotifications.jd83 {@link android.app.Notification.Builder Notification.Builder}로 생성된 알림은 시스템이 대신
211 {@link android.app.Notification.Builder#setLargeIcon setLargeIcon()}을 사용하여 그 사람의 이미지를 포함합니다. 또한
212 그 사람에 대한 정보를 알림의 메타데이터에 추가합니다({@link android.app.Notification#EXTRA_PEOPLE} 참조).</p>
359 href="/reference/android/app/Notification.html#CATEGORY_CALL">CATEGORY_CALL</a></code></p>
369 href="/reference/android/app/Notification.html#CATEGORY_MESSAGE">CATEGORY_MESSAGE</a></code></p>
378 href="/reference/android/app/Notification.html#CATEGORY_EMAIL">CATEGORY_EMAIL</a></code></p>
387 href="/reference/android/app/Notification.html#CATEGORY_EVENT">CATEGORY_EVENT</a></code></p>
396 href="/reference/android/app/Notification.html#CATEGORY_PROMO">CATEGORY_PROMO</a></code></p>
405 href="/reference/android/app/Notification.html#CATEGORY_ALARM">CATEGORY_ALARM</a></code></p>
414 href="/reference/android/app/Notification.html#CATEGORY_PROGRESS">CATEGORY_PROGRESS</a></code></p>
[all …]
/frameworks/base/docs/html-intl/intl/zh-tw/design/patterns/
Dnotifications.jd82 <p>針對先前平台版本,使用 {@link android.app.Notification.Builder Notification.Builder}
211 {@link android.app.Notification.Builder#setLargeIcon setLargeIcon()} 納入對方提供的影像。也將對方的資訊附加至通知的中繼資料中
212 (請參閱 {@link android.app.Notification#EXTRA_PEOPLE})。</p>
359 href="/reference/android/app/Notification.html#CATEGORY_CALL">CATEGORY_CALL</a></code></p>
369 href="/reference/android/app/Notification.html#CATEGORY_MESSAGE">CATEGORY_MESSAGE</a></code></p>
378 href="/reference/android/app/Notification.html#CATEGORY_EMAIL">CATEGORY_EMAIL</a></code></p>
387 href="/reference/android/app/Notification.html#CATEGORY_EVENT">CATEGORY_EVENT</a></code></p>
396 href="/reference/android/app/Notification.html#CATEGORY_PROMO">CATEGORY_PROMO</a></code></p>
405 href="/reference/android/app/Notification.html#CATEGORY_ALARM">CATEGORY_ALARM</a></code></p>
414 href="/reference/android/app/Notification.html#CATEGORY_PROGRESS">CATEGORY_PROGRESS</a></code></p>
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerNotificationWarnings.java19 import android.app.Notification;
153 final Notification.Builder nb = new Notification.Builder(mContext) in showInvalidChargerNotification()
160 .setPriority(Notification.PRIORITY_MAX) in showInvalidChargerNotification()
161 .setVisibility(Notification.VISIBILITY_PUBLIC) in showInvalidChargerNotification()
164 final Notification n = nb.build(); in showInvalidChargerNotification()
175 final Notification.Builder nb = new Notification.Builder(mContext) in showWarningNotification()
184 .setPriority(Notification.PRIORITY_MAX) in showWarningNotification()
185 .setVisibility(Notification.VISIBILITY_PUBLIC) in showWarningNotification()
202 final Notification n = nb.build(); in showWarningNotification()
210 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;
46 final Notification notification = record.getNotification(); in process()
47 if ((notification.defaults & Notification.DEFAULT_VIBRATE) != 0 || in process()
49 (notification.defaults & Notification.DEFAULT_SOUND) != 0 || in process()
/frameworks/base/core/java/android/app/
DNotification.java80 public class Notification implements Parcelable class
1359 public Notification publicVersion;
1365 public Notification() in Notification() method in Notification
1374 public Notification(Context context, int icon, CharSequence tickerText, long when, in Notification() method in Notification
1400 public Notification(int icon, CharSequence tickerText, long when) in Notification() method in Notification
1410 public Notification(Parcel parcel) in Notification() method in Notification
1483 publicVersion = Notification.CREATOR.createFromParcel(parcel); in Notification()
1490 public Notification clone() { in clone()
1491 Notification that = new Notification(); in clone()
1501 public void cloneInto(Notification that, boolean heavy) { in cloneInto()
[all …]

12345678