Searched refs:locationMode (Results 1 – 8 of 8) sorted by relevance
450 final int locationMode; in updatePolicyDependenciesLocked() local454 && 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.Policy680 int locationMode) { in Policy() argument702 if (locationMode < PowerManager.MIN_LOCATION_MODE in Policy()[all …]
38 public final int locationMode; field in PowerSaveState43 locationMode = builder.mLocationMode; in PowerSaveState()51 locationMode = in.readInt(); in PowerSaveState()64 dest.writeInt(locationMode); in writeToParcel()
1753 return powerSaveState.locationMode; in getLocationPowerSaveMode()
185 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()
546 int locationMode = Settings.Secure.getIntForUser(mContext.getContentResolver(), in testAddRestrictedProfile() local551 + "LOCATION_MODE_OFF by default").that(locationMode) in testAddRestrictedProfile()
586 switch (result.locationMode) { in updateLowPowerMode()
4500 final Setting locationMode = secureSettings.getSettingLocked(4503 if (locationMode.isNull()) {
328 onBatterySaverModeChangedLocked(state.locationMode); in onSystemReady()