Searched defs:bytes_read (Results 1 - 25 of 299) sorted by relevance

1234567891011>>

/external/chromium_org/android_webview/native/
H A Dinput_stream_unittest.cc47 int* bytes_read) {
56 EXPECT_TRUE(input_stream->Read(buffer.get(), bytes_requested, bytes_read));
70 int bytes_read = 0; local
73 EXPECT_TRUE(input_stream->Read(buffer.get(), bytes_requested, &bytes_read));
74 EXPECT_EQ(0, bytes_read);
79 int bytes_read = 0; local
80 DoReadCountedStreamTest(bytes_requested * 2, bytes_requested, &bytes_read);
81 EXPECT_EQ(bytes_requested, bytes_read);
86 int bytes_read = 0; local
87 DoReadCountedStreamTest(bytes_requested, bytes_requested, &bytes_read);
45 DoReadCountedStreamTest(int stream_size, int bytes_requested, int* bytes_read) argument
93 int bytes_read = 0; local
100 int bytes_read = 0; local
111 int bytes_read = 0; local
118 int bytes_read = 0; local
138 int bytes_read = 0; local
[all...]
H A Dinput_stream_impl.cc79 bool InputStreamImpl::Read(net::IOBuffer* dest, int length, int* bytes_read) { argument
93 *bytes_read = 0;
129 // bytes_read can be strictly less than the req. length if EOF is encountered.
132 *bytes_read = length - remaining_length;
/external/chromium_org/base/
H A Dasync_socket_io_handler_posix.cc30 int bytes_read = HANDLE_EINTR(read(socket_, pending_buffer_, local
32 DCHECK_GE(bytes_read, 0);
35 read_complete_.Run(bytes_read > 0 ? bytes_read : 0);
52 int bytes_read = HANDLE_EINTR(read(socket_, buffer, buffer_len)); local
53 if (bytes_read < 0) {
62 read_complete_.Run(bytes_read);
H A Dasync_socket_io_handler_win.cc47 DWORD bytes_read = 0; local
48 BOOL ok = ::ReadFile(socket_, buffer, buffer_len, &bytes_read,
H A Dsync_socket_nacl.cc63 const ssize_t bytes_read = read(handle_, buffer, length); local
64 return bytes_read > 0 ? bytes_read : 0;
/external/chromium_org/components/cronet/android/
H A Dwrapped_channel_upload_element_reader.cc46 int bytes_read = delegate_->ReadFromUploadChannel(buf, buf_length); local
47 if (bytes_read < 0)
49 offset_ += bytes_read;
50 return bytes_read;
/external/chromium_org/content/browser/fileapi/
H A Dmock_url_request_delegate.cc34 int bytes_read) {
35 if (bytes_read > 0)
36 ReceiveData(request, bytes_read);
47 int bytes_read = 0; local
48 if (!request->Read(io_buffer_.get(), kBufferSize, &bytes_read)) {
54 ReceiveData(request, bytes_read);
58 int bytes_read) {
59 if (bytes_read) {
61 static_cast<size_t>(bytes_read));
33 OnReadCompleted(net::URLRequest* request, int bytes_read) argument
57 ReceiveData(net::URLRequest* request, int bytes_read) argument
/external/chromium_org/mojo/common/test/
H A Dmultiprocess_test_helper_unittest.cc38 size_t bytes_read = 0; local
39 BlockingRead(handle, c, 1, &bytes_read);
40 return bytes_read == 1;
/external/chromium_org/third_party/libvpx/source/libvpx/
H A Divfdec.c73 size_t *bytes_read, size_t *buffer_size) {
107 *bytes_read = frame_size;
72 ivf_read_frame(FILE *infile, uint8_t **buffer, size_t *bytes_read, size_t *buffer_size) argument
/external/chromium_org/third_party/sfntly/cpp/src/test/
H A Dfile_io_test.cc41 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); local
42 EXPECT_EQ(bytes_read, length);
102 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); local
103 EXPECT_EQ(bytes_read, length);
/external/libvpx/libvpx/
H A Divfdec.c73 size_t *bytes_read, size_t *buffer_size) {
107 *bytes_read = frame_size;
72 ivf_read_frame(FILE *infile, uint8_t **buffer, size_t *bytes_read, size_t *buffer_size) argument
/external/sfntly/cpp/src/test/
H A Dfile_io_test.cc41 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); local
42 EXPECT_EQ(bytes_read, length);
102 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); local
103 EXPECT_EQ(bytes_read, length);
/external/chromium_org/android_webview/browser/net/
H A Dinput_stream_reader.cc47 int bytes_read = 0; local
48 if (!stream_->Read(dest, dest_size, &bytes_read))
51 return bytes_read;
/external/chromium_org/chrome/browser/
H A Dcrash_upload_list_win.cc21 DWORD bytes_read; local
29 &bytes_read,
35 while (record_offset < bytes_read) {
36 DCHECK(record_offset + sizeof(EVENTLOGRECORD) <= bytes_read);
38 DCHECK(record_offset + record->Length <= bytes_read);
/external/chromium_org/chrome/installer/util/
H A Dlogging_installer.cc53 int bytes_read = old_log_file.Read(offset, local
56 if (bytes_read > 0 &&
57 (bytes_read == base::WriteFile(log_file, &old_log_data[0],
58 bytes_read) ||
/external/chromium_org/mojo/services/public/cpp/network/
H A Dweb_socket_read_queue.cc37 uint32_t bytes_read = op->num_bytes_; local
39 handle_, &buffer, &bytes_read, MOJO_READ_DATA_FLAG_ALL_OR_NONE);
41 EndReadDataRaw(handle_, bytes_read);
53 EndReadDataRaw(handle, bytes_read);
/external/chromium_org/net/url_request/
H A Durl_request_simple_job.cc47 int* bytes_read) {
48 DCHECK(bytes_read);
54 *bytes_read = buf_size;
46 ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) argument
/external/chromium_org/third_party/sfntly/cpp/src/sample/subsetter/
H A Dsubset_util.cc55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file); local
56 UNREFERENCED_PARAMETER(bytes_read);
/external/chromium_org/tools/android/forwarder2/
H A Dcommand.cc50 int bytes_read = socket->ReadNumBytes(command_buffer, kCommandStringSize); local
51 if (bytes_read != kCommandStringSize) {
52 if (bytes_read < 0)
54 else if (!bytes_read)
/external/chromium_org/tools/android/md5sum/
H A Dmd5sum.cc34 std::streamsize bytes_read = stream.readsome(buf, sizeof(buf)); local
35 if (bytes_read == 0)
37 base::MD5Update(&ctx, base::StringPiece(buf, bytes_read));
/external/e2fsprogs/resize/
H A Dresource_track.c42 track->bytes_read = 0;
47 track->bytes_read = io_start->bytes_read;
104 unsigned long long bytes_read = 0; local
109 bytes_read = delta->bytes_read - track->bytes_read;
112 if (bytes_read == 0 && bytes_written == 0)
118 mbytes(bytes_read),
120 (double)mbytes(bytes_read
[all...]
/external/flac/libFLAC/
H A Dogg_helper.c47 size_t bytes_read = bytes; local
48 switch(read_callback(encoder, buffer, &bytes_read, client_data)) {
50 bytes -= bytes_read;
51 buffer += bytes_read;
54 if(bytes_read == 0) {
58 bytes -= bytes_read;
59 buffer += bytes_read;
/external/sfntly/cpp/src/sample/subsetter/
H A Dsubset_util.cc55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file); local
56 UNREFERENCED_PARAMETER(bytes_read);
/external/chromium_org/base/debug/
H A Dproc_maps_linux.cc64 ssize_t bytes_read = HANDLE_EINTR(read(fd.get(), buffer, kReadSize)); local
65 if (bytes_read < 0) {
72 proc_maps->resize(pos + bytes_read);
74 if (bytes_read == 0)
/external/chromium_org/chrome/browser/chromeos/file_system_provider/fileapi/
H A Dbuffering_file_stream_reader.cc38 const int bytes_read = local
40 if (bytes_read)
41 return bytes_read;

Completed in 591 milliseconds

1234567891011>>