Home
last modified time | relevance | path

Searched refs:buf2 (Results 1 – 8 of 8) sorted by relevance

/system/core/libutils/binder/
DSharedBuffer_test.cpp72 android::SharedBuffer* buf2 = buf->editResize(SIZE_MAX / 2); in TEST() local
73 if (buf2 == nullptr) { in TEST()
76 EXPECT_NE(nullptr, buf2->data()); in TEST()
77 buf2->release(); in TEST()
/system/extras/simpleperf/
DRecordReadThread_test.cpp482 std::vector<char> buf2; member
487 : buf1(buf1_size, c), buf2(buf2_size, c), pad(pad_size, 0), lost(lost) {} in FakeAuxData()
513 auto SetBuf2 = [&](char** buf2) { in TEST_F() argument
514 *buf2 = aux_data[test_index].buf2.data(); in TEST_F()
518 *size2 = aux_data[test_index].buf2.size(); in TEST_F()
522 return size == aux_data[test_index].buf1.size() + aux_data[test_index].buf2.size(); in TEST_F()
557 expected.buf1.size() + expected.buf2.size() + expected.pad.size()); in TEST_F()
564 if (!expected.buf2.empty()) { in TEST_F()
565 ASSERT_EQ(memcmp(p, expected.buf2.data(), expected.buf2.size()), 0); in TEST_F()
566 p += expected.buf2.size(); in TEST_F()
[all …]
Devent_fd.h104 virtual uint64_t GetAvailableAuxData(char** buf1, size_t* size1, char** buf2, size_t* size2);
Devent_fd.cpp290 uint64_t EventFd::GetAvailableAuxData(char** buf1, size_t* size1, char** buf2, size_t* size2) { in GetAvailableAuxData() argument
308 *buf2 = aux_buffer_; in GetAvailableAuxData()
/system/libcppbor/src/
Dcppbor.cpp146 char buf2[SHA_DIGEST_LENGTH * 2 + 1]; in prettyPrintInternal() local
148 snprintf(buf2 + n * 2, 3, "%02x", digest[n]); in prettyPrintInternal()
150 snprintf(buf, sizeof(buf), "<bstr size=%zd sha1=%s>", valueSize, buf2); in prettyPrintInternal()
/system/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo_test.cpp679 unique_fd buf2{dup(buf)}; in TEST_F() local
684 close(buf2.release()); in TEST_F()
/system/libcppbor/tests/
Dcppbor_test.cpp463 std::vector<uint8_t> buf2; in TEST() local
464 map.encode(std::back_inserter(buf2)); in TEST()
465 EXPECT_EQ(buf, buf2); in TEST()
/system/core/fastboot/fuzzy_fastboot/
Dmain.cpp606 std::vector<char> buf2 = RandomBuf(1); in TEST_F() local