Home
last modified time | relevance | path

Searched refs:startIdx (Results 1 - 24 of 24) sorted by relevance

/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/
H A Dwater_flow_section_test.cpp34 int32_t startIdx = -1; in HWTEST_F() local
35 s.SetOnDataChange([&startIdx](int32_t start) { startIdx = start; }); in HWTEST_F()
37 EXPECT_EQ(startIdx, 0); in HWTEST_F()
41 EXPECT_EQ(startIdx, 5); in HWTEST_F()
46 EXPECT_EQ(startIdx, 4); in HWTEST_F()
51 EXPECT_EQ(startIdx, 5); in HWTEST_F()
56 EXPECT_EQ(startIdx, 4); in HWTEST_F()
61 EXPECT_EQ(startIdx, 5); in HWTEST_F()
65 EXPECT_EQ(startIdx, in HWTEST_F()
78 int32_t startIdx = -1; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dstring_util.cpp67 int32_t startIdx = (start < 0) ? (start + size) : start; in Slice() local
68 startIdx = (startIdx < 0) ? 0 : startIdx; in Slice()
71 if (startIdx > endIdx || endIdx < 0) { in Slice()
74 int32_t diffSize = endIdx - startIdx; in Slice()
79 if (strncpy_s(buffer, diffSize + 1, sequence + startIdx, diffSize) == 0) { in Slice()
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Dlist_element.cpp76 size_t startIdx = FindItemStartIndex(0, index); in FindItemStartIndex() local
77 listItemRange_[startIdx] = index; in FindItemStartIndex()
78 return startIdx; in FindItemStartIndex()
84 size_t startIdx = FindItemStartIndex(it->second, index); in FindItemStartIndex() local
85 if (startIdx != INVALID_INDEX) { in FindItemStartIndex()
86 listItemRange_[startIdx] = index; in FindItemStartIndex()
87 return startIdx; in FindItemStartIndex()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/
H A Dgrid_layout_range_solver.cpp55 auto [startRow, startIdx] = CheckMultiRow(jumpLineIdx); in FindRangeOnJump()
58 return { startRow, startIdx, offset, endLineIdx, endIdx }; in FindRangeOnJump()
96 auto [startRow, startIdx] = CheckMultiRow(it->first); in SolveForward()
101 return { startRow, startIdx, len - targetLen + mainGap }; in SolveForward()
H A Dgrid_layout_range_solver.h52 int32_t startIdx = 0; /**< Index of the starting GridItem in layout range. */ member
H A Dgrid_irregular_layout_algorithm.cpp331 info_.startIndex_ = res.startIdx; in Jump()
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_util.c87 uint32_t fileNameLen, startIdx; in GetFileName() local
99 startIdx = (uint32_t)(strlen(dir) + 1 - fileNameLen); in GetFileName()
100 if (strcpy_s(name, nameLen, dir + startIdx) != EOK) { in GetFileName()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/
H A Dcoap_discover.c51 uint32_t startIdx; member
365 uint32_t i = msgIdList->startIdx;
366 if (msgIdList->startIdx >= COAP_MAX_MSGID_RESERVE_NUM || msgIdList->endIdx >= COAP_MAX_MSGID_RESERVE_NUM) {
375 msgIdList->startIdx = COAP_MAX_MSGID_RESERVE_NUM;
379 msgIdList->startIdx = (msgIdList->startIdx + 1) % COAP_MAX_MSGID_RESERVE_NUM;
380 i = msgIdList->startIdx;
384 msgIdList->startIdx = COAP_MAX_MSGID_RESERVE_NUM;
398 msgIdList->startIdx = 0;
402 if (idx == msgIdList->startIdx) {
[all...]
/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/
H A Dendpoint_rpc.c174 static int SendGetAllSysCapsRequest(const Endpoint *endpoint, uint32 startIdx, IpcIo *reply, void **replyBuf) in SendGetAllSysCapsRequest() argument
182 WriteUint32(&req, startIdx); in SendGetAllSysCapsRequest()
188 HILOG_DEBUG(HILOG_MODULE_SAMGR, "SendGetAllSysCapsRequest startIdx:%u, ret:%d!", startIdx, ret); in SendGetAllSysCapsRequest()
241 uint32 startIdx = 0; in SAMGR_GetSystemCapabilities() local
245 ret = SendGetAllSysCapsRequest(endpoint, startIdx, &reply, &replyBuf); in SAMGR_GetSystemCapabilities()
247 ret = ParseGetAllSysCapsReply(&reply, sysCaps, sysCapNum, &isEnd, &startIdx); in SAMGR_GetSystemCapabilities()
H A Dendpoint.c207 static int SendGetAllSysCapsRequest(const Endpoint *endpoint, uint32 startIdx, IpcIo *reply, void **replyBuf) in SendGetAllSysCapsRequest() argument
214 IpcIoPushUint32(&req, startIdx); in SendGetAllSysCapsRequest()
218 HILOG_DEBUG(HILOG_MODULE_SAMGR, "SendGetAllSysCapsRequest startIdx:%u, ret:%d!", startIdx, ret); in SendGetAllSysCapsRequest()
264 uint32 startIdx = 0; in SAMGR_GetSystemCapabilities() local
268 ret = SendGetAllSysCapsRequest(endpoint, startIdx, &reply, &replyBuf); in SAMGR_GetSystemCapabilities()
270 ret = ParseGetAllSysCapsReply(&reply, sysCaps, sysCapNum, &isEnd, &startIdx); in SAMGR_GetSystemCapabilities()
/foundation/systemabilitymgr/samgr_lite/samgr_server/source/
H A Dsamgr_server_rpc.c533 static int32 GetReplyNumAndNextReqIdx(Vector *sysCapablitys, int32 startIdx, int32 *nextRequestIdx) in GetReplyNumAndNextReqIdx() argument
537 int32 i = startIdx; in GetReplyNumAndNextReqIdx()
551 uint32_t startIdx; in ProcGetAllSysCap() local
552 ReadUint32(req, &startIdx); in ProcGetAllSysCap()
559 WriteUint32(reply, startIdx); in ProcGetAllSysCap()
564 int32 nextRequestIdx = startIdx; in ProcGetAllSysCap()
565 int32 replyNum = GetReplyNumAndNextReqIdx(sysCapablitys, startIdx, &nextRequestIdx); in ProcGetAllSysCap()
566 HILOG_DEBUG(HILOG_MODULE_SAMGR, "ProcGetAllSysCap replyNum: %d, size: %d, startIdx: %u, nextRequestIdx: %d", in ProcGetAllSysCap()
567 replyNum, size, startIdx, nextRequestIdx); in ProcGetAllSysCap()
575 int32 i = startIdx; in ProcGetAllSysCap()
[all...]
H A Dsamgr_server.c421 static int32 GetReplyNumAndNextReqIdx(Vector *sysCapablitys, int32 startIdx, int32 *nextRequestIdx) in GetReplyNumAndNextReqIdx() argument
425 int32 i = startIdx; in GetReplyNumAndNextReqIdx()
439 uint32_t startIdx = IpcIoPopUint32(req); in ProcGetAllSysCap() local
446 IpcIoPushUint32(reply, startIdx); in ProcGetAllSysCap()
451 int32 nextRequestIdx = startIdx; in ProcGetAllSysCap()
452 int32 replyNum = GetReplyNumAndNextReqIdx(sysCapablitys, startIdx, &nextRequestIdx); in ProcGetAllSysCap()
453 HILOG_DEBUG(HILOG_MODULE_SAMGR, "ProcGetAllSysCap replyNum: %d, size: %d, startIdx: %u, nextRequestIdx: %d", in ProcGetAllSysCap()
454 replyNum, size, startIdx, nextRequestIdx); in ProcGetAllSysCap()
462 int32 i = startIdx; in ProcGetAllSysCap()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/
H A Dgrid_scroll_with_options_layout_algorithm.h51 void UpdateMainLineOnReload(int32_t startIdx) override
H A Dgrid_scroll_layout_algorithm.h170 * @param startIdx index of the first GridItem in viewport
172 virtual void UpdateMainLineOnReload(int32_t startIdx);
H A Dgrid_scroll_layout_algorithm.cpp26 int32_t startIdx, LayoutWrapper* host, int32_t cacheCnt, std::list<GridPreloadItem>& buildList) in AddCacheItemsInFront()
29 int32_t item = startIdx - i; in AddCacheItemsInFront()
2179 void GridScrollLayoutAlgorithm::UpdateMainLineOnReload(int32_t startIdx) in UpdateMainLineOnReload() argument
2183 info.startMainLineIndex_ = startIdx / info.crossCount_; in UpdateMainLineOnReload()
25 AddCacheItemsInFront( int32_t startIdx, LayoutWrapper* host, int32_t cacheCnt, std::list<GridPreloadItem>& buildList) AddCacheItemsInFront() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_lanes_layout_algorithm.cpp394 int32_t startIdx = FindLanesStartIndex(layoutWrapper, 0, index); in FindLanesStartIndex() local
395 lanesItemRange_[startIdx] = index; in FindLanesStartIndex()
396 return startIdx; in FindLanesStartIndex()
402 int32_t startIdx = FindLanesStartIndex(layoutWrapper, it->second, index); in FindLanesStartIndex() local
403 if (startIdx >= 0) { in FindLanesStartIndex()
404 lanesItemRange_[startIdx] = index; in FindLanesStartIndex()
405 return startIdx; in FindLanesStartIndex()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/sliding_window/
H A Dwater_flow_layout_info_sw.cpp423 int32_t startIdx = StartIndex();
426 return min(abs(idx - endIdx), abs(idx - startIdx)) < endIdx - startIdx + 1;
465 const int32_t startIdx = StartIndex();
466 int32_t startSeg = GetSegment(startIdx);
471 if (startIdx > 0) {
474 } else if (startIdx != segmentTails_[startSeg - 1] + 1) {
H A Dwater_flow_layout_sw.cpp438 int32_t startIdx = info_->StartIndex(); in ClearBack() local
439 for (int32_t i = info_->EndIndex(); i > startIdx; --i) { in ClearBack()
442 startIdx); in ClearBack()
602 int32_t startIdx = info_->StartIndex(); in AdjustOverScroll() local
603 if (startIdx == 0 && Positive(minStart)) { in AdjustOverScroll()
607 if (startIdx == 0) { in AdjustOverScroll()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/
H A Dwater_flow_segmented_layout.h117 * @param startIdx index of the first new FlowItem.
119 void Fill(int32_t startIdx);
H A Dwater_flow_segmented_layout.cpp444 void WaterFlowSegmentedLayout::Fill(int32_t startIdx) in Fill() argument
446 for (int32_t i = startIdx; i < info_->childrenCount_; ++i) { in Fill()
/foundation/communication/wifi/wifi/utils/src/
H A Dwifi_common_util.cpp79 const char hiddenCh, const int startIdx = 0) in DataAnonymize()
99 while (idx++ < startIdx && begin < end) { in DataAnonymize()
/foundation/multimedia/media_library/frameworks/js/src/sendable/
H A Dsendable_photo_access_helper_napi.cpp929 const int32_t startIdx = 1; in CreateMediaTypeUserFileEnum() local
930 return CreateNumberEnumProperty(env, mediaTypesUserFileEnum, sMediaTypeEnumRef_, startIdx); in CreateMediaTypeUserFileEnum()
935 const int32_t startIdx = 1; in CreateKeyFrameThumbnailTypeEnum() local
936 return CreateNumberEnumProperty(env, keyFrameThumbnailTypeEnum, sKeyFrameThumbnailTypeRef_, startIdx); in CreateKeyFrameThumbnailTypeEnum()
1158 const int32_t startIdx = 1; in CreatePositionTypeEnum() local
1159 return CreateNumberEnumProperty(env, positionTypeEnum, sPositionTypeEnumRef_, startIdx); in CreatePositionTypeEnum()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_info.cpp458 int32_t startIdx = lines * crossCount_ + lastIndex; in SkipStartIndexByOffset() local
459 startIndex_ = std::min(startIdx, childrenCount_ - 1); in SkipStartIndexByOffset()
/foundation/multimedia/media_library/frameworks/js/src/
H A Dmedia_library_napi.cpp6483 const int32_t startIdx = 1; in CreateKeyFrameThumbnailTypeEnum() local
6484 return CreateNumberEnumProperty(env, keyFrameThumbnailTypeEnum, sKeyFrameThumbnailTypeRef_, startIdx); in CreateKeyFrameThumbnailTypeEnum()
6489 const int32_t startIdx = 1; in CreateMediaTypeUserFileEnum() local
6490 return CreateNumberEnumProperty(env, mediaTypesUserFileEnum, sMediaTypeEnumRef_, startIdx); in CreateMediaTypeUserFileEnum()
6545 const int32_t startIdx = 1; in CreateImageFileTypeEnum() local
6546 return CreateNumberEnumProperty(env, imageFileTypeEnum, sImageFileTypeEnumEnumRef_, startIdx); in CreateImageFileTypeEnum()
6703 const int32_t startIdx = 1; in CreateResourceTypeEnum() local
6704 return CreateNumberEnumProperty(env, resourceTypeEnum, sResourceTypeEnumRef_, startIdx); in CreateResourceTypeEnum()
7226 const int32_t startIdx = 1; in CreatePositionTypeEnum() local
7227 return CreateNumberEnumProperty(env, positionTypeEnum, sPositionTypeEnumRef_, startIdx); in CreatePositionTypeEnum()
[all...]

Completed in 42 milliseconds