Home | History | Annotate | Download | only in server

Lines Matching defs:Notification

26 import android.app.Notification;
111 // for enabling and disabling notification pulse behavior
115 // This is true if we have received a new notification while the screen is off
122 private Notification mAdbNotification;
176 final Notification notification;
180 Notification notification)
187 this.notification = notification;
192 pw.println(prefix + " icon=0x" + Integer.toHexString(notification.icon)
193 + " / " + idDebugString(baseContext, this.pkg, notification.icon));
194 pw.println(prefix + " contentIntent=" + notification.contentIntent);
195 pw.println(prefix + " deleteIntent=" + notification.deleteIntent);
196 pw.println(prefix + " tickerText=" + notification.tickerText);
197 pw.println(prefix + " contentView=" + notification.contentView);
198 pw.println(prefix + " defaults=0x" + Integer.toHexString(notification.defaults));
199 pw.println(prefix + " flags=0x" + Integer.toHexString(notification.flags));
200 pw.println(prefix + " sound=" + notification.sound);
201 pw.println(prefix + " vibrate=" + Arrays.toString(notification.vibrate));
202 pw.println(prefix + " ledARGB=0x" + Integer.toHexString(notification.ledARGB)
203 + " ledOnMS=" + notification.ledOnMS
204 + " ledOffMS=" + notification.ledOffMS);
284 cancelNotification(pkg, tag, id, Notification.FLAG_AUTO_CANCEL,
285 Notification.FLAG_FOREGROUND_SERVICE);
325 "Bad notification posted from package " + pkg
535 Slog.e(TAG, "Not cancelling notification. pkg=" + pkg + " callback=" + callback);
563 Slog.w(TAG, "Object died trying to show notification " + record.callback
585 Slog.w(TAG, "Object died trying to hide notification " + record.callback
670 public void enqueueNotification(String pkg, int id, Notification notification, int[] idOut)
672 enqueueNotificationWithTag(pkg, null /* tag */, id, notification, idOut);
675 public void enqueueNotificationWithTag(String pkg, String tag, int id, Notification notification,
679 tag, id, notification, idOut);
685 String tag, int id, Notification notification, int[] idOut)
713 EventLog.writeEvent(EventLogTags.NOTIFICATION_ENQUEUE, pkg, id, notification.toString());
716 if (pkg == null || notification == null) {
718 + " id=" + id + " notification=" + notification);
720 if (notification.icon != 0) {
721 if (notification.contentView == null) {
723 + " id=" + id + " notification=" + notification);
725 if (notification.contentIntent == null) {
727 + " id=" + id + " notification=" + notification);
733 callingUid, callingPid, notification);
744 notification.flags |=
745 old.notification.flags&Notification.FLAG_FOREGROUND_SERVICE;
751 if ((notification.flags&Notification.FLAG_FOREGROUND_SERVICE) != 0) {
752 notification.flags |= Notification.FLAG_ONGOING_EVENT
753 | Notification.FLAG_NO_CLEAR;
756 if (notification.icon != 0) {
758 r.uid, r.initialPid, notification);
778 sendAccessibilityEvent(notification, pkg);
794 && (notification.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0 ))
801 (notification.defaults & Notification.DEFAULT_SOUND) != 0;
802 if (useDefaultSound || notification.sound != null) {
807 uri = notification.sound;
809 boolean looping = (notification.flags & Notification.FLAG_INSISTENT) != 0;
811 if (notification.audioStreamType >= 0) {
812 audioStreamType = notification.audioStreamType;
832 (notification.defaults & Notification.DEFAULT_VIBRATE) != 0;
833 if ((useDefaultVibrate || notification.vibrate != null)
838 : notification.vibrate,
839 ((notification.flags & Notification.FLAG_INSISTENT) != 0) ? 0: -1);
851 //Slog.i(TAG, "notification.lights="
852 // + ((old.notification.lights.flags & Notification.FLAG_SHOW_LIGHTS) != 0));
853 if ((notification.flags & Notification.FLAG_SHOW_LIGHTS) != 0) {
858 && ((old.notification.flags & Notification.FLAG_SHOW_LIGHTS) != 0)) {
867 private void sendAccessibilityEvent(Notification notification, CharSequence packageName) {
876 event.setClassName(Notification.class.getName());
877 event.setParcelableData(notification);
878 CharSequence tickerText = notification.tickerText;
888 if (r.notification.icon != 0) {
931 * Cancels a notification ONLY if it has all of the {@code mustHaveFlags}
943 if ((r.notification.flags & mustHaveFlags) != mustHaveFlags) {
946 if ((r.notification.flags & mustNotHaveFlags) != 0) {
971 if ((r.notification.flags & mustHaveFlags) != mustHaveFlags) {
974 if ((r.notification.flags & mustNotHaveFlags) != 0) {
1004 ? 0 : Notification.FLAG_FOREGROUND_SERVICE);
1012 cancelAllNotificationsInt(pkg, 0, Notification.FLAG_FOREGROUND_SERVICE, true);
1038 if ((r.notification.flags & (Notification.FLAG_ONGOING_EVENT
1039 | Notification.FLAG_NO_CLEAR)) == 0) {
1040 if (r.notification.deleteIntent != null) {
1042 r.notification.deleteIntent.send();
1086 // clear pending pulse notification if screen is on
1091 // handle notification lights
1093 // get next notification, if any
1108 int ledARGB = mLedNotification.notification.ledARGB;
1109 int ledOnMS = mLedNotification.notification.ledOnMS;
1110 int ledOffMS = mLedNotification.notification.ledOffMS;
1111 if ((mLedNotification.notification.defaults & Notification.DEFAULT_LIGHTS) != 0) {
1169 mAdbNotification = new Notification();
1172 mAdbNotification.flags = Notification.FLAG_ONGOING_EVENT;
1228 pw.println("Current Notification Manager state:");
1247 pw.println(" Notification List:");