Home
last modified time | relevance | path

Searched refs:GetStartIndex (Results 1 - 25 of 41) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dmutable_span_string.cpp76 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 Dspan_string.cpp215 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 Dspan_object.cpp32 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 Dui_list_unit_test.cpp153 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 Dlayout_wrapper_builder.h56 int32_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::NG::LayoutWrapperBuilder
H A Dlayout_wrapper_node.cpp81 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 Dlist_accessibility_property.cpp36 return listPattern->GetStartIndex(); in GetBeginIndex()
H A Dlist_layout_algorithm.cpp86 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 Dlist_item_group_layout_algorithm.h204 int32_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::NG::ListItemGroupLayoutAlgorithm
229 if (GetStartIndex() == 0) { in GetStartPosition()
H A Dlist_layout_algorithm.h214 int32_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::NG::ListLayoutAlgorithm
281 if (GetStartIndex() == 0) { in GetStartPosition()
H A Dlist_item_group_layout_algorithm.cpp126 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 Dlist_pattern.h92 int32_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::NG::ListPattern
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dspan_string_test_ng.cpp196 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 Dswiper_accessibility_property.cpp36 return swiperPattern->TotalCount() < 1 ? -1 : swiperPattern->GetStartIndex(); in GetBeginIndex()
H A Dswiper_layout_algorithm.h128 int32_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::NG::SwiperLayoutAlgorithm
143 if (GetStartIndex() == 0 && !isLoop_) { in GetStartPosition()
H A Dswiper_layout_algorithm.cpp222 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 Drosen_render_list_item_group.cpp61 bool isFirstItem = (GetStartIndex() == 0); in PaintDivider()
H A Drender_list_item_group.h106 size_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::V2::RenderListItemGroup
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_text_field.cpp103 UpdateSelection(std::clamp(selectController_->GetStartIndex(), 0, textWidth), in ProcessSelection()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_accessibility_property.cpp115 return textSelectController->GetStartIndex(); in GetTextSelectionStart()
H A Dtext_select_controller.h58 inline int32_t GetStartIndex() const in GetStartIndex() function in OHOS::Ace::NG::TextSelectController
H A Dtext_field_select_overlay.cpp359 auto start = pattern->GetTextSelectController()->GetStartIndex(); in GetSelectedText()
417 auto index = selectController->GetStartIndex(); in GetTextInputCaretPosition()
426 index = selectController->GetStartIndex(); in GetTextInputCaretPosition()
H A Dtext_field_pattern.cpp730 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 Dui_list.h279 uint16_t GetStartIndex() const in GetStartIndex() function in OHOS::UIList
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/
H A Dtext_area_test.cpp718 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()

Completed in 36 milliseconds

12