Home
last modified time | relevance | path

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

123456789

/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java19 import android.app.Notification;
93 Notification n = new Notification.Builder(NotificationTestList.this)
97 .setDefaults(Notification.DEFAULT_LIGHTS|Notification.DEFAULT_VIBRATE)
102 .setPriority(Notification.PRIORITY_MAX)
115 Notification n = new Notification.Builder(NotificationTestList.this)
119 .setPriority(Notification.PRIORITY_MIN)
123 n = new Notification.Builder(NotificationTestList.this)
127 .setPriority(Notification.PRIORITY_LOW)
131 n = new Notification.Builder(NotificationTestList.this)
135 .setPriority(Notification.PRIORITY_DEFAULT)
[all …]
/frameworks/support/compat/api24/android/support/v4/app/
DNotificationCompatApi24.java19 import android.app.Notification;
33 public static final String CATEGORY_CALL = Notification.CATEGORY_CALL;
34 public static final String CATEGORY_MESSAGE = Notification.CATEGORY_MESSAGE;
35 public static final String CATEGORY_EMAIL = Notification.CATEGORY_EMAIL;
36 public static final String CATEGORY_EVENT = Notification.CATEGORY_EVENT;
37 public static final String CATEGORY_PROMO = Notification.CATEGORY_PROMO;
38 public static final String CATEGORY_ALARM = Notification.CATEGORY_ALARM;
39 public static final String CATEGORY_PROGRESS = Notification.CATEGORY_PROGRESS;
40 public static final String CATEGORY_SOCIAL = Notification.CATEGORY_SOCIAL;
41 public static final String CATEGORY_ERROR = Notification.CATEGORY_ERROR;
[all …]
/frameworks/support/compat/api20/android/support/v4/app/
DNotificationCompatApi20.java19 import android.app.Notification;
33 private Notification.Builder b;
38 public Builder(Context context, Notification n, in Builder()
46 b = new Notification.Builder(context) in Builder()
55 .setOngoing((n.flags & Notification.FLAG_ONGOING_EVENT) != 0) in Builder()
56 .setOnlyAlertOnce((n.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0) in Builder()
57 .setAutoCancel((n.flags & Notification.FLAG_AUTO_CANCEL) != 0) in Builder()
66 (n.flags & Notification.FLAG_HIGH_PRIORITY) != 0) in Builder()
81 mExtras.putStringArray(Notification.EXTRA_PEOPLE, in Builder()
94 public Notification.Builder getBuilder() { in getBuilder()
[all …]
/frameworks/support/compat/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/compat/kitkat/android/support/v4/app/
DNotificationCompatKitKat.java19 import android.app.Notification;
33 private Notification.Builder b;
39 public Builder(Context context, Notification n, in Builder()
47 b = new Notification.Builder(context) in Builder()
56 .setOngoing((n.flags & Notification.FLAG_ONGOING_EVENT) != 0) in Builder()
57 .setOnlyAlertOnce((n.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0) in Builder()
58 .setAutoCancel((n.flags & Notification.FLAG_AUTO_CANCEL) != 0) in Builder()
67 (n.flags & Notification.FLAG_HIGH_PRIORITY) != 0) in Builder()
78 mExtras.putStringArray(Notification.EXTRA_PEOPLE, in Builder()
105 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/compat/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/compat/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/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java20 import android.app.Notification;
21 import android.app.Notification.Action;
200 Notification.Builder builder = new Notification.Builder(mContext) in updateMissingPrivateVolumes()
206 .setStyle(new Notification.BigTextStyle().bigText(text)) in updateMissingPrivateVolumes()
207 .setVisibility(Notification.VISIBILITY_PUBLIC) in updateMissingPrivateVolumes()
209 .setCategory(Notification.CATEGORY_SYSTEM) in updateMissingPrivateVolumes()
227 Notification.Builder builder = new Notification.Builder(mContext) in onDiskScannedInternal()
233 .setStyle(new Notification.BigTextStyle().bigText(text)) in onDiskScannedInternal()
234 .setVisibility(Notification.VISIBILITY_PUBLIC) in onDiskScannedInternal()
236 .setCategory(Notification.CATEGORY_ERROR); in onDiskScannedInternal()
[all …]
/frameworks/support/compat/jellybean/android/support/v4/app/
DNotificationCompatJellybean.java19 import android.app.Notification;
68 private Notification.Builder b;
74 public Builder(Context context, Notification n, in Builder()
82 b = new Notification.Builder(context) in Builder()
90 .setOngoing((n.flags & Notification.FLAG_ONGOING_EVENT) != 0) in Builder()
91 .setOnlyAlertOnce((n.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0) in Builder()
92 .setAutoCancel((n.flags & Notification.FLAG_AUTO_CANCEL) != 0) in Builder()
101 (n.flags & Notification.FLAG_HIGH_PRIORITY) != 0) in Builder()
135 public Notification.Builder getBuilder() { in getBuilder()
139 public Notification build() { in build()
[all …]
/frameworks/support/compat/java/android/support/v4/app/
DNotificationCompat.java20 import android.app.Notification;
495 public Notification build(Builder b, BuilderExtender extender); in build()
496 public Bundle getExtras(Notification n); in getExtras()
497 public int getActionCount(Notification n); in getActionCount()
498 public Action getAction(Notification n, int actionIndex); in getAction()
501 public String getCategory(Notification n); in getCategory()
502 public boolean getLocalOnly(Notification n); in getLocalOnly()
503 public String getGroup(Notification n); in getGroup()
504 public boolean isGroupSummary(Notification n); in isGroupSummary()
505 public String getSortKey(Notification n); in getSortKey()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/
DRankingHelperTest.java21 import android.app.Notification;
33 private Notification mNotiGroupGSortA;
34 private Notification mNotiGroupGSortB;
35 private Notification mNotiNoGroup;
36 private Notification mNotiNoGroup2;
37 private Notification mNotiNoGroupSortA;
53 mNotiGroupGSortA = new Notification.Builder(getContext()) in setUp()
62 mNotiGroupGSortB = new Notification.Builder(getContext()) in setUp()
71 mNotiNoGroup = new Notification.Builder(getContext()) in setUp()
78 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/support/v7/appcompat/src/android/support/v7/app/
DNotificationCompatImpl24.java19 import android.app.Notification;
25 Notification.Builder builder = b.getBuilder(); in addDecoratedCustomViewStyle()
26 builder.setStyle(new Notification.DecoratedCustomViewStyle()); in addDecoratedCustomViewStyle()
30 Notification.Builder builder = b.getBuilder(); in addDecoratedMediaCustomViewStyle()
31 builder.setStyle(new Notification.DecoratedMediaCustomViewStyle()); in addDecoratedMediaCustomViewStyle()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DRemoteBugreportUtils.java20 import android.app.Notification;
57 static Notification buildNotification(Context context, in buildNotification()
65 Notification.Builder builder = new Notification.Builder(context) in buildNotification()
69 .setPriority(Notification.PRIORITY_HIGH) in buildNotification()
90 builder.addAction(new Notification.Action.Builder(null /* icon */, context.getString( in buildNotification()
92 .addAction(new Notification.Action.Builder(null /* icon */, context.getString( in buildNotification()
98 .setStyle(new Notification.BigTextStyle().bigText(context.getString( in buildNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DHybridGroupManager.java19 import android.app.Notification;
80 Notification notification) { in bindFromNotification()
90 private CharSequence resolveText(Notification notification) { in resolveText()
91 CharSequence contentText = notification.extras.getCharSequence(Notification.EXTRA_TEXT); in resolveText()
93 contentText = notification.extras.getCharSequence(Notification.EXTRA_BIG_TEXT); in resolveText()
98 private CharSequence resolveTitle(Notification notification) { in resolveTitle()
99 CharSequence titleText = notification.extras.getCharSequence(Notification.EXTRA_TITLE); in resolveTitle()
101 titleText = notification.extras.getCharSequence(Notification.EXTRA_TITLE_BIG); in resolveTitle()
/frameworks/base/core/java/android/service/notification/
DStatusBarNotification.java19 import android.app.Notification;
42 private final Notification notification;
50 int initialPid, int score, Notification notification, UserHandle user) { in StatusBarNotification()
57 int initialPid, Notification notification, UserHandle user, String overrideGroupKey, in StatusBarNotification()
77 int initialPid, int score, Notification notification, UserHandle user, in StatusBarNotification()
106 this.notification = new Notification(in); in StatusBarNotification()
209 final Notification no = new Notification(); in cloneLight()
235 return (notification.flags & Notification.FLAG_ONGOING_EVENT) != 0; in isOngoing()
243 return ((notification.flags & Notification.FLAG_ONGOING_EVENT) == 0) in isClearable()
244 && ((notification.flags & Notification.FLAG_NO_CLEAR) == 0); in isClearable()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/
DJob.java29 import android.app.Notification;
30 import android.app.Notification.Builder;
77 final Notification.Builder mProgressBuilder;
129 abstract Notification getSetupNotification(); in getSetupNotification()
132 abstract Notification getFailureNotification(); in getFailureNotification()
134 abstract Notification getWarningNotification(); in getWarningNotification()
202 Notification getSetupNotification(String content) { in getSetupNotification()
208 Notification getFailureNotification(@PluralsRes int titleId, @DrawableRes int icon) { in getFailureNotification()
214 final Notification.Builder errorBuilder = new Notification.Builder(service) in getFailureNotification()
220 .setCategory(Notification.CATEGORY_ERROR) in getFailureNotification()
[all …]
DDeleteJob.java22 import android.app.Notification;
23 import android.app.Notification.Builder;
67 public Notification getSetupNotification() { in getSetupNotification()
72 Notification getFailureNotification() { in getFailureNotification()
78 Notification getWarningNotification() { in getWarningNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerNotificationWarnings.java19 import android.app.Notification;
145 final Notification.Builder nb = new Notification.Builder(mContext) in showInvalidChargerNotification()
152 .setPriority(Notification.PRIORITY_MAX) in showInvalidChargerNotification()
153 .setVisibility(Notification.VISIBILITY_PUBLIC) in showInvalidChargerNotification()
157 final Notification n = nb.build(); in showInvalidChargerNotification()
165 final Notification.Builder nb = new Notification.Builder(mContext) in showWarningNotification()
174 .setPriority(Notification.PRIORITY_MAX) in showWarningNotification()
175 .setVisibility(Notification.VISIBILITY_PUBLIC) in showWarningNotification()
189 final Notification n = nb.build(); in showWarningNotification()
236 final Notification.Builder nb = new Notification.Builder(mContext) in showTemperatureWarning()
[all …]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/
DTestJob.java21 import android.app.Notification;
22 import android.app.Notification.Builder;
53 Notification getSetupNotification() { in getSetupNotification()
58 Notification getFailureNotification() { in getFailureNotification()
65 Notification getWarningNotification() { in getWarningNotification()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDocumentsService.java19 import android.app.Notification;
71 Notification notification = null; in updateForegroundState()
78 notification = new Notification.Builder(this) in updateForegroundState()
82 .setCategory(Notification.CATEGORY_SYSTEM) in updateForegroundState()
83 .setPriority(Notification.PRIORITY_LOW) in updateForegroundState()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java25 import android.app.Notification;
118 final Notification n = sbn.getNotification(); in defaultImportance()
122 if (0 != (n.flags & Notification.FLAG_HIGH_PRIORITY)) { in defaultImportance()
123 n.priority = Notification.PRIORITY_MAX; in defaultImportance()
127 case Notification.PRIORITY_MIN: in defaultImportance()
130 case Notification.PRIORITY_LOW: in defaultImportance()
133 case Notification.PRIORITY_DEFAULT: in defaultImportance()
136 case Notification.PRIORITY_HIGH: in defaultImportance()
139 case Notification.PRIORITY_MAX: in defaultImportance()
145 boolean isNoisy = (n.defaults & Notification.DEFAULT_SOUND) != 0 in defaultImportance()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/
DMtpNotificationManager.java19 import android.app.Notification;
80 final Notification.Builder builder = new Notification.Builder(mContext) in showNotification()
84 .setCategory(Notification.CATEGORY_SYSTEM); in showNotification()
98 final Notification notification = builder.build(); in showNotification()
99 notification.flags |= Notification.FLAG_LOCAL_ONLY; in showNotification()

123456789