Home
last modified time | relevance | path

Searched refs:brightness (Results 1 – 25 of 27) sorted by relevance

12

/base/powermgr/display_manager/service/native/src/
Ddisplay_auto_brightness.cpp47 uint32_t brightness = BRIGHTNESS_MAX; in CalculateAutoBrightness() local
49 return brightness; in CalculateAutoBrightness()
55 brightness = static_cast<uint32_t>(lastNode.brightness + (scalar - lastNode.lux) * in CalculateAutoBrightness()
56 ((curNode.brightness - lastNode.brightness) / (curNode.lux - lastNode.lux))); in CalculateAutoBrightness()
57 return brightness; in CalculateAutoBrightness()
60 return brightness; in CalculateAutoBrightness()
Ddisplay_power_mgr_service.cpp85 …uint32_t brightness = DelayedSpSingleton<DisplayPowerMgrService>::GetInstance()->GetBrightness(mai… in SetBootCompletedBrightness() local
86 …DelayedSpSingleton<DisplayPowerMgrService>::GetInstance()->SetBrightness(brightness, mainDisplayId… in SetBootCompletedBrightness()
234 auto brightness = GetSafeBrightness(value); in SetBrightness() local
235 …GI(FEAT_BRIGHTNESS, "SetBrightness displayId=%{public}u, value=%{public}u", displayId, brightness); in SetBrightness()
240 return iter->second->SetBrightness(brightness); in SetBrightness()
252 auto brightness = iter->second->GetBrightness(); in DiscountBrightness() local
253 auto safeDiscount = GetSafeDiscount(discount, brightness); in DiscountBrightness()
266 auto brightness = GetSafeBrightness(value); in OverrideBrightness() local
267 …LOGI(COMP_SVC, "OverrideBrightness displayId=%{public}u, value=%{public}u", displayId, brightness); in OverrideBrightness()
272 return iter->second->OverrideBrightness(brightness); in OverrideBrightness()
[all …]
Dscreen_controller.cpp47 animateCallback_ = make_shared<AnimateCallbackImpl>(action_, [this](uint32_t brightness) { in ScreenController() argument
48 SetSettingBrightness(brightness); in ScreenController()
67 …auto brightness = DisplayPowerMgrService::GetSafeBrightness(static_cast<uint32_t>(currentValue * d… in OnChanged() local
68 bool isSucc = action_->SetBrightness(brightness); in OnChanged()
318 …auto brightness = DisplayPowerMgrService::GetSafeBrightness(static_cast<uint32_t>(value * discount… in UpdateBrightness() local
319 bool isSucc = action_->SetBrightness(brightness); in UpdateBrightness()
321 isSucc ? "succ" : "failed", brightness); in UpdateBrightness()
Ddisplay_setting_helper.cpp79 ErrCode DisplaySettingHelper::GetSettingBrightness(uint32_t& brightness, const std::string& key) in GetSettingBrightness() argument
88 brightness = static_cast<uint32_t>(value); in GetSettingBrightness()
/base/powermgr/display_manager/service/etc/
Ddisplay.para15 const.display.brightness.min=5
16 const.display.brightness.default=102
17 const.display.brightness.max=255
Ddisplay.para.dac14 const.display.brightness.="foundation:foundation:444"
/base/powermgr/battery_statistics/test/unittest/src/clienttest/
Dstats_display_test.cpp89 int32_t brightness = 100; variable
94 HiSysEvent::EventType::STATISTIC, "BRIGHTNESS", brightness);
120 int32_t brightness = 120; variable
125 HiSysEvent::EventType::STATISTIC, "BRIGHTNESS", brightness);
150 int32_t brightness = 100; variable
157 HiSysEvent::EventType::STATISTIC, "BRIGHTNESS", brightness);
162 double average = screenBrightnessAverage * brightness + screenOnAverage;
184 int32_t brightness = 100; variable
191 HiSysEvent::EventType::STATISTIC, "BRIGHTNESS", brightness);
213 int32_t brightness = 100; variable
[all …]
/base/powermgr/battery_statistics/test/unittest/src/servicetest/
Dstats_service_display_test.cpp113 int32_t brightness = 100; variable
120 HiSysEvent::EventType::STATISTIC, "BRIGHTNESS", brightness);
149 int32_t brightness = 120; variable
156 HiSysEvent::EventType::STATISTIC, "BRIGHTNESS", brightness);
184 int32_t brightness = 100; variable
193 HiSysEvent::EventType::STATISTIC, "BRIGHTNESS", brightness);
199 double average = screenBrightnessAverage * brightness + screenOnAverage;
223 int32_t brightness = 100; variable
232 HiSysEvent::EventType::STATISTIC, "BRIGHTNESS", brightness);
257 int32_t brightness = 100; variable
[all …]
/base/powermgr/display_manager/frameworks/napi/
Dbrightness.cpp67 uint32_t brightness = brightnessInfo_.GetBrightness(); in GetValue() local
68 if (brightness < MIN_BRIGHTNESS || brightness > MAX_BRIGHTNESS) { in GetValue()
71 result_.SetResult(BRIGHTNESS_VALUE, brightness); in GetValue()
110 int32_t brightness = MIN_BRIGHTNESS; in SystemSetValue() local
113 napi_get_value_int32(env_, napiVal, &brightness); in SystemSetValue()
114 brightnessInfo_.SetBrightness(brightness); in SystemSetValue()
283 uint32_t brightness = DisplayPowerMgrClient::GetInstance().GetBrightness(); in GetBrightness() local
284 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "Get brightness: %{public}d", brightness); in GetBrightness()
285 return brightness; in GetBrightness()
DBUILD.gn16 ohos_shared_library("brightness") {
18 "${displaymgr_framework_path}/napi/brightness.cpp",
Dbrightness_module.cpp107 Brightness brightness(env); in SetValue() local
108 brightness.SetValue(info); in SetValue()
/base/powermgr/display_manager/service/native/include/
Ddisplay_auto_brightness.h38 uint32_t brightness; member
Ddisplay_setting_helper.h31 …static ErrCode GetSettingBrightness(uint32_t& brightness, const std::string& key = SETTING_BRIGHTN…
Ddisplay_power_mgr_service.h69 static double GetSafeDiscount(double discount, uint32_t brightness);
104 bool CalculateBrightness(float scalar, int32_t& brightness, int32_t& change);
/base/useriam/fingerprint_auth/services_ex/src/
Dsensor_illumination_task.cpp236 … uint32_t brightness = DisplayPowerMgr::DisplayPowerMgrClient::GetInstance().GetDeviceBrightness(); in DrawSurfaceNode() local
237 IF_FALSE_LOGE_AND_RETURN_VAL(brightness != INVALID_BRIGHTNESS, ResultCode::GENERAL_ERROR); in DrawSurfaceNode()
238 IAM_LOGI("get device brightness %{public}u", brightness); in DrawSurfaceNode()
240 if (brightness == brightness_) { in DrawSurfaceNode()
244 brightness_ = brightness; in DrawSurfaceNode()
/base/powermgr/power_manager/services/native/src/setting/
Dsetting_helper.cpp91 void SettingHelper::SetSettingBrightness(int32_t brightness) in SetSettingBrightness() argument
94 ErrCode ret = provider.PutIntValue(SETTING_BRIGHTNESS_KEY, brightness); in SetSettingBrightness()
97 …MP_UTILS, "set setting brightness failed, brightness=%{public}d, ret=%{public}d", brightness, ret); in SetSettingBrightness()
Dsetting_helper.h41 static void SetSettingBrightness(int32_t brightness);
/base/powermgr/battery_manager/charger/resources/
Ddevice.charge.group.cfg13 "chown composer_host composer_host /sys/class/backlight/backlight/brightness"
/base/security/selinux_adapter/sepolicy/ohos_policy/powermgr/display_manager/system/
Dparameter_contexts14 const.display.brightness. u:object_r:const_display_brightness_param:s0
/base/powermgr/display_manager/
DREADME.md12 2. Adjusting the brightness of the display screen
/base/useriam/face_auth/services_ex/src/
Dscreen_brightness_task.cpp151 void OverrideScreenBrightness(uint32_t brightness) in OverrideScreenBrightness() argument
154 if (!DisplayPowerMgrClient::GetInstance().OverrideBrightness(brightness, displayId)) { in OverrideScreenBrightness()
/base/startup/init/services/etc/
Dinit.without_two_stages.cfg197 "chown system system /sys/class/leds/red/brightness",
198 "chown system system /sys/class/leds/green/brightness",
199 "chown system system /sys/class/leds/blue/brightness",
/base/powermgr/battery_statistics/test/systemtest/src/
Dbatterystats_sys_test.cpp160 int32_t brightness = 150; variable
167 HiviewDFX::HiSysEvent::EventType::STATISTIC, "BRIGHTNESS", brightness);
172 double average = screenBrightnessAverage * brightness + screenOnAverage;
/base/powermgr/display_manager/test/unittest/src/
Ddisplay_power_mgr_brightness_test.cpp77 uint32_t brightness = DisplayPowerMgrClient::GetInstance().GetBrightness(); variable
78 EXPECT_EQ(brightness, SET_BRIGHTNESS_VALUE);
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest008/
Dlast_kmsg341 …text.c:184]Exec cmd 'chown light_host light_host /sys/class/leds/blue/brightness' in sub init u:r…
346 …ntext.c:184]Exec cmd 'chown light_host light_host /sys/class/leds/red/brightness' in sub init u:r…
351 …ext.c:184]Exec cmd 'chown light_host light_host /sys/class/leds/green/brightness' in sub init u:r…
774 …cmd 'chown composer_host composer_host /sys/class/backlight/backlight/brightness' in sub init u:r…

12