Home
last modified time | relevance | path

Searched refs:locationMode (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/os/
DPowerSaveState.java38 public final int locationMode; field in PowerSaveState
43 locationMode = builder.mLocationMode; in PowerSaveState()
51 locationMode = in.readInt(); in PowerSaveState()
64 dest.writeInt(locationMode); in writeToParcel()
DBatterySaverPolicyConfig.java491 public Builder setLocationMode(@PowerManager.LocationPowerSaveMode int locationMode) { in setLocationMode() argument
492 mLocationMode = locationMode; in setLocationMode()
DPowerManager.java1626 return powerSaveState.locationMode; in getLocationPowerSaveMode()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java422 sb.append(currPolicy.locationMode); in updatePolicyDependenciesLocked()
571 public final int locationMode; field in BatterySaverPolicy.Policy
595 int locationMode) { in Policy() argument
617 if (locationMode < PowerManager.MIN_LOCATION_MODE in Policy()
618 || PowerManager.MAX_LOCATION_MODE < locationMode) { in Policy()
619 Slog.e(TAG, "Invalid location mode: " + locationMode); in Policy()
620 this.locationMode = PowerManager.LOCATION_MODE_NO_CHANGE; in Policy()
622 this.locationMode = locationMode; in Policy()
645 locationMode); in Policy()
746 int locationMode = parser.getInt(KEY_GPS_MODE, defaultPolicy.locationMode); in fromSettings() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java180 assertThat(stateOn.locationMode).isEqualTo(DEFAULT_GPS_MODE); in testGetBatterySaverPolicy_PolicyGps_DefaultValueCorrect()
233 assertThat(gpsState.locationMode).isEqualTo(GPS_MODE); in verifyBatterySaverConstantsUpdated()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java383 int locationMode = Settings.Secure.getIntForUser(getContext().getContentResolver(), in testAddRestrictedProfile() local
388 + "LOCATION_MODE_OFF by default", locationMode, Settings.Secure.LOCATION_MODE_OFF); in testAddRestrictedProfile()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java547 switch (result.locationMode) { in updateLowPowerMode()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java4231 final Setting locationMode = secureSettings.getSettingLocked(
4234 if (locationMode.isNull()) {
/frameworks/base/services/core/java/com/android/server/
DLocationManagerService.java419 onBatterySaverModeChangedLocked(state.locationMode); in initializeLocked()