Tabnine Logo
GPSListenerThread.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
com.lody.virtual.client.hook.proxies.location.GPSListenerThread

Best Java code snippets using com.lody.virtual.client.hook.proxies.location.GPSListenerThread.get (Showing top 9 results out of 315)

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(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: 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);
  }
}
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);
  }
}
com.lody.virtual.client.hook.proxies.locationGPSListenerThreadget

Popular methods of GPSListenerThread

  • addListenerTransport
  • notifyGPSStatus
  • notifyLocation
  • notifyMNmeaListener

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • From CI to AI: The AI layer in your organization
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