Home
last modified time | relevance | path

Searched refs:fontWeightScale (Results 1 - 25 of 30) sorted by relevance

12

/foundation/arkui/ui_appearance/services/src/
H A Dui_appearance_ability_stub.cpp93 std::string fontWeightScale; in OnGetFontWeightScaleInner() local
94 auto state = GetFontWeightScale(fontWeightScale); in OnGetFontWeightScaleInner()
100 ret = reply.WriteString(fontWeightScale); in OnGetFontWeightScaleInner()
111 std::string fontWeightScale; in OnSetFontWeightScaleInner() local
112 auto ret = data.ReadString(fontWeightScale); in OnSetFontWeightScaleInner()
117 ret = reply.WriteInt32(SetFontWeightScale(fontWeightScale)); in OnSetFontWeightScaleInner()
H A Dui_appearance_ability.cpp205 tmpParam.fontWeightScale = fontWeight; in DoInitProcess()
218 config.AddItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_WEIGHT_SCALE, tmpParam.fontWeightScale); in UpdateCurrentUserConfiguration()
225 SetParameterWrap(FONT_Weight_SCAL_FOR_USER0, tmpParam.fontWeightScale); in UpdateCurrentUserConfiguration()
565 int32_t UiAppearanceAbility::OnSetFontWeightScale(const int32_t userId, std::string& fontWeightScale) in OnSetFontWeightScale() argument
569 ret = config.AddItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_WEIGHT_SCALE, fontWeightScale); in OnSetFontWeightScale()
571 LOGE("AddItem failed, fontWeightScale = %{public}s", fontWeightScale.c_str()); in OnSetFontWeightScale()
580 usersParam_[userId].fontWeightScale = fontWeightScale; in OnSetFontWeightScale()
583 tmpParam.fontWeightScale in OnSetFontWeightScale()
598 SetFontWeightScale(std::string& fontWeightScale) SetFontWeightScale() argument
614 GetFontWeightScale(std::string& fontWeightScale) GetFontWeightScale() argument
[all...]
H A Dui_appearance_ability_client.cpp89 int32_t UiAppearanceAbilityClient::SetFontWeightScale(std::string &fontWeightScale) in SetFontWeightScale() argument
95 return uiAppearanceServiceProxy_->SetFontWeightScale(fontWeightScale); in SetFontWeightScale()
98 int32_t UiAppearanceAbilityClient::GetFontWeightScale(std::string &fontWeightScale) in GetFontWeightScale() argument
104 return uiAppearanceServiceProxy_->GetFontWeightScale(fontWeightScale); in GetFontWeightScale()
H A Dui_appearance_ability_proxy.cpp119 int32_t UiAppearanceAbilityProxy::SetFontWeightScale(std::string& fontWeightScale) in SetFontWeightScale() argument
128 if (!data.WriteString(fontWeightScale)) { in SetFontWeightScale()
144 int32_t UiAppearanceAbilityProxy::GetFontWeightScale(std::string &fontWeightScale) in GetFontWeightScale() argument
164 if (!reply.ReadString(fontWeightScale)) { in GetFontWeightScale()
/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_common/
H A Dnapi_common_configuration.cpp82 std::string fontWeightScale = configuration.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_WEIGHT_SCALE); in WrapConfiguration() local
83 jsValue = WrapDoubleToJS(env, fontWeightScale != "" ? std::stod(fontWeightScale) : 1.0); in WrapConfiguration()
84 SetPropertyValueByPropertyName(env, jsObject, "fontWeightScale", jsValue); in WrapConfiguration()
138 double fontWeightScale = 0.0; in UnwrapConfiguration() local
139 if (UnwrapDoubleByPropertyName(env, param, "fontWeightScale", fontWeightScale)) { in UnwrapConfiguration()
140 TAG_LOGD(AAFwkTag::JSNAPI, "The parsed fontWeightScale part %{public}lf", fontWeightScale); in UnwrapConfiguration()
141 if (fontWeightScale < FONT_WEIGHT_MIN_SCAL in UnwrapConfiguration()
[all...]
/foundation/arkui/ui_appearance/services/include/
H A Dui_appearance_ability.h48 std::string fontWeightScale = "1"; member
57 int32_t GetFontWeightScale(std::string& fontWeightScale) override;
58 int32_t SetFontWeightScale(std::string& fontWeightScale) override;
88 int32_t OnSetFontWeightScale(const int32_t userId, std::string& fontWeightScale);
H A Dui_appearance_ability_interface.h43 virtual int32_t GetFontWeightScale(std::string &fontWeightScale) = 0;
44 virtual int32_t SetFontWeightScale(std::string &fontWeightScale) = 0;
H A Dui_appearance_ability_proxy.h29 int32_t SetFontWeightScale(std::string& fontWeightScale) override;
30 int32_t GetFontWeightScale(std::string& fontWeightScale) override;
H A Dui_appearance_ability_client.h43 int32_t GetFontWeightScale(std::string& fontWeightScale);
44 int32_t SetFontWeightScale(std::string& fontWeightScale);
/foundation/ability/ability_runtime/frameworks/cj/ffi/
H A Dcj_environment_callback.cpp102 std::string fontWeightScale = configuration.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_WEIGHT_SCALE); in CreateCConfiguration() local
103 cfg.fontWeightScale = fontWeightScale == "" ? 1.0 : std::stod(fontWeightScale); in CreateCConfiguration()
H A Dcj_utils_ffi.h32 double fontWeightScale; member
/foundation/arkui/ui_appearance/test/unittest/
H A Dui_appearance_test.cpp156 std::string fontWeightScale; in HWTEST_F() local
158 DarkModeTest::GetUiAppearanceAbilityTest()->GetFontWeightScale(fontWeightScale); in HWTEST_F()
/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_data_struct_converter.cpp117 std::string fontWeightScale = configuration.GetItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_WEIGHT_SCALE); in CreateJsConfiguration() local
118 napi_set_named_property(env, object, "fontWeightScale", in CreateJsConfiguration()
119 CreateJsValue(env, fontWeightScale == "" ? 1.0 : std::stod(fontWeightScale))); in CreateJsConfiguration()
/foundation/arkui/ace_engine/frameworks/core/components/font/
H A Drosen_font_collection.cpp222 void RosenFontCollection::VaryFontCollectionWithFontWeightScale(float fontWeightScale) in VaryFontCollectionWithFontWeightScale() argument
224 if (LessOrEqual(fontWeightScale, 0.0)) { in VaryFontCollectionWithFontWeightScale()
230 fontCollection_->VaryFontCollectionWithFontWeightScale(fontWeightScale); in VaryFontCollectionWithFontWeightScale()
H A Drosen_font_collection.h47 void VaryFontCollectionWithFontWeightScale(float fontWeightScale);
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dsystem_properties.h177 static void SetFontWeightScale(const float fontWeightScale) in SetFontWeightScale() argument
179 if (fontWeightScale_ != fontWeightScale) { in SetFontWeightScale()
180 fontWeightScale_ = fontWeightScale; in SetFontWeightScale()
/foundation/arkui/ui_appearance/interfaces/kits/napi/src/
H A Djs_ui_appearance.cpp115 ->SetFontWeightScale(asyncContext->fontWeightScale); in OnSetFontWeightScale()
122 asyncContext->errMsg = "fontWeightScale must between 0 and 5"; in OnSetFontWeightScale()
415 std::string fontWeightScale; in JSGetFontWeightScale() local
416 auto ret = UiAppearanceAbilityClient::GetInstance()->GetFontWeightScale(fontWeightScale); in JSGetFontWeightScale()
427 double fontWeightScaleNumber = std::stod(fontWeightScale); in JSGetFontWeightScale()
459 asyncContext->fontWeightScale = std::to_string(asyncContext->jsFontWeightScale); in JSSetFontWeightScale()
/foundation/arkui/ui_appearance/interfaces/kits/napi/include/
H A Djs_ui_appearance.h39 std::string fontWeightScale; member
/foundation/arkui/ace_engine/frameworks/core/common/
H A Dfont_manager.cpp287 float fontWeightScale = SystemProperties::GetFontWeightScale(); in UpdateFontWeightScale() local
288 if (!NearEqual(fontWeightScale, fontWeightScale_)) { in UpdateFontWeightScale()
289 fontWeightScale_ = fontWeightScale; in UpdateFontWeightScale()
H A Dcontainer.cpp195 void Container::SetFontWeightScale(int32_t instanceId, float fontWeightScale) in SetFontWeightScale() argument
202 pipelineContext->SetFontWeightScale(fontWeightScale); in SetFontWeightScale()
/foundation/arkui/ace_engine/advanced_ui_component/chip/interfaces/
H A Dchip.js510 this.x3 = new ObservedPropertyObjectPU(0, this, 'fontWeightScale');
514 this.fontWeightScale = configuration.fontWeightScale;
635 if (params.fontWeightScale !== undefined) {
636 this.fontWeightScale = params.fontWeightScale;
930 get fontWeightScale() {
933 set fontWeightScale(newValue) {
/foundation/arkui/ace_engine/frameworks/core/pipeline/
H A Dpipeline_base.cpp252 void PipelineBase::SetFontWeightScale(float fontWeightScale) in SetFontWeightScale() argument
255 if (!NearEqual(fontWeightScale_, fontWeightScale)) { in SetFontWeightScale()
256 fontWeightScale_ = fontWeightScale; in SetFontWeightScale()
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_container.h71 std::string fontWeightScale; member
79 densitydpi.empty() && themeTag.empty() && fontScale.empty() && fontWeightScale.empty() && in IsValid()
H A Ddialog_container.cpp629 float fontWeightScale = SystemProperties::GetFontWeightScale(); in SetFontScaleAndWeightScale() local
631 Container::SetFontWeightScale(instanceId, fontWeightScale); in SetFontScaleAndWeightScale()
/foundation/arkui/ace_engine/test/unittest/core/pipeline/
H A Dpipeline_context_test_ng_new.cpp1505 float fontWeightScale = 1.2f; in HWTEST_F() local
1506 context_->SetFontWeightScale(fontWeightScale); in HWTEST_F()
1507 ASSERT_EQ(context_->fontWeightScale_, fontWeightScale); in HWTEST_F()

Completed in 18 milliseconds

12