Home
last modified time | relevance | path

Searched refs:fontScale (Results 1 - 25 of 60) sorted by relevance

123

/foundation/arkui/ui_appearance/services/src/
H A Dui_appearance_ability_stub.cpp63 std::string fontScale; in OnGetFontScaleInner() local
64 auto state = GetFontScale(fontScale); in OnGetFontScaleInner()
70 ret = reply.WriteString(fontScale); in OnGetFontScaleInner()
72 LOGE("ui_appearance GetFontScale write fontScale fail"); in OnGetFontScaleInner()
80 std::string fontScale; in OnSetFontScaleInner() local
81 auto ret = data.ReadString(fontScale); in OnSetFontScaleInner()
83 LOGE("ui_appearance SetFontScale Read fontScale fail"); in OnSetFontScaleInner()
86 ret = reply.WriteInt32(SetFontScale(fontScale)); in OnSetFontScaleInner()
102 LOGE("ui_appearance GetFontWeightScale write fontScale fail"); in OnGetFontWeightScaleInner()
114 LOGE("ui_appearance SetFontWeightScale Read fontScale fai in OnSetFontWeightScaleInner()
[all...]
H A Dui_appearance_ability.cpp204 tmpParam.fontScale = fontSize; in DoInitProcess()
217 config.AddItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_SIZE_SCALE, tmpParam.fontScale); in UpdateCurrentUserConfiguration()
224 SetParameterWrap(FONT_SCAL_FOR_USER0, tmpParam.fontScale); in UpdateCurrentUserConfiguration()
499 int32_t UiAppearanceAbility::OnSetFontScale(const int32_t userId, std::string& fontScale) in OnSetFontScale() argument
503 ret = config.AddItem(AAFwk::GlobalConfigurationKey::SYSTEM_FONT_SIZE_SCALE, fontScale); in OnSetFontScale()
505 LOGE("AddItem failed, fontScale = %{public}s", fontScale.c_str()); in OnSetFontScale()
514 usersParam_[userId].fontScale = fontScale; in OnSetFontScale()
517 tmpParam.fontScale in OnSetFontScale()
531 SetFontScale(std::string& fontScale) SetFontScale() argument
547 GetFontScale(std::string& fontScale) GetFontScale() argument
[all...]
H A Dui_appearance_ability_client.cpp67 int32_t UiAppearanceAbilityClient::SetFontScale(std::string &fontScale) in SetFontScale() argument
73 return uiAppearanceServiceProxy_->SetFontScale(fontScale); in SetFontScale()
76 int32_t UiAppearanceAbilityClient::GetFontScale(std::string &fontScale) in GetFontScale() argument
84 auto res = uiAppearanceServiceProxy_->GetFontScale(fontScale); in GetFontScale()
H A Dui_appearance_ability_proxy.cpp68 int32_t UiAppearanceAbilityProxy::SetFontScale(std::string &fontScale) in SetFontScale() argument
77 if (!data.WriteString(fontScale)) { in SetFontScale()
78 LOGE("Write fontScale failed!"); in SetFontScale()
92 int32_t UiAppearanceAbilityProxy::GetFontScale(std::string &fontScale) in GetFontScale() argument
111 if (!reply.ReadString(fontScale)) { in GetFontScale()
129 LOGE("Write fontScale failed!"); in SetFontWeightScale()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_column_layout_algorithm.cpp224 const Dimension DatePickerColumnLayoutAlgorithm::AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale) in AdjustFontSizeScale() argument
231 double adjustedScale = std::clamp(fontScale, pickerTheme->GetNormalFontScale(), in AdjustFontSizeScale()
234 if (!NearZero(fontScale)) { in AdjustFontSizeScale()
235 result = fontSizeValue / fontScale * adjustedScale; in AdjustFontSizeScale()
242 auto fontScale = 1.0f; in ReCalcItemHeightScale() local
244 CHECK_NULL_RETURN(pipeline, fontScale); in ReCalcItemHeightScale()
246 CHECK_NULL_RETURN(pickerTheme, fontScale); in ReCalcItemHeightScale()
253 return fontScale; in ReCalcItemHeightScale()
266 return fontScale; in ReCalcItemHeightScale()
269 fontScale in ReCalcItemHeightScale()
[all...]
H A Ddatepicker_paint_method.cpp54 auto fontScale = datePickerPattern->GetPaintDividerSpacing(); in GetForegroundDrawFunction() local
55 dividerSpacing = dividerSpacing * fontScale; in GetForegroundDrawFunction()
H A Ddatepicker_column_layout_algorithm.h57 const Dimension AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale);
/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Ddimension.cpp140 auto fontScale = std::clamp(pipeline->GetFontScale(), 0.0f, pipeline->GetMaxAppFontScale()); in ConvertToFp() local
141 if (LessOrEqual(fontScale, 0.0)) { in ConvertToFp()
145 return value_ / pipeline->GetDipScale() / fontScale; in ConvertToFp()
148 return value_ / pipeline->GetDipScale() / fontScale; in ConvertToFp()
151 return value_ / fontScale; in ConvertToFp()
154 return value_ * pipeline->GetLogicScale() / pipeline->GetDipScale() / fontScale; in ConvertToFp()
195 float fontScale = std::clamp(pipeline->GetFontScale(), minFontScale, maxFontScale); in ConvertToPxByCustomFontScale() local
196 return value_ * pipeline->GetDipScale() * fontScale; in ConvertToPxByCustomFontScale()
204 float fontScale = std::clamp(pipeline->GetFontScale(), minFontScale, maxFontScale); in ConvertToPxByAppFontScale() local
205 return value_ * pipeline->GetDipScale() * fontScale; in ConvertToPxByAppFontScale()
214 float fontScale = std::clamp(pipeline->GetFontScale(), 0.0f, maxFontScale); ConvertToVpByAppFontScale() local
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_pixel_unit_convert_ffi.cpp55 double fontScale = 1.0; in GetFp2PxParam() local
58 fontScale = pipelineContext->GetFontScale(); in GetFp2PxParam()
60 return density * fontScale; in GetFp2PxParam()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtimepicker_column_layout_algorithm.cpp226 const Dimension TimePickerColumnLayoutAlgorithm::AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale) in AdjustFontSizeScale() argument
233 double adjustedScale = std::clamp(fontScale, pickerTheme->GetNormalFontScale(), pickerTheme->GetMaxTwoFontScale()); in AdjustFontSizeScale()
235 if (!NearZero(fontScale)) { in AdjustFontSizeScale()
236 result = fontSizeValue / fontScale * adjustedScale; in AdjustFontSizeScale()
243 auto fontScale = 1.0f; in ReCalcItemHeightScale() local
245 CHECK_NULL_RETURN(pipeline, fontScale); in ReCalcItemHeightScale()
247 CHECK_NULL_RETURN(pickerTheme, fontScale); in ReCalcItemHeightScale()
254 return fontScale; in ReCalcItemHeightScale()
267 return fontScale; in ReCalcItemHeightScale()
270 fontScale in ReCalcItemHeightScale()
[all...]
H A Dtimepicker_paint_method.cpp52 auto fontScale = timePickerPattern->GetPaintDividerSpacing(); in GetForegroundDrawFunction() local
53 dividerSpacing = dividerSpacing * fontScale; in GetForegroundDrawFunction()
H A Dtimepicker_dialog_view.cpp1041 const Dimension TimePickerDialogView::AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale)
1048 auto adjustedScale = std::clamp(fontScale, pickerTheme->GetNormalFontScale(),
1105 auto fontScale = pipeline->GetFontScale();
1107 fontScale = std::clamp(fontScale, 0.0f, maxAppFontScale);
1110 if (GreatOrEqualCustomPrecision(fontSizeValue.ConvertToPx() * fontScale, fontSizeLimit.ConvertToPx())) {
1111 if (!NearZero(fontScale)) {
1112 fontSizeValueResult = fontSizeLimit / fontScale;
1125 auto fontScale = pipeline->GetFontScale();
1127 fontScale
[all...]
H A Dtimepicker_column_layout_algorithm.h65 const Dimension AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_layout_algorithm.cpp309 const Dimension TextPickerLayoutAlgorithm::AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale) in AdjustFontSizeScale() argument
316 double adjustedScale = std::clamp(fontScale, pickerTheme->GetNormalFontScale(), in AdjustFontSizeScale()
319 if (!NearZero(fontScale)) { in AdjustFontSizeScale()
320 result = fontSizeValue / fontScale * adjustedScale; in AdjustFontSizeScale()
327 auto fontScale = 1.0f; in ReCalcItemHeightScale() local
329 CHECK_NULL_RETURN(pipeline, fontScale); in ReCalcItemHeightScale()
331 CHECK_NULL_RETURN(pickerTheme, fontScale); in ReCalcItemHeightScale()
338 return fontScale; in ReCalcItemHeightScale()
351 return fontScale; in ReCalcItemHeightScale()
354 fontScale in ReCalcItemHeightScale()
[all...]
H A Dtextpicker_paint_method.cpp47 auto fontScale = textPickerPattern->GetPaintDividerSpacing(); in GetForegroundDrawFunction() local
51 fontScale, pattern = pattern_](RSCanvas& canvas) { in GetForegroundDrawFunction()
61 double dividerHeight = picker->defaultPickerItemHeight_ * fontScale; in GetForegroundDrawFunction()
63 dividerHeight = textPickerPattern->GetResizePickerItemHeight() * fontScale; in GetForegroundDrawFunction()
H A Dtextpicker_layout_algorithm.h79 const Dimension AdjustFontSizeScale(const Dimension& fontSizeValue, double fontScale);
/foundation/arkui/ui_appearance/services/include/
H A Dui_appearance_ability.h47 std::string fontScale = "1"; member
55 int32_t GetFontScale(std::string& fontScale) override;
56 int32_t SetFontScale(std::string& fontScale) override;
87 int32_t OnSetFontScale(const int32_t userId, std::string& fontScale);
H A Dui_appearance_ability_interface.h41 virtual int32_t GetFontScale(std::string &fontScale) = 0;
42 virtual int32_t SetFontScale(std::string &fontScale) = 0;
H A Dui_appearance_ability_proxy.h27 int32_t SetFontScale(std::string& fontScale) override;
28 int32_t GetFontScale(std::string& fontScale) override;
H A Dui_appearance_ability_client.h41 int32_t GetFontScale(std::string& fontScale);
42 int32_t SetFontScale(std::string& fontScale);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/
H A Dslider_tip_modifier.cpp104 auto fontScale = pipeLine->GetFontScale(); in PaintText() local
108 if (GreatOrEqual(fontScale, SUITABLEAGING_LEVEL_1_SCALE) || in PaintText()
109 (GreatOrEqual(fontScale, SUITABLEAGING_LEVEL_2_SCALE))) { in PaintText()
349 auto fontScale = pipeline->GetFontScale(); in PaintBubble() local
351 if (GreatOrEqual(fontScale, SUITABLEAGING_LEVEL_1_SCALE)) { in PaintBubble()
357 if (GreatOrEqual(fontScale, SUITABLEAGING_LEVEL_1_SCALE)) { in PaintBubble()
470 auto fontScale = pipeline->GetFontScale(); in BuildParagraph() local
471 if (GreatOrEqual(fontScale, SUITABLEAGING_LEVEL_1_SCALE) && LessNotEqual(fontScale, SUITABLEAGING_LEVEL_2_SCALE)) { in BuildParagraph()
473 } else if (GreatOrEqual(fontScale, SUITABLEAGING_LEVEL_2_SCAL in BuildParagraph()
501 auto fontScale = pipeLine->GetFontScale(); CreateParagraphAndLayout() local
551 auto fontScale = pipeline->GetFontScale(); UpdateBubbleSize() local
[all...]
/foundation/arkui/ui_appearance/test/unittest/
H A Dui_appearance_test.cpp151 std::string fontScale; in HWTEST_F() local
153 DarkModeTest::GetUiAppearanceAbilityTest()->GetFontScale(fontScale); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dsystem_properties.h189 static void SetFontScale(const float fontScale) in SetFontScale() argument
191 if (fontScale != fontScale_) { in SetFontScale()
192 fontScale_ = fontScale; in SetFontScale()
/foundation/arkui/ui_appearance/interfaces/kits/napi/src/
H A Djs_ui_appearance.cpp88 resCode = UiAppearanceAbilityClient::GetInstance()->SetFontScale(asyncContext->fontScale); in OnSetFontScale()
95 asyncContext->errMsg = "fontScale must between 0 and 5"; in OnSetFontScale()
342 std::string fontScale; in JSGetFontScale() local
343 auto ret = UiAppearanceAbilityClient::GetInstance()->GetFontScale(fontScale); in JSGetFontScale()
354 double fontScaleNumber = std::stod(fontScale); in JSGetFontScale()
386 asyncContext->fontScale = std::to_string(asyncContext->jsFontScale); in JSSetFontScale()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/
H A Dprogress_layout_algorithm.cpp185 auto fontScale = pipeline->GetFontScale(); in GetChildHeight() local
186 if (GreatOrEqualCustomPrecision(fontScale, progressTheme->GetFontScale()) && (GetType() == ProgressType::CAPSULE)) { in GetChildHeight()

Completed in 14 milliseconds

123