Loading location/java/android/location/flags/location.aconfig +14 −0 Original line number Diff line number Diff line package: "android.location.flags" container: "system" flag { name: "keep_gnss_stationary_throttling" namespace: "location" description: "Keeps stationary throttling for the GNSS provider even if the disable_stationary_throttling flag is true." bug: "354000147" } flag { name: "disable_stationary_throttling" namespace: "location" description: "Disables stationary throttling for all providers" bug: "354000147" } flag { name: "new_geocoder" namespace: "location" Loading services/core/java/com/android/server/location/LocationManagerService.java +5 −0 Original line number Diff line number Diff line Loading @@ -376,6 +376,11 @@ public class LocationManagerService extends ILocationManager.Stub implements mContext.getContentResolver(), Settings.Global.LOCATION_ENABLE_STATIONARY_THROTTLE, defaultStationaryThrottlingSetting) != 0; if (Flags.disableStationaryThrottling() && !( Flags.keepGnssStationaryThrottling() && enableStationaryThrottling && GPS_PROVIDER.equals(manager.getName()))) { enableStationaryThrottling = false; } if (enableStationaryThrottling) { realProvider = new StationaryThrottlingLocationProvider(manager.getName(), mInjector, realProvider); Loading Loading
location/java/android/location/flags/location.aconfig +14 −0 Original line number Diff line number Diff line package: "android.location.flags" container: "system" flag { name: "keep_gnss_stationary_throttling" namespace: "location" description: "Keeps stationary throttling for the GNSS provider even if the disable_stationary_throttling flag is true." bug: "354000147" } flag { name: "disable_stationary_throttling" namespace: "location" description: "Disables stationary throttling for all providers" bug: "354000147" } flag { name: "new_geocoder" namespace: "location" Loading
services/core/java/com/android/server/location/LocationManagerService.java +5 −0 Original line number Diff line number Diff line Loading @@ -376,6 +376,11 @@ public class LocationManagerService extends ILocationManager.Stub implements mContext.getContentResolver(), Settings.Global.LOCATION_ENABLE_STATIONARY_THROTTLE, defaultStationaryThrottlingSetting) != 0; if (Flags.disableStationaryThrottling() && !( Flags.keepGnssStationaryThrottling() && enableStationaryThrottling && GPS_PROVIDER.equals(manager.getName()))) { enableStationaryThrottling = false; } if (enableStationaryThrottling) { realProvider = new StationaryThrottlingLocationProvider(manager.getName(), mInjector, realProvider); Loading