Home | History | Annotate | Download | only in utils

Lines Matching refs:NotificationAction

63      * If an {@link NotificationAction} exists here for a given notification key, then we should
66 public static final ObservableSparseArrayCompat<NotificationAction> sUndoNotifications =
67 new ObservableSparseArrayCompat<NotificationAction>();
207 for (final NotificationActionType notificationAction : sortedActions) {
210 folder, notificationIntent, notificationAction, notificationId, when);
211 final int actionIconResId = notificationAction.getActionIconResId(folder, conversation,
213 final String title = context.getString(notificationAction.getDisplayStringResId(
223 folder, notificationIntent, notificationAction, notificationId, when);
227 mapWearActionResId(notificationAction, actionIconResId), title,
230 if (notificationAction == NotificationActionType.REPLY
231 || notificationAction == NotificationActionType.REPLY_ALL) {
246 private static int mapWearActionResId(NotificationActionType notificationAction,
248 switch (notificationAction) {
355 final NotificationAction notificationAction = new NotificationAction(action, account,
357 NotificationAction.SOURCE_LOCAL, notificationId);
395 putNotificationActionExtra(intent, notificationAction);
405 putNotificationActionExtra(intent, notificationAction);
424 final NotificationAction notificationAction = new NotificationAction(action, account,
426 NotificationAction.SOURCE_REMOTE, notificationId);
456 putNotificationActionExtra(intent, notificationAction);
481 public static class NotificationAction implements Parcelable {
497 public NotificationAction(final NotificationActionType notificationActionType,
595 public static final Parcelable.ClassLoaderCreator<NotificationAction> CREATOR =
596 new Parcelable.ClassLoaderCreator<NotificationAction>() {
598 public NotificationAction createFromParcel(final Parcel in) {
599 return new NotificationAction(in, null);
603 public NotificationAction[] newArray(final int size) {
604 return new NotificationAction[size];
608 public NotificationAction createFromParcel(
610 return new NotificationAction(in, loader);
614 private NotificationAction(final Parcel in, final ClassLoader loader) {
630 final NotificationAction notificationAction, final int notificationId) {
632 notificationAction.getNotificationActionType());
637 builder.setWhen(notificationAction.getWhen());
643 R.id.description_text, context.getString(notificationAction.getActionTextResId()));
649 clickIntent.setData(notificationAction.mConversation.uri);
650 putNotificationActionExtra(clickIntent, notificationAction);
661 deleteIntent.setData(notificationAction.mConversation.uri);
662 putNotificationActionExtra(deleteIntent, notificationAction);
677 final Context context, final NotificationAction notificationAction) {
679 notificationAction.getNotificationActionType());
692 createUndoTimeoutPendingIntent(context, notificationAction);
703 final Context context, final NotificationAction notificationAction) {
705 notificationAction.getNotificationActionType());
711 createUndoTimeoutPendingIntent(context, notificationAction);
721 final Context context, final NotificationAction notificationAction) {
724 intent.setData(notificationAction.mConversation.uri);
725 putNotificationActionExtra(intent, notificationAction);
727 final int requestCode = notificationAction.getAccount().hashCode()
728 ^ notificationAction.getFolder().hashCode();
739 final Context context, final NotificationAction notificationAction) {
741 notificationAction.getNotificationActionType());
744 notificationAction.getNotificationActionType();
745 final Conversation conversation = notificationAction.getConversation();
746 final Folder folder = notificationAction.getFolder();
784 * Creates and displays an Undo notification for the specified {@link NotificationAction}.
787 final NotificationAction notificationAction) {
789 notificationAction.getNotificationActionType());
792 notificationAction.getAccount().getAccountManagerAccount(),
793 notificationAction.getFolder());
796 createUndoNotification(context, notificationAction, notificationId);
802 sUndoNotifications.put(notificationId, notificationAction);
803 sNotificationTimestamps.put(notificationId, notificationAction.getWhen());
810 final NotificationAction notificationAction) {
812 notificationAction.getNotificationActionType());
814 final Account account = notificationAction.getAccount();
815 final Folder folder = notificationAction.getFolder();
816 final Conversation conversation = notificationAction.getConversation();
833 final NotificationAction notificationAction) {
835 notificationAction.getNotificationActionType());
837 final Account account = notificationAction.getAccount();
838 final Folder folder = notificationAction.getFolder();
843 processDestructiveAction(context, notificationAction);
895 * process does not know about the NotificationAction class, it throws a ClassNotFoundException.
899 * NotificationActionIntentService class knows to build the NotificationAction object from the
904 final NotificationAction notificationAction) {
906 notificationAction.writeToParcel(out, 0);