Lines Matching defs:action

50  * <em>action</em>, <em>data</em>, and <em>categories</em>.  For each of these
84 * the <strong>action</strong> and <strong>category</strong> must match, and
89 * Intent action, <em>or</em> if no actions were specified in the filter.
126 * that unlike the action, an IntentFilter with no categories
141 private static final String ACTION_STR = "action";
315 * Create a new IntentFilter instance with a specified action and MIME
320 * @param action The action to match, i.e. Intent.ACTION_VIEW.
323 * @return A new IntentFilter for the given action and type.
327 public static IntentFilter create(String action, String dataType) {
329 return new IntentFilter(action, dataType);
344 * New IntentFilter that matches a single action with no data. If
348 * @param action The action to match, i.e. Intent.ACTION_MAIN.
350 public IntentFilter(String action) {
353 addAction(action);
357 * New IntentFilter that matches a single action and data type.
368 * @param action The action to match, i.e. Intent.ACTION_VIEW.
372 public IntentFilter(String action, String dataType)
376 addAction(action);
435 * Add a new Intent action to match against. If any actions are included
436 * in the filter, then an Intent's action must be one of those values for
437 * it to match. If no actions are included, the Intent action is ignored.
439 * @param action Name of the action to match, i.e. Intent.ACTION_VIEW.
441 public final void addAction(String action) {
442 if (!mActions.contains(action)) {
443 mActions.add(action.intern());
455 * Return an action in the filter.
462 * Is the given action included in the filter? Note that if the filter
465 * @param action The action to look for.
467 * @return True if the action is explicitly mentioned in the filter.
469 public final boolean hasAction(String action) {
470 return action != null && mActions.contains(action);
474 * Match this filter against an Intent's action. If the filter does not
477 * @param action The desired action to look for.
479 * @return True if the action is listed in the filter.
481 public final boolean matchAction(String action) {
482 return hasAction(action);
1059 * {@link #NO_MATCH_ACTION if the action didn't match, or
1081 * @param action The intent action to match against (Intent.getAction).
1093 * {@link #NO_MATCH_ACTION if the action didn't match, or
1103 public final int match(String action, String type, String scheme,
1105 if (action != null && !matchAction(action)) {
1107 logTag, "No matching action " + action + " for " + this);