/base/hiviewdfx/hiview/base/event_raw/decoded/ |
D | raw_data_decoder.cpp | 23 bool RawDataDecoder::FloatingNumberDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, doub… in FloatingNumberDecoded() argument 25 if (rawData == nullptr || pos >= maxLen) { in FloatingNumberDecoded() 29 if (!UnsignedVarintDecoded(rawData, maxLen, pos, valByteCnt)) { in FloatingNumberDecoded() 32 if ((pos + valByteCnt) > maxLen) { in FloatingNumberDecoded() 37 … if (memcpy_s(reinterpret_cast<uint8_t*>(&tmpf), valByteCnt, rawData + pos, valByteCnt) != EOK) { in FloatingNumberDecoded() 43 … if (memcpy_s(reinterpret_cast<uint8_t*>(&tmpd), valByteCnt, rawData + pos, valByteCnt) != EOK) { in FloatingNumberDecoded() 50 pos += valByteCnt; in FloatingNumberDecoded() 54 bool RawDataDecoder::SignedVarintDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, int64_… in SignedVarintDecoded() argument 56 if (rawData == nullptr || pos >= maxLen) { in SignedVarintDecoded() 60 if (!UnsignedVarintDecoded(rawData, maxLen, pos, uval)) { in SignedVarintDecoded() [all …]
|
/base/tee/tee_client/frameworks/include/ |
D | tee_client_list.h | 19 #define CONTAINER_OF(pos, type, member) (type *)(((char *)(pos)) - OFFSET_OF(type, member)) argument 82 #define LIST_FOR_EACH(pos, list) \ argument 83 for ((pos) = (list)->next; (pos) != (list); (pos) = (pos)->next) 85 #define LIST_FOR_EACH_SAFE(pos, n, list) \ argument 86 for ((pos) = (list)->next, (n) = (pos)->next; (pos) != (list); (pos) = (n), (n) = (pos)->next) 88 #define LIST_FOR_EACH_ENTRY(pos, list, member) … argument 90 … for ((pos) = LIST_ENTRY((list)->next, typeof(*(pos)), (member)); &(pos)->(member) != (list); \ 91 … (pos) = LIST_ENTRY((pos)->(member).next, typeof(*(pos)), (member))) \ 94 #define LIST_FOR_EACH_ENTRY_SAFE(pos, n, list, member) … argument 96 …for ((pos) = LIST_ENTRY((list)->next, typeof(*(pos)), (member)), … [all …]
|
/base/account/os_account/services/accountmgr/test/unittest/common/account_mgr_service_test/ |
D | account_dump_helper_test.cpp | 131 auto pos = out.find("Account Manager service, enter '-h' for usage", 0); variable 132 EXPECT_NE(std::string::npos, pos); 162 auto pos = out.find("OhosAccount name", 0); variable 163 EXPECT_NE(std::string::npos, pos); 164 pos = out.find("OhosAccount uid", 0); 165 EXPECT_NE(std::string::npos, pos); 166 pos = out.find("OhosAccount status", 0); 167 EXPECT_NE(std::string::npos, pos); 168 pos = out.find("OhosAccount bind time", 0); 169 EXPECT_NE(std::string::npos, pos); [all …]
|
/base/account/os_account/frameworks/common/log/src/ |
D | account_log_wrapper.cpp | 30 auto pos = file.find_last_of("/"); in GetBriefFileName() local 31 if (pos != std::string::npos) { in GetBriefFileName() 32 return file.substr(pos + 1); in GetBriefFileName() 35 pos = file.find_last_of("\\"); in GetBriefFileName() 36 if (pos != std::string::npos) { in GetBriefFileName() 37 return file.substr(pos + 1); in GetBriefFileName()
|
/base/telephony/telephony_data/common/src/ |
D | data_storage_log_wrapper.cpp | 36 auto pos = file.find_last_of("/"); in GetBriefFileName() local 37 if (pos != std::string::npos) { in GetBriefFileName() 38 return file.substr(pos + 1); in GetBriefFileName() 41 pos = file.find_last_of("\\"); in GetBriefFileName() 42 if (pos != std::string::npos) { in GetBriefFileName() 43 return file.substr(pos + 1); in GetBriefFileName()
|
/base/hiviewdfx/hiview/base/utility/ |
D | string_util.cpp | 50 string::size_type pos = 0; in ReplaceStr() local 52 while ((pos = strTmp.find(src, pos)) != string::npos) { in ReplaceStr() 53 strTmp.replace(pos, src.length(), dst); in ReplaceStr() 54 pos += dst.length(); in ReplaceStr() 75 string::size_type pos = strTmp.find(sep); in SplitStr() local 76 if (string::npos == pos || sep.empty()) { in SplitStr() 83 strPart = needTrim ? TrimStr(strTmp.substr(0, pos)) : strTmp.substr(0, pos); in SplitStr() 87 strTmp = strTmp.substr(sep.size() + pos, strTmp.size() - sep.size() - pos); in SplitStr() 209 size_t pos = input.find(split, 0); in GetLeftSubstr() local 210 if (pos == string::npos) { in GetLeftSubstr() [all …]
|
/base/hiviewdfx/hiview/base/event_raw/include/decoded/ |
D | decoded_param.h | 31 DecodedParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& key) in DecodedParam() argument 32 : rawData_(rawData), maxLen_(maxLen), pos_(pos), key_(key) in DecodedParam() 64 …UnsignedVarintDecodedParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& … in UnsignedVarintDecodedParam() argument 65 : DecodedParam(rawData, maxLen, pos, key) {} in UnsignedVarintDecodedParam() 77 …UnsignedVarintDecodedArrayParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::str… in UnsignedVarintDecodedArrayParam() argument 78 : DecodedParam(rawData, maxLen, pos, key) {} in UnsignedVarintDecodedArrayParam() 90 …SignedVarintDecodedParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& ke… in SignedVarintDecodedParam() argument 91 : DecodedParam(rawData, maxLen, pos, key) {} in SignedVarintDecodedParam() 103 …SignedVarintDecodedArrayParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::strin… in SignedVarintDecodedArrayParam() argument 104 : DecodedParam(rawData, maxLen, pos, key) {} in SignedVarintDecodedArrayParam() [all …]
|
D | raw_data_decoder.h | 26 …static bool FloatingNumberDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, double& dest… 27 …static bool SignedVarintDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, int64_t& dest); 28 …static bool StringValueDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, std::string& de… 29 …static bool UnsignedVarintDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, uint64_t& de… 30 …static bool ValueTypeDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, struct ParamValue…
|
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/hilog/src/ |
D | hilog_napi_base.cpp | 52 uint32_t pos = 0; in ParseLogContent() local 59 for (; pos < len; ++pos) { in ParseLogContent() 64 if (formatStr[pos] != '%') { in ParseLogContent() 65 ret += formatStr[pos]; in ParseLogContent() 69 if (((pos + PUBLIC_LEN + PROPERTY_POS) < len) && in ParseLogContent() 70 formatStr.substr(pos + PROPERTY_POS, PUBLIC_LEN) == "public") { in ParseLogContent() 71 pos += (PUBLIC_LEN + PROPERTY_POS); in ParseLogContent() 73 } else if (((pos + PRIVATE_LEN + PROPERTY_POS) < len) && in ParseLogContent() 74 formatStr.substr(pos + PROPERTY_POS, PRIVATE_LEN) == "private") { in ParseLogContent() 75 pos += (PRIVATE_LEN + PROPERTY_POS); in ParseLogContent() [all …]
|
/base/update/updater/services/flashd/daemon/ |
D | flashd_utils.cpp | 25 auto pos = path.find_first_of('/', 1); in GetPathRoot() local 26 return path.substr(0, pos); in GetPathRoot() 31 auto pos = path.find_last_of('/'); in GetFileName() local 32 if (pos == std::string::npos) { in GetFileName() 33 pos = path.find_last_of('\\'); in GetFileName() 34 if (pos == std::string::npos) { in GetFileName() 38 return path.substr(pos + 1); in GetFileName()
|
/base/print/print_fwk/frameworks/models/print_models/src/ |
D | print_utils.cpp | 39 auto pos = globalId.find(GLOBAL_ID_DELIMITER); in GetExtensionId() local 40 if (pos == std::string::npos) { in GetExtensionId() 43 return globalId.substr(0, pos); in GetExtensionId() 53 auto pos = globalId.find(GLOBAL_ID_DELIMITER); in GetLocalId() local 54 if (pos == std::string::npos) { in GetLocalId() 58 if (globalId.substr(0, pos) != extensionId) { in GetLocalId() 61 return globalId.substr(pos + 1); in GetLocalId() 71 auto pos = cid.find(EXTENSION_CID_DELIMITER); in DecodeExtensionCid() local 72 if (pos == std::string::npos) { in DecodeExtensionCid() 75 extensionId = cid.substr(0, pos); in DecodeExtensionCid() [all …]
|
/base/startup/init/services/param/base/ |
D | param_comm.c | 137 char *pos = value + strlen(value); in SplitParamString() local 138 pos--; in SplitParamString() 139 while (isspace(*pos) && pos > value) { in SplitParamString() 140 (*pos) = '\0'; in SplitParamString() 141 pos--; in SplitParamString() 145 if ((*value == '"') && (pos > value) && (*pos == '"')) { in SplitParamString() 147 *pos = '\0'; in SplitParamString()
|
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/ |
D | hilog_module.cpp | 56 size_t pos = 0; in ParseLogContent() local 59 for (; pos < len; ++pos) { in ParseLogContent() 64 if (format[pos] != '%') { in ParseLogContent() 65 HilogString::Putc(format[pos], logContent); in ParseLogContent() 69 if (((pos + PUBLIC_LEN + PROPERTY_POS) < len) && in ParseLogContent() 70 (strncmp(format + pos + PROPERTY_POS, "public", PUBLIC_LEN) == 0)) { in ParseLogContent() 71 pos += (PUBLIC_LEN + PROPERTY_POS); in ParseLogContent() 73 } else if (((pos + PRIVATE_LEN + PROPERTY_POS) < len) && in ParseLogContent() 74 (strncmp(format + pos + PROPERTY_POS, "private", PRIVATE_LEN) == 0)) { in ParseLogContent() 75 pos += (PRIVATE_LEN + PROPERTY_POS); in ParseLogContent() [all …]
|
D | hilog_vector.cpp | 54 char* HilogVector::GetStr(const HilogVector *vector, size_t pos) in GetStr() argument 56 if (vector != nullptr && vector->str != nullptr && pos < vector->size) { in GetStr() 57 return vector->str[pos]; in GetStr() 62 ValueType HilogVector::GetType(const HilogVector *vector, size_t pos) in GetType() argument 64 if (vector != nullptr && vector->type != nullptr && pos < vector->size) { in GetType() 65 return vector->type[pos]; in GetType()
|
/base/web/webview/test/unittest/common/ |
D | nweb_create_window.cpp | 62 uint32_t pos = 0; in GetWebEngineArgs() local 63 while (pos < webEngineArgValue.size()) { in GetWebEngineArgs() 64 if (webEngineArgValue[pos] == ',') { in GetWebEngineArgs() 65 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs() 66 pos++; in GetWebEngineArgs() 67 start = pos; in GetWebEngineArgs() 69 pos++; in GetWebEngineArgs() 72 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
D | file_format_dump_filter.cpp | 73 for (size_t pos = 0; pos < sum; pos++) { in FilterControlChar() local 74 char &c = str.at(pos); in FilterControlChar() 76 if ((!skip) && (c == ASCII_ESC) && ((pos + 1) < sum)) { in FilterControlChar() 77 char &next_c = str.at(pos + 1); in FilterControlChar()
|
/base/update/updateservice/services/core/ability/log/src/ |
D | update_log.cpp | 49 auto pos = file.find_last_of("/"); in GetBriefFileName() local 50 if (pos != std::string::npos) { in GetBriefFileName() 51 return file.substr(pos + 1); in GetBriefFileName() 53 pos = file.find_last_of("\\"); in GetBriefFileName() 54 if (pos != std::string::npos) { in GetBriefFileName() 55 return file.substr(pos + 1); in GetBriefFileName() 136 for (size_t pos = 0; (pos = str.find(subStr, pos)) != std::string::npos; pos++) { in FindSubStrCount() local
|
/base/update/updater/services/applypatch/ |
D | block_set.cpp | 152 size_t pos = 0; in ReadDataFromBlock() local 162 if (!Utils::ReadFully(fd, buffer.data() + pos, size)) { in ReadDataFromBlock() 166 pos += size; in ReadDataFromBlock() 168 return pos; in ReadDataFromBlock() 173 size_t pos = 0; in WriteDataToBlock() local 192 if (Utils::WriteFully(fd, buffer.data() + pos, writeSize) == false) { in WriteDataToBlock() 196 pos += writeSize; in WriteDataToBlock() 202 return pos; in WriteDataToBlock() 258 int32_t BlockSet::LoadSourceBuffer(const Command &cmd, size_t &pos, std::vector<uint8_t> &sourceBuf… in LoadSourceBuffer() argument 261 std::string blockLen = cmd.GetArgumentByPos(pos++); in LoadSourceBuffer() [all …]
|
D | command_process.cpp | 102 bool LoadTarget(const Command ¶ms, size_t &pos, std::vector<uint8_t> &buffer, in LoadTarget() argument 107 std::string srcHash = params.GetArgumentByPos(pos++); in LoadTarget() 110 tgtHash = params.GetArgumentByPos(pos++); in LoadTarget() 115 std::string cmdTmp = params.GetArgumentByPos(pos++); in LoadTarget() 130 if (targetBlock.LoadTargetBuffer(params, buffer, tgtBlockSize, pos, srcHash) != 0) { in LoadTarget() 145 size_t pos = H_DIFF_CMD_ARGS_START; in Execute() local 148 pos = H_MOVE_CMD_ARGS_START; in Execute() 156 if (!LoadTarget(params, pos, buffer, targetBlock, result)) { in Execute() 195 size_t pos = 1; in Execute() local 196 const std::string shaStr = params.GetArgumentByPos(pos++); in Execute() [all …]
|
/base/theme/wallpaper_mgr/utils/src/ |
D | file_deal.cpp | 97 std::string::size_type pos = filePath.find_last_of('/'); in GetExtension() local 98 if (pos != std::string::npos) { in GetExtension() 99 if (pos + 1 < filePath.length()) { in GetExtension() 100 filename = filePath.substr(pos + 1); in GetExtension() 104 pos = filename.find_last_of('.'); in GetExtension() 105 if (pos != std::string::npos && pos + 1 < filename.length()) { in GetExtension() 106 extension = filename.substr(pos); in GetExtension()
|
/base/hiviewdfx/hilog/platform/interface/native/ |
D | log.cpp | 29 for (auto pos = str.find(prefix, 0); pos != std::string::npos; pos = str.find(prefix, pos)) { in StripFormatString() local 30 str.erase(pos, prefix.size()); in StripFormatString()
|
/base/notification/distributed_notification_service/frameworks/core/common/src/ |
D | ans_log_wrapper.cpp | 33 size_t pos = fullPath.find_last_of("/"); in GetBriefFileName() local 34 if (pos == std::string::npos) { in GetBriefFileName() 37 return fullPath.substr(pos + 1); in GetBriefFileName()
|
/base/hiviewdfx/hiview/base/event_raw/base/ |
D | raw_data.cpp | 139 bool RawData::Update(uint8_t* data, size_t len, size_t pos) in Update() argument 141 if (data == nullptr || pos > len_) { in Update() 143 "len_ is %{public}zu", len, pos, len_); in Update() 148 if ((pos + len) > capacity_) { in Update() 167 ret = memcpy_s(data_ + pos, len, data, len); in Update() 172 if ((pos + len) > len_) { in Update() 173 len_ = pos + len; in Update()
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
D | raw_data.cpp | 137 bool RawData::Update(uint8_t* data, size_t len, size_t pos) in Update() argument 139 if (data == nullptr || pos > len_) { in Update() 141 "len_ is %{public}zu", len, pos, len_); in Update() 145 if ((pos + len) > capacity_) { in Update() 164 ret = memcpy_s(data_ + pos, len, data, len); in Update() 169 if ((pos + len) > len_) { in Update() 170 len_ = pos + len; in Update()
|
/base/update/updateservice/services/core/ability/utils/include/ |
D | string_utils.h | 104 for (std::string::size_type pos = 0; pos != std::string::npos; pos += newString.length()) { in ReplaceStringAll() local 105 pos = resultString.find(subString, pos); in ReplaceStringAll() 106 if (pos != std::string::npos) { in ReplaceStringAll() 107 resultString.replace(pos, subString.length(), newString); in ReplaceStringAll()
|