/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/ |
H A D | grid_scroll_with_options_layout_algorithm.cpp | 160 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 D | velocity_tracker.cpp | 73 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 D | ui_line_break.cpp | 133 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 D | ui_swipe_view.cpp | 355 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 D | cj_list_ffi.h | 58 CJ_EXPORT void FfiOHOSAceFrameworkListSetScrollIndexCallback(void (*callback)(int32_t firstIndex, int32_t lastIndex));
|
H A D | cj_list_ffi.cpp | 219 void FfiOHOSAceFrameworkListSetScrollIndexCallback(void (*callback)(int32_t firstIndex, int32_t lastIndex)) in FfiOHOSAceFrameworkListSetScrollIndexCallback() argument
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/ |
H A D | water_flow_scroller_test_ng.cpp | 336 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 D | grid_layout_info.cpp | 363 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 D | calendar_component.cpp | 116 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 D | indexer_select_test_ng.cpp | 83 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 D | lazy_for_each_builder.h | 482 int32_t lastIndex = -1; in GetAllChildren() local 484 if (lastIndex > -1 && index - lastIndex > 1) { in GetAllChildren() 486 endIndex_ = lastIndex; in GetAllChildren()
|
H A D | lazy_for_each_builder.cpp | 306 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 D | rs_profiler.h | 60 #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 D | rs_profiler_base.cpp | 1158 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 D | treeview.js | 1317 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 D | indexer_pattern.cpp | 301 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 D | input_hub.cpp | 1436 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 D | text_pattern.cpp | 1653 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 D | nav_bar_test_ng.cpp | 1533 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 D | rs_main_thread.cpp | 1085 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 D | filter.js | 2017 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 D | navrouter_model_test_ng.cpp | 1106 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 D | text_input_test.cpp | 341 int32_t lastIndex = 0; in HWTEST_F() local 354 EXPECT_TRUE(pattern_->RepeatClickCaret(clickOffset, lastIndex)); in HWTEST_F()
|