Tabnine Logo
IntentResolver.filterEquals
Code IndexAdd Tabnine to your IDE (free)

How to use
filterEquals
method
in
com.lody.virtual.server.pm.IntentResolver

Best Java code snippets using com.lody.virtual.server.pm.IntentResolver.filterEquals (Showing top 6 results out of 315)

origin: android-hacker/VirtualXposed

private ArrayList<F> collectFilters(F[] array, IntentFilter matching) {
  ArrayList<F> res = null;
  if (array != null) {
    for (int i = 0; i < array.length; i++) {
      F cur = array[i];
      if (cur == null) {
        break;
      }
      if (filterEquals(cur.filter, matching)) {
        if (res == null) {
          res = new ArrayList<>();
        }
        res.add(cur);
      }
    }
  }
  return res;
}
origin: android-hacker/VirtualXposed

public ArrayList<F> findFilters(IntentFilter matching) {
  if (matching.countDataSchemes() == 1) {
    // Fast case.
    return collectFilters(mSchemeToFilter.get(matching.getDataScheme(0)), matching);
  } else if (matching.countDataTypes() != 0 && matching.countActions() == 1) {
    // Another fast case.
    return collectFilters(mTypedActionToFilter.get(matching.getAction(0)), matching);
  } else if (matching.countDataTypes() == 0 && matching.countDataSchemes() == 0 && matching.countActions() == 1) {
    // Last fast case.
    return collectFilters(mActionToFilter.get(matching.getAction(0)), matching);
  } else {
    ArrayList<F> res = null;
    for (F cur : mFilters) {
      if (filterEquals(cur.filter, matching)) {
        if (res == null) {
          res = new ArrayList<>();
        }
        res.add(cur);
      }
    }
    return res;
  }
}
origin: bzsome/VirtualApp-x326

private ArrayList<F> collectFilters(F[] array, IntentFilter matching) {
  ArrayList<F> res = null;
  if (array != null) {
    for (int i = 0; i < array.length; i++) {
      F cur = array[i];
      if (cur == null) {
        break;
      }
      if (filterEquals(cur.filter, matching)) {
        if (res == null) {
          res = new ArrayList<>();
        }
        res.add(cur);
      }
    }
  }
  return res;
}
origin: darkskygit/VirtualApp

private ArrayList<F> collectFilters(F[] array, IntentFilter matching) {
  ArrayList<F> res = null;
  if (array != null) {
    for (int i = 0; i < array.length; i++) {
      F cur = array[i];
      if (cur == null) {
        break;
      }
      if (filterEquals(cur.filter, matching)) {
        if (res == null) {
          res = new ArrayList<>();
        }
        res.add(cur);
      }
    }
  }
  return res;
}
origin: bzsome/VirtualApp-x326

public ArrayList<F> findFilters(IntentFilter matching) {
  if (matching.countDataSchemes() == 1) {
    // Fast case.
    return collectFilters(mSchemeToFilter.get(matching.getDataScheme(0)), matching);
  } else if (matching.countDataTypes() != 0 && matching.countActions() == 1) {
    // Another fast case.
    return collectFilters(mTypedActionToFilter.get(matching.getAction(0)), matching);
  } else if (matching.countDataTypes() == 0 && matching.countDataSchemes() == 0 && matching.countActions() == 1) {
    // Last fast case.
    return collectFilters(mActionToFilter.get(matching.getAction(0)), matching);
  } else {
    ArrayList<F> res = null;
    for (F cur : mFilters) {
      if (filterEquals(cur.filter, matching)) {
        if (res == null) {
          res = new ArrayList<>();
        }
        res.add(cur);
      }
    }
    return res;
  }
}
origin: darkskygit/VirtualApp

public ArrayList<F> findFilters(IntentFilter matching) {
  if (matching.countDataSchemes() == 1) {
    // Fast case.
    return collectFilters(mSchemeToFilter.get(matching.getDataScheme(0)), matching);
  } else if (matching.countDataTypes() != 0 && matching.countActions() == 1) {
    // Another fast case.
    return collectFilters(mTypedActionToFilter.get(matching.getAction(0)), matching);
  } else if (matching.countDataTypes() == 0 && matching.countDataSchemes() == 0 && matching.countActions() == 1) {
    // Last fast case.
    return collectFilters(mActionToFilter.get(matching.getAction(0)), matching);
  } else {
    ArrayList<F> res = null;
    for (F cur : mFilters) {
      if (filterEquals(cur.filter, matching)) {
        if (res == null) {
          res = new ArrayList<>();
        }
        res.add(cur);
      }
    }
    return res;
  }
}
com.lody.virtual.server.pmIntentResolverfilterEquals

Popular methods of IntentResolver

  • addFilter
  • allowFilterResult
    Control whether the given filter is allowed to go into the result list. Mainly intended to prevent a
  • buildResolveList
  • collectFilters
  • getFastIntentCategories
  • isPackageForFilter
    Returns whether this filter is owned by this package. This must be implemented to provide correct fi
  • newArray
  • newResult
  • queryIntent
  • queryIntentFromList
  • register_intent_filter
  • register_mime_types
  • register_intent_filter,
  • register_mime_types,
  • removeFilterInternal,
  • remove_all_objects,
  • sortResults,
  • unregister_intent_filter,
  • unregister_mime_types

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • String (java.lang)
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • BoxLayout (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now