Lines Matching refs:lux
669 void BrightnessService::ProcessLightLux(float lux)
671 DISPLAY_HILOGD(FEAT_BRIGHTNESS, "ProcessLightLux, lux=%{public}f, mLightLux=%{public}f",
672 lux, mLightLuxManager.GetSmoothedLux());
684 NotifyLightChangeToAps(AMBIENT_LIGHT_TYPE, lux);
685 if (mLightLuxManager.IsNeedUpdateBrightness(lux)) {
686 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "UpdateLightLux, lux=%{public}f, mLightLux=%{public}f, isFirst=%{public}d",
687 lux, mLightLuxManager.GetSmoothedLux(), mLightLuxManager.GetIsFirstLux());
688 UpdateCurrentBrightnessLevel(lux, mLightLuxManager.GetIsFirstLux());
692 if (static_cast<uint32_t>(lux) < AMBIENT_LUX_LEVELS[index]) {
695 // Notify ambient lux change event to battery statistics
707 void BrightnessService::UpdateCurrentBrightnessLevel(float lux, bool isFastDuration)
709 uint32_t brightnessLevel = GetBrightnessLevel(lux);
722 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "UpdateCurrentBrightnessLevel lux=%{public}f, mBrightnessLevel=%{public}d, "\
723 "brightnessLevel=%{public}d, duration=%{public}d", lux, mBrightnessLevel, brightnessLevel, duration);
743 uint32_t BrightnessService::GetBrightnessLevel(float lux)
745 uint32_t brightnessLevel = static_cast<uint32_t>(mBrightnessCalculationManager.GetInterpolatedValue(lux) *
748 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "GetBrightnessLevel lux=%{public}f, brightnessLevel=%{public}d",
749 lux, brightnessLevel);