congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MethodProxies$QueryIntentActivities.isVisiblePackage
Code IndexAdd Tabnine to your IDE (free)

How to use
isVisiblePackage
method
in
com.lody.virtual.client.hook.proxies.pm.MethodProxies$QueryIntentActivities

Best Java code snippets using com.lody.virtual.client.hook.proxies.pm.MethodProxies$QueryIntentActivities.isVisiblePackage (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().queryIntentActivities((Intent) args[0],
      (String) args[1], (Integer) args[2], userId);
  Object _hostResult = method.invoke(who, args);
  if (_hostResult != null) {
    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().queryIntentActivities((Intent) args[0],
      (String) args[1], (Integer) args[2], userId);
  Object _hostResult = method.invoke(who, args);
  if (_hostResult != null) {
    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().queryIntentActivities((Intent) args[0],
      (String) args[1], (Integer) args[2], userId);
  Object _hostResult = method.invoke(who, args);
  if (_hostResult != null) {
    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.hook.proxies.pmMethodProxies$QueryIntentActivitiesisVisiblePackage

Popular methods of MethodProxies$QueryIntentActivities

  • isAppProcess

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JOptionPane (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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