Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java450 final int locationMode; in updatePolicyDependenciesLocked() local
454 && rawPolicy.locationMode != PowerManager.LOCATION_MODE_NO_CHANGE in updatePolicyDependenciesLocked()
455 && rawPolicy.locationMode != PowerManager.LOCATION_MODE_FOREGROUND_ONLY) { in updatePolicyDependenciesLocked()
457 locationMode = PowerManager.LOCATION_MODE_FOREGROUND_ONLY; in updatePolicyDependenciesLocked()
459 locationMode = rawPolicy.locationMode; in updatePolicyDependenciesLocked()
484 locationMode in updatePolicyDependenciesLocked()
507 sb.append(mEffectivePolicyRaw.locationMode); in updatePolicyDependenciesLocked()
656 public final int locationMode; field in BatterySaverPolicy.Policy
680 int locationMode) { in Policy() argument
702 if (locationMode < PowerManager.MIN_LOCATION_MODE in Policy()
[all …]
/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()
DPowerManager.java1753 return powerSaveState.locationMode; in getLocationPowerSaveMode()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java185 assertThat(stateOn.locationMode).isEqualTo(DEFAULT_GPS_MODE); in testGetBatterySaverPolicy_PolicyGps_DefaultValueCorrect()
238 assertThat(gpsState.locationMode).isEqualTo(GPS_MODE); in verifyBatterySaverConstantsUpdated()
348 assertThat(mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION).locationMode) in testCarModeChanges_Full()
355 assertThat(mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION).locationMode) in testCarModeChanges_Full()
363 assertThat(mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION).locationMode) in testCarModeChanges_Full()
375 assertThat(mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION).locationMode) in testCarModeChanges_Adaptive()
382 assertThat(mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION).locationMode) in testCarModeChanges_Adaptive()
390 assertThat(mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION).locationMode) in testCarModeChanges_Adaptive()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java546 int locationMode = Settings.Secure.getIntForUser(mContext.getContentResolver(), in testAddRestrictedProfile() local
551 + "LOCATION_MODE_OFF by default").that(locationMode) in testAddRestrictedProfile()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssLocationProvider.java586 switch (result.locationMode) { in updateLowPowerMode()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java4500 final Setting locationMode = secureSettings.getSettingLocked(
4503 if (locationMode.isNull()) {
/frameworks/base/services/core/java/com/android/server/location/
DLocationManagerService.java328 onBatterySaverModeChangedLocked(state.locationMode); in onSystemReady()