/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/ |
H A D | mutable_span_string.cpp | 76 auto spanIndex = span->GetStartIndex(); in RemoveSpecialSpans() 83 [](const RefPtr<SpanBase>& a, const RefPtr<SpanBase>& b) { return a->GetStartIndex() < b->GetStartIndex(); }); in RemoveSpecialSpans() 85 auto index = span->GetStartIndex(); in RemoveSpecialSpans() 207 auto spanStart = (*it)->GetStartIndex(); in ProcessSpanBaseList() 290 if (span->GetStartIndex() > start || (span->GetStartIndex() == start && useFrontStyle)) { in UpdateSpansAndSpanMapWithOffsetAfterInsert() 291 span->UpdateStartIndex(span->GetStartIndex() + offset); in UpdateSpansAndSpanMapWithOffsetAfterInsert() 312 if (span->GetStartIndex() <= start - 1 && span->GetEndIndex() > start - 1) { in InsertUseFrontStyle() 480 auto spanItemStart = (*it)->GetStartIndex(); in ApplyInsertSpanStringToSpanBase() [all...] |
H A D | span_string.cpp | 215 auto oldStart = (*it)->GetStartIndex(); in SplitInterval() 243 [](const RefPtr<SpanBase>& a, const RefPtr<SpanBase>& b) { return a->GetStartIndex() < b->GetStartIndex(); }); in SortSpans() 248 return a->GetEndIndex() >= b->GetStartIndex() && a->IsAttributesEqual(b); in CanMerge() 261 (*current)->UpdateStartIndex(std::min((*current)->GetStartIndex(), (*it)->GetStartIndex())); in MergeIntervals() 330 if (specialSpan->GetStartIndex() >= start) { in AddSpecialSpan() 346 spanItem->interval.first = imageSpan->GetStartIndex(); in MakeImageSpanItem() 356 spanItem->interval.first = customSpan->GetStartIndex(); in MakeCustomSpanItem() 450 auto start = span->GetStartIndex(); in AddSpan() [all...] |
H A D | span_object.cpp | 32 int32_t SpanBase::GetStartIndex() const in GetStartIndex() function in OHOS::Ace::SpanBase 124 str << GetStartIndex(); in ToString() 212 str << GetStartIndex(); in ToString() 280 str << GetStartIndex(); in ToString() 346 str << GetStartIndex(); in ToString() 401 str << GetStartIndex(); in ToString() 490 str << GetStartIndex(); in ToString() 652 str << GetStartIndex(); in ToString() 801 str << GetStartIndex(); in ToString() 837 str << GetStartIndex(); in ToString() [all...] |
/foundation/arkui/ui_lite/test/unittest/components/ |
H A D | ui_list_unit_test.cpp | 153 EXPECT_EQ(0, list_->GetStartIndex());
in HWTEST_F() 156 EXPECT_EQ(1, list_->GetStartIndex());
in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | layout_wrapper_builder.h | 56 int32_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::NG::LayoutWrapperBuilder
|
H A D | layout_wrapper_node.cpp | 81 auto index = layoutWrapperBuilder_->GetStartIndex(); in Build() 350 auto start = layoutWrapperBuilder_->GetStartIndex(); in GetLazyBuildRange()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_accessibility_property.cpp | 36 return listPattern->GetStartIndex(); in GetBeginIndex()
|
H A D | list_layout_algorithm.cpp | 86 ScrollableUtils::RecycleItemsOutOfBoundary(axis_, -currentDelta_, GetStartIndex(), GetEndIndex(), layoutWrapper); in Measure() 287 if ((GetStartIndex() > 0) && GreatNotEqual(GetStartPosition(), startMainPos_)) { in BeginLayoutForward() 288 LayoutBackward(layoutWrapper, GetStartIndex() - 1, GetStartPosition()); in BeginLayoutForward() 301 if ((GetStartIndex() > 0) && GreatNotEqual(GetStartPosition(), startMainPos_)) { in BeginLayoutBackward() 302 LayoutBackward(layoutWrapper, GetStartIndex() - 1, GetStartPosition()); in BeginLayoutBackward() 402 if (GetStartIndex() > 0 && GreatNotEqual(GetStartPosition(), startMainPos_)) { in HandleJumpStart() 403 LayoutBackward(layoutWrapper, GetStartIndex() - 1, GetStartPosition()); in HandleJumpStart() 642 if (GetStartIndex() == 0) { in UpdateSnapCenterContentOffset() 731 preStartIndex_ = pattern->GetStartIndex(); in MeasureList() 763 startIndex = std::min(GetStartIndex(), totalItemCount in MeasureList() [all...] |
H A D | list_item_group_layout_algorithm.h | 204 int32_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::NG::ListItemGroupLayoutAlgorithm 229 if (GetStartIndex() == 0) { in GetStartPosition()
|
H A D | list_layout_algorithm.h | 214 int32_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::NG::ListLayoutAlgorithm 281 if (GetStartIndex() == 0) { in GetStartPosition()
|
H A D | list_item_group_layout_algorithm.cpp | 126 if (iter->first >= GetStartIndex() && iter->first <= GetEndIndex()) { in UpdateCachedItemPosition() 476 startIndex = GetStartIndex(); in MeasureListItem() 685 MeasureJumpToItemBackward(layoutWrapper, layoutConstraint, GetStartIndex() - 1, GetStartPosition()); in MeasureCenter() 971 float offset = posMap_->GetGroupLayoutOffset(GetStartIndex(), startPos); in AdjustByPosMap() 996 } else if (GetStartIndex() == 0 && currentStartPos > headerMainSize_) { in AdjustItemPosition() 1367 int32_t startIndex = itemPosition_.empty() ? totalItemCount_ : GetStartIndex(); in MeasureCacheBackward()
|
H A D | list_pattern.h | 92 int32_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::NG::ListPattern
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/ |
H A D | span_string_test_ng.cpp | 196 EXPECT_EQ(firstFontSpan->GetStartIndex(), 5); in HWTEST_F() 204 EXPECT_EQ(secondFontSpan->GetStartIndex(), 0); in HWTEST_F() 212 EXPECT_EQ(thirdFontSpan->GetStartIndex(), 3); in HWTEST_F() 231 EXPECT_EQ(firstFontSpan->GetStartIndex(), 1); in HWTEST_F() 237 EXPECT_EQ(secondFontSpan->GetStartIndex(), 3); in HWTEST_F() 243 EXPECT_EQ(thirdFontSpan->GetStartIndex(), 5); in HWTEST_F() 272 EXPECT_EQ(letterSpacingSpan->GetStartIndex(), 2); in HWTEST_F() 313 EXPECT_EQ(letterSpacingSpan->GetStartIndex(), 5); in HWTEST_F() 321 EXPECT_EQ(baselineOffsetSpan->GetStartIndex(), 1); in HWTEST_F() 329 EXPECT_EQ(textShadowSpan->GetStartIndex(), in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_accessibility_property.cpp | 36 return swiperPattern->TotalCount() < 1 ? -1 : swiperPattern->GetStartIndex(); in GetBeginIndex()
|
H A D | swiper_layout_algorithm.h | 128 int32_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::NG::SwiperLayoutAlgorithm 143 if (GetStartIndex() == 0 && !isLoop_) { in GetStartPosition()
|
H A D | swiper_layout_algorithm.cpp | 222 int32_t startIndex = GetLoopIndex(GetStartIndex()); in Measure() 470 startIndex = std::min(GetLoopIndex(GetStartIndex()), totalItemCount_ - 1); in MeasureSwiper() 477 startIndex = GetStartIndex(); in MeasureSwiper() 499 LayoutBackward(layoutWrapper, layoutConstraint, GetStartIndex() - 1, GetStartPosition()); in MeasureSwiper() 518 LayoutBackward(layoutWrapper, layoutConstraint, GetStartIndex() - 1, GetStartPosition()); in MeasureSwiper() 536 LayoutBackward(layoutWrapper, layoutConstraint, GetStartIndex() - 1, startPosition); in MeasureSwiper() 546 if (GetStartIndex() > 0 && GreatNotEqual(GetStartPosition(), adjustStartMainPos)) { in MeasureSwiper() 547 LayoutBackward(layoutWrapper, layoutConstraint, GetStartIndex() - 1, GetStartPosition()); in MeasureSwiper()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
H A D | rosen_render_list_item_group.cpp | 61 bool isFirstItem = (GetStartIndex() == 0); in PaintDivider()
|
H A D | render_list_item_group.h | 106 size_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::V2::RenderListItemGroup
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/ |
H A D | search_text_field.cpp | 103 UpdateSelection(std::clamp(selectController_->GetStartIndex(), 0, textWidth), in ProcessSelection()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_accessibility_property.cpp | 115 return textSelectController->GetStartIndex(); in GetTextSelectionStart()
|
H A D | text_select_controller.h | 58 inline int32_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::NG::TextSelectController
|
H A D | text_field_select_overlay.cpp | 359 auto start = pattern->GetTextSelectController()->GetStartIndex(); in GetSelectedText() 417 auto index = selectController->GetStartIndex(); in GetTextInputCaretPosition() 426 index = selectController->GetStartIndex(); in GetTextInputCaretPosition()
|
H A D | text_field_pattern.cpp | 730 StringUtils::Str8ToStr16(contentController_->GetTextValue()), selectController_->GetStartIndex(), in UpdateCaretInfoToController() 736 cursorInfo.left, cursorInfo.top, cursorInfo.width, cursorInfo.height, selectController_->GetStartIndex(), in UpdateCaretInfoToController() 744 value.selection.Update(selectController_->GetStartIndex(), selectController_->GetEndIndex()); in UpdateCaretInfoToController() 1482 auto start = selectController_->GetStartIndex(); in HandleOnCopy() 1585 start = textfield->selectController_->GetStartIndex(); in HandleOnPaste() 1688 auto start = selectController_->GetStartIndex(); in HandleOnCut() 1728 if (startIndex != selectController_->GetStartIndex() || endIndex != selectController_->GetEndIndex()) { in UpdateSelection() 2008 auto start = selectController_->GetStartIndex(); in GetDragStyledText() 2914 UpdateSelection(std::clamp(selectController_->GetStartIndex(), 0, textWidth), in ProcessSelection() 3296 auto start = selectController_->GetStartIndex(); in HandleLongPress() [all...] |
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_list.h | 279 uint16_t GetStartIndex() const in GetStartIndex() function in OHOS::UIList
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/ |
H A D | text_area_test.cpp | 718 EXPECT_EQ(pattern_->selectController_->GetStartIndex(), 2); in HWTEST_F() 767 EXPECT_EQ(pattern_->selectController_->GetStartIndex(), 5); in HWTEST_F() 820 EXPECT_EQ(pattern_->selectController_->GetStartIndex(), 2); in HWTEST_F() 827 // currently GetSecondHandleIndex equals the GetStartIndex() in HWTEST_F()
|