Home
last modified time | relevance | path

Searched refs:lastIndex (Results 1 - 23 of 23) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/
H A Dgrid_scroll_with_options_layout_algorithm.cpp160 const std::map<int32_t, int32_t>& irregularItemsPosition, int32_t& sum, int32_t& lastIndex, int32_t targetIndex) in JumpToLastIrregularItem()
173 lastIndex = iter->first; in JumpToLastIrregularItem()
177 lastIndex = lastIter->first; in JumpToLastIrregularItem()
213 auto lastIndex = firstIrregularIndex; in GetCrossStartAndSpanWithUserFunction() local
214 JumpToLastIrregularItem(gridLayoutInfo_.irregularItemsPosition_, sum, lastIndex, itemIndex); in GetCrossStartAndSpanWithUserFunction()
215 auto iter = options.irregularIndexes.find(lastIndex); in GetCrossStartAndSpanWithUserFunction()
225 if (index == lastIndex) { in GetCrossStartAndSpanWithUserFunction()
231 auto irregularStart = (sum + index - lastIndex - 1) % crossCount; in GetCrossStartAndSpanWithUserFunction()
236 sum += (index - lastIndex - 1); in GetCrossStartAndSpanWithUserFunction()
238 lastIndex in GetCrossStartAndSpanWithUserFunction()
159 JumpToLastIrregularItem( const std::map<int32_t, int32_t>& irregularItemsPosition, int32_t& sum, int32_t& lastIndex, int32_t targetIndex) JumpToLastIrregularItem() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/gestures/
H A Dvelocity_tracker.cpp73 auto lastIndex = count - 1; in GetLinearSlope() local
78 previousIndex, y[previousIndex], lastIndex, y[lastIndex], previousIndex, x[previousIndex], lastIndex, in GetLinearSlope()
79 x[lastIndex]); in GetLinearSlope()
/foundation/arkui/ui_lite/frameworks/font/
H A Dui_line_break.cpp133 int16_t lastIndex = 0; in GetNextLineAndWidth() local
153 lastIndex = preIndex; in GetNextLineAndWidth()
171 if (lastIndex == 0) { in GetNextLineAndWidth()
175 return lastIndex; in GetNextLineAndWidth()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_swipe_view.cpp355 uint16_t lastIndex = curIndex_; in pfnGetWidthOrHeight() local
392 if (lastIndex != curIndex_) { in pfnGetWidthOrHeight()
407 uint16_t lastIndex = curIndex_; in RefreshCurrentViewByThrow() local
471 if (lastIndex != curIndex_) { in RefreshCurrentViewByThrow()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_list_ffi.h58 CJ_EXPORT void FfiOHOSAceFrameworkListSetScrollIndexCallback(void (*callback)(int32_t firstIndex, int32_t lastIndex));
H A Dcj_list_ffi.cpp219 void FfiOHOSAceFrameworkListSetScrollIndexCallback(void (*callback)(int32_t firstIndex, int32_t lastIndex)) in FfiOHOSAceFrameworkListSetScrollIndexCallback() argument
/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/
H A Dwater_flow_scroller_test_ng.cpp336 int32_t lastIndex = -1; in HWTEST_F() local
337 auto onScrollIndex = [&firstIndex, &lastIndex](int32_t first, int32_t last) { in HWTEST_F()
339 lastIndex = last; in HWTEST_F()
352 EXPECT_EQ(lastIndex, 5); in HWTEST_F()
360 EXPECT_EQ(lastIndex, 5); in HWTEST_F()
368 EXPECT_EQ(lastIndex, 6); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_info.cpp363 auto lastIndex = firstIrregularIndex; in GetContentHeight() local
369 totalHeight += AddLinesInBetween(lastIndex, idx, crossCount_, regularHeight); in GetContentHeight()
370 lastIndex = idx; in GetContentHeight()
373 totalHeight += AddLinesInBetween(lastIndex, endIdx, crossCount_, regularHeight); in GetContentHeight()
440 int32_t lastIndex = GreatNotEqual(totalHeight, targetContent) ? 0 : firstIrregularIndex; in SkipStartIndexByOffset() local
448 float height = AddLinesInBetween(lastIndex, idx, crossCount_, regularHeight); in SkipStartIndexByOffset()
454 lastIndex = idx; in SkipStartIndexByOffset()
458 int32_t startIdx = lines * crossCount_ + lastIndex; in SkipStartIndexByOffset()
/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Dcalendar_component.cpp116 int32_t lastIndex = (destIndex + DISTANCE_FORM_LAST) % MAX_MONTH_CACHE_NUM; in JumpToMonth() local
117 dataAdapter_->AddPendingRequest(CalendarMonth::GetLastMonth(calendarMonth), lastIndex); in JumpToMonth() local
135 int32_t lastIndex = (destIndex + DISTANCE_FORM_LAST) % MAX_MONTH_CACHE_NUM; in JumpToMonth() local
136 dataAdapter_->AddPendingRequest(CalendarMonth::GetLastMonth(calendarMonth), lastIndex); in JumpToMonth() local
/foundation/arkui/ace_engine/test/unittest/core/pattern/indexer/
H A Dindexer_select_test_ng.cpp83 const float lastIndex = pattern_->itemCount_ - 1; in HWTEST_F() local
84 pattern_->selected_ = lastIndex; in HWTEST_F()
87 EXPECT_EQ(pattern_->GetSelected(), lastIndex); in HWTEST_F()
95 EXPECT_EQ(pattern_->GetSelected(), lastIndex - 1); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/
H A Dlazy_for_each_builder.h482 int32_t lastIndex = -1; in GetAllChildren() local
484 if (lastIndex > -1 && index - lastIndex > 1) { in GetAllChildren()
486 endIndex_ = lastIndex; in GetAllChildren()
H A Dlazy_for_each_builder.cpp306 int32_t lastIndex = -1; in GetItems() local
332 if (lastIndex > -1 && index - lastIndex > 1) { in GetItems()
334 endIndex = lastIndex; in GetItems()
342 lastIndex = index; in GetItems()
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler.h60 #define RS_PROFILER_REPLAY_FIX_TRINDEX(curIndex, lastIndex) RSProfiler::ReplayFixTrIndex(curIndex, lastIndex)
94 #define RS_PROFILER_REPLAY_FIX_TRINDEX(curIndex, lastIndex)
195 RSB_EXPORT static void ReplayFixTrIndex(uint64_t curIndex, uint64_t& lastIndex);
H A Drs_profiler_base.cpp1158 void RSProfiler::ReplayFixTrIndex(uint64_t curIndex, uint64_t& lastIndex) in ReplayFixTrIndex() argument
1164 if (lastIndex == 0) { in ReplayFixTrIndex()
1165 lastIndex = curIndex - 1; in ReplayFixTrIndex()
/foundation/arkui/ace_engine/advanced_ui_component/treeview/interfaces/
H A Dtreeview.js1317 this.listNodeDataSource.lastIndex = this.viewLastIndex;
1337 this.listNodeDataSource.lastIndex = x16;
1397 this.listNodeDataSource.lastIndex = index;
1410 this.listNodeDataSource.lastIndex = index;
1500 this.listNodeDataSource.lastIndex = -1;
1696 this.lastIndex = -1;
1899 if (!this.p12(this.lastIndex)) {
1902 this.i8(this.lastIndex, a3.NORMAL);
1903 this.q12(this.lastIndex, this.w7[this.lastIndex]
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/
H A Dindexer_pattern.cpp301 int32_t lastIndex = firstIndex + cmin - 1; in ApplySevenPlusOneMode() local
303 arrayValue_.push_back(std::pair(fullArrayValue_.at(lastIndex), false)); in ApplySevenPlusOneMode()
304 lastPushedIndex = lastIndex; in ApplySevenPlusOneMode()
309 int32_t lastIndex = firstIndex + cmax - 1; in ApplySevenPlusOneMode() local
311 arrayValue_.push_back(std::pair(fullArrayValue_.at(lastIndex), false)); in ApplySevenPlusOneMode()
312 lastPushedIndex = lastIndex; in ApplySevenPlusOneMode()
337 int32_t lastIndex = firstIndex + cmin - 1; in ApplyFivePlusOneMode() local
339 arrayValue_.push_back(std::pair(fullArrayValue_.at(lastIndex), false)); in ApplyFivePlusOneMode()
340 lastPushedIndex = lastIndex; in ApplyFivePlusOneMode()
345 int32_t lastIndex in ApplyFivePlusOneMode() local
[all...]
/foundation/distributedhardware/distributed_input/common/include/
H A Dinput_hub.cpp1436 int32_t lastIndex = -1; in HandleTouchScreenEvent() local
1443 lastIndex = static_cast<int32_t>(i); in HandleTouchScreenEvent()
1445 if ((firstIndex >= 0) && (lastIndex > firstIndex)) { in HandleTouchScreenEvent()
1446 absIndexs.emplace_back(std::make_pair((size_t)firstIndex, (size_t)lastIndex)); in HandleTouchScreenEvent()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_pattern.cpp1653 auto lastIndex = GetActualTextLength(); in HandleSelectionDown() local
1655 HandleSelection(true, lastIndex); in HandleSelectionDown()
1663 if (NearZero(height) || caculateIndex == end || caculateIndex > lastIndex) { in HandleSelectionDown()
1664 caculateIndex = lastIndex; in HandleSelectionDown()
1672 auto lastIndex = GetActualTextLength(); in HandleSelection() local
1673 if (start < 0 || start > lastIndex || end < 0 || end > lastIndex) { in HandleSelection()
1678 bool isIndexInEmoji = TextEmojiProcessor::IsIndexInEmoji(end, GetSelectedText(0, lastIndex), in HandleSelection()
/foundation/arkui/ace_engine/test/unittest/core/pattern/navigation/
H A Dnav_bar_test_ng.cpp1533 int32_t lastIndex; in HWTEST_F() local
1534 navigationStack->GetFromPreBackup(name, navDestinationNode, lastIndex); in HWTEST_F()
1554 int32_t lastIndex; in HWTEST_F() local
1555 navigationStack->GetFromPreBackup(name, navDestinationNode, lastIndex); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_main_thread.cpp1085 auto& lastIndex = rsTransactionElem.second.first; in CheckAndUpdateTransactionIndex() local
1096 RS_PROFILER_REPLAY_FIX_TRINDEX(curIndex, lastIndex); in CheckAndUpdateTransactionIndex()
1097 if (curIndex == lastIndex + 1) { in CheckAndUpdateTransactionIndex()
1103 ++lastIndex; in CheckAndUpdateTransactionIndex()
1106 RS_LOGE("%{public}s wait curIndex:%{public}" PRIu64 ", lastIndex:%{public}" PRIu64 ", pid:%{public}d", in CheckAndUpdateTransactionIndex()
1107 __FUNCTION__, curIndex, lastIndex, pid); in CheckAndUpdateTransactionIndex()
1113 lastIndex = curIndex; in CheckAndUpdateTransactionIndex()
/foundation/arkui/ace_engine/advanced_ui_component/filter/interfaces/
H A Dfilter.js2017 let lastIndex = this.selectedFilters[additionRowIndex].index;
2018 this.additionColorArr && (this.additionColorArr[lastIndex] = {
2032 this.additionFontWeightArr && (this.additionFontWeightArr[lastIndex] = FontWeight.Regular);
/foundation/arkui/ace_engine/test/unittest/core/pattern/navrouter/
H A Dnavrouter_model_test_ng.cpp1106 int32_t lastIndex; in HWTEST_F() local
1116 navigationStack->Get("test", navDestinationNode, lastIndex); in HWTEST_F()
1128 navigationStack->Get("test3", navDestinationNode, lastIndex); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/
H A Dtext_input_test.cpp341 int32_t lastIndex = 0; in HWTEST_F() local
354 EXPECT_TRUE(pattern_->RepeatClickCaret(clickOffset, lastIndex)); in HWTEST_F()

Completed in 64 milliseconds