Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java508 rawPolicy.enableNightMode && !mAutomotiveProjectionActive.get(), in updatePolicyDependenciesLocked()
647 public final boolean enableNightMode; field in BatterySaverPolicy.Policy
688 boolean enableNightMode, in Policy() argument
707 this.enableNightMode = enableNightMode; in Policy()
741 enableNightMode, in Policy()
794 .setEnableNightMode(enableNightMode) in toConfig()
864 final boolean enableNightMode = userSettingDeviceConfigMediator.getBoolean( in fromSettings()
865 KEY_ENABLE_NIGHT_MODE + configSuffix, defaultPolicy.enableNightMode); in fromSettings()
892 enableNightMode, in fromSettings()
918 && enableNightMode == other.enableNightMode in equals()
[all …]
/frameworks/native/services/powermanager/include/android/
DBatterySaverPolicyConfig.h48 bool enableNightMode = false,
67 mEnableNightMode(enableNightMode), in mAdjustBrightnessFactor()
/frameworks/base/core/tests/coretests/jni/
DNativePowerManagerTest.cpp54 jfieldID enableNightMode; member
128 env->GetBooleanField(bsObj, gBSPCFieldIds.enableNightMode), in nativeObtainBSPConfigParcel()
178 env->GetBooleanField(bsObj, gBSPCFieldIds.enableNightMode), in nativeUnparcelAndVerifyBSPConfig()
238 gBSPCFieldIds.enableNightMode = GetFieldIDOrDie(env, bspcClazz, "mEnableNightMode", "Z"); in JNI_OnLoad()
/frameworks/base/core/java/android/os/
DBatterySaverPolicyConfig.java519 public Builder setEnableNightMode(boolean enableNightMode) { in setEnableNightMode() argument
520 mEnableNightMode = enableNightMode; in setEnableNightMode()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java460 assertTrue(policy.enableNightMode); in testUserSettingsOverrideDeviceConfig()
506 assertFalse(policy.enableNightMode); in testDeviceConfigOverridesDefaults()
583 assertTrue(policy.enableNightMode); in testDeviceConfig_AdaptiveValues()