Home | History | Annotate | Download | only in statusbar

Lines Matching refs:notification

22 import android.app.Notification;
36 import android.service.notification.NotificationListenerService;
37 import android.service.notification.NotificationStats;
38 import android.service.notification.StatusBarNotification;
59 import com.android.systemui.statusbar.notification.InflationException;
60 import com.android.systemui.statusbar.notification.NotificationInflater;
61 import com.android.systemui.statusbar.notification.RowInflaterTask;
62 import com.android.systemui.statusbar.notification.VisualStabilityManager;
78 * Notification.*Manager objects.
145 Log.e(TAG, "NotificationClicker called on a view that is not a notification row.");
154 Log.e(TAG, "NotificationClicker called on an unclickable notification,");
158 // Check if the notification is displaying the menu, if so slide notification back
164 // Mark notification for one frame.
172 Notification notification = sbn.getNotification();
173 if (notification.contentIntent != null || notification.fullScreenIntent != null) {
227 pw.println(entry.notification);
269 "dismissing any existing heads up notification on disable event");
326 entry.notification.getUser().getIdentifier());
328 final StatusBarNotification sbn = entry.notification;
343 row.setExpansionLogger(this, entry.notification.getKey());
353 // Note that Notification.Builder#bindHeaderAppName has similar logic
417 * Cancel this notification and tell the StatusBarManagerService / NotificationManagerService
445 public void handleInflationException(StatusBarNotification notification, Exception e) {
446 handleNotificationError(notification, e.getMessage());
454 setNotificationShown(shadeEntry.notification);
510 Log.w(TAG, "Keeping notification around after sending remote input "+ entry.key);
519 // Turn off the spinner and hide buttons when an app cancels the notification.
526 // Ignore just don't keep the notification around.
531 Log.w(TAG, "Keeping notification around after sending smart reply " + entry.key);
537 // Actually removing notification so smart reply controller can forget about it.
554 Log.w(TAG, "Keeping notification because it's showing guts. " + key);
561 mForegroundServiceController.removeNotification(entry.notification);
577 StatusBarNotification sbn = entry.notification;
579 Notification.Builder b = Notification.Builder
583 .getCharSequenceArray(Notification.EXTRA_REMOTE_INPUT_HISTORY);
597 Notification newNotification = b.build();
644 return entry.notification;
649 * instead of waiting for the notification manager to send all cancels. Otherwise this could
654 * @param key the key of the notification was removed
661 if (entry.notification.getOverrideGroupKey() != null && !entry.row.isDismissed()) {
671 & Notification.FLAG_FOREGROUND_SERVICE) != 0) {
672 // the child is a foreground service notification which we can't remove!
718 entry.autoRedacted = entry.notification.getNotification().publicVersion == null;
739 tagForeground(entry.notification);
746 Log.d(TAG, "createNotificationViews(notification=" + sbn);
756 notification,
758 String key = notification.getKey();
762 NotificationData.Entry shadeEntry = createNotificationViews(notification);
764 if (!isHeadsUped && notification.getNotification().fullScreenIntent != null) {
776 // Stop screensaver if the notification has a fullscreen intent.
782 Log.d(TAG, "Notification has fullScreenIntent; sending fullScreenIntent");
786 notification.getNotification().fullScreenIntent.send();
795 mForegroundServiceController.addNotification(notification,
803 protected void tagForeground(StatusBarNotification notification) {
805 notification.getUserId(), notification.getPackageName());
809 updateNotificationsForAppOp(activeOps.valueAt(i), notification.getUid(),
810 notification.getPackageName(), true);
816 public void addNotification(StatusBarNotification notification,
819 addNotificationInternal(notification, ranking);
821 handleInflationException(notification, e);
834 private boolean alertAgain(NotificationData.Entry oldEntry, Notification newNotification) {
836 || (newNotification.flags & Notification.FLAG_ONLY_ALERT_ONCE) == 0;
839 private void updateNotificationInternal(StatusBarNotification notification,
841 if (DEBUG) Log.d(TAG, "updateNotification(" + notification + ")");
843 final String key = notification.getKey();
855 Log.w(TAG, "Notification that was kept for guts was updated. " + key);
858 Notification n = notification.getNotification();
861 final StatusBarNotification oldNotification = entry.notification;
862 entry.notification = notification;
865 entry.updateIcons(mContext, notification);
868 mForegroundServiceController.updateNotification(notification,
871 boolean shouldPeek = shouldPeek(entry, notification);
877 if (!notification.isClearable()) {
878 // The user may have performed a dismiss action on the notification, since it's
885 boolean isForCurrentUser = mPresenter.isNotificationForCurrentProfiles(notification);
886 Log.d(TAG, "notification is " + (isForCurrentUser ? "" : "not ") + "for you");
889 mCallback.onNotificationUpdated(notification);
893 public void updateNotification(StatusBarNotification notification,
896 updateNotificationInternal(notification, ranking);
898 handleInflationException(notification, e);
914 return shouldPeek(entry, entry.notification);
924 if (DEBUG) Log.d(TAG, "No peeking: filtered notification: " + sbn.getKey());
962 if (DEBUG) Log.d(TAG, "No peeking: unimportant notification: " + sbn.getKey());
1006 // This notification was updated to be a heads-up, show it!
1042 * Called when a notification was updated.
1044 * @param notification notification that was updated
1046 void onNotificationUpdated(StatusBarNotification notification);
1049 * Called when a notification was removed.
1051 * @param key key of notification that was removed
1052 * @param old StatusBarNotification of the notification before it was removed
1058 * Called when a notification is clicked.
1060 * @param sbn notification that was clicked
1061 * @param row row for that notification
1066 * Called when a new notification and row is created.
1068 * @param entry entry for the notification
1070 * @param sbn notification
1071 * @param row row for the notification
1077 * Removes a notification immediately.
1079 * @param statusBarNotification notification that is being removed
1084 * Returns true if NotificationEntryManager should peek this notification.
1086 * @param entry entry of the notification that might be peeked
1087 * @param sbn notification that might be peeked
1088 * @return true if the notification should be peeked