Home
last modified time | relevance | path

Searched refs:endIndex (Results 1 – 10 of 10) sorted by relevance

/base/startup/init/services/param/trigger/
Dtrigger_checker.c37 calculator->endIndex = 0; in CalculatorInit()
66 calculator->endIndex = 0; in CalculatorClear()
72 …PARAM_CHECK(calculator->endIndex < calculator->dataNumber, return -1, "More data for calculator su… in CalculatorPushChar()
74 calculator->data[calculator->endIndex++] = data; in CalculatorPushChar()
81 …PARAM_CHECK(calculator->endIndex < calculator->dataNumber, return -1, "More data for calculator su… in CalculatorPopChar()
82 if (calculator->endIndex == 0) { in CalculatorPopChar()
85 *data = calculator->data[--calculator->endIndex]; in CalculatorPopChar()
92 …PARAM_CHECK(calculator->endIndex < calculator->dataNumber, return -1, "More data for calculator su… in CalculatorPush()
93 char *tmpData = (char *)calculator->data + calculator->dataUnit * calculator->endIndex; in CalculatorPush()
96 calculator->endIndex++; in CalculatorPush()
[all …]
Dtrigger_manager.c167 for (uint32_t i = executeQueue->startIndex; i < executeQueue->endIndex; i++) { in DelJobTrigger_()
328 uint32_t index = workSpace->executeQueue.endIndex++ % workSpace->executeQueue.queueCount; in ExecuteQueuePush()
338 if (workSpace->executeQueue.endIndex <= workSpace->executeQueue.startIndex) { in ExecuteQueuePop()
554 …ce->executeQueue.queueCount, workSpace->executeQueue.startIndex, workSpace->executeQueue.endIndex); in SystemDumpTriggers()
555 …_t index = workSpace->executeQueue.startIndex; index < workSpace->executeQueue.endIndex; index++) { in SystemDumpTriggers()
Dtrigger_processor.c316 g_triggerWorkSpace.executeQueue.endIndex = 0; in InitTriggerWorkSpace()
/base/update/updateservice/services/core/ability/utils/test/unittest/
Dstring_utils_test.cpp171 int endIndex = 5; variable
172 …EXPECT_EQ("default", StringUtils::SafeSubString(sourceString, beginIndex, endIndex, defaultString)…
186 int endIndex = 5; variable
187 …EXPECT_EQ("default", StringUtils::SafeSubString(sourceString, beginIndex, endIndex, defaultString)…
201 int endIndex = 40; variable
202 …EXPECT_EQ("default", StringUtils::SafeSubString(sourceString, beginIndex, endIndex, defaultString)…
216 int endIndex = 5; variable
217 …EXPECT_EQ("default", StringUtils::SafeSubString(sourceString, beginIndex, endIndex, defaultString)…
231 int endIndex = 9; variable
232 …EXPECT_EQ("ubString ", StringUtils::SafeSubString(sourceString, beginIndex, endIndex, defaultStrin…
/base/update/update_app/common/src/main/ets/util/
DLogUtils.ts98 let endIndex: number = tempResult.indexOf('/');
99 tempResult = endIndex >= 0 ? tempResult.substring(endIndex) : '';
/base/update/updateservice/services/core/ability/utils/include/
Dstring_utils.h69 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()
/base/startup/init/services/param/include/
Dtrigger_checker.h45 uint32_t endIndex; member
54 int endIndex; member
Dtrigger_manager.h151 uint32_t endIndex; member
/base/startup/init/services/utils/
Dinit_utils.c270 size_t endIndex = 0; in GetProcCmdlineValue() local
276 endIndex = i; in GetProcCmdlineValue()
280 endIndex = i; in GetProcCmdlineValue()
284 if (endIndex != 0) { // for root=uuid=xxxx in GetProcCmdlineValue()
288 endIndex = 0; in GetProcCmdlineValue()
296 value[endIndex] = '\0'; in GetProcCmdlineValue()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
Dhiappevent_base.cpp38 auto endIndex = str.find_last_not_of("0"); in TrimRightZero() local
39 if (endIndex == std::string::npos) { in TrimRightZero()
43 return (str[endIndex] == '.') ? str.substr(0, endIndex) : str.substr(0, endIndex + 1); in TrimRightZero()