Home
last modified time | relevance | path

Searched refs:textLayoutAlgorithm (Results 1 – 21 of 21) sorted by relevance

/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
Dtext_testnine_ng.cpp972 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(pattern->CreateLayoutAlgorith… variable
973 ASSERT_NE(textLayoutAlgorithm, nullptr);
978 textLayoutAlgorithm->UpdateRelayoutShaderStyle(AccessibilityManager::RawPtr(layoutWrapper));
979 EXPECT_NE(textLayoutAlgorithm, nullptr);
981textLayoutAlgorithm->paragraphManager_->AddParagraph({ .paragraph = paragraph, .start = 0, .end = …
985 textLayoutAlgorithm->textStyle_ = textStyle;
986 textLayoutAlgorithm->UpdateRelayoutShaderStyle(AccessibilityManager::RawPtr(layoutWrapper));
987 EXPECT_EQ(textLayoutAlgorithm->spans_.empty(), true);
992 textLayoutAlgorithm->spans_.emplace_back(spanItem);
993 textLayoutAlgorithm->UpdateRelayoutShaderStyle(AccessibilityManager::RawPtr(layoutWrapper));
[all …]
Dtext_test_ng.cpp1620 auto textLayoutAlgorithm = AceType::MakeRefPtr<TextLayoutAlgorithm>(); variable
1621 EXPECT_FALSE(textLayoutAlgorithm == nullptr);
1624textLayoutAlgorithm->MeasureContent(parentLayoutConstraint, AccessibilityManager::RawPtr(layoutWra…
1626 textLayoutAlgorithm->Measure(AccessibilityManager::RawPtr(layoutWrapper));
1627 textLayoutAlgorithm->Layout(AccessibilityManager::RawPtr(layoutWrapper));
1672 auto textLayoutAlgorithm = AceType::MakeRefPtr<TextLayoutAlgorithm>(); variable
1673textLayoutAlgorithm->MeasureContent(parentLayoutConstraint, AccessibilityManager::RawPtr(layoutWra…
1674 textLayoutAlgorithm->Measure(AccessibilityManager::RawPtr(layoutWrapper));
1675 textLayoutAlgorithm->Layout(AccessibilityManager::RawPtr(layoutWrapper));
1726 auto textLayoutAlgorithm = AceType::MakeRefPtr<TextLayoutAlgorithm>(); variable
[all …]
Dtext_testfive_ng.cpp1108 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(pattern->CreateLayoutAlgorith… variable
1109 ASSERT_NE(textLayoutAlgorithm, nullptr);
1120 …EXPECT_EQ(textLayoutAlgorithm->CreateParagraph(textStyle, u"", AceType::RawPtr(frameNode), maxSize…
1127 …EXPECT_EQ(textLayoutAlgorithm->CreateParagraph(textStyle, u"", AceType::RawPtr(frameNode), maxSize…
1131 …EXPECT_EQ(textLayoutAlgorithm->CreateParagraph(textStyle, u"", AceType::RawPtr(frameNode), maxSize…
1146 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(pattern->CreateLayoutAlgorith… variable
1147 ASSERT_NE(textLayoutAlgorithm, nullptr);
1157 EXPECT_EQ(textLayoutAlgorithm->UpdateSymbolTextStyle(
1163 EXPECT_EQ(textLayoutAlgorithm->UpdateSymbolTextStyle(
1179 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(pattern->CreateLayoutAlgorith… variable
[all …]
Dtext_testfour_ng.cpp118 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(textPattern->CreateLayoutAlgo… variable
119 auto size = textLayoutAlgorithm->spans_.size();
122 auto firstSpans = textLayoutAlgorithm->spans_.front();
125 auto endSpans = textLayoutAlgorithm->spans_.back();
152 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(textPattern->CreateLayoutAlgo… variable
153 EXPECT_EQ(textLayoutAlgorithm->spans_.size(), 3);
161textLayoutAlgorithm->MeasureContent(parentLayoutConstraint, AccessibilityManager::RawPtr(layoutWra…
162 auto paragraphs = textLayoutAlgorithm->paragraphManager_->GetParagraphs();
Dtext_testtwo_ng.cpp349 RefPtr<LayoutAlgorithm> textLayoutAlgorithm = textPattern->CreateLayoutAlgorithm(); variable
350 ASSERT_NE(textLayoutAlgorithm, nullptr);
902 auto textLayoutAlgorithm = AccessibilityManager::MakeRefPtr<TextLayoutAlgorithm>(); variable
908 textLayoutAlgorithm->ConstructTextStyles(layoutConstraint, &layoutWrapper, textStyle);
975 auto textLayoutAlgorithm = AccessibilityManager::MakeRefPtr<TextLayoutAlgorithm>(); variable
977 textLayoutAlgorithm->ConstructTextStyles(layoutConstraint, &layoutWrapper, textStyle);
1158 auto textLayoutAlgorithm = AccessibilityManager::MakeRefPtr<TextLayoutAlgorithm>(); variable
1160 textLayoutAlgorithm->ConstructTextStyles(layoutConstraint, &layoutWrapper, textStyle);
Dtext_testseven_ng.cpp717 …auto textLayoutAlgorithm = AceType::MakeRefPtr<TextLayoutAlgorithm>(selectSpanItems, pManager_, tr… variable
740 textLayoutAlgorithm->BuildParagraph(
748 textLayoutAlgorithm->BuildParagraph(
Dtext_testthree_ng.cpp1426 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(textPattern->CreateLayoutAlgo… variable
1427textLayoutAlgorithm->paragraphManager_->AddParagraph({ .paragraph = paragraph, .start = 0, .end = …
1428textLayoutAlgorithm->UpdateParagraphForAISpan(textStyle, AccessibilityManager::RawPtr(layoutWrappe…
1429 …EXPECT_NE(textLayoutAlgorithm->paragraphManager_->GetParagraphs().front().paragraph.rawPtr_, nullp…
2275 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(layoutWrapper->GetLayoutAlgor… variable
2276 ASSERT_NE(textLayoutAlgorithm, nullptr);
2277 EXPECT_EQ(textLayoutAlgorithm->spans_.front().size(), 2); // 2 means:two child spannode
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toast/
Dtoast_layout_algorithm.cpp99 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(layoutAlgorithmWrapper->GetLa… in GetLineCount() local
100 CHECK_NULL_RETURN(textLayoutAlgorithm, 0); in GetLineCount()
101 auto paragraph = textLayoutAlgorithm->GetSingleParagraph(); in GetLineCount()
Dtoast_pattern.cpp565 …auto textLayoutAlgorithm = DynamicCast<TextLayoutAlgorithm>(layoutAlgorithmWrapper->GetLayoutAlgor… in GetTextLineHeight() local
566 CHECK_NULL_RETURN(textLayoutAlgorithm, 0); in GetTextLineHeight()
567 auto paragraph = textLayoutAlgorithm->GetSingleParagraph(); in GetTextLineHeight()
/foundation/arkui/ace_engine/test/unittest/core/pattern/marquee/
Dmarquee_test_update_strategy.cpp410 auto textLayoutAlgorithm = textFrameNode->GetPattern<Pattern>()->CreateLayoutAlgorithm(); variable
411 ASSERT_NE(textLayoutAlgorithm, nullptr);
412 …ayoutWrapper->SetLayoutAlgorithm(AceType::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm));
514 auto textLayoutAlgorithm = textFrameNode->GetPattern<Pattern>()->CreateLayoutAlgorithm(); variable
515 ASSERT_NE(textLayoutAlgorithm, nullptr);
516 …ayoutWrapper->SetLayoutAlgorithm(AceType::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm));
610 auto textLayoutAlgorithm = textFrameNode->GetPattern<Pattern>()->CreateLayoutAlgorithm(); variable
611 …ayoutWrapper->SetLayoutAlgorithm(AceType::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm));
725 auto textLayoutAlgorithm = textFrameNode->GetPattern<TextPattern>()->CreateLayoutAlgorithm(); variable
726 ASSERT_NE(textLayoutAlgorithm, nullptr);
[all …]
Dmarquee_test_ng.cpp403 auto textLayoutAlgorithm = textFrameNode->GetPattern<Pattern>()->CreateLayoutAlgorithm(); variable
404 ASSERT_NE(textLayoutAlgorithm, nullptr);
405 …ayoutWrapper->SetLayoutAlgorithm(AceType::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm));
504 auto textLayoutAlgorithm = textFrameNode->GetPattern<Pattern>()->CreateLayoutAlgorithm(); variable
505 ASSERT_NE(textLayoutAlgorithm, nullptr);
506 …ayoutWrapper->SetLayoutAlgorithm(AceType::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm));
590 auto textLayoutAlgorithm = textFrameNode->GetPattern<Pattern>()->CreateLayoutAlgorithm(); variable
591 …ayoutWrapper->SetLayoutAlgorithm(AceType::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm));
711 auto textLayoutAlgorithm = textFrameNode->GetPattern<TextPattern>()->CreateLayoutAlgorithm(); variable
712 ASSERT_NE(textLayoutAlgorithm, nullptr);
[all …]
/foundation/arkui/ace_engine/test/unittest/core/pattern/stack/old_cases/
Dstack_test_ng.cpp290 auto textLayoutAlgorithm = itemFrameNode->GetPattern<Pattern>()->CreateLayoutAlgorithm(); variable
291 EXPECT_FALSE(textLayoutAlgorithm == nullptr);
293 AccessibilityManager::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm));
/foundation/arkui/ace_engine/test/unittest/core/pattern/badge/
Dbadge_test_tojson.cpp125 auto textLayoutAlgorithm = textPattern->CreateLayoutAlgorithm(); in CreateChild() local
127 AccessibilityManager::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm)); in CreateChild()
Dbadge_layout_algorithm_test_ng.cpp129 auto textLayoutAlgorithm = textPattern->CreateLayoutAlgorithm(); in CreateChild() local
131 AccessibilityManager::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm)); in CreateChild()
Dbadge_test_ng.cpp142 auto textLayoutAlgorithm = textPattern->CreateLayoutAlgorithm(); in CreateChild() local
144 AccessibilityManager::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm)); in CreateChild()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/
Dgauge_layout_algorithm.cpp371 …auto textLayoutAlgorithm = DynamicCast<TextLayoutAlgorithm>(textLayoutTextWrapper->GetLayoutAlgori… in GetLimitFontSize() local
372 CHECK_NULL_RETURN(textLayoutAlgorithm, false); in GetLimitFontSize()
373 auto limitTextStyle = textLayoutAlgorithm->GetTextStyle(); in GetLimitFontSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
Ddialog_layout_algorithm.cpp300 …auto textLayoutAlgorithm = DynamicCast<TextLayoutAlgorithm>(layoutAlgorithmWrapper->GetLayoutAlgor… in AnalysisLayoutOfContent() local
301 CHECK_NULL_VOID(textLayoutAlgorithm); in AnalysisLayoutOfContent()
311 GreatNotEqual(textLayoutAlgorithm->GetLineCount(), 1)) { in AnalysisLayoutOfContent()
/foundation/arkui/ace_engine/test/unittest/core/pattern/dialog/
Ddialog_layout_test_ng.cpp1751 auto textLayoutAlgorithm = textPattern->CreateLayoutAlgorithm(); variable
1753 AccessibilityManager::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm));
1815 auto textLayoutAlgorithm = textPattern->CreateLayoutAlgorithm(); variable
1817 AccessibilityManager::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm));
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
Dbubble_view.cpp156 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(layoutAlgorithmWrapper->GetLa… in GetTextLineHeight() local
157 CHECK_NULL_RETURN(textLayoutAlgorithm, 0); in GetTextLineHeight()
158 auto paragraph = textLayoutAlgorithm->GetSingleParagraph(); in GetTextLineHeight()
Dbubble_layout_algorithm.cpp1239 …auto textLayoutAlgorithm = DynamicCast<TextLayoutAlgorithm>(layoutAlgorithmWrapper->GetLayoutAlgor… in UpdateTextNodeMaxLines() local
1240 CHECK_NULL_VOID(textLayoutAlgorithm); in UpdateTextNodeMaxLines()
1241 auto paragraph = textLayoutAlgorithm->GetSingleParagraph(); in UpdateTextNodeMaxLines()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
Dtext_pattern.cpp4296 …auto textLayoutAlgorithm = DynamicCast<TextLayoutAlgorithm>(layoutAlgorithmWrapper->GetLayoutAlgor… in OnDirtyLayoutWrapperSwap() local
4297 CHECK_NULL_RETURN(textLayoutAlgorithm, false); in OnDirtyLayoutWrapperSwap()
4298 baselineOffset_ = textLayoutAlgorithm->GetBaselineOffset(); in OnDirtyLayoutWrapperSwap()
4300 textStyle_ = textLayoutAlgorithm->GetTextStyle(); in OnDirtyLayoutWrapperSwap()