/base/powermgr/display_manager/brightness_manager/src/ |
H A D | config_parser.cpp | 44 for (int displayId = 0; displayId < DISPLAY_ID_MAX; displayId++) {
in Initialize() 45 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "[%{public}d] Already init!", displayId);
in Initialize() 47 ParseConfig(displayId, brightnessConfig);
in Initialize() 48 PrintConfig(displayId, brightnessConfig);
in Initialize() 49 mConfig[displayId] = brightnessConfig;
in Initialize() 64 bool ConfigParse::ParseConfig(int displayId, Config& data) const
in ParseConfig() argument 66 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "[%{public}d] parse Config start!", displayId);
in ParseConfig() 67 CalculationConfigParser::ParseConfig(displayId, dat in ParseConfig() 74 PrintConfig(int displayId, const Config& data) const PrintConfig() argument [all...] |
H A D | calculation_config_parser.cpp | 32 bool CalculationConfigParser::ParseConfig(int displayId, CalculationConfig::Data& data)
in ParseConfig() argument 34 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "[%{public}d] parse CalculationConfig start!", displayId);
in ParseConfig() 35 const Json::Value root = ConfigParserBase::Get().LoadConfigRoot(displayId, CONFIG_NAME);
in ParseConfig() 42 DISPLAY_HILOGW(FEAT_BRIGHTNESS, "[%{public}d] parse defaultBrightness error!", displayId);
in ParseConfig() 45 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "[%{public}d] parse CalculationConfig over!", displayId);
in ParseConfig() 49 void CalculationConfigParser::PrintConfig(int displayId, const CalculationConfig::Data& data)
in PrintConfig() argument 51 std::string text = std::to_string(displayId);
in PrintConfig()
|
H A D | config_parser_base.cpp | 56 for (int displayId = 0; displayId < DISPLAY_ID_MAX; displayId++) {
in Initialize() 57 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "[%{public}d] Already init!", displayId);
in Initialize() 58 mConfigInfo[displayId] = ConfigInfo{};
in Initialize() 63 std::unordered_map<int, ConfigParserBase::ConfigInfo>::iterator ConfigParserBase::GetDispIter(int displayId)
in GetDispIter() argument 65 std::unordered_map<int, ConfigInfo>::iterator itDisp = mConfigInfo.find(displayId);
in GetDispIter() 67 DISPLAY_HILOGW(FEAT_BRIGHTNESS, "[%{public}d]Failed to find config", displayId);
in GetDispIter() 73 int displayId) const
in GetConstDispIter() 75 std::unordered_map<int, ConfigInfo>::const_iterator itDisp = mConfigInfo.find(displayId);
in GetConstDispIter() 82 LoadConfigPath(int displayId, const std::string& configName) const LoadConfigPath() argument 127 LoadConfigRoot(int displayId, const std::string& configName) const LoadConfigRoot() argument [all...] |
H A D | brightness_action.cpp | 29 BrightnessAction::BrightnessAction(uint32_t displayId) : mDisplayId(displayId) in BrightnessAction() argument 37 void BrightnessAction::SetDisplayId(uint32_t displayId) in SetDisplayId() argument 39 mDisplayId = displayId; in SetDisplayId() 63 DISPLAY_HILOGI(FEAT_STATE, "state=%{public}u displayId=%{public}u", static_cast<uint32_t>(state), mDisplayId); in GetDisplayState() 73 DISPLAY_HILOGD(FEAT_BRIGHTNESS, "displayId=%{public}u, brightness=%{public}u", mDisplayId, mBrightness); in GetBrightness() 82 bool BrightnessAction::SetBrightness(uint32_t displayId, uint32_t value) in SetBrightness() argument 84 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "SetBrightness mDisplayId=%{public}u, displayId=%{public}u ,brightness=%{public}u", in SetBrightness() 85 mDisplayId, displayId, value); in SetBrightness() 86 DISPLAY_HILOGD(FEAT_BRIGHTNESS, "displayId in SetBrightness() [all...] |
H A D | lux_filter_config_parser.cpp | 38 int displayId, std::unordered_map<std::string, LuxFilterConfig::Data>& data)
in ParseConfig() 40 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "[%{public}d] parse LuxFilterConfig start!", displayId);
in ParseConfig() 41 const Json::Value root = ConfigParserBase::Get().LoadConfigRoot(displayId, CONFIG_NAME);
in ParseConfig() 75 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "[%{public}d] parse LuxFilterConfig over!", displayId);
in ParseConfig() 80 int displayId, const std::unordered_map<std::string, LuxFilterConfig::Data>& data)
in PrintConfig() 82 std::string text = std::to_string(displayId).append(" ");
in PrintConfig() 37 ParseConfig( int displayId, std::unordered_map<std::string, LuxFilterConfig::Data>& data) ParseConfig() argument 79 PrintConfig( int displayId, const std::unordered_map<std::string, LuxFilterConfig::Data>& data) PrintConfig() argument
|
H A D | calculation_curve.cpp | 41 int displayId = 0;
in InitParameters() local 44 std::unordered_map<int, Config>::const_iterator itDisp = brightnessConfig.find(displayId);
in InitParameters() 46 DISPLAY_HILOGE(FEAT_BRIGHTNESS, "[%{public}d]Failed to find config", displayId);
in InitParameters() 98 return displayModeMap[displayMode].displayId;
in GetDisplayIdWithDisplayMode() 116 return displayModeMap[foldStatus].displayId;
in GetDisplayIdWithFoldstatus()
|
H A D | lux_threshold_config_parser.cpp | 70 bool LuxThresholdConfigParser::ParseConfig(int displayId, LuxThresholdConfig::Data& data)
in ParseConfig() argument 72 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "[%{public}d] parse LuxThresholdConfigParser start!", displayId);
in ParseConfig() 73 const Json::Value root = ConfigParserBase::Get().LoadConfigRoot(displayId, CONFIG_NAME);
in ParseConfig() 107 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "[%{public}d] parse LuxThresholdConfigParser over!", displayId);
in ParseConfig() 112 int displayId, const LuxThresholdConfig::Data& data)
in PrintConfig() 114 std::string text = std::to_string(displayId).append(" ");
in PrintConfig() 111 PrintConfig( int displayId, const LuxThresholdConfig::Data& data) PrintConfig() argument
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_display_listener_adapter_impl.cpp | 24 void ArkDisplayListenerAdapterImpl::OnCreate(uint64_t displayId) in OnCreate() argument 26 real_->OnCreate(displayId); in OnCreate() 29 void ArkDisplayListenerAdapterImpl::OnDestroy(uint64_t displayId) in OnDestroy() argument 31 real_->OnDestroy(displayId); in OnDestroy() 34 void ArkDisplayListenerAdapterImpl::OnChange(uint64_t displayId) in OnChange() argument 36 real_->OnChange(displayId); in OnChange()
|
H A D | ark_display_listener_adapter_impl.h | 29 void OnCreate(uint64_t displayId) override; 31 void OnDestroy(uint64_t displayId) override; 33 void OnChange(uint64_t displayId) override;
|
/base/powermgr/display_manager/state_manager/interfaces/inner_api/native/include/ |
H A D | idisplay_power_mgr.h | 35 virtual bool SetBrightness(uint32_t value, uint32_t displayId, bool continuous) = 0; 38 virtual bool DiscountBrightness(double discount, uint32_t displayId) = 0; 39 virtual bool OverrideBrightness(uint32_t value, uint32_t displayId) = 0; 41 virtual bool RestoreBrightness(uint32_t displayId) = 0; 42 virtual uint32_t GetBrightness(uint32_t displayId) = 0; 50 virtual bool BoostBrightness(int32_t timeoutMs, uint32_t displayId) = 0; 51 virtual bool CancelBoostBrightness(uint32_t displayId) = 0; 52 virtual uint32_t GetDeviceBrightness(uint32_t displayId) = 0; 53 virtual bool SetCoordinated(bool coordinated, uint32_t displayId) = 0;
|
H A D | display_power_mgr_client.h | 40 bool SetBrightness(uint32_t value, uint32_t displayId = 0, bool continuous = false); 43 bool DiscountBrightness(double discount, uint32_t displayId = 0); 44 bool OverrideBrightness(uint32_t value, uint32_t displayId = 0); 46 bool RestoreBrightness(uint32_t displayId = 0); 47 uint32_t GetBrightness(uint32_t displayId = 0); 55 bool BoostBrightness(int32_t timeoutMs, uint32_t displayId = 0); 56 bool CancelBoostBrightness(uint32_t displayId = 0); 57 uint32_t GetDeviceBrightness(uint32_t displayId = 0); 58 bool SetCoordinated(bool coordinated, uint32_t displayId = 0);
|
/base/inputmethod/imf/frameworks/kits/extension/include/ |
H A D | js_inputmethod_extension.h | 143 void OnCreate(Rosen::DisplayId displayId) override 147 inputMethodSptr->OnCreate(displayId); 151 void OnDestroy(Rosen::DisplayId displayId) override 155 inputMethodSptr->OnDestroy(displayId); 159 void OnChange(Rosen::DisplayId displayId) override 163 inputMethodSptr->OnChange(displayId); 171 void OnCreate(Rosen::DisplayId displayId); 172 void OnDestroy(Rosen::DisplayId displayId); 173 void OnChange(Rosen::DisplayId displayId);
|
/base/powermgr/display_manager/state_manager/service/zidl/include/ |
H A D | display_power_mgr_proxy.h | 43 virtual bool SetBrightness(uint32_t value, uint32_t displayId, bool continuous) override; 46 virtual bool DiscountBrightness(double value, uint32_t displayId) override; 47 virtual bool OverrideBrightness(uint32_t value, uint32_t displayId) override; 49 virtual bool RestoreBrightness(uint32_t displayId) override; 50 virtual uint32_t GetBrightness(uint32_t displayId) override; 58 virtual bool BoostBrightness(int32_t timeoutMs, uint32_t displayId) override; 59 virtual bool CancelBoostBrightness(uint32_t displayId) override; 60 virtual uint32_t GetDeviceBrightness(uint32_t displayId) override; 61 virtual bool SetCoordinated(bool coordinated, uint32_t displayId) override;
|
/base/powermgr/display_manager/state_manager/frameworks/native/ |
H A D | display_power_mgr_client.cpp | 120 bool DisplayPowerMgrClient::SetBrightness(uint32_t value, uint32_t displayId, bool continuous) in SetBrightness() argument 124 return proxy->SetBrightness(value, displayId, continuous); in SetBrightness() 127 bool DisplayPowerMgrClient::DiscountBrightness(double discount, uint32_t displayId) in DiscountBrightness() argument 131 return proxy->DiscountBrightness(discount, displayId); in DiscountBrightness() 134 bool DisplayPowerMgrClient::OverrideBrightness(uint32_t value, uint32_t displayId) in OverrideBrightness() argument 138 return proxy->OverrideBrightness(value, displayId); in OverrideBrightness() 148 bool DisplayPowerMgrClient::RestoreBrightness(uint32_t displayId) in RestoreBrightness() argument 152 return proxy->RestoreBrightness(displayId); in RestoreBrightness() 155 uint32_t DisplayPowerMgrClient::GetBrightness(uint32_t displayId) in GetBrightness() argument 159 return proxy->GetBrightness(displayId); in GetBrightness() 216 BoostBrightness(int32_t timeoutMs, uint32_t displayId) BoostBrightness() argument 223 CancelBoostBrightness(uint32_t displayId) CancelBoostBrightness() argument 230 GetDeviceBrightness(uint32_t displayId) GetDeviceBrightness() argument 237 SetCoordinated(bool coordinated, uint32_t displayId) SetCoordinated() argument [all...] |
/base/powermgr/display_manager/state_manager/service/zidl/src/ |
H A D | display_power_mgr_stub.cpp | 212 uint32_t displayId = 0; in SetBrightnessStub() local 216 RETURN_IF_READ_PARCEL_FAILED_WITH_RET(data, Uint32, displayId, E_READ_PARCEL_ERROR); in SetBrightnessStub() 219 bool ret = SetBrightness(value, displayId, continuous); in SetBrightnessStub() 232 uint32_t displayId = 0; in DiscountBrightnessStub() local 235 RETURN_IF_READ_PARCEL_FAILED_WITH_RET(data, Uint32, displayId, E_READ_PARCEL_ERROR); in DiscountBrightnessStub() 237 bool ret = DiscountBrightness(discount, displayId); in DiscountBrightnessStub() 248 uint32_t displayId = 0; in OverrideBrightnessStub() local 251 RETURN_IF_READ_PARCEL_FAILED_WITH_RET(data, Uint32, displayId, E_READ_PARCEL_ERROR); in OverrideBrightnessStub() 253 bool ret = OverrideBrightness(value, displayId); in OverrideBrightnessStub() 277 uint32_t displayId in RestoreBrightnessStub() local 291 uint32_t displayId = 0; GetBrightnessStub() local 403 uint32_t displayId = 0; CancelBoostBrightnessStub() local 417 uint32_t displayId = 0; GetDeviceBrightnessStub() local 432 uint32_t displayId = 0; SetCoordinatedStub() local [all...] |
H A D | display_power_callback_proxy.cpp | 27 void DisplayPowerCallbackProxy::OnDisplayStateChanged(uint32_t displayId, DisplayState state, uint32_t reason) in OnDisplayStateChanged() argument 41 RETURN_IF_WRITE_PARCEL_FAILED_NO_RET(data, Uint32, displayId); in OnDisplayStateChanged()
|
/base/msdp/device_status/services/interaction/drag/src/ |
H A D | drag_smooth_processor.cpp | 111 "y:%{private}f, timestamp:%{public}" PRId64 "displayId:%{public}d, sampling nanoTimestamp:%{public}" PRId64, in Resample() 112 latestEvent.displayX, latestEvent.displayY, latestEvent.timestamp, latestEvent.displayId, nanoTimestamp); in Resample() 128 "y:%{private}f, timestamp:%{public}" PRId64 "displayId:%{public}d, currentAvgEvent x:%{private}f" in GetInterpolatedEvent() 129 "y:%{private}f, timestamp:%{public}" PRId64 "displayId:%{public}d, nanoTimestamp: %{public}" PRId64, in GetInterpolatedEvent() 130 historyAvgEvent.displayX, historyAvgEvent.displayY, historyAvgEvent.timestamp, historyAvgEvent.displayId, in GetInterpolatedEvent() 131 currentAvgEvent.displayX, currentAvgEvent.displayY, currentAvgEvent.timestamp, currentAvgEvent.displayId, in GetInterpolatedEvent() 142 event.displayId = currentAvgEvent.displayId; in GetInterpolatedEvent() 149 event.displayId = currentAvgEvent.displayId; in GetInterpolatedEvent() [all...] |
H A D | display_change_event_listener.cpp | 35 void DisplayChangeEventListener::OnCreate(Rosen::DisplayId displayId) in OnCreate() argument 37 FI_HILOGI("display:%{public}" PRIu64"", displayId); in OnCreate() 40 void DisplayChangeEventListener::OnDestroy(Rosen::DisplayId displayId) in OnDestroy() argument 42 FI_HILOGI("display:%{public}" PRIu64"", displayId); in OnDestroy() 45 void DisplayChangeEventListener::OnChange(Rosen::DisplayId displayId) in OnChange() argument 69 sptr<Rosen::Display> display = Rosen::DisplayManager::GetInstance().GetDisplayById(displayId); in OnChange() 71 FI_HILOGD("Get display info failed, display:%{public}" PRIu64"", displayId); in OnChange()
|
/base/powermgr/display_manager/state_manager/service/native/include/ |
H A D | display_power_mgr_service.h | 50 virtual bool SetBrightness(uint32_t value, uint32_t displayId, bool continuous = false) override; 53 virtual bool DiscountBrightness(double discount, uint32_t displayId) override; 54 virtual bool OverrideBrightness(uint32_t value, uint32_t displayId) override; 56 virtual bool RestoreBrightness(uint32_t displayId) override; 57 virtual uint32_t GetBrightness(uint32_t displayId) override; 65 virtual bool BoostBrightness(int32_t timeoutMs, uint32_t displayId) override; 66 virtual bool CancelBoostBrightness(uint32_t displayId) override; 67 virtual uint32_t GetDeviceBrightness(uint32_t displayId) override; 68 virtual bool SetCoordinated(bool coordinated, uint32_t displayId) override; 73 void NotifyStateChangeCallback(uint32_t displayId, DisplayStat [all...] |
/base/powermgr/display_manager/brightness_manager/include/ |
H A D | brightness_action.h | 32 explicit BrightnessAction(uint32_t displayId); 43 void SetDisplayId(uint32_t displayId); 49 bool SetBrightness(uint32_t displayId, uint32_t value);
|
H A D | config_parser_base.h | 39 const std::string LoadConfigPath(int displayId, const std::string& configName) const; 40 const Json::Value LoadConfigRoot(int displayId, const std::string& configName) const; 57 std::unordered_map<int, ConfigInfo>::iterator GetDispIter(int displayId); 58 std::unordered_map<int, ConfigInfo>::const_iterator GetConstDispIter(int displayId) const;
|
H A D | lux_filter_config_parser.h | 43 int displayId, std::unordered_map<std::string, LuxFilterConfig::Data>& data); 45 int displayId, const std::unordered_map<std::string, LuxFilterConfig::Data>& data);
|
/base/powermgr/display_manager/state_manager/service/native/src/ |
H A D | display_power_mgr_service.cpp | 306 bool DisplayPowerMgrService::SetBrightness(uint32_t value, uint32_t displayId, bool continuous) in SetBrightness() argument 314 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "SetBrightness displayId=%{public}u, value=%{public}u, continuous=%{public}d", in SetBrightness() 315 displayId, brightness, continuous); in SetBrightness() 319 bool DisplayPowerMgrService::DiscountBrightness(double discount, uint32_t displayId) in DiscountBrightness() argument 324 auto iter = controllerMap_.find(displayId); in DiscountBrightness() 334 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "DiscountBrightness displayId=%{public}u, discount-%{public}lf", in DiscountBrightness() 335 displayId, safeDiscount); in DiscountBrightness() 343 bool DisplayPowerMgrService::OverrideBrightness(uint32_t value, uint32_t displayId) in OverrideBrightness() argument 349 DISPLAY_HILOGI(COMP_SVC, "OverrideBrightness displayId=%{public}u, value=%{public}u, duration=%{public}d", in OverrideBrightness() 350 displayId, brightnes in OverrideBrightness() 374 RestoreBrightness(uint32_t displayId) RestoreBrightness() argument 392 GetBrightness(uint32_t displayId) GetBrightness() argument 533 BoostBrightness(int32_t timeoutMs, uint32_t displayId) BoostBrightness() argument 545 CancelBoostBrightness(uint32_t displayId) CancelBoostBrightness() argument 560 GetDeviceBrightness(uint32_t displayId) GetDeviceBrightness() argument 570 SetCoordinated(bool coordinated, uint32_t displayId) SetCoordinated() argument 591 NotifyStateChangeCallback(uint32_t displayId, DisplayState state, uint32_t reason) NotifyStateChangeCallback() argument [all...] |
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/ |
H A D | ark_display_manager_adapter.h | 29 virtual void OnCreate(uint64_t displayId) = 0; 32 virtual void OnDestroy(uint64_t displayId) = 0; 35 virtual void OnChange(uint64_t displayId) = 0;
|
/base/msdp/device_status/services/interaction/drag/include/ |
H A D | display_change_event_listener.h | 32 void OnCreate(Rosen::DisplayId displayId) override; 33 void OnDestroy(Rosen::DisplayId displayId) override; 34 void OnChange(Rosen::DisplayId displayId) override;
|