/foundation/distributedhardware/device_manager/radar/src/lite/ |
H A D | dm_radar_helper.cpp | 164 std::string hexStr = str.str(); in ConvertHexToString() local 165 transform(hexStr.begin(), hexStr.end(), hexStr.begin(), ::toupper); in ConvertHexToString() 166 return hexStr; in ConvertHexToString()
|
/foundation/communication/dsoftbus/tests/core/discovery/ble/bluetooth_mock/ |
H A D | bluetooth_mock.cpp | 291 bool HexStr2Bytes(const std::string &hexStr, std::vector<uint8_t> &bytes) in HexStr2Bytes() argument 296 int32_t hexLen = hexStr.length(); in HexStr2Bytes() 301 bool isValid = std::all_of(hexStr.begin(), hexStr.end(), [](char chr) { in HexStr2Bytes() 313 const auto &subHexStr = hexStr.substr(index * HEX_CHAR_LEN, HEX_CHAR_LEN); in HexStr2Bytes() 319 void BluetoothMock::CallbackScanResult(const std::string &hexStr) in CallbackScanResult() argument 322 if (!HexStr2Bytes(hexStr, advData)) { in CallbackScanResult() 323 LOG("hexStr invalid"); in CallbackScanResult()
|
H A D | bluetooth_mock.h | 125 static void CallbackScanResult(const std::string &hexStr); 193 bool HexStr2Bytes(const std::string &hexStr, std::vector<uint8_t> &bytes);
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_common_utils_test/src/ |
H A D | medialibrary_common_utils_test.cpp | 79 string hexStr = ""; in HWTEST_F() local 80 MediaLibraryCommonUtils::Char2Hex(hash, len, hexStr); in HWTEST_F() 81 EXPECT_NE(hexStr, ""); in HWTEST_F()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/ |
H A D | wifi_global_func.h | 163 const std::string hexStr = "0123456789ABCDEF"; in Val2HexChar() local 168 pHexChar[pos] = hexStr[(tmp >> highBit) & 0x0F]; in Val2HexChar() 170 pHexChar[pos] = hexStr[tmp & 0x0F]; in Val2HexChar()
|
/foundation/multimedia/media_library/frameworks/utils/src/ |
H A D | medialibrary_common_utils.cpp | 62 void MediaLibraryCommonUtils::Char2Hex(const unsigned char *data, const size_t len, std::string &hexStr) in Char2Hex() argument 67 hexStr = ""; in Char2Hex() 68 hexStr.reserve(OUT_HEXSTR_SIZE); in Char2Hex() 70 hexStr.append(CHAR2HEX_TABLE[data[i]]); in Char2Hex()
|
/foundation/multimedia/media_library/frameworks/utils/include/ |
H A D | medialibrary_common_utils.h | 37 static void Char2Hex(const unsigned char *data, const size_t len, std::string &hexStr);
|
/foundation/multimedia/av_session/utils/src/ |
H A D | avsession_radar.cpp | 84 std::string hexStr = str.str(); in ConvertHexToString() local 85 transform(hexStr.begin(), hexStr.end(), hexStr.begin(), ::toupper); in ConvertHexToString() 86 return hexStr; in ConvertHexToString()
|
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/dentry/ |
H A D | dentry_meta_file_test.cpp | 367 std::string hexStr = ""; in HWTEST_F() local 368 string ret = MetaFileMgr::GetInstance().RecordIdToCloudId(hexStr); in HWTEST_F() 388 std::string hexStr = "test"; in HWTEST_F() local 389 string ret = MetaFileMgr::GetInstance().RecordIdToCloudId(hexStr); in HWTEST_F()
|
/foundation/filemanagement/dfs_service/utils/dentry/src/ |
H A D | meta_file.cpp | 703 std::string MetaFileMgr::RecordIdToCloudId(const std::string hexStr) in RecordIdToCloudId() argument 708 for (std::size_t i = 0; i < hexStr.length(); i += offset) { in RecordIdToCloudId() 709 std::string hexByte = hexStr.substr(i, offset); in RecordIdToCloudId() 714 LOGE("Invalid hexadecimal string: %{public}s", hexStr.c_str()); in RecordIdToCloudId()
|
/foundation/distributedhardware/device_manager/radar/src/ |
H A D | dm_radar_helper.cpp | 940 std::string hexStr = str.str(); in ConvertHexToString() local 941 transform(hexStr.begin(), hexStr.end(), hexStr.begin(), ::toupper); in ConvertHexToString() 942 return hexStr; in ConvertHexToString()
|
/foundation/filemanagement/dfs_service/utils/dentry/include/ |
H A D | meta_file.h | 134 static std::string RecordIdToCloudId(const std::string hexStr);
|