/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/ |
D | AutomaticBrightnessStrategy2.java | 75 private AutomaticBrightnessController mAutomaticBrightnessController; field in AutomaticBrightnessStrategy2 115 && mAutomaticBrightnessController != null; in setAutoBrightnessState() 173 if (automaticBrightnessController == mAutomaticBrightnessController) { in setAutomaticBrightnessController() 176 if (mAutomaticBrightnessController != null) { in setAutomaticBrightnessController() 177 mAutomaticBrightnessController.stop(); in setAutomaticBrightnessController() 179 mAutomaticBrightnessController = automaticBrightnessController; in setAutomaticBrightnessController() 266 float brightness = (mAutomaticBrightnessController != null) in getAutomaticScreenBrightness() 267 ? mAutomaticBrightnessController.getAutomaticScreenBrightness(brightnessEvent) in getAutomaticScreenBrightness() 297 (mAutomaticBrightnessController != null) in adjustAutomaticBrightnessStateIfValid() 298 ? mAutomaticBrightnessController.getAutomaticScreenBrightnessAdjustment() in adjustAutomaticBrightnessStateIfValid() [all …]
|
D | AutomaticBrightnessStrategy.java | 77 private AutomaticBrightnessController mAutomaticBrightnessController; field in AutomaticBrightnessStrategy 141 && mAutomaticBrightnessController != null; in setAutoBrightnessState() 227 if (automaticBrightnessController == mAutomaticBrightnessController) { in setAutomaticBrightnessController() 230 if (mAutomaticBrightnessController != null) { in setAutomaticBrightnessController() 231 mAutomaticBrightnessController.stop(); in setAutomaticBrightnessController() 233 mAutomaticBrightnessController = automaticBrightnessController; in setAutomaticBrightnessController() 373 float brightness = (mAutomaticBrightnessController != null) in getAutomaticScreenBrightness() 374 ? mAutomaticBrightnessController.getAutomaticScreenBrightness(brightnessEvent) in getAutomaticScreenBrightness() 399 (mAutomaticBrightnessController != null) in adjustAutomaticBrightnessStateIfValid() 400 ? mAutomaticBrightnessController.getAutomaticScreenBrightnessAdjustment() in adjustAutomaticBrightnessStateIfValid() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/ |
D | AutomaticBrightnessStrategyTest.java | 69 private AutomaticBrightnessController mAutomaticBrightnessController; field in AutomaticBrightnessStrategyTest 95 when(mAutomaticBrightnessController.hasUserDataPoints()).thenReturn(true); in before() 97 mAutomaticBrightnessController); in before() 121 verify(mAutomaticBrightnessController) in testAutoBrightnessState_AutoBrightnessDisabled() 145 verify(mAutomaticBrightnessController) in testAutoBrightnessState_DisplayIsOff() 169 verify(mAutomaticBrightnessController) in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow() 193 verify(mAutomaticBrightnessController) in testAutoBrightnessState_BrightnessReasonIsOverride() 219 verify(mAutomaticBrightnessController) in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow() 246 verify(mAutomaticBrightnessController) in testAutoBrightnessState_DisplayIsOn() 273 when(mAutomaticBrightnessController.isInIdleMode()).thenReturn(true); in testAutoBrightnessState_modeSwitch() [all …]
|
D | AutomaticBrightnessStrategy2Test.java | 63 private AutomaticBrightnessController mAutomaticBrightnessController; field in AutomaticBrightnessStrategy2Test 85 when(mAutomaticBrightnessController.hasUserDataPoints()).thenReturn(true); in before() 87 mAutomaticBrightnessController); in before() 111 verify(mAutomaticBrightnessController) in testAutoBrightnessState_AutoBrightnessDisabled() 135 verify(mAutomaticBrightnessController) in testAutoBrightnessState_DisplayIsOff() 159 verify(mAutomaticBrightnessController) in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesNotAllow() 183 verify(mAutomaticBrightnessController) in testAutoBrightnessState_BrightnessReasonIsOverride() 209 verify(mAutomaticBrightnessController) in testAutoBrightnessState_DisplayIsInDoze_ConfigDoesAllow() 236 verify(mAutomaticBrightnessController) in testAutoBrightnessState_DisplayIsOn() 264 verify(mAutomaticBrightnessController).configure(autoBrightnessState, in accommodateUserBrightnessChangesWorksAsExpected() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/brightness/ |
D | DisplayBrightnessController.java | 111 AutomaticBrightnessController mAutomaticBrightnessController; field in DisplayBrightnessController 386 if (mAutomaticBrightnessController == null) { in convertToNits() 389 return mAutomaticBrightnessController.convertToNits(brightness); in convertToNits() 402 if (mAutomaticBrightnessController == null) { in convertToAdjustedNits() 405 return mAutomaticBrightnessController.convertToAdjustedNits(brightness); in convertToAdjustedNits() 417 if (mAutomaticBrightnessController == null) { in getBrightnessFromNits() 420 return mAutomaticBrightnessController.getBrightnessFromNits(nits); in getBrightnessFromNits() 529 mAutomaticBrightnessController = automaticBrightnessController; in setAutomaticBrightnessController()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayPowerController.java | 454 private AutomaticBrightnessController mAutomaticBrightnessController; field in DisplayPowerController 564 if (mAutomaticBrightnessController != null) { in DisplayPowerController() 565 mAutomaticBrightnessController.update(); in DisplayPowerController() 662 if (mAutomaticBrightnessController == null) { in handleRbcChanged() 671 mAutomaticBrightnessController.recalculateSplines(mIsRbcActive, adjustedNits); in handleRbcChanged() 716 if (mAutomaticBrightnessController != null) { in handleOnSwitchUser() 717 mAutomaticBrightnessController.resetShortTermModel(); in handleOnSwitchUser() 817 if (mAutomaticBrightnessController == null) { in getDefaultBrightnessConfiguration() 820 return mAutomaticBrightnessController.getDefaultConfig(); in getDefaultBrightnessConfiguration() 918 if (mAutomaticBrightnessController != null) { in stop() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/ |
D | DisplayBrightnessControllerTest.java | 418 mDisplayBrightnessController.mAutomaticBrightnessController = automaticBrightnessController; in testDoesNotSetBrightnessNits_settingMaxBrightnessAndStoredValueGreater() 436 mDisplayBrightnessController.mAutomaticBrightnessController = automaticBrightnessController; in testSetsBrightnessNits_storedValueLower() 454 mDisplayBrightnessController.mAutomaticBrightnessController = automaticBrightnessController; in testSetsBrightnessNits_lowerThanMax() 555 mDisplayBrightnessController.mAutomaticBrightnessController); in setupAutoBrightness_setsAutomaticStrategyAndAutoBrightnessFallbackStrategy()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | DisplayPowerControllerTest.java | 2193 private final AutomaticBrightnessController mAutomaticBrightnessController; field in DisplayPowerControllerTest.TestInjector 2219 mAutomaticBrightnessController = automaticBrightnessController; in TestInjector() 2289 return mAutomaticBrightnessController; in getAutomaticBrightnessController()
|