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.cpp253 HWTEST_F(UtilitiesTest, BufferToHexString, TestSize.Level1)
257 EXPECT_STREQ(BufferToHexString(buf, 0).c_str(), "0:");
258 EXPECT_STREQ(BufferToHexString(buf, 1).c_str(), "1: 0x31");
259 EXPECT_STREQ(BufferToHexString(buf, 4).c_str(), "4: 0x31 0x32 0x33 0x34");
260 EXPECT_STREQ(BufferToHexString(buf, 5).c_str(), "5: 0x31 0x32 0x33 0x34 0x35");
261 EXPECT_STREQ(BufferToHexString(buf, 8).c_str(), "8: 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38");
265 EXPECT_STREQ(BufferToHexString(vbuf).c_str(), "8: 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38");
268 EXPECT_STREQ(BufferToHexString(buf2, 0).c_str(), "0:");
269 EXPECT_STREQ(BufferToHexString(buf2, 1).c_str(), "1: 0x31");
270 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.cpp496 HLOGM(" %02zu: %s ", i, BufferToHexString(byteBuf, dumpByteEachLine).c_str()); in HexDump()
501 std::string BufferToHexString(const std::vector<unsigned char> &vec) in BufferToHexString() function
503 return BufferToHexString(vec.data(), vec.size()); in BufferToHexString()
506 std::string BufferToHexString(const unsigned char buf[], size_t size) in BufferToHexString() function
/developtools/profiler/device/plugins/native_daemon/include/
Dutilities.h161 std::string BufferToHexString(const std::vector<unsigned char> &vec);
162 std::string BufferToHexString(const unsigned char buf[], size_t size);
/developtools/hiperf/include/
Dutilities.h163 std::string BufferToHexString(const std::vector<unsigned char> &vec);
164 std::string BufferToHexString(const unsigned char buf[], size_t size);
/developtools/hiperf/src/
Dutilities.cpp563 HLOGM(" %02zu: %s ", i, BufferToHexString(byteBuf, dumpByteEachLine).c_str()); in HexDump()
568 std::string BufferToHexString(const std::vector<unsigned char> &vec) in BufferToHexString() function
570 return BufferToHexString(vec.data(), vec.size()); in BufferToHexString()
573 std::string BufferToHexString(const unsigned char buf[], size_t size) in BufferToHexString() function