/foundation/arkui/ui_lite/test/unittest/common/ |
H A D | text_unit_test.cpp | 36 static Text* text_; member in OHOS::TextTest 39 Text* TextTest::text_ = nullptr; member in OHOS::TextTest 43 if (text_ == nullptr) { in SetUpTestCase() 44 text_ = new Text(); in SetUpTestCase() 50 if (text_ != nullptr) { in TearDownTestCase() 51 delete text_; in TearDownTestCase() 52 text_ = nullptr; in TearDownTestCase() 64 if (text_ == nullptr) { in HWTEST_F() 69 text_->SetText(text); in HWTEST_F() 70 EXPECT_EQ(strcmp(text_ in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/option/ |
H A D | option_component.cpp | 59 if (!text_ || value_.empty()) { in Initialize() 87 text_->SetTextStyle(textStyle); in Initialize() 90 text_->SetTextStyle(textStyle); in Initialize() 94 text_->SetData(value_); in Initialize() 96 textStyle = text_->GetTextStyle(); in Initialize() 127 text_->SetTextStyle(textStyle); in Initialize() 128 text_->SetFocusColor(textStyle.GetTextColor()); in Initialize() 129 AppendChild(text_); in Initialize() 143 if (!text_) { in CheckOptionModify() 150 if (text_ in CheckOptionModify() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/option/ |
H A D | option_pattern.cpp | 60 CHECK_NULL_VOID(text_); in OnModifyDone() 61 text_->GetRenderContext()->UpdateForegroundColor(selectTheme_->GetDisabledMenuFontColor()); in OnModifyDone() 62 auto textLayoutProperty = text_->GetLayoutProperty<TextLayoutProperty>(); in OnModifyDone() 65 text_->MarkModifyDone(); in OnModifyDone() 369 CHECK_NULL_VOID(text_); in SetFontSize() 370 auto props = text_->GetLayoutProperty<TextLayoutProperty>(); in SetFontSize() 372 text_->MarkModifyDone(); in SetFontSize() 379 CHECK_NULL_VOID(text_); in SetItalicFontStyle() 380 auto props = text_->GetLayoutProperty<TextLayoutProperty>(); in SetItalicFontStyle() 382 text_ in SetItalicFontStyle() [all...] |
H A D | option_pattern.h | 74 text_ = text; in SetTextNode() 79 return text_; in GetTextNode() 251 RefPtr<FrameNode> text_; member in OHOS::Ace::NG::OptionPattern
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_dialog.cpp | 83 text_(nullptr), in UIDialog() 120 if (text_ != nullptr) { in ~UIDialog() 121 delete text_; in ~UIDialog() 122 text_ = nullptr; in ~UIDialog() 278 if (text_ == nullptr) { in SetTextLabel() 279 text_ = new UILabel(); in SetTextLabel() 280 if (text_ == nullptr) { in SetTextLabel() 284 text_->SetFont(DEFAULT_VECTOR_FONT_FILENAME, TEXT_FONT_SIZE); in SetTextLabel() 285 text_->SetStyle(STYLE_TEXT_COLOR, Color::Black().full); in SetTextLabel() 286 text_ in SetTextLabel() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/ |
H A D | indexer_item_component.cpp | 37 text_ = AceType::MakeRefPtr<TextComponent>(StringUtils::Str16ToStr8(strLabel_)); in BuildItem() 41 text_->SetTextStyle(textStyle); in BuildItem() 42 box_->SetChild(text_); in BuildItem() 66 if (!text_) { in SetTextStyle() 71 text_->SetTextStyle(activeStyle_); in SetTextStyle() 73 text_->SetTextStyle(normalStyle_); in SetTextStyle()
|
H A D | indexer_item_component.h | 83 return text_; in GetTextComponent() 161 RefPtr<TextComponent> text_; member in OHOS::Ace::V2::IndexerItemComponent
|
/foundation/graphic/graphic_2d/graphic_test/graphic_test_framework/src/ |
H A D | rs_graphic_test_text.cpp | 59 if (text_ == nullptr) { in SetText() 60 text_ = std::make_shared<RSProperty<std::string>>(text); in SetText() 61 AttachProperty(text_); in SetText() 63 text_->Set(text); in SetText() 69 if (!text_) in Draw() 88 Drawing::TextBlob::MakeFromString(text_->Get().c_str(), font, Drawing::TextEncoding::UTF8); in Draw()
|
/foundation/arkui/ui_lite/frameworks/common/ |
H A D | text.cpp | 29 : text_(nullptr), in Text() 52 if (text_ != nullptr) { in ~Text() 53 UIFree(text_); in ~Text() 54 text_ = nullptr; in ~Text() 95 if (text_ != nullptr) { in SetText() 96 if (strcmp(text, text_) == 0) { in SetText() 99 UIFree(text_); in SetText() 100 text_ = nullptr; in SetText() 102 text_ = static_cast<char*>(UIMalloc(textLen + 1)); in SetText() 103 if (text_ in SetText() [all...] |
/foundation/arkui/ace_engine/frameworks/component_test/core/ |
H A D | component_test_matcher_impl.h | 35 MatchText() : text_(""), matchType(MatchType::EQUALS), isCheck(false) {}; in MatchText() 36 explicit MatchText(const std::string& text) : text_(text), matchType(MatchType::EQUALS), isCheck(true) {}; in MatchText() 37 MatchText(const std::string& text, MatchType matchType) : text_(text), matchType(matchType), isCheck(true) {}; in MatchText() 38 std::string text_; member
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/ |
H A D | bar_item_node.h | 45 text_ = text; in SetTextNode() 50 return text_; in GetTextNode() 89 RefPtr<UINode> text_; member in OHOS::Ace::NG::BarItemNode
|
/foundation/arkui/ace_engine/frameworks/core/components/indexer/ |
H A D | indexer_item_component.cpp | 40 text_ = AceType::MakeRefPtr<TextComponent>(StringUtils::Str16ToStr8(strLabel_)); in BuildItem() 44 text_->SetTextStyle(textStyle); in BuildItem() 45 box_->SetChild(text_); in BuildItem() 46 tail = text_; in BuildItem() 277 if (!text_) { in SetTextStyle() 282 text_->SetTextStyle(activeStyle_); in SetTextStyle() 284 text_->SetTextStyle(normalStyle_); in SetTextStyle()
|
H A D | indexer_item_component.h | 100 return text_; in GetTextComponent() 182 RefPtr<TextComponent> text_; member in OHOS::Ace::IndexerItemComponent
|
/foundation/arkui/ace_engine/frameworks/core/components/text/ |
H A D | render_text.cpp | 62 text_ = AceType::DynamicCast<TextComponent>(component); in Update() 100 copyOption_ = text_->GetCopyOption(); in Update() 101 textForDisplay_ = text_->GetData(); in Update() 105 textValue_.text = text_->GetData(); in Update() 107 alignment_ = text_->GetAlignment(); in Update() 109 onDragStart_ = text_->GetOnDragStartId(); in Update() 110 onDragEnter_ = text_->GetOnDragEnterId(); in Update() 111 onDragMove_ = text_->GetOnDragMoveId(); in Update() 112 onDragLeave_ = text_->GetOnDragLeaveId(); in Update() 113 onDrop_ = text_ in Update() [all...] |
H A D | rosen_render_text.cpp | 93 if (text_->GetDeclarationHeight().IsValid()) { in Paint() 169 if (!text_ || CheckMeasureFlag()) { in Measure() 192 if (text_->GetMaxWidthLayout()) { in Measure() 268 if (!paragraph_ || !text_ || !text_->GetAutoMaxLines()) { in EffectAutoMaxLines() 403 text_->GetDeclarationHeight().IsValid()) { in GetSize() 407 return Size(text_->GetMaxWidthLayout() ? paragraphNewWidth_ : std::ceil(paragraphNewWidth_), heightFinal); in GetSize() 412 std::string data = text_->GetData(); in ApplyWhiteSpace() 455 if (!text_) { in UpdateParagraph() 472 std::string data = text_ in UpdateParagraph() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_layout_algorithm.cpp | 139 text_.DoMeasure(isVertical_, minWidth, leftSpace); in UpdateTextSize() 161 double textWidth = text_.width_; in ShrinkWidth() 165 double textRemain = text_.ShrinkWidth(remain); in ShrinkWidth() 171 text_.ShrinkWidth(textRemain); in ShrinkWidth() 178 double resText = text_.ShrinkWidth(textRemain); in ShrinkWidth() 180 text_.ShrinkWidth(resIcon); in ShrinkWidth() 221 double textHeight = text_.height_; in ShrinkHeight() 225 double textRemain = text_.ShrinkHeight(remain); in ShrinkHeight() 231 text_.ShrinkHeight(textRemain); in ShrinkHeight() 237 double resText = text_ in ShrinkHeight() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_option_component.h | 58 return text_; in GetText() 62 text_ = value; in SetText() 144 std::string text_; member in OHOS::Ace::PickerOptionComponent
|
/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | paste_data_entry_test.cpp | 40 std::string text_ = "test_string"; member in OHOS::MiscServices::PasteDataEntryTest 60 udsObject->value_[UDMF::CONTENT] = text_; in InitPlaintTextEntry() 121 ASSERT_EQ(*value, text_); in CheckPlainUds() 156 EXPECT_EQ(text_, *str); in HWTEST_F() 197 entry.SetValue(text_); in HWTEST_F() 210 ASSERT_EQ(text_, *str); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_text_run_test.cpp | 45 std::string text_; member in OHOS::NativeDrawingRunTest 69 OH_Drawing_TypographyHandlerAddText(handler_, text_.c_str()); in PrepareCreateTextLine() 103 text_ = ""; in TearDown() 113 text_ = "Hello 你好 World"; in HWTEST_F() 158 text_ = "Hello 你好 World"; in HWTEST_F() 209 text_ = "Hello\t中国 World \n !@#%^&*){}[] 123456789 -=" in HWTEST_F() 255 text_ = "Hello\t中国 World \n !@#%^&*){}[] 123456789 -=" in HWTEST_F() 307 text_ = "Hello\t中国 World \n !@#%^&*){}[] 123456789 -=" in HWTEST_F() 356 text_ = "Hello\t中国 World \n !@#%^&*){}[] 123456789 -= ,." in HWTEST_F() 404 text_ in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/ |
H A D | svg_node.h | 90 text_ = text; in SetText() 102 std::string text_; member in OHOS::Ace::SvgNode
|
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
H A D | tab_bar_item_component.cpp | 43 text_ = AceType::MakeRefPtr<TextComponent>(text); in TabBarItemComponent() 48 text_->SetTextStyle(textStyle); in TabBarItemComponent() 49 children.push_back(text_); in TabBarItemComponent()
|
H A D | tab_bar_item_component.h | 38 RefPtr<TextComponent> text_; member in OHOS::Ace::TabBarItemComponent
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select/ |
H A D | select_pattern.cpp | 166 CHECK_NULL_VOID(text_); in SetItemSelected() 167 auto textProps = text_->GetLayoutProperty<TextLayoutProperty>(); in SetItemSelected() 171 text_->MarkModifyDone(); in SetItemSelected() 448 auto textProps = text_->GetLayoutProperty<TextLayoutProperty>(); in SetDisabledStyle() 451 text_->MarkDirtyNode(PROPERTY_UPDATE_RENDER); in SetDisabledStyle() 533 text_ = in BuildChild() 535 CHECK_NULL_VOID(text_); in BuildChild() 536 text_->SetInternal(); in BuildChild() 537 auto textProps = text_->GetLayoutProperty<TextLayoutProperty>(); in BuildChild() 556 text_ in BuildChild() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/select/ |
H A D | select_test_ng.cpp | 658 selectPattern_->text_ = FrameNode::CreateFrameNode( in HWTEST_F() 660 ASSERT_NE(selectPattern_->text_, nullptr); in HWTEST_F() 1168 auto props = selectPattern->text_->GetLayoutProperty<TextLayoutProperty>(); in HWTEST_F() 1258 selectPattern->text_ = FrameNode::CreateFrameNode( in HWTEST_F() 1265 auto textLayoutProps = selectPattern->text_->GetLayoutProperty<TextLayoutProperty>(); in HWTEST_F() 1335 pattern->text_ = frameNode_; in HWTEST_F() 1336 pattern->text_->SetLayoutProperty(AceType::MakeRefPtr<TextLayoutProperty>()); in HWTEST_F() 1354 pattern->text_ = frameNode_; in HWTEST_F() 1355 pattern->text_->SetLayoutProperty(AceType::MakeRefPtr<TextLayoutProperty>()); in HWTEST_F() 1374 pattern->text_ in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/skia_txt/ |
H A D | paragraph_test.cpp | 44 std::u16string text_ = u"text"; member in txt::ParagraphTest 55 paragraphBuilder->AddText(text_); in SetUp() 107 EXPECT_EQ(paragraph_->GetRectsForRange(0, text_.size(), RectHeightStyle::MAX, RectWidthStyle::TIGHT).size(), 1); in HWTEST_F() 151 paragraph_->UpdateFontSize(0, text_.size(), 24.0); in HWTEST_F()
|