Home
last modified time | relevance | path

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

/system/core/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/bt/gd/hal/
Dhci_hal_host_rootcanal_test.cc330 H4Packet read_buf(1 + 2 + 1 + hci_cmd_param_size); in TEST_F() local
332 auto size_read = read_with_retry(fake_server_socket_, read_buf.data(), read_buf.size()); in TEST_F()
335 check_packet_equal({kH4Command, hci_data}, read_buf); in TEST_F()
342 H4Packet read_buf(1 + 2 + 2 + acl_payload_size); in TEST_F() local
344 auto size_read = read_with_retry(fake_server_socket_, read_buf.data(), read_buf.size()); in TEST_F()
347 check_packet_equal({kH4Acl, acl_packet}, read_buf); in TEST_F()
354 H4Packet read_buf(1 + 3 + sco_payload_size); in TEST_F() local
356 auto size_read = read_with_retry(fake_server_socket_, read_buf.data(), read_buf.size()); in TEST_F()
359 check_packet_equal({kH4Sco, sco_packet}, read_buf); in TEST_F()
369 H4Packet read_buf(1 + 2 + 2 + acl_payload_size); in TEST_F() local
[all …]
/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.c100 static uint8_t read_buf[4096]; variable
180 mmc_ioc_cmd_set_data((*cmd), read_buf); in send_mmc_rpmb_req()
237 req->read_size, read_buf, (unsigned char*)&in_cdb, sense_buffer); in send_ufs_rpmb_req()
246 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
263 rc = read(rpmb_fd, read_buf, read_size); in send_virt_rpmb_req()
296 if (req->read_size % MMC_BLOCK_SIZE != 0 || req->read_size > sizeof(read_buf)) { in rpmb_send()
317 rc = send_virt_rpmb_req(rpmb_fd, read_buf, req->read_size, req->payload, payload_size); in rpmb_send()
336 if (req->read_size) print_buf("response: ", read_buf, req->read_size); in rpmb_send()
347 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.cc1200 std::vector<uint8_t> read_buf(kBufSize); in Inflate() local
1250 if (!reader.ReadAtOffset(read_buf.data(), read_size, offset)) { in Inflate()
1257 zstream.next_in = &read_buf[0]; in Inflate()