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

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

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

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

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.pmIntentResolvercollectFilters

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
  • filterEquals
  • 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

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Permission (java.security)
    Legacy security code; do not use.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top plugins for Android Studio
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