/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/ |
H A D | text_input_base.cpp | 25 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local 26 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite() 27 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite() 28 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite() 29 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite() 30 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite() 32 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite() 36 return textFieldTheme; in SetUpTestSuite()
|
H A D | text_input_wordbreak_test.cpp | 135 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local 136 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite() 137 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite() 138 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite() 139 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite() 140 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite() 142 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite() 146 return textFieldTheme; in SetUpTestSuite()
|
H A D | text_area_menu_test.cpp | 129 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local 130 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite() 131 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite() 132 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite() 133 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite() 134 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite() 136 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite() 140 return textFieldTheme; in SetUpTestSuite()
|
H A D | text_input_area_model_test.cpp | 141 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local 142 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite() 143 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite() 144 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite() 145 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite() 146 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite() 148 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite() 152 return textFieldTheme; in SetUpTestSuite()
|
H A D | text_field_algorithm_test.cpp | 173 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); variable 182 …textInputLayoutAlgorithm->UpdateTextStyle(frameNode_, layoutProperty_, textFieldTheme, textStyle, … 194 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); variable 205 …textInputLayoutAlgorithm->UpdateTextStyle(frameNode_, layoutProperty_, textFieldTheme, textStyle, … 217 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); variable 226 frameNode_, layoutProperty_, textFieldTheme, textStyle, true);
|
H A D | text_area_test.cpp | 137 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local 138 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite() 139 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite() 140 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite() 141 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite() 142 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite() 144 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite() 148 return textFieldTheme; in SetUpTestSuite()
|
H A D | text_input_modify_test.cpp | 140 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local 141 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite() 142 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite() 143 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite() 144 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite() 145 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite() 147 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite() 151 return textFieldTheme; in SetUpTestSuite()
|
H A D | text_area_decoration_test.cpp | 119 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local 120 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite() 121 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite() 122 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite() 123 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite() 124 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite() 126 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite() 130 return textFieldTheme; in SetUpTestSuite()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_paint_property.cpp | 30 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in ToJsonValue() local 31 CHECK_NULL_VOID(textFieldTheme); in ToJsonValue() 35 …jsonValue->Put("color", propCursorColor_.value_or(textFieldTheme->GetCursorColor()).ColorToString(… in ToJsonValue() 36 …jsonValue->Put("width", propCursorWidth_.value_or(textFieldTheme->GetCursorWidth()).ToString().c_s… in ToJsonValue() 39 …propSelectedBackgroundColor_.value_or(textFieldTheme->GetSelectedColor()).ColorToString().c_str(),… in ToJsonValue()
|
H A D | text_input_response_area.cpp | 296 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); in GetIconSize() local 297 CHECK_NULL_RETURN(textFieldTheme, 0.0f); in GetIconSize() 310 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); in GetIconRightOffset() local 311 CHECK_NULL_RETURN(textFieldTheme, 0.0f); in GetIconRightOffset() 312 auto themePadding = textFieldTheme->GetPadding(); in GetIconRightOffset() 330 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); in LoadImageSourceInfo() local 331 CHECK_NULL_VOID(textFieldTheme); in LoadImageSourceInfo() 333 showIcon_->SetFillColor(textFieldTheme->GetTextColor()); in LoadImageSourceInfo() 336 hideIcon_->SetFillColor(textFieldTheme->GetTextColor()); in LoadImageSourceInfo() 546 CHECK_NULL_VOID(textFieldTheme); in UpdateCleanNode() [all …]
|
H A D | text_field_layout_algorithm.cpp | 59 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in ConstructTextStyles() local 60 CHECK_NULL_VOID(textFieldTheme); in ConstructTextStyles() 157 auto textFieldTheme = pattern->GetTheme(); in InlineMeasureContent() local 158 CHECK_NULL_RETURN(textFieldTheme, std::nullopt); in InlineMeasureContent() 922 auto textFieldTheme = pattern->GetTheme(); in GetSuitableSize() local 923 CHECK_NULL_VOID(textFieldTheme); in GetSuitableSize() 934 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in GetTextFieldDefaultHeight() local 935 CHECK_NULL_RETURN(textFieldTheme, 0.0f); in GetTextFieldDefaultHeight() 936 auto height = textFieldTheme->GetHeight(); in GetTextFieldDefaultHeight() 1151 auto textFieldTheme = pattern->GetTheme(); in BuildInlineFocusLayoutConstraint() local [all …]
|
H A D | text_field_pattern.cpp | 436 auto textFieldTheme = GetTheme(); in GetTextOrPlaceHolderFontSize() local 443 return textFieldTheme ? static_cast<float>(textFieldTheme->GetFontSize().ConvertToPx()) in GetTextOrPlaceHolderFontSize() 1283 auto textFieldTheme = GetTheme(); in ProcBorderAndUnderlineInBlurEvent() local 1284 CHECK_NULL_VOID(textFieldTheme); in ProcBorderAndUnderlineInBlurEvent() 1734 auto textFieldTheme = GetTheme(); in FireEventHubOnChange() local 1735 CHECK_NULL_VOID(textFieldTheme); in FireEventHubOnChange() 2908 CHECK_NULL_VOID(textFieldTheme); in OnModifyDone() 3032 CHECK_NULL_VOID(textFieldTheme); in CalculateDefaultCursor() 3164 CHECK_NULL_VOID(textFieldTheme); in ProcessInnerPadding() 3533 CHECK_NULL_VOID(textFieldTheme); in OnHover() [all …]
|
H A D | text_field_model_ng.cpp | 85 auto textFieldTheme = pattern->GetTheme(); in CreateNode() local 86 CHECK_NULL_VOID(textFieldTheme); in CreateNode() 89 SetCaretColor(textFieldTheme->GetCursorColor()); in CreateNode() 91 caretStyle.caretWidth = textFieldTheme->GetCursorWidth(); in CreateNode() 210 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); in ProcessDefaultStyleAndBehaviors() local 211 CHECK_NULL_VOID(textFieldTheme); in ProcessDefaultStyleAndBehaviors() 220 auto radius = textFieldTheme->GetBorderRadius(); in ProcessDefaultStyleAndBehaviors() 228 auto themePadding = textFieldTheme->GetPadding(); in ProcessDefaultStyleAndBehaviors() 1578 auto textFieldTheme = themeManager->GetTheme<TextFieldTheme>(); in ResetTextInputPadding() local 1579 CHECK_NULL_VOID(textFieldTheme); in ResetTextInputPadding() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_field/ |
H A D | text_field_test.cpp | 104 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local 105 textFieldTheme->iconSize_ = Dimension(ICON_SIZE, DimensionUnit::VP); in SetUpTestSuite() 106 textFieldTheme->iconHotZoneSize_ = Dimension(ICON_HOT_ZONE_SIZE, DimensionUnit::VP); in SetUpTestSuite() 107 textFieldTheme->fontSize_ = Dimension(FONT_SIZE, DimensionUnit::FP); in SetUpTestSuite() 108 textFieldTheme->fontWeight_ = FontWeight::W400; in SetUpTestSuite() 109 textFieldTheme->textColor_ = Color::FromString("#ff182431"); in SetUpTestSuite() 111 .WillRepeatedly([textFieldTheme = textFieldTheme](ThemeType type) -> RefPtr<Theme> { in SetUpTestSuite() 115 return textFieldTheme; in SetUpTestSuite()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/ |
H A D | search_text_field.cpp | 73 auto textFieldTheme = GetTheme(); in ApplyNormalTheme() local 74 CHECK_NULL_VOID(textFieldTheme); in ApplyNormalTheme() 76 renderContext->UpdateBackgroundColor(textFieldTheme->GetBgColor()); in ApplyNormalTheme()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/search/ |
H A D | search_base.cpp | 24 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local 30 textFieldTheme->bgColor_ = Color::RED; in SetUpTestSuite() 39 return textFieldTheme; in SetUpTestSuite()
|
H A D | search_decoration_test_ng.cpp | 91 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local 97 textFieldTheme->bgColor_ = Color::RED; in SetUpTestSuite() 106 return textFieldTheme; in SetUpTestSuite()
|
H A D | search_test_update_ng.cpp | 99 auto textFieldTheme = AceType::MakeRefPtr<TextFieldTheme>(); in SetUpTestSuite() local 105 textFieldTheme->bgColor_ = Color::RED; in SetUpTestSuite() 114 return textFieldTheme; in SetUpTestSuite()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/ |
H A D | magnifier_controller.cpp | 252 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in InitMagnifierParams() local 253 CHECK_NULL_VOID(textFieldTheme); in InitMagnifierParams() 254 uint32_t gradientMaskColor1 = textFieldTheme->GetGlassMaskPrimaryColor().GetValue(); in InitMagnifierParams() 255 uint32_t gradientMaskColor2 = textFieldTheme->GetGlassMaskSecondaryColor().GetValue(); in InitMagnifierParams() 257 Color outlineColor1 = textFieldTheme->GetGlassOutlinePrimaryColor(); in InitMagnifierParams() 258 Color outlineColor2 = textFieldTheme->GetGlassOutlineSecondaryColor(); in InitMagnifierParams()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | search_model_impl.cpp | 45 auto textFieldTheme = JSViewAbstract::GetTheme<TextFieldTheme>(); in Create() local 47 InitializeComponent(searchComponent, textFieldComponent, searchTheme, textFieldTheme); in Create() 388 const OHOS::Ace::RefPtr<OHOS::Ace::TextFieldTheme>& textFieldTheme) in InitializeComponent() argument 393 InitializeDefaultValue(boxComponent, textFieldComponent, textFieldTheme); in InitializeComponent() 426 searchComponent->SetHoverColor(textFieldTheme->GetHoverColor()); in InitializeComponent() 427 searchComponent->SetPressColor(textFieldTheme->GetPressColor()); in InitializeComponent()
|
H A D | text_field_model_impl.cpp | 527 const OHOS::Ace::RefPtr<OHOS::Ace::TextFieldTheme>& textFieldTheme) in UpdateDecoration() argument 529 if (!textFieldTheme) { in UpdateDecoration() 545 border.SetBorderRadius(textFieldTheme->GetBorderRadius()); in UpdateDecoration() 553 border.SetBorderRadius(textFieldTheme->GetBorderRadius()); in UpdateDecoration() 558 boxDecoration->SetBorderRadius(textFieldTheme->GetBorderRadius()); in UpdateDecoration()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_search.cpp | 49 auto textFieldTheme = GetTheme<TextFieldTheme>(); in InitializeStyle() local 51 if (!textFieldTheme || !searchTheme) { in InitializeStyle() 59 DOMTextFieldUtil::InitDefaultValue(boxComponent_, textFieldComponent_, textFieldTheme); in InitializeStyle() 93 searchChild_->SetHoverColor(textFieldTheme->GetHoverColor()); in InitializeStyle() 94 searchChild_->SetPressColor(textFieldTheme->GetPressColor()); in InitializeStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/search/ |
H A D | search_declaration.cpp | 47 auto textFieldTheme = GetTheme<TextFieldTheme>(); in InitializeStyle() local 49 if (!textFieldTheme || !searchTheme) { in InitializeStyle() 98 SetHoverColor(textFieldTheme->GetHoverColor()); in InitializeStyle() 99 SetPressColor(textFieldTheme->GetPressColor()); in InitializeStyle()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_input/ |
H A D | text_input_layout_algorithm.cpp | 99 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in Measure() local 100 CHECK_NULL_VOID(textFieldTheme); in Measure() 379 auto textFieldTheme = pipeline->GetTheme<TextFieldTheme>(); in GetDefaultHeightByType() local 380 CHECK_NULL_RETURN(textFieldTheme, 0.0f); in GetDefaultHeightByType() 381 return static_cast<float>(textFieldTheme->GetContentHeight().ConvertToPx()); in GetDefaultHeightByType()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_search.cpp | 527 auto textFieldTheme = GetTheme<TextFieldTheme>(); in SetCaret() local 528 CHECK_NULL_VOID(textFieldTheme); in SetCaret() 531 CalcDimension caretWidth = textFieldTheme->GetCursorWidth(); in SetCaret() 534 caretWidth = textFieldTheme->GetCursorWidth(); in SetCaret() 542 caretColor = textFieldTheme->GetCursorColor(); in SetCaret()
|