Create an PendingIntent to be fired when the notification action is invoked.

@see android.app.Notification#addAction(int, CharSequence, PendingIntent)

@param entry
@param act
@return PendingIntent
498638
public PendingIntent getActionIntent(NotificationEntry entry, NotificationEntry.Action act) {
        Intent intent = new Intent(ACTION_ACTION);
        intent.putExtra(KEY_ENTRY_ID, entry.ID);
        intent.putExtra(KEY_ACTION_ID, entry.mActions.indexOf(act));
        return PendingIntent.getBroadcast(mContext, genIdForPendingIntent(), intent, 0);
    }
932789
public static UploadNotificationAction from(NotificationCompat.Action action) {
        return new UploadNotificationAction(action.icon, action.title, action.actionIntent);
    }
61027
@Override
    public ENTRY update(final ENTRY entry) throws CouldNotPerformException {
        if (entry == null) {
            throw new NotAvailableException("entry");
        }
        log("Update " + entry + "...");
        try {
            checkWriteAccess();
            lock();
            try {
                try {
                    // validate update
                    if (!entryMap.containsKey(entry.getId())) {
                        throw new InvalidStateException("Entry not registered!");
                    }
                    // perform update
                    sandbox.update(entry);
                    // check if the new message results in an update after consistency checks
                    final boolean changed = !isSandbox() && ((sandbox instanceof MockRegistrySandbox) || !get(entry).equals(sandbox.get(entry)));
                    pluginPool.beforeUpdate(entry);
                    entryMap.put(entry.getId(), entry);
                    finishTransaction();
                    pluginPool.afterUpdate(entry);
                    // test if the entry has changed at all by this update method
                    if (changed) {
                        notifySuccessfulTransaction();
                    }
                } finally {
                    syncSandbox();
                }
            } finally {
                unlock();
            }
        } catch (CouldNotPerformException ex) {
            throw new CouldNotPerformException("Could not update " + entry + " in " + this + "!", ex);
        }
        notifyObservers();
        return get(entry);
    }
368155
public static String createEntryIdentity(Entry entry) throws UnableToAdaptException {
        String result = "";
        while (entry != null && !entry.getPath().isEmpty()) {
            result = entry.getPath() + result;
            entry = entry.getRoot().adapt(Entry.class);
        }

        return result;
    }
726540
private void appendEntry(Map.Entry<String, EDBObjectEntry> entry, StringBuilder builder) {
        if (builder.length() > 2) {
            builder.append(",");
        }
        builder.append(" \"").append(entry.getKey()).append("\"");
        builder.append(" : ").append(entry.getValue());
    }
586781
public void onClickRowView(NotificationBoard board, RowView rowView, NotificationEntry entry) {
        if (DBG) Log.v(TAG, "onClickRowView - " + entry.ID);
    }
336786
@Process(actionType = AddThreadFactory.class)
    public void addThreadFactory(final AddThreadFactory action, final Channel channel) {
        operationDelegate.onCreateResource(THREAD_FACTORY_ADDRESS,
                action.getProperty().getName(), action.getProperty().getValue(),
                new ChannelCallback(statementContext, channel));
    }
1018715
public JButton add(Action act)
	{
		JButton _button;
		_button = super.add(act);
		_button.setRequestFocusEnabled(false);
		if (null != act.getValue(Action.SMALL_ICON))
		{
			_button.setToolTipText((String) act.getValue(Action.NAME));
			_button.setText(null);
		}
		return _button;
	}
170202
public PendingIntent getContentIntent(NotificationEntry entry) {
        Intent intent = new Intent(ACTION_CONTENT);
        intent.putExtra(KEY_ENTRY_ID, entry.ID);
        return PendingIntent.getBroadcast(mContext, genIdForPendingIntent(), intent, 0);
    }
978914
def setCurrentAction(self, action):
        
        self._actionGroup.blockSignals(True)
        for act in self._actionGroup.actions():
            act.setChecked(act == action or act.text() == action)
        self._actionGroup.blockSignals(False)
509521
public static void addAction(Set<Action> aas, Action action, boolean condition) {

        if (condition) {
            aas.add(action);
        }
    }
739660
private void insertAction(final Action action, final FilterKey key) {
        if (filterMap.get(key) == null) {
            filterMap.put(key, action);
        } else {
            logger.info(MessageUtils.getMessage("DOTJ007I", key.toString()).toString());
        }
    }
583751
private static void addToReceivers(final BroadcastReceiver receiver, final String action) {
		Set<String> actions = RECEIVERS.get(receiver);
		if (actions == null) {
			actions = new HashSet<String>(1);
			RECEIVERS.put(receiver, actions);
		}
		actions.add(action);
	}
57782
@Override
    public boolean add(OrderableTransaction txnState) {
        if (m_initiatorData.containsKey(txnState.initiatorHSId) == false) {
            return false;
        }
        boolean retval = super.add(txnState);
        // update the queue state
        if (retval) updateQueueState();
        return retval;
    }
764332
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
    public static PendingIntent getActivities(Context context, int requestCode, Intent[] intents, int flags) {
        PendingIntent.getActivities(context, requestCode, intents, flags).cancel();
        return PendingIntent.getActivities(context, requestCode, intents, flags);
    }
1004351
public void setContentAction(Action act) {
        if (act.entry != null && act.entry != this) {
            Log.e(TAG, "setContentAction failed. Already applied to another notification - " +
                  act.entry.ID + ". Current notification is " + ID);
            return;
        }
        this.contentAction = act;
        this.contentAction.entry = this;
        this.contentAction.title = "ContentAction";
    }
365576
def add(self, action):
        """"""
        self._state_machine.transition_to_add()
        self._actions.append(action)