Home
last modified time | relevance | path

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

/base/security/crypto_framework/common/src/
H A Dhcf_parcel.c53 parcel->endPos = 0; in DeleteParcel()
61 if (parcel->endPos >= parcel->beginPos) { in GetParcelDataSize()
62 return parcel->endPos - parcel->beginPos; in GetParcelDataSize()
123 uint32_t contentSize = parcel->endPos - parcel->beginPos; in ParcelRecycle()
125 (void)memmove_s(parcel->data, parcel->endPos - parcel->beginPos, in ParcelRecycle()
126 parcel->data + parcel->beginPos, parcel->endPos - parcel->beginPos); in ParcelRecycle()
129 parcel->endPos = contentSize; in ParcelRecycle()
150 if (parcel->endPos > PARCEL_UINT_MAX - dataSize) { in ParcelWrite()
153 if (parcel->endPos + dataSize > parcel->length) { in ParcelWrite()
155 if (parcel->endPos in ParcelWrite()
[all...]
/base/security/device_auth/common_lib/impl/src/
H A Dhc_parcel.c52 parcel->endPos = 0; in DeleteParcel()
59 parcel->endPos = 0; in ClearParcel()
77 if (parcel->endPos >= parcel->beginPos) { in GetParcelDataSize()
78 return parcel->endPos - parcel->beginPos; in GetParcelDataSize()
96 return parcel->data + parcel->endPos - 1; in GetParcelLastChar()
121 if (parcel->beginPos + dataSize > parcel->endPos) { in ParcelRead()
158 parcel->endPos -= dataSize; in ParcelEraseBlock()
278 uint32_t contentSize = parcel->endPos - parcel->beginPos; in ParcelRecycle()
280 if (memmove_s(parcel->data, parcel->endPos - parcel->beginPos, in ParcelRecycle()
281 parcel->data + parcel->beginPos, parcel->endPos in ParcelRecycle()
[all...]
/base/hiviewdfx/hiview/base/utility/
H A Dhiview_db_util.cpp68 size_t endPos = dbFileName.rfind("."); in GetDateFromDbFile() local
69 if (endPos == std::string::npos) { in GetDateFromDbFile()
72 return startPos < endPos ? dbFileName.substr(startPos + 1, endPos - startPos - 1) : ""; in GetDateFromDbFile()
H A Dstring_util.cpp281 size_t endPos = input.find(end, beginPos); in GetMidSubstr() local
282 if (endPos == string::npos) { in GetMidSubstr()
285 return input.substr(beginPos, endPos - beginPos); in GetMidSubstr()
339 auto endPos = target.find_first_of(end, beginPos); in FindMatchSubString() local
340 if (endPos == std::string::npos) { in FindMatchSubString()
343 return target.substr(beginPos, endPos); in FindMatchSubString()
440 size_t endPos = cmdLine.size(); in FormatCmdLine() local
445 endPos = i; in FormatCmdLine()
449 return cmdLine.substr(startPos, endPos - startPos); in FormatCmdLine()
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
H A Dcommon_util.cpp89 auto endPos = fileName.find(ext); in GetFileNameNum() local
90 if (endPos == std::string::npos) { in GetFileNameNum()
93 if (endPos <= startPos + 1) { in GetFileNameNum()
96 return StringUtil::StrToInt(fileName.substr(startPos + 1, endPos - startPos - 1)); in GetFileNameNum()
H A Dio_collector_impl.cpp156 auto endPos = fileName.find(EXPORT_FILE_SUFFIX); in GetFileNameNum() local
157 if (endPos == std::string::npos) { in GetFileNameNum()
160 if (endPos <= startPos + 1) { in GetFileNameNum()
163 return StringUtil::StrToInt(fileName.substr(startPos + 1, endPos - startPos - 1)); in GetFileNameNum()
/base/hiviewdfx/hiview/plugins/unified_collector/task/
H A Dcpu_perf_dump.cpp139 auto endPos = fileName.find_last_of('.'); in GetTimestamp() local
140 if (endPos == std::string::npos) { in GetTimestamp()
143 if (endPos <= startPos + 1) { in GetTimestamp()
146 return fileName.substr(startPos + 1, endPos - startPos - 1); in GetTimestamp()
/base/update/updater/interfaces/kits/updaterkits/
H A Dupdaterkits.cpp86 std::string::size_type endPos = pathInfo.find(".zip"); in ParsePkgPath() local
87 if (startPos != pathInfo.npos && endPos != pathInfo.npos) { in ParsePkgPath()
89 endPos += strlen(".zip"); in ParsePkgPath()
90 if (endPos > startPos) { in ParsePkgPath()
91 pkgPath = pathInfo.substr(startPos, endPos - startPos); in ParsePkgPath()
/base/global/i18n/frameworks/intl/src/
H A Dtaboo.cpp204 size_t endPos = value.find(tabooDataSplitor, startPos); in SplitValue() local
205 if (endPos == std::string::npos) { in SplitValue()
207 endPos = value.length(); in SplitValue()
209 collation.insert(value.substr(startPos, endPos - startPos)); in SplitValue()
211 startPos = endPos + 1; in SplitValue()
/base/security/crypto_framework/common/inc/
H A Dhcf_parcel.h33 unsigned int endPos; member
/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/src/
H A Dpeak_finder.cpp319 int32_t PeakFinder::DeletePeaks(const std::vector<double> &envelope, int32_t startPos, int32_t endPos, in DeletePeaks() argument
326 if (DetectValley(envelope, startPos, endPos, mountainPosition, valleyPoint) != Sensors::SUCCESS) { in DeletePeaks()
334 for (int32_t peakIndex = startPos; peakIndex < (endPos + 1); peakIndex++) { in DeletePeaks()
340 --endPos; in DeletePeaks()
345 if (endPos <= startPos) { in DeletePeaks()
349 endIndex = endPos; in DeletePeaks()
381 int32_t PeakFinder::DetectValley(const std::vector<double> &envelope, int32_t startPos, int32_t endPos, in DetectValley() argument
388 if (startPos < 0 || endPos < 0) { in DetectValley()
389 SEN_HILOGE("startPos or endPos is wrong"); in DetectValley()
395 if ((startPos >= mountainPosition.firstPos.size()) || (endPos > in DetectValley()
[all...]
/base/update/sys_installer/services/module_update/util/src/
H A Dmodule_utils.cpp100 std::size_t endPos = file.find_last_of('.'); in GetFileName() local
101 return file.substr(startPos, endPos - startPos); in GetFileName()
107 std::size_t endPos = filePath.find_last_of('/'); in GetHmpName() local
108 if (endPos == std::string::npos) { in GetHmpName()
120 if (startPos == 0 || startPos >= endPos) { in GetHmpName()
124 return filePath.substr(startPos, endPos - startPos); in GetHmpName()
/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/include/
H A Dpeak_finder.h154 int32_t DeletePeaks(const std::vector<double> &envelope, int32_t startPos, int32_t endPos,
156 int32_t DetectValley(const std::vector<double> &envelope, int32_t startPos, int32_t endPos,
/base/telephony/sms_mms/services/sms/include/
H A Dsms_misc_manager.h78 endPos = toMsgId;
82 uint32_t endPos = 0; variable
/base/hiviewdfx/hiview/plugins/faultlogger/service/
H A Dfaultlog_formatter.cpp364 off_t endPos = lseek(fd, 0, SEEK_END); in LimitCppCrashLog() local
365 if ((endPos == -1) || (endPos <= maxLogSize)) { in LimitCppCrashLog()
372 endPos = lseek(fd, maxLogSize, SEEK_SET); in LimitCppCrashLog()
373 if (endPos != -1) { in LimitCppCrashLog()
/base/startup/appspawn/service/hnp/base/
H A Dhnp_zip.c199 int endPos = strlen(fullPath); in ZipAddDir() local
200 if (endPos + 1 < MAX_FILE_PATH_LEN) { in ZipAddDir()
201 fullPath[endPos] = DIR_SPLIT_SYMBOL; in ZipAddDir()
202 fullPath[endPos + 1] = '\0'; in ZipAddDir()
/base/security/crypto_framework/test/unittest/src/
H A Dcrypto_common_cov_test.cpp295 tmp.endPos = PARCEL_UINT_MAX; in HWTEST_F()
306 tmp.endPos = PARCEL_DEFAULT_SIZE; in HWTEST_F()
309 EXPECT_EQ(tmp.endPos, PARCEL_DEFAULT_SIZE - PARCEL_LENGTH); in HWTEST_F()
317 tmp.endPos = PARCEL_DEFAULT_SIZE; in HWTEST_F()
/base/security/device_auth/common_lib/interfaces/
H A Dhc_parcel.h32 unsigned int endPos; member
/base/hiviewdfx/hicollie/frameworks/native/
H A Dxcollie_utils.cpp162 size_t endPos = procNameEndPos - procNameStartPos; in GetProcessNameFromProcCmdline() local
163 curProcName = procCmdlineContent.substr(procNameStartPos, endPos); in GetProcessNameFromProcCmdline()
/base/security/device_auth/frameworks/src/lite/
H A Dipc_adapt.c1628 uintptr_t endPos; in GetIpcIoDataLength() local
1634 endPos = (uintptr_t)(io->bufferCur); in GetIpcIoDataLength()
1635 return (endPos <= beginPos) ? 0 : (int32_t)(endPos - beginPos); in GetIpcIoDataLength()
/base/telephony/sms_mms/services/sms/
H A Dsms_misc_manager.cpp248 mdRangeList_.emplace_back(data.startPos, data.endPos); in UpdateCbRangList()
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
H A Dcommon_lib_test.cpp92 parcelWithData.endPos = 0; in HWTEST_F()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
H A Dhitrace_dump.cpp116 uint8_t *endPos = nullptr; member

Completed in 19 milliseconds