Searched refs:adjustBrightnessFactor (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverPolicy.java | 494 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/ |
D | BatterySaverPolicyConfig.h | 35 BatterySaverPolicyConfig(float adjustBrightnessFactor = 1.0f, 54 : mAdjustBrightnessFactor(adjustBrightnessFactor), in mAdjustBrightnessFactor()
|
/frameworks/base/core/tests/coretests/jni/ |
D | NativePowerManagerTest.cpp | 41 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/ |
D | BatterySaverPolicyConfig.java | 382 public Builder setAdjustBrightnessFactor(float adjustBrightnessFactor) { in setAdjustBrightnessFactor() argument 383 mAdjustBrightnessFactor = adjustBrightnessFactor; in setAdjustBrightnessFactor()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverPolicyTest.java | 448 assertEquals(.1f, policy.adjustBrightnessFactor); in testUserSettingsOverrideDeviceConfig() 494 assertEquals(.5f, policy.adjustBrightnessFactor); in testDeviceConfigOverridesDefaults() 571 assertEquals(.9f, policy.adjustBrightnessFactor); in testDeviceConfig_AdaptiveValues()
|