/ohos5.0/foundation/communication/dhcp/test/unittest/services/dhcp_client/ |
H A D | dhcp_options_test.cpp | 63 int endIndex = 0; variable 73 endIndex += DHCP_OPT_CODE_BYTES + DHCP_OPT_LEN_BYTES + pOption[endIndex + DHCP_OPT_LEN_INDEX]; 79 endIndex += DHCP_OPT_CODE_BYTES + DHCP_OPT_LEN_BYTES + pOption[endIndex + DHCP_OPT_LEN_INDEX]; 95 int endIndex = 0; variable 105 endIndex += DHCP_OPT_CODE_BYTES + DHCP_OPT_LEN_BYTES + pOption[endIndex + DHCP_OPT_LEN_INDEX]; 148 int endIndex = 0; variable 180 int endIndex = 0; variable 220 int endIndex = 0; variable 253 int endIndex = 0; variable 308 int endIndex = 0; variable [all …]
|
H A D | dhcp_socket_test.cpp | 120 int endIndex = 0; variable 122 pOption[endIndex + DHCP_OPT_CODE_INDEX] = PAD_OPTION; 123 endIndex += DHCP_OPT_CODE_BYTES; 125 pOption[endIndex + DHCP_OPT_CODE_INDEX] = SUBNET_MASK_OPTION; 126 pOption[endIndex + DHCP_OPT_LEN_INDEX] = DHCP_UINT32_BYTES; 129 …memcpy_s(pOption + endIndex + DHCP_OPT_DATA_INDEX, DHCP_UINT32_BYTES, &u32Data, DHCP_UINT32_BYTES)… 130 endIndex += DHCP_OPT_CODE_BYTES + DHCP_OPT_LEN_BYTES + pOption[endIndex + DHCP_OPT_LEN_INDEX]; 132 pOption[endIndex + DHCP_OPT_CODE_INDEX] = END_OPTION;
|
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/common/ |
H A D | spannable_string.h | 121 uint16_t& endIndex, in EqualInsert() argument 127 if ((startIndex == tempStart) && endIndex == tempEnd) { in EqualInsert() 135 if (endIndex < tempStart) { in EqualInsert() 137 } else if (endIndex <= tempEnd) { in EqualInsert() 138 endIndex = tempEnd; in EqualInsert() 149 } else if (endIndex <= tempEnd) { in EqualInsert() 162 uint16_t& endIndex, in UnequalInsert() argument 176 } else if (startIndex > tempStart && endIndex >= tempEnd) { in UnequalInsert() 184 (*tempSpan)->data_.start = endIndex; in UnequalInsert() 185 } else if (endIndex < tempStart) { in UnequalInsert() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/common/ |
H A D | spannable_string.cpp | 39 SetSpannable(true, startIndex, endIndex); in SetTextStyle() 193 inputSpan.end = endIndex; in SetFontSize() 252 inputSpan.end = endIndex; in SetFontId() 272 tempRight.start = endIndex; in SetFontId() 281 inputSpan.end = endIndex; in SetFontId() 310 inputSpan.end = endIndex; in SetFontHeight() 331 tempRight.start = endIndex; in SetFontHeight() 340 inputSpan.end = endIndex; in SetFontHeight() 379 inputSpan.end = endIndex; in SetBackgroundColor() 442 inputSpan.end = endIndex; in SetForegroundColor() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | content_controller.cpp | 85 FormatIndex(startIndex, endIndex); in ReplaceSelectedValue() 90 …StringUtils::ToString(wideText.substr(endIndex, static_cast<int32_t>(wideText.length()) - endIndex… in ReplaceSelectedValue() 103 FormatIndex(startIndex, endIndex); in GetSelectedValue() 110 startIndex = std::min(startIndex, endIndex); in FormatIndex() 111 endIndex = std::max(startIndex, endIndex); in FormatIndex() 114 endIndex = std::clamp(endIndex, 0, static_cast<int32_t>(wideText.length())); in FormatIndex() 385 int32_t endIndex = index + EMOJI_RANGE_RIGHT; in IsIndexBeforeOrInEmoji() local 386 FormatIndex(startIndex, endIndex); in IsIndexBeforeOrInEmoji() 404 int32_t endIndex = index + AI_TEXT_RANGE_RIGHT; in GetSelectedLimitValue() local 405 FormatIndex(startIndex, endIndex); in GetSelectedLimitValue() [all …]
|
H A D | content_controller.h | 36 bool ReplaceSelectedValue(int32_t startIndex, int32_t endIndex, const std::string& value); 37 std::string GetSelectedValue(int32_t startIndex, int32_t endIndex); 92 void FormatIndex(int32_t& startIndex, int32_t& endIndex); 94 std::string PreprocessString(int32_t startIndex, int32_t endIndex, const std::string& value);
|
/ohos5.0/base/startup/init/services/param/trigger/ |
H A D | trigger_checker.c | 37 calculator->endIndex = 0; in CalculatorInit() 66 calculator->endIndex = 0; in CalculatorClear() 74 calculator->data[calculator->endIndex++] = data; in CalculatorPushChar() 82 if (calculator->endIndex == 0) { in CalculatorPopChar() 85 *data = calculator->data[--calculator->endIndex]; in CalculatorPopChar() 96 calculator->endIndex++; in CalculatorPush() 104 if (calculator->endIndex == 0) { in CalculatorPop() 110 calculator->endIndex--; in CalculatorPop() 117 return calculator->endIndex; in CalculatorLength() 254 data1.endIndex = currIndex; in ComputeCondition() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/text/ |
H A D | text_emoji_processor.cpp | 104 endIndex = emojiEndIndex; in IsIndexInEmoji() 108 endIndex = index; in IsIndexInEmoji() 138 endIndex = index; in GetIndexRelationToEmoji() 208 int32_t& startIndex, int32_t& endIndex) in IsIndexBeforeOrInEmoji() argument 216 endIndex = emojiEndIndex; in IsIndexBeforeOrInEmoji() 220 endIndex = index; in IsIndexBeforeOrInEmoji() 225 int32_t& startIndex, int32_t& endIndex) in IsIndexAfterOrInEmoji() argument 233 endIndex = emojiEndIndex; in IsIndexAfterOrInEmoji() 237 endIndex = index; in IsIndexAfterOrInEmoji() 256 int32_t endIndex = index + length; in CalSubWstringRange() local [all …]
|
H A D | text_emoji_processor.h | 26 int endIndex; member 53 … IsIndexInEmoji(int32_t index, const std::string& content, int32_t& startIndex, int32_t& endIndex); 55 const std::string& content, int32_t& startIndex, int32_t& endIndex); 59 int32_t& startIndex, int32_t& endIndex); 61 int32_t& startIndex, int32_t& endIndex);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_item_group_pattern.cpp | 201 if (layoutedItemInfo_.value().endIndex >= itemTotalCount_ - 1) { in GetEstimateOffset() 462 if (iter->first >= endIndex + 1 && iter->first <= endLimit) { in UpdateCachedIndexForward() 469 cachedItemPosition_.find(endIndex + 1) == cachedItemPosition_.end()) { in UpdateCachedIndexForward() 470 forwardCachedIndex = endIndex; in UpdateCachedIndexForward() 516 int32_t endIndex = itemPosition_.rbegin()->first; in UpdateCachedIndexOmni() local 522 (iter->first >= endIndex + 1 && iter->first <= endLimit)) { in UpdateCachedIndexOmni() 535 cachedItemPosition_.find(endIndex + 1) == cachedItemPosition_.end()) { in UpdateCachedIndexOmni() 536 forwardRes = endIndex; in UpdateCachedIndexOmni() 574 int32_t endIndex = itemPosition_.rbegin()->first; in UpdateCachedIndex() local 736 info.endIndex = std::max(info.endIndex + count, 0); in NotifyDataChange() [all …]
|
H A D | list_layout_algorithm.cpp | 334 endIndex = GetLanesFloor(layoutWrapper, endIndex); in HandleJumpAuto() 738 int32_t endIndex = 0; in MeasureList() local 807 endIndex = needLayoutBackward ? res.first : endIndex; in MeasureList() 856 endIndex = midIndex; in MeasureList() 881 endIndex = GetLanesCeil(layoutWrapper, endIndex); in MeasureList() 1229 if (GetStartIndex() <= endIndex && endIndex <= GetEndIndex()) { in FixPredictSnapOffset() 2307 int32_t endIndex = -1; in FindPredictSnapEndIndexInItemPositions() local 2319 endIndex = std::min(GetEndIndex(), endIndex + 1); in FindPredictSnapEndIndexInItemPositions() 2321 endIndex = std::min(GetStartIndex(), endIndex - 1); in FindPredictSnapEndIndexInItemPositions() 2324 return endIndex; in FindPredictSnapEndIndexInItemPositions() [all …]
|
H A D | list_item_group_layout_algorithm.cpp | 450 int32_t endIndex = totalItemCount_ - 1; in MeasureListItem() local 478 endIndex = jumpIndex; in MeasureListItem() 482 endIndex = jumpIndex; in MeasureListItem() 521 endIndex = GetLanesCeil(endIndex); in MeasureListItem() 532 endIndex = GetLanesCeil(endIndex); in MeasureListItem() 534 … endPos = childrenSize_ ? posMap_->GetPos(endIndex) + posMap_->GetRowHeight(endIndex) : endPos; in MeasureListItem() 750 int32_t currentIndex = endIndex + 1; in MeasureJumpToItemBackward() 856 endIndex -= jumpCount; in CheckJumpBackwardForBigOffset() 904 auto currentIndex = endIndex + 1; in MeasureBackward() 921 currentIndex = endIndex; in MeasureBackward() [all …]
|
H A D | list_position_map.h | 496 int32_t endIndex = input; in GetRowEndIndexAndHeight() local 498 while (endIndex < (totalItemCount_ - 1) && in GetRowEndIndexAndHeight() 499 NearEqual(posMap_[endIndex].mainPos, posMap_[endIndex + 1].mainPos)) { in GetRowEndIndexAndHeight() 500 endIndex++; in GetRowEndIndexAndHeight() 502 if (endIndex == totalItemCount_ - 1) { in GetRowEndIndexAndHeight() 503 rowHeight = totalHeight_ - posMap_[endIndex].mainPos - footerSize_; in GetRowEndIndexAndHeight() 505 rowHeight = posMap_[endIndex + 1].mainPos - posMap_[endIndex].mainPos - space_; in GetRowEndIndexAndHeight() 507 return { endIndex, rowHeight }; in GetRowEndIndexAndHeight()
|
H A D | list_layout_algorithm.h | 330 void LayoutBackward(LayoutWrapper* layoutWrapper, int32_t endIndex, float endPos); 336 void HandleJumpAuto(LayoutWrapper* layoutWrapper, int32_t startIndex, int32_t endIndex); 345 int32_t startIndex, int32_t endIndex, int32_t jumpIndex, float jumpIndexStartPos); 348 int32_t startIndex, int32_t endIndex, int32_t jumpIndex); 350 …ol CheckNoNeedJumpListItemGroup(LayoutWrapper* layoutWrapper, int32_t startIndex, int32_t endIndex, 392 int32_t startIndex, int32_t endIndex); 518 …void FindPredictSnapIndexInItemPositionsStart(float predictEndPos, int32_t& endIndex, int32_t& cur… 519 …void FindPredictSnapIndexInItemPositionsCenter(float predictEndPos, int32_t& endIndex, int32_t& cu… 520 …void FindPredictSnapIndexInItemPositionsEnd(float predictEndPos, int32_t& endIndex, int32_t& currI…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_layout_algorithm.cpp | 248 endIndex = std::min(endIndex, realTotalCount_ - 1); in Measure() 262 while (endIndex - 1 >= 0 && in Measure() 264 endIndex--; in Measure() 268 … layoutWrapper->SetActiveChildRange(endIndex, startIndex, std::min(cachedCount_, endIndex), in Measure() 441 int32_t endIndex = 0; in MeasureSwiper() local 466 endIndex = GetEndIndex(); in MeasureSwiper() 496 endIndex = it->first; in MeasureSwiper() 844 auto currentIndex = endIndex + 1; in LayoutBackward() 1441 if (startIndex <= endIndex) { in CheckCachedItem() 1457 endIndex = GetLoopIndex(endIndex + 1); in CheckCachedItem() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_layout_algorithm.cpp | 409 auto endIndex = jumpIndex_.value() + 1; in MeasureJumpIndex() local 422 auto endIndex = 0; in MeasureWithOffset() local 432 startIndex = endIndex - 1; in MeasureWithOffset() 439 endIndex = startIndex + 1; in MeasureWithOffset() 477 int32_t& endIndex, float& endPos) in LayoutForward() argument 482 …while (endIndex < childCount_ && (endIndex == 0 || LessNotEqual(endPos, endMainPos_) || isBarAdapt… in LayoutForward() 484 if (endIndex < 0) { in LayoutForward() 485 endIndex = 0; in LayoutForward() 489 visibleItemPosition_[endIndex] = { endPos, endPos + visibleItemLength_[endIndex] }; in LayoutForward() 490 endPos += visibleItemLength_[endIndex]; in LayoutForward() [all …]
|
/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | list-pullup-loading-data.md | 85 // 因为加载更多是在列表后面新增一个item,当一屏能够展示全部列表,endIndex 为 length+1 86 if (this.endIndex == this.list.length - 1 || this.endIndex == this.list.length) { 168 private endIndex: number = 0 // 当前列表尾部索引 221 this.endIndex = end 245 // 因为加载更多是在列表后面新增一个item,当一屏能够展示全部列表,endIndex 为 length+1 246 if (this.endIndex == this.list.length - 1 || this.endIndex == this.list.length) {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/ |
H A D | lazy_layout_wrapper_builder.h | 39 …void UpdateIndexRange(int32_t startIndex, int32_t endIndex, const std::list<std::optional<std::str… in UpdateIndexRange() argument 42 if ((size != 0) && (size != (endIndex - startIndex + 1))) { in UpdateIndexRange() 44 endIndex, size); in UpdateIndexRange() 49 preEndIndex_ = endIndex; in UpdateIndexRange()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/ |
H A D | _o_h___drawing___line_metrics.md | 29 | size_t [endIndex](#endindex) | 行结束位置字符索引。 | 69 ### endIndex subsection 72 size_t OH_Drawing_LineMetrics::endIndex
|
/ohos5.0/base/update/update_app/common/src/main/ets/util/ |
H A D | LogUtils.ts | 98 let endIndex: number = tempResult.indexOf('/'); 99 tempResult = endIndex >= 0 ? tempResult.substring(endIndex) : '';
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/irregular/ |
H A D | grid_irregular_filler_test.cpp | 326 EXPECT_EQ(res.endIndex, 9); 354 EXPECT_EQ(res.endIndex, 9); 364 EXPECT_EQ(res.endIndex, 9); 392 EXPECT_EQ(res.endIndex, 3); 399 EXPECT_EQ(res.endIndex, 8); 406 EXPECT_EQ(res.endIndex, 10); 433 EXPECT_EQ(res.endIndex, 3); 441 EXPECT_EQ(res.endIndex, 7); 469 EXPECT_EQ(res.endIndex, 7); 478 EXPECT_EQ(res.endIndex, 7);
|
/ohos5.0/base/update/updateservice/foundations/ability/utils/include/ |
H A D | string_utils.h | 69 static std::string SafeSubString(const std::string &sourceStr, int beginIndex, int endIndex, in SafeSubString() argument 75 … if (beginIndex < 0 || static_cast<size_t>(endIndex) > sourceStr.size() || beginIndex > endIndex) { in SafeSubString() 78 return sourceStr.substr(beginIndex, endIndex); in SafeSubString()
|
/ohos5.0/foundation/multimedia/media_foundation/src/meta/ |
H A D | any.cpp | 174 size_t endIndex = stringInfo.find_last_of(']'); in GetTypeNameFromFunctionInfo() local 176 size_t endIndex = stringInfo.find_last_of(';'); in GetTypeNameFromFunctionInfo() local 178 FALSE_RETURN_V_MSG_E(endIndex != std::string::npos, in GetTypeNameFromFunctionInfo() 180 std::string_view typeNameRet(functionInfo + beginIndex, endIndex - beginIndex); in GetTypeNameFromFunctionInfo()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/list/ |
H A D | list_scroller_event_test_ng.cpp | 152 int32_t endIndex; variable 154 … auto event = [&startIndex, &endIndex, ¢erIndex](int32_t start, int32_t end, int32_t center) { in __anoned765ad30302() 156 endIndex = end; in __anoned765ad30302() 166 EXPECT_EQ(endIndex, 4); 171 EXPECT_EQ(endIndex, 5); 299 int32_t endIndex = -1; variable 300 auto onScrollVisibleContentChange = [&startIndex, &endIndex]( 303 endIndex = end.index; in __anoned765ad30902() 312 EXPECT_EQ(endIndex, 4); 316 EXPECT_EQ(endIndex, 5);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | paragraph_manager.cpp | 181 auto endIndex = 0; in GetWordBoundary() local 187 end += endIndex; in GetWordBoundary() 193 endIndex = info.end; in GetWordBoundary() 251 size_t endIndex = 0; in GetLineMetrics() local 260 endIndex += lastLineMetrics.endIndex + 1; in GetLineMetrics() 264 lineMetrics.startIndex += endIndex; in GetLineMetrics() 265 lineMetrics.endIndex += endIndex; in GetLineMetrics()
|