Searched refs:locationMode (Results 1 – 9 of 9) sorted by relevance
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()
491 public Builder setLocationMode(@PowerManager.LocationPowerSaveMode int locationMode) { in setLocationMode() argument492 mLocationMode = locationMode; in setLocationMode()
1626 return powerSaveState.locationMode; in getLocationPowerSaveMode()
422 sb.append(currPolicy.locationMode); in updatePolicyDependenciesLocked()571 public final int locationMode; field in BatterySaverPolicy.Policy595 int locationMode) { in Policy() argument617 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 …]
180 assertThat(stateOn.locationMode).isEqualTo(DEFAULT_GPS_MODE); in testGetBatterySaverPolicy_PolicyGps_DefaultValueCorrect()233 assertThat(gpsState.locationMode).isEqualTo(GPS_MODE); in verifyBatterySaverConstantsUpdated()
383 int locationMode = Settings.Secure.getIntForUser(getContext().getContentResolver(), in testAddRestrictedProfile() local388 + "LOCATION_MODE_OFF by default", locationMode, Settings.Secure.LOCATION_MODE_OFF); in testAddRestrictedProfile()
547 switch (result.locationMode) { in updateLowPowerMode()
4231 final Setting locationMode = secureSettings.getSettingLocked(4234 if (locationMode.isNull()) {
419 onBatterySaverModeChangedLocked(state.locationMode); in initializeLocked()