/frameworks/base/core/java/android/os/ |
D | PowerSaveState.java | 38 public final int locationMode; field in PowerSaveState 44 locationMode = builder.mLocationMode; in PowerSaveState() 53 locationMode = in.readInt(); in PowerSaveState() 67 dest.writeInt(locationMode); in writeToParcel()
|
D | BatterySaverPolicyConfig.java | 552 public Builder setLocationMode(@PowerManager.LocationPowerSaveMode int locationMode) { in setLocationMode() argument 553 mLocationMode = locationMode; in setLocationMode()
|
D | PowerManager.java | 2273 return powerSaveState.locationMode; in getLocationPowerSaveMode()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverPolicy.java | 481 final int locationMode; in updatePolicyDependenciesLocked() local 485 && rawPolicy.locationMode != PowerManager.LOCATION_MODE_NO_CHANGE in updatePolicyDependenciesLocked() 486 && rawPolicy.locationMode != PowerManager.LOCATION_MODE_FOREGROUND_ONLY) { in updatePolicyDependenciesLocked() 488 locationMode = PowerManager.LOCATION_MODE_FOREGROUND_ONLY; in updatePolicyDependenciesLocked() 490 locationMode = rawPolicy.locationMode; in updatePolicyDependenciesLocked() 512 locationMode, in updatePolicyDependenciesLocked() 538 sb.append(mEffectivePolicyRaw.locationMode); in updatePolicyDependenciesLocked() 671 public final int locationMode; field in BatterySaverPolicy.Policy 692 int locationMode, in Policy() argument 712 if (locationMode < PowerManager.MIN_LOCATION_MODE in Policy() [all …]
|
/frameworks/base/core/tests/coretests/jni/ |
D | NativePowerManagerTest.cpp | 58 jfieldID locationMode; member 64 jint locationMode, jint soundTriggerMode, jfloat brightnessFactor) { in nativeObtainPowerSaveStateParcel() argument 67 static_cast<LocationMode>(locationMode), in nativeObtainPowerSaveStateParcel() 83 jint locationMode, jint soundTriggerMode, jfloat brightnessFactor) { in nativeUnparcelAndVerifyPowerSaveState() argument 93 static_cast<LocationMode>(locationMode), in nativeUnparcelAndVerifyPowerSaveState() 132 static_cast<LocationMode>(env->GetIntField(bsObj, gBSPCFieldIds.locationMode)), in nativeObtainBSPConfigParcel() 182 static_cast<LocationMode>(env->GetIntField(bsObj, gBSPCFieldIds.locationMode)), in nativeUnparcelAndVerifyBSPConfig() 244 gBSPCFieldIds.locationMode = GetFieldIDOrDie(env, bspcClazz, "mLocationMode", "I"); in JNI_OnLoad()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverPolicyTest.java | 213 assertThat(stateOn.locationMode).isEqualTo(defaultMode); in testGetBatterySaverPolicy_PolicyLocation_DefaultValueCorrect() 270 assertThat(gpsState.locationMode).isEqualTo(GPS_MODE); in verifyBatterySaverConstantsUpdated() 352 assertThat(mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION).locationMode) in testAutomotiveProjectionChanges_Full() 359 assertThat(mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION).locationMode) in testAutomotiveProjectionChanges_Full() 367 assertThat(mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION).locationMode) in testAutomotiveProjectionChanges_Full() 381 assertThat(mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION).locationMode) in testAutomotiveProjectionChanges_Adaptive() 388 assertThat(mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION).locationMode) in testAutomotiveProjectionChanges_Adaptive() 396 assertThat(mBatterySaverPolicy.getBatterySaverPolicy(ServiceType.LOCATION).locationMode) in testAutomotiveProjectionChanges_Adaptive() 464 assertEquals(PowerManager.LOCATION_MODE_FOREGROUND_ONLY, policy.locationMode); in testUserSettingsOverrideDeviceConfig() 511 policy.locationMode); in testDeviceConfigOverridesDefaults() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | PowerManagerTest.java | 69 boolean globalBatterySaverEnabled, int locationMode, int soundTriggerMode, in nativeObtainPowerSaveStateParcel() argument 73 int locationMode, int soundTriggerMode, float brightnessFactor); in nativeUnparcelAndVerifyPowerSaveState() argument 335 boolean globalBatterySaverEnabled, int locationMode, int soundTriggerMode, in unparcelPowerSaveStateFromNativeAndVerify() argument 339 globalBatterySaverEnabled, locationMode, soundTriggerMode, brightnessFactor); in unparcelPowerSaveStateFromNativeAndVerify() 344 assertEquals(ps.locationMode, locationMode); in unparcelPowerSaveStateFromNativeAndVerify() 354 boolean globalBatterySaverEnabled, int locationMode, int soundTriggerMode, in parcelPowerSaveStateToNativeAndVerify() argument 361 .setLocationMode(locationMode) in parcelPowerSaveStateToNativeAndVerify() 367 globalBatterySaverEnabled, locationMode, soundTriggerMode, brightnessFactor); in parcelPowerSaveStateToNativeAndVerify()
|
/frameworks/native/services/powermanager/include/android/ |
D | PowerSaveState.h | 36 LocationMode locationMode = static_cast<LocationMode>(0), 41 mLocationMode(locationMode), in mBatterySaverEnabled()
|
D | BatterySaverPolicyConfig.h | 52 LocationMode locationMode = static_cast<LocationMode>(0), 71 mLocationMode(locationMode), in mAdjustBrightnessFactor()
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | SystemLocationPowerSaveModeHelper.java | 68 locationPowerSaveMode = powerSaveState.locationMode; in accept()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 4868 final Setting locationMode = secureSettings.getSettingLocked( 4871 if (locationMode.isNull()) { 5482 Setting locationMode = 5486 !locationMode.isNull() 5488 .equals(locationMode.getValue()));
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerTest.java | 1319 int locationMode = Settings.Secure.getIntForUser(mContext.getContentResolver(), in testAddRestrictedProfile() local 1324 + "LOCATION_MODE_OFF by default").that(locationMode) in testAddRestrictedProfile()
|