Home
last modified time | relevance | path

Searched refs:adjustBrightnessFactor (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java494 rawPolicy.adjustBrightnessFactor, in updatePolicyDependenciesLocked()
551 public final float adjustBrightnessFactor; field in BatterySaverPolicy.Policy
676 float adjustBrightnessFactor, in Policy() argument
695 this.adjustBrightnessFactor = Math.min(1, Math.max(0, adjustBrightnessFactor)); in Policy()
729 adjustBrightnessFactor, in Policy()
782 .setAdjustBrightnessFactor(adjustBrightnessFactor) in toConfig()
834 final float adjustBrightnessFactor = userSettingDeviceConfigMediator.getFloat( in fromSettings() local
836 defaultPolicy.adjustBrightnessFactor); in fromSettings()
879 adjustBrightnessFactor, in fromSettings()
906 return Float.compare(other.adjustBrightnessFactor, adjustBrightnessFactor) == 0 in equals()
[all …]
/frameworks/native/services/powermanager/include/android/
DBatterySaverPolicyConfig.h35 BatterySaverPolicyConfig(float adjustBrightnessFactor = 1.0f,
54 : mAdjustBrightnessFactor(adjustBrightnessFactor), in mAdjustBrightnessFactor()
/frameworks/base/core/tests/coretests/jni/
DNativePowerManagerTest.cpp41 jfieldID adjustBrightnessFactor; member
115 env->GetFloatField(bsObj, gBSPCFieldIds.adjustBrightnessFactor), in nativeObtainBSPConfigParcel()
165 env->GetFloatField(bsObj, gBSPCFieldIds.adjustBrightnessFactor), in nativeUnparcelAndVerifyBSPConfig()
220 gBSPCFieldIds.adjustBrightnessFactor = in JNI_OnLoad()
/frameworks/base/core/java/android/os/
DBatterySaverPolicyConfig.java382 public Builder setAdjustBrightnessFactor(float adjustBrightnessFactor) { in setAdjustBrightnessFactor() argument
383 mAdjustBrightnessFactor = adjustBrightnessFactor; in setAdjustBrightnessFactor()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java448 assertEquals(.1f, policy.adjustBrightnessFactor); in testUserSettingsOverrideDeviceConfig()
494 assertEquals(.5f, policy.adjustBrightnessFactor); in testDeviceConfigOverridesDefaults()
571 assertEquals(.9f, policy.adjustBrightnessFactor); in testDeviceConfig_AdaptiveValues()