Home
last modified time | relevance | path

Searched refs:gradualDuration (Results 1 – 3 of 3) sorted by relevance

/base/powermgr/display_manager/service/native/src/
Dscreen_controller.cpp152 bool ScreenController::SetBrightness(uint32_t value, uint32_t gradualDuration) in SetBrightness() argument
160 return UpdateBrightness(value, gradualDuration, true); in SetBrightness()
178 bool ScreenController::DiscountBrightness(double discount, uint32_t gradualDuration) in DiscountBrightness() argument
190 return UpdateBrightness(screenOnBrightness, gradualDuration); in DiscountBrightness()
193 bool ScreenController::OverrideBrightness(uint32_t value, uint32_t gradualDuration) in OverrideBrightness() argument
204 return UpdateBrightness(value, gradualDuration); in OverrideBrightness()
207 bool ScreenController::RestoreBrightness(uint32_t gradualDuration) in RestoreBrightness() argument
214 return UpdateBrightness(cachedSettingBrightness_, gradualDuration, true); in RestoreBrightness()
222 bool ScreenController::BoostBrightness(uint32_t timeoutMs, uint32_t gradualDuration) in BoostBrightness() argument
233 ret = UpdateBrightness(maxBrightness, gradualDuration); in BoostBrightness()
[all …]
Ddisplay_power_mgr_service.cpp587 uint32_t gradualDuration = floor(changeBrightness / discountStride) * animationUpdateTime; in AmbientLightCallback() local
588 pms->AdjustBrightness(mainDispId, brightness, gradualDuration); in AmbientLightCallback()
/base/powermgr/display_manager/service/native/include/
Dscreen_controller.h57 bool SetBrightness(uint32_t value, uint32_t gradualDuration = 0);
62 bool DiscountBrightness(double discount, uint32_t gradualDuration = 0);
63 bool OverrideBrightness(uint32_t value, uint32_t gradualDuration = 0);
64 bool RestoreBrightness(uint32_t gradualDuration = 0);
67 bool BoostBrightness(uint32_t timeoutMs, uint32_t gradualDuration = 0);
68 bool CancelBoostBrightness(uint32_t gradualDuration = 0);
85 bool UpdateBrightness(uint32_t value, uint32_t gradualDuration = 0, bool updateSetting = false);