Searched refs:read_buf (Results 1 – 7 of 7) sorted by relevance
/system/logging/liblog/tests/ |
D | logd_writer_test.cpp | 71 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/ |
D | hci_hal_host_test.cc | 354 H4Packet read_buf(1 + 2 + 1 + hci_cmd_param_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({kH4Command, hci_data}, read_buf); in TEST_F() 366 H4Packet read_buf(1 + 2 + 2 + acl_payload_size); in TEST_F() local 368 auto size_read = read_with_retry(fake_server_socket_, read_buf.data(), read_buf.size()); in TEST_F() 371 check_packet_equal({kH4Acl, acl_packet}, read_buf); in TEST_F() 378 H4Packet read_buf(1 + 3 + sco_payload_size); in TEST_F() local 380 auto size_read = read_with_retry(fake_server_socket_, read_buf.data(), read_buf.size()); in TEST_F() 383 check_packet_equal({kH4Sco, sco_packet}, read_buf); in TEST_F() 393 H4Packet read_buf(1 + 2 + 2 + acl_payload_size); in TEST_F() local [all …]
|
/system/extras/tests/directiotest/ |
D | directiotest.c | 176 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/ |
D | rpmb.c | 102 static uint8_t read_buf[4096]; variable 184 mmc_ioc_cmd_set_data((*cmd), read_buf); in send_mmc_rpmb_req() 250 req->read_size, read_buf, (unsigned char*)&in_cdb, sense_buffer); in send_ufs_rpmb_req() 266 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 283 rc = read(rpmb_fd, read_buf, read_size); in send_virt_rpmb_req() 316 if (req->read_size % MMC_BLOCK_SIZE != 0 || req->read_size > sizeof(read_buf)) { in rpmb_send() 337 rc = send_virt_rpmb_req(rpmb_fd, read_buf, req->read_size, req->payload, payload_size); in rpmb_send() 356 if (req->read_size) print_buf("response: ", read_buf, req->read_size); in rpmb_send() 367 return ipc_respond(msg, read_buf, req->read_size); in rpmb_send()
|
/system/core/trusty/utils/rpmb_dev/ |
D | rpmb.h | 54 void* read_buf,
|
/system/nvram/messages/tests/ |
D | io_test.cpp | 104 uint8_t read_buf[10]; in TEST() local 105 EXPECT_FALSE(buf.Read(read_buf, SIZE_MAX)); in TEST()
|
/system/libziparchive/ |
D | zip_archive.cc | 1263 std::vector<uint8_t> read_buf(kBufSize); in inflateImpl() local 1304 incfs::util::clearAndFree(read_buf); in inflateImpl() 1320 if (!reader.ReadAtOffset(read_buf.data(), read_size, offset)) { in inflateImpl() 1327 zstream.next_in = &read_buf[0]; in inflateImpl()
|