private boolean actionsMatch(ImplicitIntentModel intent,IntentFilter intentFilter){
  Set<String> filterActions=new HashSet<String>();
  filterActions.addAll(intentFilter.actions);
  for (  String action : filterActions) {
    logger.info("Action Test, intent filter actions: {}",action);
  }
  if (filterActions.size() == 0)   return false;
  if (!intent.isFieldInvalidated(ImplicitIntentFields.ACTION)) {
    for (    String intentAction : intent.getValues(ImplicitIntentFields.ACTION)) {
      logger.info("\tAction Test, checking intent action: {}",intentAction);
      if (filterActions.contains(intentAction))       return true;
    }
    logger.info("Action Test, could not find intent action in intent filter");
    return false;
  }
 else {
    logger.info("Action Test Passed, could not resolve action field for Intent");
    return true;
  }
}

private boolean actionsMatch ( ImplicitIntentModel intent , IntentFilter intentFilter ) { Set < String > filterActions = new HashSet < String > ( ) ; filterActions . addAll ( intentFilter . actions ) ; for ( String action : filterActions ) { logger . info ( "Action Test, intent filter actions: {}" , action ) ; } if ( filterActions . size ( ) == 0 ) return false ; if ( ! intent . isFieldInvalidated ( ImplicitIntentFields . ACTION ) ) { for ( String intentAction : intent . getValues ( ImplicitIntentFields . ACTION ) ) { logger . info ( "\tAction Test, checking intent action: {}" , intentAction ) ; if ( filterActions . contains ( intentAction ) ) return true ; } logger . info ( "Action Test, could not find intent action in intent filter" ) ; return false ; } else { logger . info ( "Action Test Passed, could not resolve action field for Intent" ) ; return true ; } }
return true if the action field matches for this intent / intent filter combination
