public VLocation getLocation() { return getLocation(MethodProxy.getAppUserId(), MethodProxy.getAppPkg()); }
private void notifyLocation(Map listeners) { if (listeners != null) { try { if (!listeners.isEmpty()) { VLocation vLocation = VirtualLocationManager.get().getLocation(); if (vLocation != null) { Location location = vLocation.toSysLocation(); //noinspection unchecked Set<Map.Entry> entries = listeners.entrySet(); for (Map.Entry entry : entries) { Object value = entry.getValue(); if (value != null) { try { LocationManager.ListenerTransport.onLocationChanged.call(value, location); } catch (Throwable e) { e.printStackTrace(); } } } } } } catch (Throwable e) { e.printStackTrace(); } } }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { if (!(args[0] instanceof String)) { LocationRequest request = (LocationRequest) args[0]; fixLocationRequest(request); } if (isFakeLocationEnable()) { VLocation loc = VirtualLocationManager.get().getLocation(); if (loc != null) { return loc.toSysLocation(); } else { return null; } } return super.call(who, method, args); } }
VirtualGPSSatalines satalines = VirtualGPSSatalines.get(); try { VLocation location = VirtualLocationManager.get().getLocation(); if (location != null) { String date = new SimpleDateFormat("HHmmss:SS", Locale.US).format(new Date());
public VLocation getLocation() { return getLocation(MethodProxy.getAppUserId(), MethodProxy.getAppPkg()); }
public VLocation getLocation() { return getLocation(MethodProxy.getAppUserId(), MethodProxy.getAppPkg()); }
private void notifyLocation(Map listeners) { if (listeners != null) { try { if (!listeners.isEmpty()) { VLocation vLocation = VirtualLocationManager.get().getLocation(); if (vLocation != null) { Location location = vLocation.toSysLocation(); //noinspection unchecked Set<Map.Entry> entries = listeners.entrySet(); for (Map.Entry entry : entries) { Object value = entry.getValue(); if (value != null) { try { LocationManager.ListenerTransport.onLocationChanged.call(value, location); } catch (Throwable e) { e.printStackTrace(); } } } } } } catch (Throwable e) { e.printStackTrace(); } } }
private void notifyLocation(Map listeners) { if (listeners != null) { try { if (!listeners.isEmpty()) { VLocation vLocation = VirtualLocationManager.get().getLocation(); if (vLocation != null) { Location location = vLocation.toSysLocation(); //noinspection unchecked Set<Map.Entry> entries = listeners.entrySet(); for (Map.Entry entry : entries) { Object value = entry.getValue(); if (value != null) { try { LocationManager.ListenerTransport.onLocationChanged.call(value, location); } catch (Throwable e) { e.printStackTrace(); } } } } } } catch (Throwable e) { e.printStackTrace(); } } }
private void readLocation(LocationData locationData) { locationData.mode = VirtualLocationManager.get().getMode(locationData.userId, locationData.packageName); locationData.location = VirtualLocationManager.get().getLocation(locationData.userId, locationData.packageName); }
private void readLocation(LocationData locationData) { locationData.mode = VirtualLocationManager.get().getMode(locationData.userId, locationData.packageName); locationData.location = VirtualLocationManager.get().getLocation(locationData.userId, locationData.packageName); }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { if (!(args[0] instanceof String)) { LocationRequest request = (LocationRequest) args[0]; fixLocationRequest(request); } if (isFakeLocationEnable()) { VLocation loc = VirtualLocationManager.get().getLocation(); if (loc != null) { return loc.toSysLocation(); } else { return null; } } return super.call(who, method, args); } }
VirtualGPSSatalines satalines = VirtualGPSSatalines.get(); try { VLocation location = VirtualLocationManager.get().getLocation(); if (location != null) { String date = new SimpleDateFormat("HHmmss:SS", Locale.US).format(new Date());
VirtualGPSSatalines satalines = VirtualGPSSatalines.get(); try { VLocation location = VirtualLocationManager.get().getLocation(); if (location != null) { String date = new SimpleDateFormat("HHmmss:SS", Locale.US).format(new Date());
@Override public Object call(Object who, Method method, Object... args) throws Throwable { if (!(args[0] instanceof String)) { LocationRequest request = (LocationRequest) args[0]; fixLocationRequest(request); } if (isFakeLocationEnable()) { VLocation loc = VirtualLocationManager.get().getLocation(); if (loc != null) { return loc.toSysLocation(); } else { return null; } } return super.call(who, method, args); } }