addMethodProxy(new FakeReplaceLastPkgMethodProxy("addGpsMeasurementsListener", true)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("addGpsNavigationMessageListener", true)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("removeGpsMeasurementListener", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("removeGpsNavigationMessageListener", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("requestGeofence", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("removeGeofence", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("addProximityAlert", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("addNmeaListener", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("removeNmeaListener", 0));
@Override public Object call(Object who, Method method, Object... args) throws Throwable { if (isFakeLocationEnable()) { return mDefValue; } return super.call(who, method, args); } }
addMethodProxy(new FakeReplaceLastPkgMethodProxy("addGpsMeasurementsListener", true)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("addGpsNavigationMessageListener", true)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("removeGpsMeasurementListener", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("removeGpsNavigationMessageListener", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("requestGeofence", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("removeGeofence", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("addProximityAlert", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("addNmeaListener", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("removeNmeaListener", 0));
@Override public Object call(Object who, Method method, Object... args) throws Throwable { if (isFakeLocationEnable()) { return mDefValue; } return super.call(who, method, args); } }
addMethodProxy(new FakeReplaceLastPkgMethodProxy("addGpsMeasurementsListener", true)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("addGpsNavigationMessageListener", true)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("removeGpsMeasurementListener", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("removeGpsNavigationMessageListener", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("requestGeofence", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("removeGeofence", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("addProximityAlert", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("addNmeaListener", 0)); addMethodProxy(new FakeReplaceLastPkgMethodProxy("removeNmeaListener", 0));
@Override public Object call(Object who, Method method, Object... args) throws Throwable { if (isFakeLocationEnable()) { return mDefValue; } return super.call(who, method, args); } }