/base/powermgr/display_manager/service/native/src/ |
D | display_auto_brightness.cpp | 47 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()
|
D | display_power_mgr_service.cpp | 85 …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 …]
|
D | screen_controller.cpp | 47 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()
|
D | display_setting_helper.cpp | 79 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/ |
D | display.para | 15 const.display.brightness.min=5 16 const.display.brightness.default=102 17 const.display.brightness.max=255
|
D | display.para.dac | 14 const.display.brightness.="foundation:foundation:444"
|
/base/powermgr/battery_statistics/test/unittest/src/clienttest/ |
D | stats_display_test.cpp | 89 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/ |
D | stats_service_display_test.cpp | 113 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/ |
D | brightness.cpp | 67 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()
|
D | BUILD.gn | 16 ohos_shared_library("brightness") { 18 "${displaymgr_framework_path}/napi/brightness.cpp",
|
D | brightness_module.cpp | 107 Brightness brightness(env); in SetValue() local 108 brightness.SetValue(info); in SetValue()
|
/base/powermgr/display_manager/service/native/include/ |
D | display_auto_brightness.h | 38 uint32_t brightness; member
|
D | display_setting_helper.h | 31 …static ErrCode GetSettingBrightness(uint32_t& brightness, const std::string& key = SETTING_BRIGHTN…
|
D | display_power_mgr_service.h | 69 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/ |
D | sensor_illumination_task.cpp | 236 … 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/ |
D | setting_helper.cpp | 91 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()
|
D | setting_helper.h | 41 static void SetSettingBrightness(int32_t brightness);
|
/base/powermgr/battery_manager/charger/resources/ |
D | device.charge.group.cfg | 13 "chown composer_host composer_host /sys/class/backlight/backlight/brightness"
|
/base/security/selinux_adapter/sepolicy/ohos_policy/powermgr/display_manager/system/ |
D | parameter_contexts | 14 const.display.brightness. u:object_r:const_display_brightness_param:s0
|
/base/powermgr/display_manager/ |
D | README.md | 12 2. Adjusting the brightness of the display screen
|
/base/useriam/face_auth/services_ex/src/ |
D | screen_brightness_task.cpp | 151 void OverrideScreenBrightness(uint32_t brightness) in OverrideScreenBrightness() argument 154 if (!DisplayPowerMgrClient::GetInstance().OverrideBrightness(brightness, displayId)) { in OverrideScreenBrightness()
|
/base/startup/init/services/etc/ |
D | init.without_two_stages.cfg | 197 "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/ |
D | batterystats_sys_test.cpp | 160 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/ |
D | display_power_mgr_brightness_test.cpp | 77 uint32_t brightness = DisplayPowerMgrClient::GetInstance().GetBrightness(); variable 78 EXPECT_EQ(brightness, SET_BRIGHTNESS_VALUE);
|
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest008/ |
D | last_kmsg | 341 …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…
|