Home
last modified time | relevance | path

Searched refs:BufferToHexString (Results 1 – 6 of 6) sorted by relevance

/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
Dutilities_test.cpp247 HWTEST_F(UtilitiesTest, BufferToHexString, TestSize.Level1)
251 EXPECT_STREQ(BufferToHexString(buf, 0).c_str(), "0:");
252 EXPECT_STREQ(BufferToHexString(buf, 1).c_str(), "1: 0x31");
253 EXPECT_STREQ(BufferToHexString(buf, 4).c_str(), "4: 0x31 0x32 0x33 0x34");
254 EXPECT_STREQ(BufferToHexString(buf, 5).c_str(), "5: 0x31 0x32 0x33 0x34 0x35");
255 EXPECT_STREQ(BufferToHexString(buf, 8).c_str(), "8: 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38");
259 EXPECT_STREQ(BufferToHexString(vbuf).c_str(), "8: 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38");
262 EXPECT_STREQ(BufferToHexString(buf2, 0).c_str(), "0:");
263 EXPECT_STREQ(BufferToHexString(buf2, 1).c_str(), "1: 0x31");
264 EXPECT_STREQ(BufferToHexString(buf2, 4).c_str(), "4: 0x31 0x32 0x33 0x34");
[all …]
/developtools/hiperf/test/unittest/common/native/
Dutilities_test.cpp241 HWTEST_F(UtilitiesTest, BufferToHexString, TestSize.Level1)
245 EXPECT_STREQ(BufferToHexString(buf, 0).c_str(), "0:");
246 EXPECT_STREQ(BufferToHexString(buf, 1).c_str(), "1: 0x31");
247 EXPECT_STREQ(BufferToHexString(buf, 4).c_str(), "4: 0x31 0x32 0x33 0x34");
248 EXPECT_STREQ(BufferToHexString(buf, 5).c_str(), "5: 0x31 0x32 0x33 0x34 0x35");
249 EXPECT_STREQ(BufferToHexString(buf, 8).c_str(), "8: 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38");
253 EXPECT_STREQ(BufferToHexString(vbuf).c_str(), "8: 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38");
256 EXPECT_STREQ(BufferToHexString(buf2, 0).c_str(), "0:");
257 EXPECT_STREQ(BufferToHexString(buf2, 1).c_str(), "1: 0x31");
258 EXPECT_STREQ(BufferToHexString(buf2, 4).c_str(), "4: 0x31 0x32 0x33 0x34");
[all …]
/developtools/profiler/device/plugins/native_daemon/src/
Dutilities.cpp479 HLOGM(" %02zu: %s ", i, BufferToHexString(byteBuf, dumpByteEachLine).c_str()); in HexDump()
484 std::string BufferToHexString(const std::vector<unsigned char> &vec) in BufferToHexString() function
486 return BufferToHexString(vec.data(), vec.size()); in BufferToHexString()
489 std::string BufferToHexString(const unsigned char buf[], size_t size) in BufferToHexString() function
/developtools/profiler/device/plugins/native_daemon/include/
Dutilities.h162 std::string BufferToHexString(const std::vector<unsigned char> &vec);
163 std::string BufferToHexString(const unsigned char buf[], size_t size);
/developtools/hiperf/src/
Dutilities.cpp558 HLOGM(" %02zu: %s ", i, BufferToHexString(byteBuf, dumpByteEachLine).c_str()); in HexDump()
563 std::string BufferToHexString(const std::vector<unsigned char> &vec) in BufferToHexString() function
565 return BufferToHexString(vec.data(), vec.size()); in BufferToHexString()
568 std::string BufferToHexString(const unsigned char buf[], size_t size) in BufferToHexString() function
/developtools/hiperf/include/
Dutilities.h164 std::string BufferToHexString(const std::vector<unsigned char> &vec);
165 std::string BufferToHexString(const unsigned char buf[], size_t size);