Tabnine Logo
VPackageManager.queryIntentReceivers
Code IndexAdd Tabnine to your IDE (free)

How to use
queryIntentReceivers
method
in
com.lody.virtual.client.ipc.VPackageManager

Best Java code snippets using com.lody.virtual.client.ipc.VPackageManager.queryIntentReceivers (Showing top 3 results out of 315)

origin: android-hacker/VirtualXposed

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    boolean slice = ParceledListSliceCompat.isReturnParceledListSlice(method);
    int userId = VUserHandle.myUserId();
    List<ResolveInfo> appResult = VPackageManager.get().queryIntentReceivers((Intent) args[0], (String) args[1],
        (Integer) args[2], userId);
    Object _hostResult = method.invoke(who, args);
    List<ResolveInfo> hostResult = slice ? ParceledListSlice.getList.call(_hostResult)
        : (List) _hostResult;
    if (hostResult != null) {
      Iterator<ResolveInfo> iterator = hostResult.iterator();
      while (iterator.hasNext()) {
        ResolveInfo info = iterator.next();
        if (info == null || info.activityInfo == null || !isVisiblePackage(info.activityInfo.applicationInfo)) {
          iterator.remove();
        }
      }
      appResult.addAll(hostResult);
    }
    if (slice) {
      return ParceledListSliceCompat.create(appResult);
    }
    return appResult;
  }
}
origin: bzsome/VirtualApp-x326

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    boolean slice = ParceledListSliceCompat.isReturnParceledListSlice(method);
    int userId = VUserHandle.myUserId();
    List<ResolveInfo> appResult = VPackageManager.get().queryIntentReceivers((Intent) args[0], (String) args[1],
        (Integer) args[2], userId);
    Object _hostResult = method.invoke(who, args);
    List<ResolveInfo> hostResult = slice ? ParceledListSlice.getList.call(_hostResult)
        : (List) _hostResult;
    if (hostResult != null) {
      Iterator<ResolveInfo> iterator = hostResult.iterator();
      while (iterator.hasNext()) {
        ResolveInfo info = iterator.next();
        if (info == null || info.activityInfo == null || !isVisiblePackage(info.activityInfo.applicationInfo)) {
          iterator.remove();
        }
      }
      appResult.addAll(hostResult);
    }
    if (slice) {
      return ParceledListSliceCompat.create(appResult);
    }
    return appResult;
  }
}
origin: darkskygit/VirtualApp

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    boolean slice = ParceledListSliceCompat.isReturnParceledListSlice(method);
    int userId = VUserHandle.myUserId();
    List<ResolveInfo> appResult = VPackageManager.get().queryIntentReceivers((Intent) args[0], (String) args[1],
        (Integer) args[2], userId);
    Object _hostResult = method.invoke(who, args);
    List<ResolveInfo> hostResult = slice ? (List<ResolveInfo>) ParceledListSlice.getList.call(_hostResult)
        : (List) _hostResult;
    if (hostResult != null) {
      hostResult.removeIf(info -> info == null || info.activityInfo == null || !isVisiblePackage(info.activityInfo.applicationInfo));
      appResult.addAll(hostResult);
    }
    if (slice) {
      return ParceledListSliceCompat.create(appResult);
    }
    return appResult;
  }
}
com.lody.virtual.client.ipcVPackageManagerqueryIntentReceivers

Popular methods of VPackageManager

  • activitySupportsIntent
  • checkPermission
  • get
  • getActivityInfo
  • getApplicationInfo
  • getInstalledApplications
  • getInstalledPackages
  • getNameForUid
  • getPackageInfo
  • getPackageInstaller
  • getPackageUid
  • getPackagesForUid
  • getPackageUid,
  • getPackagesForUid,
  • getPermissionGroupInfo,
  • getProviderInfo,
  • getReceiverInfo,
  • getServiceInfo,
  • queryContentProviders,
  • queryIntentActivities,
  • queryIntentContentProviders

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JTable (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top 12 Jupyter Notebook extensions
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