Home
last modified time | relevance | path

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

/system/logging/liblog/tests/
Dlogd_writer_test.cpp71 char read_buf[512]; in TEST() local
72 ASSERT_EQ(smoke_len, TEMP_FAILURE_RETRY(read(server_socket, read_buf, sizeof(read_buf)))); in TEST()
73 ASSERT_STREQ(kSmoke, read_buf); in TEST()
94 ASSERT_EQ(smoke_len, TEMP_FAILURE_RETRY(read(server_socket, read_buf, sizeof(read_buf)))); in TEST()
95 ASSERT_STREQ(kSmoke, read_buf); in TEST()
/system/extras/tests/directiotest/
Ddirectiotest.c176 void *read_buf = NULL, *write_buf = NULL; in main() local
212 read_buf = pagealign_alloc(test_size); in main()
214 if (!read_buf || !write_buf) { in main()
246 if (do_read(fd, read_buf, cur_blk * blk_size, test_size) != in main()
252 if (memcmp(write_buf, read_buf, test_size)) { in main()
258 dump_hex(read_buf, test_size); in main()
267 if (read_buf) in main()
268 pagealign_free(read_buf, test_size); in main()
/system/core/trusty/storage/proxy/
Drpmb.c116 static uint8_t read_buf[4096]; variable
371 mmc_ioc_cmd_set_data((*cmd), read_buf); in send_mmc_rpmb_req()
468 req->read_size, read_buf, (unsigned char*)&in_cdb, sense_buffer); in send_ufs_rpmb_req()
487 static int send_virt_rpmb_req(int rpmb_fd, void* read_buf, size_t read_size, const void* payload, in send_virt_rpmb_req() argument
504 rc = read(rpmb_fd, read_buf, read_size); in send_virt_rpmb_req()
537 if (req->read_size % MMC_BLOCK_SIZE != 0 || req->read_size > sizeof(read_buf)) { in rpmb_send()
558 rc = send_virt_rpmb_req(rpmb_fd, read_buf, req->read_size, req->payload, payload_size); in rpmb_send()
577 if (req->read_size) log_buf(ANDROID_LOG_INFO, "response: ", read_buf, req->read_size); in rpmb_send()
588 return ipc_respond(msg, read_buf, req->read_size); in rpmb_send()
/system/core/trusty/utils/rpmb_dev/
Drpmb.h54 void* read_buf,
/system/nvram/messages/tests/
Dio_test.cpp104 uint8_t read_buf[10]; in TEST() local
105 EXPECT_FALSE(buf.Read(read_buf, SIZE_MAX)); in TEST()
/system/libziparchive/
Dzip_archive.cc1383 std::vector<uint8_t> read_buf; in inflateImpl() local
1389 read_buf.resize(static_cast<size_t>(max_read_size)); in inflateImpl()
1443 incfs::util::clearAndFree(read_buf); in inflateImpl()
1457 auto buf = reader.AccessAtOffset(read_buf.data(), read_size, offset); in inflateImpl()
1563 const auto read_buf = mapped_zip.ReadAtOffset(write_span.data(), block_size, offset); in CopyEntryToWriter() local
1564 if (!read_buf) { in CopyEntryToWriter()
1570 if (!writer->Append(const_cast<uint8_t*>(read_buf), block_size)) { in CopyEntryToWriter()
1578 crc = crc32(crc, read_buf, block_size); in CopyEntryToWriter()