/foundation/arkui/ui_appearance/services/src/ |
H A D | ui_appearance_ability_stub.cpp | 93 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 D | ui_appearance_ability.cpp | 205 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 D | ui_appearance_ability_client.cpp | 89 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 D | ui_appearance_ability_proxy.cpp | 119 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 D | napi_common_configuration.cpp | 82 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 D | ui_appearance_ability.h | 48 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 D | ui_appearance_ability_interface.h | 43 virtual int32_t GetFontWeightScale(std::string &fontWeightScale) = 0; 44 virtual int32_t SetFontWeightScale(std::string &fontWeightScale) = 0;
|
H A D | ui_appearance_ability_proxy.h | 29 int32_t SetFontWeightScale(std::string& fontWeightScale) override; 30 int32_t GetFontWeightScale(std::string& fontWeightScale) override;
|
H A D | ui_appearance_ability_client.h | 43 int32_t GetFontWeightScale(std::string& fontWeightScale); 44 int32_t SetFontWeightScale(std::string& fontWeightScale);
|
/foundation/ability/ability_runtime/frameworks/cj/ffi/ |
H A D | cj_environment_callback.cpp | 102 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 D | cj_utils_ffi.h | 32 double fontWeightScale;
member
|
/foundation/arkui/ui_appearance/test/unittest/ |
H A D | ui_appearance_test.cpp | 156 std::string fontWeightScale; in HWTEST_F() local 158 DarkModeTest::GetUiAppearanceAbilityTest()->GetFontWeightScale(fontWeightScale); in HWTEST_F()
|
/foundation/ability/ability_runtime/frameworks/native/runtime/ |
H A D | js_data_struct_converter.cpp | 117 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 D | rosen_font_collection.cpp | 222 void RosenFontCollection::VaryFontCollectionWithFontWeightScale(float fontWeightScale) in VaryFontCollectionWithFontWeightScale() argument 224 if (LessOrEqual(fontWeightScale, 0.0)) { in VaryFontCollectionWithFontWeightScale() 230 fontCollection_->VaryFontCollectionWithFontWeightScale(fontWeightScale); in VaryFontCollectionWithFontWeightScale()
|
H A D | rosen_font_collection.h | 47 void VaryFontCollectionWithFontWeightScale(float fontWeightScale);
|
/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | system_properties.h | 177 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 D | js_ui_appearance.cpp | 115 ->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 D | js_ui_appearance.h | 39 std::string fontWeightScale; member
|
/foundation/arkui/ace_engine/frameworks/core/common/ |
H A D | font_manager.cpp | 287 float fontWeightScale = SystemProperties::GetFontWeightScale(); in UpdateFontWeightScale() local 288 if (!NearEqual(fontWeightScale, fontWeightScale_)) { in UpdateFontWeightScale() 289 fontWeightScale_ = fontWeightScale; in UpdateFontWeightScale()
|
H A D | container.cpp | 195 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 D | chip.js | 510 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 D | pipeline_base.cpp | 252 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 D | ace_container.h | 71 std::string fontWeightScale; member 79 densitydpi.empty() && themeTag.empty() && fontScale.empty() && fontWeightScale.empty() && in IsValid()
|
H A D | dialog_container.cpp | 629 float fontWeightScale = SystemProperties::GetFontWeightScale(); in SetFontScaleAndWeightScale() local 631 Container::SetFontWeightScale(instanceId, fontWeightScale); in SetFontScaleAndWeightScale()
|
/foundation/arkui/ace_engine/test/unittest/core/pipeline/ |
H A D | pipeline_context_test_ng_new.cpp | 1505 float fontWeightScale = 1.2f; in HWTEST_F() local 1506 context_->SetFontWeightScale(fontWeightScale); in HWTEST_F() 1507 ASSERT_EQ(context_->fontWeightScale_, fontWeightScale); in HWTEST_F()
|