/external/libmojo/mojo/edk/system/ |
D | multiprocess_message_pipe_unittest.cc | 108 std::string read_buffer(1000, '\0'); in DEFINE_TEST_CLIENT_WITH_PIPE() local 109 uint32_t read_buffer_size = static_cast<uint32_t>(read_buffer.size()); in DEFINE_TEST_CLIENT_WITH_PIPE() 110 CHECK_EQ(MojoReadMessage(h, &read_buffer[0], in DEFINE_TEST_CLIENT_WITH_PIPE() 114 read_buffer.resize(read_buffer_size); in DEFINE_TEST_CLIENT_WITH_PIPE() 115 VLOG(2) << "Child got: " << read_buffer; in DEFINE_TEST_CLIENT_WITH_PIPE() 117 if (read_buffer == quitquitquit) { in DEFINE_TEST_CLIENT_WITH_PIPE() 122 std::string write_buffer = read_buffer + read_buffer; in DEFINE_TEST_CLIENT_WITH_PIPE() 150 std::string read_buffer(1000, '\0'); in TEST_P() local 151 uint32_t read_buffer_size = static_cast<uint32_t>(read_buffer.size()); in TEST_P() 152 CHECK_EQ(MojoReadMessage(h, &read_buffer[0], in TEST_P() [all …]
|
D | platform_handle_dispatcher_unittest.cc | 53 char read_buffer[1000] = {}; in TEST() local 55 fread(read_buffer, 1, sizeof(read_buffer), fp.get())); in TEST() 56 EXPECT_STREQ(kHelloWorld, read_buffer); in TEST() 113 char read_buffer[1000] = {}; in TEST() local 115 fread(read_buffer, 1, sizeof(read_buffer), fp.get())); in TEST() 116 EXPECT_STREQ(kFooBar, read_buffer); in TEST()
|
D | data_pipe_unittest.cc | 399 const void* read_buffer = nullptr; in TEST_F() local 402 BeginReadData(&read_buffer, &num_bytes, false)); in TEST_F() 403 EXPECT_TRUE(read_buffer); in TEST_F() 406 ASSERT_EQ(456, static_cast<const int32_t*>(read_buffer)[0]); in TEST_F() 710 const void* read_buffer = nullptr; in TEST_F() local 712 ASSERT_EQ(MOJO_RESULT_OK, BeginReadData(&read_buffer, &num_bytes, true)); in TEST_F() 713 EXPECT_TRUE(read_buffer); in TEST_F() 715 const int32_t* read_elements = static_cast<const int32_t*>(read_buffer); in TEST_F() 731 read_buffer = nullptr; in TEST_F() 733 ASSERT_EQ(MOJO_RESULT_OK, BeginReadData(&read_buffer, &num_bytes)); in TEST_F() [all …]
|
D | wait_set_dispatcher_unittest.cc | 228 char read_buffer[sizeof(buffer) + 5]; in TEST_F() local 229 uint32_t num_bytes = sizeof(read_buffer); in TEST_F() 230 ReadMessage(dispatcher0_.get(), read_buffer, &num_bytes); in TEST_F()
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_read_validator_unittest.cpp | 75 std::vector<uint8_t> read_buffer(100); in TEST() local 77 validator->ReadBlock(read_buffer.data(), 5000, read_buffer.size())); in TEST() 84 file_avail.SetAvailableRange(5000, 5000 + read_buffer.size()); in TEST() 87 validator->ReadBlock(read_buffer.data(), 5000, read_buffer.size())); in TEST() 102 std::vector<uint8_t> read_buffer(100); in TEST() local 105 validator->ReadBlock(read_buffer.data(), 5000, read_buffer.size())); in TEST() 117 validator->ReadBlock(read_buffer.data(), 5000, read_buffer.size())); in TEST() 125 EXPECT_FALSE(validator->ReadBlock(read_buffer.data(), in TEST() 126 validator->GetSize() - read_buffer.size(), in TEST() 127 read_buffer.size())); in TEST() [all …]
|
/external/boringssl/src/ssl/ |
D | ssl_buffer.cc | 106 SSLBuffer *buf = &ssl->s3->read_buffer; in dtls_read_buffer_next_packet() 126 SSLBuffer *buf = &ssl->s3->read_buffer; in tls_read_buffer_extend_to() 151 ssl->s3->read_buffer.DiscardConsumed(); in ssl_read_buffer_extend_to() 162 if (!ssl->s3->read_buffer.EnsureCap(ssl_record_prefix_len(ssl), len)) { in ssl_read_buffer_extend_to() 182 ssl->s3->read_buffer.DiscardConsumed(); in ssl_read_buffer_extend_to() 191 ssl->s3->read_buffer.Consume(consumed); in ssl_handle_open_record() 195 ssl->s3->read_buffer.DiscardConsumed(); in ssl_handle_open_record()
|
D | handshake.cc | 516 ssl->s3->read_buffer.span()); in ssl_run_handshake() 519 ssl->s3->read_buffer.span()); in ssl_run_handshake() 544 ssl->s3->read_buffer.DiscardConsumed(); in ssl_run_handshake()
|
/external/ltp/testcases/kernel/syscalls/sync/ |
D | sync02.c | 94 char read_buffer[BUFSIZ]; /* buffer used to read data from file */ in main() local 121 if (read(fildes, read_buffer, in main() 122 sizeof(read_buffer)) > 0) { in main() 123 if (strcmp(read_buffer, write_buffer)) { in main()
|
/external/libmicrohttpd/src/microspdy/ |
D | stream.c | 51 memcpy(&stream_id, session->read_buffer + session->read_buffer_beginning, 4); in SPDYF_stream_new() 77 memcpy(&assoc_stream_id, session->read_buffer + session->read_buffer_beginning, 4); in SPDYF_stream_new() 83 priority = *(uint8_t *)(session->read_buffer + session->read_buffer_beginning) >> 5; in SPDYF_stream_new() 87 slot = *(uint8_t *)(session->read_buffer + session->read_buffer_beginning); in SPDYF_stream_new()
|
D | session.c | 108 session->read_buffer + session->read_buffer_beginning, in spdyf_handler_read_syn_stream() 219 memcpy(&last_good_stream_id, session->read_buffer + session->read_buffer_beginning, 4); in spdyf_handler_read_goaway() 223 memcpy(&status_int, session->read_buffer + session->read_buffer_beginning, 4); in spdyf_handler_read_goaway() 289 memcpy(&stream_id, session->read_buffer + session->read_buffer_beginning, 4); in spdyf_handler_read_rst_stream() 293 memcpy(&status_int, session->read_buffer + session->read_buffer_beginning, 4); in spdyf_handler_read_rst_stream() 383 session->read_buffer + session->read_buffer_beginning, in spdyf_handler_read_data() 924 memmove(session->read_buffer, in SPDYF_session_read() 925 session->read_buffer + session->read_buffer_beginning, in SPDYF_session_read() 943 session->read_buffer + session->read_buffer_offset, in SPDYF_session_read() 1186 if(0x80 == *(uint8_t *)(session->read_buffer + session->read_buffer_beginning) in SPDYF_session_idle() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
D | file_utils_unittest.cc | 373 rtc::scoped_ptr<int16_t[]> read_buffer(new int16_t[kBufferLength]); in TEST_F() local 394 read_buffer.get())); in TEST_F() 396 read_buffer.get(), in TEST_F() 420 rtc::scoped_ptr<float[]> read_buffer(new float[kBufferLength]); in TEST_F() local 441 read_buffer.get())); in TEST_F() 443 read_buffer.get(), in TEST_F() 467 rtc::scoped_ptr<double[]> read_buffer(new double[kBufferLength]); in TEST_F() local 488 read_buffer.get())); in TEST_F() 490 read_buffer.get(), in TEST_F()
|
/external/squashfs-tools/squashfs-tools/ |
D | mksquashfs.c | 2609 struct file_buffer *read_buffer, int *duplicate_file) in write_file_process() argument 2625 read_size = read_buffer->file_size; in write_file_process() 2626 if(read_buffer->fragment) in write_file_process() 2627 fragment_buffer = read_buffer; in write_file_process() 2633 block_list[block ++] = read_buffer->c_byte; in write_file_process() 2634 if(read_buffer->c_byte) { in write_file_process() 2635 read_buffer->block = bytes; in write_file_process() 2636 bytes += read_buffer->size; in write_file_process() 2637 cache_hash(read_buffer, read_buffer->block); in write_file_process() 2638 file_bytes += read_buffer->size; in write_file_process() [all …]
|
/external/puffin/src/ |
D | extent_stream.cc | 94 bool ExtentStream::DoReadOrWrite(void* read_buffer, in DoReadOrWrite() argument 104 if (read_buffer != nullptr) { in DoReadOrWrite() 106 stream_->Read(reinterpret_cast<uint8_t*>(read_buffer) + bytes_passed, in DoReadOrWrite()
|
D | extent_stream.h | 44 bool DoReadOrWrite(void* read_buffer,
|
/external/python/cpython3/Modules/ |
D | overlapped.c | 55 PyObject *read_buffer; member 553 self->read_buffer = NULL; in Overlapped_new() 600 Py_CLEAR(self->read_buffer); in Overlapped_dealloc() 679 if ((self->type == TYPE_READ || self->type == TYPE_ACCEPT) && self->read_buffer != NULL) in Overlapped_getresult() 688 assert(PyBytes_CheckExact(self->read_buffer)); in Overlapped_getresult() 689 if (transferred != PyBytes_GET_SIZE(self->read_buffer) && in Overlapped_getresult() 690 _PyBytes_Resize(&self->read_buffer, transferred)) in Overlapped_getresult() 692 Py_INCREF(self->read_buffer); in Overlapped_getresult() 693 return self->read_buffer; in Overlapped_getresult() 731 self->read_buffer = buf; in Overlapped_ReadFile() [all …]
|
D | _winapi.c | 99 PyObject *read_buffer; member 144 Py_CLEAR(self->read_buffer); in overlapped_dealloc() 229 if (self->completed && self->read_buffer != NULL) { in _winapi_Overlapped_GetOverlappedResult_impl() 230 assert(PyBytes_CheckExact(self->read_buffer)); in _winapi_Overlapped_GetOverlappedResult_impl() 231 if (transferred != PyBytes_GET_SIZE(self->read_buffer) && in _winapi_Overlapped_GetOverlappedResult_impl() 232 _PyBytes_Resize(&self->read_buffer, transferred)) in _winapi_Overlapped_GetOverlappedResult_impl() 253 res = self->read_buffer ? self->read_buffer : Py_None; in _winapi_Overlapped_getbuffer_impl() 348 self->read_buffer = NULL; in new_overlapped() 1188 overlapped->read_buffer = buf; in _winapi_ReadFile_impl()
|
/external/ltp/testcases/kernel/syscalls/mount/ |
D | mount03.c | 69 static char read_buffer[BUFSIZ]; variable 226 if (read(fildes, read_buffer, sizeof(read_buffer)) > 0) { in test_rwflag() 227 if (strcmp(read_buffer, write_buffer)) { in test_rwflag()
|
/external/libpng/ |
D | pngrutil.c | 300 png_bytep buffer = png_ptr->read_buffer; in png_read_buffer() 304 png_ptr->read_buffer = NULL; in png_read_buffer() 305 png_ptr->read_buffer = NULL; in png_read_buffer() 318 png_ptr->read_buffer = buffer; in png_read_buffer() 650 /* input: */ png_ptr->read_buffer + prefix_size, &lzsize, in png_decompress_chunk() 680 png_ptr->read_buffer + prefix_size, &lzsize, in png_decompress_chunk() 691 memcpy(text, png_ptr->read_buffer, prefix_size); in png_decompress_chunk() 694 png_bytep old_ptr = png_ptr->read_buffer; in png_decompress_chunk() 696 png_ptr->read_buffer = text; in png_decompress_chunk() 774 png_inflate_read(png_structrp png_ptr, png_bytep read_buffer, uInt read_size, in png_inflate_read() argument [all …]
|
/external/pdfium/third_party/libpng16/ |
D | pngrutil.c | 297 png_bytep buffer = png_ptr->read_buffer; in png_read_buffer() 301 png_ptr->read_buffer = NULL; in png_read_buffer() 302 png_ptr->read_buffer = NULL; in png_read_buffer() 314 png_ptr->read_buffer = buffer; in png_read_buffer() 641 /* input: */ png_ptr->read_buffer + prefix_size, &lzsize, in png_decompress_chunk() 669 png_ptr->read_buffer + prefix_size, &lzsize, in png_decompress_chunk() 680 memcpy(text, png_ptr->read_buffer, prefix_size); in png_decompress_chunk() 683 png_bytep old_ptr = png_ptr->read_buffer; in png_decompress_chunk() 685 png_ptr->read_buffer = text; in png_decompress_chunk() 764 png_inflate_read(png_structrp png_ptr, png_bytep read_buffer, uInt read_size, in png_inflate_read() argument [all …]
|
/external/linux-kselftest/tools/testing/selftests/android/ion/ |
D | ionutils.h | 33 void read_buffer(void *buffer, unsigned long len);
|
D | ionapp_import.c | 74 read_buffer(map_buf, map_len); in main()
|
/external/libmicrohttpd/src/microhttpd/ |
D | connection.c | 618 connection->read_buffer, 624 connection->read_buffer = buf; 1133 rbuf = connection->read_buffer; 1157 connection->read_buffer += pos; 1491 buffer_head = connection->read_buffer; 1643 memmove (connection->read_buffer, buffer_head, available); 1665 &connection->read_buffer 2043 connection->read_buffer, 2604 connection->read_buffer = NULL; 2613 connection->read_buffer [all …]
|
/external/zlib/src/contrib/minizip/ |
D | unzip.c | 136 char *read_buffer; /* internal buffer for compressed data */ member 1504 pfile_in_zip_read_info->read_buffer=(char*)ALLOC(UNZ_BUFSIZE); in unzOpenCurrentFile3() 1510 if (pfile_in_zip_read_info->read_buffer==NULL) in unzOpenCurrentFile3() 1699 if (pfile_in_zip_read_info->read_buffer == NULL) in unzReadCurrentFile() 1738 pfile_in_zip_read_info->read_buffer, in unzReadCurrentFile() 1748 pfile_in_zip_read_info->read_buffer[i] = in unzReadCurrentFile() 1750 pfile_in_zip_read_info->read_buffer[i]); in unzReadCurrentFile() 1760 (Bytef*)pfile_in_zip_read_info->read_buffer; in unzReadCurrentFile() 2027 TRYFREE(pfile_in_zip_read_info->read_buffer); in unzCloseCurrentFile() 2028 pfile_in_zip_read_info->read_buffer = NULL; in unzCloseCurrentFile()
|
/external/mesa3d/src/mesa/main/ |
D | buffers.c | 742 read_buffer(struct gl_context *ctx, struct gl_framebuffer *fb, in read_buffer() function 795 read_buffer(ctx, ctx->ReadBuffer, buffer, "glReadBuffer"); in _mesa_ReadBuffer() 814 read_buffer(ctx, fb, src, "glNamedFramebufferReadBuffer"); in _mesa_NamedFramebufferReadBuffer()
|
/external/e2fsprogs/misc/ |
D | badblocks.c | 596 unsigned char *buffer, *read_buffer; in test_rw() local 607 read_buffer = buffer + blocks_at_once * block_size; in test_rw() 691 got = do_read (dev, read_buffer, try, block_size, in test_rw() 707 if (memcmp(read_buffer + i * block_size, in test_rw()
|