/base/security/crypto_framework/common/src/ |
H A D | hcf_parcel.c | 53 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 D | hc_parcel.c | 52 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 D | hiview_db_util.cpp | 68 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 D | string_util.cpp | 281 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 D | common_util.cpp | 89 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 D | io_collector_impl.cpp | 156 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 D | cpu_perf_dump.cpp | 139 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 D | updaterkits.cpp | 86 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 D | taboo.cpp | 204 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 D | hcf_parcel.h | 33 unsigned int endPos; member
|
/base/sensors/sensor/vibration_convert/core/algorithm/peak_finder/src/ |
H A D | peak_finder.cpp | 319 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 D | module_utils.cpp | 100 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 D | peak_finder.h | 154 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 D | sms_misc_manager.h | 78 endPos = toMsgId; 82 uint32_t endPos = 0; variable
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/ |
H A D | faultlog_formatter.cpp | 364 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 D | hnp_zip.c | 199 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 D | crypto_common_cov_test.cpp | 295 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 D | hc_parcel.h | 32 unsigned int endPos;
member
|
/base/hiviewdfx/hicollie/frameworks/native/ |
H A D | xcollie_utils.cpp | 162 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 D | ipc_adapt.c | 1628 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 D | sms_misc_manager.cpp | 248 mdRangeList_.emplace_back(data.startPos, data.endPos); in UpdateCbRangList()
|
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/ |
H A D | common_lib_test.cpp | 92 parcelWithData.endPos = 0; in HWTEST_F()
|
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/ |
H A D | hitrace_dump.cpp | 116 uint8_t *endPos = nullptr;
member
|