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

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

Best Java code snippets using com.lody.virtual.client.hook.proxies.location.GPSListenerThread (Showing top 12 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

if (VERSION.SDK_INT >= 24) {
  Map nmeaListeners = LocationManager.mGnssNmeaListeners.get(transport);
  notifyGPSStatus(LocationManager.mGnssStatusListeners.get(transport));
  notifyMNmeaListener(nmeaListeners);
  gpsStatusListeners = LocationManager.mGpsStatusListeners.get(transport);
  notifyGPSStatus(gpsStatusListeners);
  notifyMNmeaListener(LocationManager.mGpsNmeaListeners.get(transport));
} else {
  gpsStatusListeners = LocationManager.mGpsStatusListeners.get(transport);
  notifyGPSStatus(gpsStatusListeners);
  notifyMNmeaListener(LocationManager.mNmeaListeners.get(transport));
    notifyLocation(listeners);
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: darkskygit/VirtualApp

if (VERSION.SDK_INT >= 24) {
  Map nmeaListeners = LocationManager.mGnssNmeaListeners.get(transport);
  notifyGPSStatus(LocationManager.mGnssStatusListeners.get(transport));
  notifyMNmeaListener(nmeaListeners);
  gpsStatusListeners = LocationManager.mGpsStatusListeners.get(transport);
  notifyGPSStatus(gpsStatusListeners);
  notifyMNmeaListener(LocationManager.mGpsNmeaListeners.get(transport));
} else {
  gpsStatusListeners = LocationManager.mGpsStatusListeners.get(transport);
  notifyGPSStatus(gpsStatusListeners);
  notifyMNmeaListener(LocationManager.mNmeaListeners.get(transport));
    notifyLocation(listeners);
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: bzsome/VirtualApp-x326

if (VERSION.SDK_INT >= 24) {
  Map nmeaListeners = LocationManager.mGnssNmeaListeners.get(transport);
  notifyGPSStatus(LocationManager.mGnssStatusListeners.get(transport));
  notifyMNmeaListener(nmeaListeners);
  gpsStatusListeners = LocationManager.mGpsStatusListeners.get(transport);
  notifyGPSStatus(gpsStatusListeners);
  notifyMNmeaListener(LocationManager.mGpsNmeaListeners.get(transport));
} else {
  gpsStatusListeners = LocationManager.mGpsStatusListeners.get(transport);
  notifyGPSStatus(gpsStatusListeners);
  notifyMNmeaListener(LocationManager.mNmeaListeners.get(transport));
    notifyLocation(listeners);
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.locationGPSListenerThread

Most used methods

  • addListenerTransport
  • get
  • notifyGPSStatus
  • notifyLocation
  • notifyMNmeaListener

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JOptionPane (javax.swing)
  • Best IntelliJ plugins
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