Home
last modified time | relevance | path

Searched refs:hexStr (Results 1 - 12 of 12) sorted by relevance

/foundation/distributedhardware/device_manager/radar/src/lite/
H A Ddm_radar_helper.cpp164 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 Dbluetooth_mock.cpp291 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 Dbluetooth_mock.h125 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 Dmedialibrary_common_utils_test.cpp79 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 Dwifi_global_func.h163 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 Dmedialibrary_common_utils.cpp62 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 Dmedialibrary_common_utils.h37 static void Char2Hex(const unsigned char *data, const size_t len, std::string &hexStr);
/foundation/multimedia/av_session/utils/src/
H A Davsession_radar.cpp84 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 Ddentry_meta_file_test.cpp367 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 Dmeta_file.cpp703 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 Ddm_radar_helper.cpp940 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 Dmeta_file.h134 static std::string RecordIdToCloudId(const std::string hexStr);

Completed in 9 milliseconds