Codota Logo
ArrayUtils.getFirst
Code IndexAdd Codota to your IDE (free)

How to use
getFirst
method
in
com.lody.virtual.helper.utils.ArrayUtils

Best Java code snippets using com.lody.virtual.helper.utils.ArrayUtils.getFirst (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: android-hacker/VirtualXposed

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  Intent[] intents = ArrayUtils.getFirst(args, Intent[].class);
  String[] resolvedTypes = ArrayUtils.getFirst(args, String[].class);
  IBinder token = null;
  int tokenIndex = ArrayUtils.indexOfObject(args, IBinder.class, 2);
  if (tokenIndex != -1) {
    token = (IBinder) args[tokenIndex];
  }
  Bundle options = ArrayUtils.getFirst(args, Bundle.class);
  return VActivityManager.get().startActivities(intents, resolvedTypes, token, options, VUserHandle.myUserId());
}
origin: android-hacker/VirtualXposed

Bundle options = ArrayUtils.getFirst(args, Bundle.class);
if (resultTo != null) {
  resultWho = (String) args[resultToIndex + 1];
origin: android-hacker/VirtualXposed

  @Override
  public Object call(final Object who, Method method, Object... args) throws Throwable {
    if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN) {
      LocationRequest request = (LocationRequest) args[0];
      fixLocationRequest(request);
    }
    if (isFakeLocationEnable()) {
      Object transport = ArrayUtils.getFirst(args, mirror.android.location.LocationManager.ListenerTransport.TYPE);
      if (transport != null) {
        Object locationManager = mirror.android.location.LocationManager.ListenerTransport.this$0.get(transport);
        MockLocationHelper.setGpsStatus(locationManager);
        GPSListenerThread.get().addListenerTransport(locationManager);
      }
      return 0;
    }
    return super.call(who, method, args);
  }
}
origin: android-hacker/VirtualXposed

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (!isFakeLocationEnable()) {
      return super.call(who, method, args);
    }
    Object transport = ArrayUtils.getFirst(args, mirror.android.location.LocationManager.GnssStatusListenerTransport.TYPE);
    if (transport != null) {
      mirror.android.location.LocationManager.GnssStatusListenerTransport.onGnssStarted.call(transport, new Object[0]);
      if (mirror.android.location.LocationManager.GnssStatusListenerTransport.mGpsListener.get(transport) != null) {
        MockLocationHelper.invokeSvStatusChanged(transport);
      } else {
        MockLocationHelper.invokeNmeaReceived(transport);
      }
      mirror.android.location.LocationManager.GnssStatusListenerTransport.onFirstFix.call(transport, Integer.valueOf(0));
      Object locationManager = mirror.android.location.LocationManager.GnssStatusListenerTransport.this$0.get(transport);
      GPSListenerThread.get().addListenerTransport(locationManager);
    }
    return true;
  }
}
origin: android-hacker/VirtualXposed

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (isFakeLocationEnable()) {
      Object transport = ArrayUtils.getFirst(args, mirror.android.location.LocationManager.GpsStatusListenerTransport.TYPE);
      Object locationManager = mirror.android.location.LocationManager.GpsStatusListenerTransport.this$0.get(transport);
      mirror.android.location.LocationManager.GpsStatusListenerTransport.onGpsStarted.call(transport);
      mirror.android.location.LocationManager.GpsStatusListenerTransport.onFirstFix.call(transport, 0);
      if (mirror.android.location.LocationManager.GpsStatusListenerTransport.mListener.get(transport) != null) {
        MockLocationHelper.invokeSvStatusChanged(transport);
      } else {
        MockLocationHelper.invokeNmeaReceived(transport);
      }
      GPSListenerThread.get().addListenerTransport(locationManager);
      return true;
    }
    return super.call(who, method, args);
  }
}
origin: darkskygit/VirtualApp

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  Intent[] intents = ArrayUtils.getFirst(args, Intent[].class);
  String[] resolvedTypes = ArrayUtils.getFirst(args, String[].class);
  IBinder token = null;
  int tokenIndex = ArrayUtils.indexOfObject(args, IBinder.class, 2);
  if (tokenIndex != -1) {
    token = (IBinder) args[tokenIndex];
  }
  Bundle options = ArrayUtils.getFirst(args, Bundle.class);
  return VActivityManager.get().startActivities(intents, resolvedTypes, token, options, VUserHandle.myUserId());
}
origin: bzsome/VirtualApp-x326

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  Intent[] intents = ArrayUtils.getFirst(args, Intent[].class);
  String[] resolvedTypes = ArrayUtils.getFirst(args, String[].class);
  IBinder token = null;
  int tokenIndex = ArrayUtils.indexOfObject(args, IBinder.class, 2);
  if (tokenIndex != -1) {
    token = (IBinder) args[tokenIndex];
  }
  Bundle options = ArrayUtils.getFirst(args, Bundle.class);
  return VActivityManager.get().startActivities(intents, resolvedTypes, token, options, VUserHandle.myUserId());
}
origin: darkskygit/VirtualApp

Bundle options = ArrayUtils.getFirst(args, Bundle.class);
if (resultTo != null) {
  resultWho = (String) args[resultToIndex + 1];
origin: bzsome/VirtualApp-x326

Bundle options = ArrayUtils.getFirst(args, Bundle.class);
if (resultTo != null) {
  resultWho = (String) args[resultToIndex + 1];
origin: darkskygit/VirtualApp

  @Override
  public Object call(final Object who, Method method, Object... args) throws Throwable {
    if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN) {
      LocationRequest request = (LocationRequest) args[0];
      fixLocationRequest(request);
    }
    if (isFakeLocationEnable()) {
      Object transport = ArrayUtils.getFirst(args, mirror.android.location.LocationManager.ListenerTransport.TYPE);
      if (transport != null) {
        Object locationManager = mirror.android.location.LocationManager.ListenerTransport.this$0.get(transport);
        MockLocationHelper.setGpsStatus(locationManager);
        GPSListenerThread.get().addListenerTransport(locationManager);
      }
      return 0;
    }
    return super.call(who, method, args);
  }
}
origin: bzsome/VirtualApp-x326

  @Override
  public Object call(final Object who, Method method, Object... args) throws Throwable {
    if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN) {
      LocationRequest request = (LocationRequest) args[0];
      fixLocationRequest(request);
    }
    if (isFakeLocationEnable()) {
      Object transport = ArrayUtils.getFirst(args, mirror.android.location.LocationManager.ListenerTransport.TYPE);
      if (transport != null) {
        Object locationManager = mirror.android.location.LocationManager.ListenerTransport.this$0.get(transport);
        MockLocationHelper.setGpsStatus(locationManager);
        GPSListenerThread.get().addListenerTransport(locationManager);
      }
      return 0;
    }
    return super.call(who, method, args);
  }
}
origin: bzsome/VirtualApp-x326

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (!isFakeLocationEnable()) {
      return super.call(who, method, args);
    }
    Object transport = ArrayUtils.getFirst(args, mirror.android.location.LocationManager.GnssStatusListenerTransport.TYPE);
    if (transport != null) {
      mirror.android.location.LocationManager.GnssStatusListenerTransport.onGnssStarted.call(transport, new Object[0]);
      if (mirror.android.location.LocationManager.GnssStatusListenerTransport.mGpsListener.get(transport) != null) {
        MockLocationHelper.invokeSvStatusChanged(transport);
      } else {
        MockLocationHelper.invokeNmeaReceived(transport);
      }
      mirror.android.location.LocationManager.GnssStatusListenerTransport.onFirstFix.call(transport, Integer.valueOf(0));
      Object locationManager = mirror.android.location.LocationManager.GnssStatusListenerTransport.this$0.get(transport);
      GPSListenerThread.get().addListenerTransport(locationManager);
    }
    return true;
  }
}
origin: darkskygit/VirtualApp

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (!isFakeLocationEnable()) {
      return super.call(who, method, args);
    }
    Object transport = ArrayUtils.getFirst(args, mirror.android.location.LocationManager.GnssStatusListenerTransport.TYPE);
    if (transport != null) {
      mirror.android.location.LocationManager.GnssStatusListenerTransport.onGnssStarted.call(transport, new Object[0]);
      if (mirror.android.location.LocationManager.GnssStatusListenerTransport.mGpsListener.get(transport) != null) {
        MockLocationHelper.invokeSvStatusChanged(transport);
      } else {
        MockLocationHelper.invokeNmeaReceived(transport);
      }
      mirror.android.location.LocationManager.GnssStatusListenerTransport.onFirstFix.call(transport, Integer.valueOf(0));
      Object locationManager = mirror.android.location.LocationManager.GnssStatusListenerTransport.this$0.get(transport);
      GPSListenerThread.get().addListenerTransport(locationManager);
    }
    return true;
  }
}
origin: bzsome/VirtualApp-x326

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (isFakeLocationEnable()) {
      Object transport = ArrayUtils.getFirst(args, mirror.android.location.LocationManager.GpsStatusListenerTransport.TYPE);
      Object locationManager = mirror.android.location.LocationManager.GpsStatusListenerTransport.this$0.get(transport);
      mirror.android.location.LocationManager.GpsStatusListenerTransport.onGpsStarted.call(transport);
      mirror.android.location.LocationManager.GpsStatusListenerTransport.onFirstFix.call(transport, 0);
      if (mirror.android.location.LocationManager.GpsStatusListenerTransport.mListener.get(transport) != null) {
        MockLocationHelper.invokeSvStatusChanged(transport);
      } else {
        MockLocationHelper.invokeNmeaReceived(transport);
      }
      GPSListenerThread.get().addListenerTransport(locationManager);
      return true;
    }
    return super.call(who, method, args);
  }
}
origin: darkskygit/VirtualApp

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    if (isFakeLocationEnable()) {
      Object transport = ArrayUtils.getFirst(args, mirror.android.location.LocationManager.GpsStatusListenerTransport.TYPE);
      Object locationManager = mirror.android.location.LocationManager.GpsStatusListenerTransport.this$0.get(transport);
      mirror.android.location.LocationManager.GpsStatusListenerTransport.onGpsStarted.call(transport);
      mirror.android.location.LocationManager.GpsStatusListenerTransport.onFirstFix.call(transport, 0);
      if (mirror.android.location.LocationManager.GpsStatusListenerTransport.mListener.get(transport) != null) {
        MockLocationHelper.invokeSvStatusChanged(transport);
      } else {
        MockLocationHelper.invokeNmeaReceived(transport);
      }
      GPSListenerThread.get().addListenerTransport(locationManager);
      return true;
    }
    return super.call(who, method, args);
  }
}
com.lody.virtual.helper.utilsArrayUtilsgetFirst

Popular methods of ArrayUtils

  • checkOffsetAndCount
  • contains
  • indexOf
    Return first index of value in array, or -1 if not found.
  • indexOfFirst
  • indexOfLast
  • indexOfObject
  • isEmpty
  • protoIndexOf

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • setContentView (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ImageIO (javax.imageio)
  • Notification (javax.management)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now