Lines Matching defs:notification

137     // for enabling and disabling notification pulse behavior
156 private static final String TAG_BODY = "notification-policy";
321 final Notification notification;
326 int userId, int score, Notification notification)
335 this.notification = notification;
340 pw.println(prefix + " icon=0x" + Integer.toHexString(notification.icon)
341 + " / " + idDebugString(baseContext, this.pkg, notification.icon));
342 pw.println(prefix + " pri=" + notification.priority);
344 pw.println(prefix + " contentIntent=" + notification.contentIntent);
345 pw.println(prefix + " deleteIntent=" + notification.deleteIntent);
346 pw.println(prefix + " tickerText=" + notification.tickerText);
347 pw.println(prefix + " contentView=" + notification.contentView);
349 pw.println(prefix + " defaults=0x" + Integer.toHexString(notification.defaults));
350 pw.println(prefix + " flags=0x" + Integer.toHexString(notification.flags));
351 pw.println(prefix + " sound=" + notification.sound);
352 pw.println(prefix + " vibrate=" + Arrays.toString(notification.vibrate));
353 pw.println(prefix + " ledARGB=0x" + Integer.toHexString(notification.ledARGB)
354 + " ledOnMS=" + notification.ledOnMS
355 + " ledOffMS=" + notification.ledOffMS);
498 "Bad notification posted from package " + pkg
551 // Keep track of screen on/off state, but do not turn off the notification light
552 // until user passes through the lock screen or views the notification.
734 Slog.e(TAG, "Not cancelling notification. pkg=" + pkg + " callback=" + callback);
762 Slog.w(TAG, "Object died trying to show notification " + record.callback
784 Slog.w(TAG, "Object died trying to hide notification " + record.callback
869 public void enqueueNotificationWithTag(String pkg, String tag, int id, Notification notification,
873 tag, id, notification, idOut, userId);
883 String tag, int id, Notification notification, int[] idOut, int userId)
886 Slog.v(TAG, "enqueueNotificationInternal: pkg=" + pkg + " id=" + id + " notification=" + notification);
920 notification.toString());
923 if (pkg == null || notification == null) {
925 + " id=" + id + " notification=" + notification);
927 if (notification.icon != 0) {
928 if (notification.contentView == null) {
930 + " id=" + id + " notification=" + notification);
937 notification.priority = clamp(notification.priority, Notification.PRIORITY_MIN, Notification.PRIORITY_MAX);
938 // Migrate notification flags to scores
939 if (0 != (notification.flags & Notification.FLAG_HIGH_PRIORITY)) {
940 if (notification.priority < Notification.PRIORITY_MAX) notification.priority = Notification.PRIORITY_MAX;
941 } else if (SCORE_ONGOING_HIGHER && 0 != (notification.flags & Notification.FLAG_ONGOING_EVENT)) {
942 if (notification.priority < Notification.PRIORITY_HIGH) notification.priority = Notification.PRIORITY_HIGH;
946 int score = notification.priority * NOTIFICATION_PRIORITY_MULTIPLIER; //[-20..20]
955 Slog.e(TAG, "Suppressing notification from package " + pkg + " by user request.");
959 Slog.v(TAG, "Assigned score=" + score + " to " + notification);
971 notification);
982 notification.flags |=
983 old.notification.flags&Notification.FLAG_FOREGROUND_SERVICE;
989 if ((notification.flags&Notification.FLAG_FOREGROUND_SERVICE) != 0) {
990 notification.flags |= Notification.FLAG_ONGOING_EVENT
1002 if (notification.icon != 0) {
1004 pkg, id, tag, r.uid, r.initialPid, score, notification, user);
1018 if ((n.notification.flags & Notification.FLAG_SHOW_LIGHTS) != 0) {
1028 sendAccessibilityEvent(notification, pkg);
1031 Slog.e(TAG, "Ignoring notification with icon==0: " + notification);
1046 && (notification.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0 ))
1055 (notification.defaults & Notification.DEFAULT_SOUND) != 0;
1056 if (useDefaultSound || notification.sound != null) {
1061 uri = notification.sound;
1063 boolean looping = (notification.flags & Notification.FLAG_INSISTENT) != 0;
1065 if (notification.audioStreamType >= 0) {
1066 audioStreamType = notification.audioStreamType;
1092 notification.vibrate == null
1093 && (useDefaultSound || notification.sound != null)
1097 (notification.defaults & Notification.DEFAULT_VIBRATE) != 0
1100 if ((useDefaultVibrate || notification.vibrate != null)
1105 : notification.vibrate,
1106 ((notification.flags & Notification.FLAG_INSISTENT) != 0) ? 0: -1);
1118 //Slog.i(TAG, "notification.lights="
1119 // + ((old.notification.lights.flags & Notification.FLAG_SHOW_LIGHTS) != 0));
1120 if ((notification.flags & Notification.FLAG_SHOW_LIGHTS) != 0) {
1125 && ((old.notification.flags & Notification.FLAG_SHOW_LIGHTS) != 0)) {
1134 private void sendAccessibilityEvent(Notification notification, CharSequence packageName) {
1144 event.setParcelableData(notification);
1145 CharSequence tickerText = notification.tickerText;
1156 if (r.notification.deleteIntent != null) {
1158 r.notification.deleteIntent.send();
1168 if (r.notification.icon != 0) {
1214 * Cancels a notification ONLY if it has all of the {@code mustHaveFlags}
1227 if ((r.notification.flags & mustHaveFlags) != mustHaveFlags) {
1230 if ((r.notification.flags & mustNotHaveFlags) != 0) {
1243 * Determine whether the userId applies to the notification in question, either because
1250 // a notification sent to USER_ALL matches any query
1277 if ((r.notification.flags & mustHaveFlags) != mustHaveFlags) {
1280 if ((r.notification.flags & mustNotHaveFlags) != 0) {
1356 if ((r.notification.flags & (Notification.FLAG_ONGOING_EVENT
1370 // handle notification lights
1372 // get next notification, if any
1383 int ledARGB = mLedNotification.notification.ledARGB;
1384 int ledOnMS = mLedNotification.notification.ledOnMS;
1385 int ledOffMS = mLedNotification.notification.ledOffMS;
1386 if ((mLedNotification.notification.defaults & Notification.DEFAULT_LIGHTS) != 0) {