@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; } }
@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; } }
@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; } }