Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_test_ng.cpp1299 auto textLayoutAlgorithm = AceType::MakeRefPtr<TextLayoutAlgorithm>(); variable
1300 EXPECT_FALSE(textLayoutAlgorithm == nullptr);
1453 auto result = textLayoutAlgorithm->AdaptMinTextSize(
1509 auto result = textLayoutAlgorithm->AdaptMinTextSize(
1565 auto result = textLayoutAlgorithm->AdaptMinTextSize(
1673 auto ret = textLayoutAlgorithm->CreateParagraphAndLayout(
1727 auto ret = textLayoutAlgorithm->CreateParagraphAndLayout(
1979 ret = textLayoutAlgorithm->DidExceedMaxLines(maxSize);
2034 ret = textLayoutAlgorithm->DidExceedMaxLines(maxSize);
2087 textLayoutAlgorithm->baselineOffset_ = BASE_LINE_OFFSET;
[all …]
H A Dtext_testfive_ng.cpp966 ASSERT_NE(textLayoutAlgorithm, nullptr);
1003 ASSERT_NE(textLayoutAlgorithm, nullptr);
1036 ASSERT_NE(textLayoutAlgorithm, nullptr);
1043 EXPECT_EQ(textLayoutAlgorithm->AdaptMinTextSize(
1048 EXPECT_EQ(textLayoutAlgorithm->AdaptMinTextSize(
1424 ASSERT_NE(textLayoutAlgorithm, nullptr);
1452 ASSERT_NE(textLayoutAlgorithm, nullptr);
1486 ASSERT_NE(textLayoutAlgorithm, nullptr);
1520 ASSERT_NE(textLayoutAlgorithm, nullptr);
1543 textLayoutAlgorithm->isSpanStringMode_ = true;
[all …]
H A Dtext_testfour_ng.cpp103 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(textPattern->CreateLayoutAlgo… variable
104 auto size = textLayoutAlgorithm->spans_.size();
107 auto firstSpans = textLayoutAlgorithm->spans_.front();
110 auto endSpans = textLayoutAlgorithm->spans_.back();
137 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(textPattern->CreateLayoutAlgo… variable
138 EXPECT_EQ(textLayoutAlgorithm->spans_.size(), 3);
146textLayoutAlgorithm->MeasureContent(parentLayoutConstraint, AccessibilityManager::RawPtr(layoutWra…
147 auto paragraphs = textLayoutAlgorithm->paragraphManager_->GetParagraphs();
H A Dtext_testthree_ng.cpp1164 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(textPattern->CreateLayoutAlgo… variable
1165textLayoutAlgorithm->paragraphManager_->AddParagraph({ .paragraph = paragraph, .start = 0, .end = …
1166textLayoutAlgorithm->UpdateParagraphForAISpan(textStyle, AccessibilityManager::RawPtr(layoutWrappe…
1167 …EXPECT_NE(textLayoutAlgorithm->paragraphManager_->GetParagraphs().front().paragraph.rawPtr_, nullp…
1959 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(layoutWrapper->GetLayoutAlgor… variable
1960 ASSERT_NE(textLayoutAlgorithm, nullptr);
1961 EXPECT_EQ(textLayoutAlgorithm->spans_.front().size(), 2); // 2 means:two child spannode
H A Dtext_testtwo_ng.cpp339 RefPtr<LayoutAlgorithm> textLayoutAlgorithm = textPattern->CreateLayoutAlgorithm(); variable
340 ASSERT_NE(textLayoutAlgorithm, nullptr);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toast/
H A Dtoast_layout_algorithm.cpp92 …auto textLayoutAlgorithm = AceType::DynamicCast<TextLayoutAlgorithm>(layoutAlgorithmWrapper->GetLa… in GetLineCount() local
93 CHECK_NULL_RETURN(textLayoutAlgorithm, 0); in GetLineCount()
94 auto paragraph = textLayoutAlgorithm->GetSingleParagraph(); in GetLineCount()
H A Dtoast_pattern.cpp556 …auto textLayoutAlgorithm = DynamicCast<TextLayoutAlgorithm>(layoutAlgorithmWrapper->GetLayoutAlgor… in GetTextLineHeight() local
557 CHECK_NULL_RETURN(textLayoutAlgorithm, 0); in GetTextLineHeight()
558 auto paragraph = textLayoutAlgorithm->GetSingleParagraph(); in GetTextLineHeight()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/marquee/
H A Dmarquee_test_ng.cpp402 auto textLayoutAlgorithm = textFrameNode->GetPattern<Pattern>()->CreateLayoutAlgorithm(); variable
403 ASSERT_NE(textLayoutAlgorithm, nullptr);
404 …ayoutWrapper->SetLayoutAlgorithm(AceType::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm));
503 auto textLayoutAlgorithm = textFrameNode->GetPattern<Pattern>()->CreateLayoutAlgorithm(); variable
504 ASSERT_NE(textLayoutAlgorithm, nullptr);
589 auto textLayoutAlgorithm = textFrameNode->GetPattern<Pattern>()->CreateLayoutAlgorithm(); variable
710 auto textLayoutAlgorithm = textFrameNode->GetPattern<TextPattern>()->CreateLayoutAlgorithm(); variable
711 ASSERT_NE(textLayoutAlgorithm, nullptr);
801 auto textLayoutAlgorithm = textFrameNode->GetPattern<TextPattern>()->CreateLayoutAlgorithm(); variable
802 ASSERT_NE(textLayoutAlgorithm, nullptr);
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/stack/old_cases/
H A Dstack_test_ng.cpp290 auto textLayoutAlgorithm = itemFrameNode->GetPattern<Pattern>()->CreateLayoutAlgorithm(); variable
291 EXPECT_FALSE(textLayoutAlgorithm == nullptr);
293 AccessibilityManager::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm));
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/
H A Dgauge_layout_algorithm.cpp352 …auto textLayoutAlgorithm = DynamicCast<TextLayoutAlgorithm>(textLayoutTextWrapper->GetLayoutAlgori… in GetLimitFontSize() local
353 CHECK_NULL_RETURN(textLayoutAlgorithm, false); in GetLimitFontSize()
354 auto limitTextStyle = textLayoutAlgorithm->GetTextStyle(); in GetLimitFontSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_layout_algorithm.cpp245 …auto textLayoutAlgorithm = DynamicCast<TextLayoutAlgorithm>(layoutAlgorithmWrapper->GetLayoutAlgor… in AnalysisLayoutOfContent() local
246 CHECK_NULL_VOID(textLayoutAlgorithm); in AnalysisLayoutOfContent()
251 GreatNotEqual(textLayoutAlgorithm->GetLineCount(), 1)) { in AnalysisLayoutOfContent()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/badge/
H A Dbadge_test_ng.cpp141 auto textLayoutAlgorithm = textPattern->CreateLayoutAlgorithm(); in CreateChild() local
143 AccessibilityManager::MakeRefPtr<LayoutAlgorithmWrapper>(textLayoutAlgorithm)); in CreateChild()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_pattern.cpp2622 …auto textLayoutAlgorithm = DynamicCast<TextLayoutAlgorithm>(layoutAlgorithmWrapper->GetLayoutAlgor… in OnDirtyLayoutWrapperSwap() local
2623 CHECK_NULL_RETURN(textLayoutAlgorithm, false); in OnDirtyLayoutWrapperSwap()
2624 baselineOffset_ = textLayoutAlgorithm->GetBaselineOffset(); in OnDirtyLayoutWrapperSwap()
2626 textStyle_ = textLayoutAlgorithm->GetTextStyle(); in OnDirtyLayoutWrapperSwap()