Searched refs:bytes_read (Results 26 - 50 of 426) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/brotli/src/brotli/dec/
H A Dbit_reader.h104 int bytes_read = BrotliRead(br->input_, dst, BROTLI_READ_SIZE); local
105 if (bytes_read < 0) {
108 if (bytes_read < BROTLI_READ_SIZE) {
112 *(uint64_t*)(dst + bytes_read) = 0;
113 *(uint64_t*)(dst + bytes_read + 8) = 0;
114 *(uint64_t*)(dst + bytes_read + 16) = 0;
115 *(uint64_t*)(dst + bytes_read + 24) = 0;
117 memset(dst + bytes_read, 0, 32);
134 br->bit_end_pos_ += ((uint32_t)bytes_read << 3);
/external/chromium_org/components/cronet/android/
H A Durl_request_adapter.cc212 int bytes_read; local
214 read_buffer_, read_buffer_->RemainingCapacity(), &bytes_read)) {
215 if (bytes_read == 0) {
220 VLOG(1) << "Synchronously read: " << bytes_read << " bytes";
221 OnBytesRead(bytes_read);
241 int bytes_read) {
242 VLOG(1) << "Asynchronously read: " << bytes_read << " bytes";
243 if (bytes_read < 0) {
246 } else if (bytes_read == 0) {
251 OnBytesRead(bytes_read);
240 OnReadCompleted(net::URLRequest* request, int bytes_read) argument
255 OnBytesRead(int bytes_read) argument
[all...]
/external/chromium_org/sdch/open-vcdiff/src/
H A Dvcdiff_main.cc138 // into input_buffer_. If successful, returns true and sets *bytes_read
141 bool ReadInput(size_t* bytes_read);
312 bool VCDiffFileBasedCoder::ReadInput(size_t* bytes_read) { argument
314 *bytes_read = fread(&input_buffer_[0], 1, input_buffer_.size(), input_file_);
347 size_t bytes_read = fread(&compare_buffer_[0], local
356 if (bytes_read < output_size) {
361 if (output.compare(0, output_size, &compare_buffer_[0], bytes_read) != 0) {
414 size_t bytes_read = 0; local
415 if (!WriteOutput(output) || !ReadInput(&bytes_read)) {
420 if (bytes_read >
471 size_t bytes_read = 0; local
535 size_t bytes_read = 0; local
[all...]
/external/chromium_org/ipc/
H A Dipc_channel_reader.h44 bool AsyncReadComplete(int bytes_read);
62 // read will be placed into |*bytes_read| (which can be less than the
71 virtual ReadState ReadData(char* buffer, int buffer_len, int* bytes_read) = 0;
/external/chromium_org/mojo/common/test/
H A Dtest_utils.h28 // On success, |bytes_read| is updated to the number of bytes read; otherwise it
33 size_t* bytes_read);
36 // and updates |bytes_read| to the number of bytes read (0 if the read would
37 // block); otherwise it returns false and leaves |bytes_read| untouched.
42 size_t* bytes_read);
H A Dtest_utils_posix.cc41 size_t* bytes_read) {
55 *bytes_read = result;
62 size_t* bytes_read) {
69 *bytes_read = 0;
71 *bytes_read = result;
38 BlockingRead(const embedder::PlatformHandle& handle, void* buffer, size_t buffer_size, size_t* bytes_read) argument
59 NonBlockingRead(const embedder::PlatformHandle& handle, void* buffer, size_t buffer_size, size_t* bytes_read) argument
H A Dtest_utils_win.cc42 size_t* bytes_read) {
55 *bytes_read = bytes_read_dword;
62 size_t* bytes_read) {
75 *bytes_read = 0;
80 *bytes_read = bytes_read_dword;
39 BlockingRead(const embedder::PlatformHandle& handle, void* buffer, size_t buffer_size, size_t* bytes_read) argument
59 NonBlockingRead(const embedder::PlatformHandle& handle, void* buffer, size_t buffer_size, size_t* bytes_read) argument
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
H A Dhtml5_fs_test.cc294 int bytes_read = 0; local
296 ASSERT_EQ(0, node->Read(attr, &buffer[0], sizeof(buffer), &bytes_read));
297 ASSERT_EQ(strlen(contents), bytes_read); local
302 ASSERT_EQ(0, node->Read(attr, &buffer[0], sizeof(buffer), &bytes_read));
303 ASSERT_EQ(0, bytes_read);
307 ASSERT_EQ(0, node->Read(attr, &buffer[0], sizeof(buffer), &bytes_read));
308 ASSERT_EQ(strlen(contents) - 4, bytes_read);
309 buffer[bytes_read] = 0;
321 ASSERT_EQ(EISDIR, node->Read(attr, &buffer[0], sizeof(buffer), &bytes_read));
338 int bytes_read local
438 int bytes_read = 0; local
480 int bytes_read = 1; // Set to a non-zero value. local
[all...]
/external/linux-tools-perf/perf-3.12.0/tools/perf/scripts/perl/
H A Drw-by-pid.pl31 $reads{$common_pid}{bytes_read} += $ret;
33 if (!defined ($reads{$common_pid}{bytes_read})) {
34 $reads{$common_pid}{bytes_read} = 0;
78 "# reads", "bytes_requested", "bytes_read");
82 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
83 ($reads{$a}{bytes_read} || 0) } keys %reads) {
87 my $bytes_read = $reads{$pid}{bytes_read} || 0;
90 $total_reads, $bytes_requested, $bytes_read);
/external/chromium_org/content/test/net/
H A Durl_request_abort_on_end_job.cc102 int* bytes_read) {
104 *bytes_read = std::min(size_t(max_bytes), sizeof(kPageContent));
105 std::memcpy(buf->data(), kPageContent, *bytes_read);
112 *bytes_read = -1;
100 ReadRawData(net::IOBuffer* buf, const int max_bytes, int* bytes_read) argument
/external/chromium_org/media/formats/mpeg/
H A Dmpeg_audio_stream_parser_base.cc109 int bytes_read = 0; local
112 bytes_read = ParseFrame(data, data_size, &buffers);
115 end_of_segment = bytes_read > 0;
118 bytes_read = ParseIcecastHeader(data, data_size);
120 bytes_read = ParseID3v1(data, data_size);
122 bytes_read = ParseID3v2(data, data_size);
124 bytes_read = FindNextValidStartCode(data, data_size);
126 if (bytes_read > 0) {
128 DVLOG(1) << "SKIPPING " << bytes_read << " bytes of garbage.";
132 CHECK_LE(bytes_read, data_siz
172 int bytes_read = ParseFrameHeader(data, local
[all...]
/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/base/
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/v8/src/base/platform/
H A Dplatform-freebsd.cc134 ssize_t bytes_read = read(fd, addr_buffer + 2, 8); local
135 if (bytes_read < 8) break;
137 bytes_read = read(fd, addr_buffer + 2, 1);
138 if (bytes_read < 1) break;
140 bytes_read = read(fd, addr_buffer + 2, 8);
141 if (bytes_read < 8) break;
144 int bytes_read = -1; local
146 bytes_read++;
147 if (bytes_read >= MAP_LENGTH - 1)
149 bytes_read
[all...]
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/httpfs/
H A Dhttp_fs_node.cc290 off_t bytes_read; local
291 error = DownloadToTemp(&bytes_read);
295 SetCachedSize(bytes_read);
413 int bytes_read; local
414 error = ReadEntireResponseToCache(loader, &bytes_read);
418 SetCachedSize(bytes_read);
518 int bytes_read; local
519 error = ReadResponseToTemp(loader, bytes_to_read, &bytes_read);
524 if (bytes_read < bytes_to_read) {
573 int bytes_read; local
597 int bytes_read; local
631 int bytes_read; local
659 int bytes_read = local
[all...]
/external/chromium_org/chromeos/process_proxy/
H A Dprocess_output_watcher.cc120 ssize_t bytes_read = local
124 if (bytes_read < 0)
127 if (bytes_read > 0)
128 ReportOutput(type, bytes_read);
132 if (bytes_read <= 0) {
/external/chromium_org/tools/android/forwarder2/
H A Ddevice_forwarder_main.cc124 const int bytes_read = daemon_socket->Read( variable
126 CHECK_GT(bytes_read, 0);
127 DCHECK(bytes_read < sizeof(buf));
128 buf[bytes_read] = 0;
129 base::StringPiece msg(buf, bytes_read);
/external/chromium_org/extensions/browser/api/sockets_tcp/
H A Dtcp_socket_event_dispatcher.cc115 int bytes_read,
119 // If |bytes_read| == 0, the connection has been closed by the peer.
120 // If |bytes_read| < 0, there was a network error, and |bytes_read| is a value
123 if (bytes_read == 0) {
124 bytes_read = net::ERR_CONNECTION_CLOSED;
127 if (bytes_read > 0) {
131 receive_info.data = std::string(io_buffer->data(), bytes_read);
144 } else if (bytes_read == net::ERR_IO_PENDING) {
152 receive_error_info.result_code = bytes_read;
113 ReadCallback( const ReadParams& params, int bytes_read, scoped_refptr<net::IOBuffer> io_buffer) argument
[all...]
/external/chromium_org/net/test/spawned_test_server/
H A Dlocal_test_server_posix.cc65 ssize_t bytes_read = 0; local
67 while (bytes_read < bytes_max) {
77 LOG(ERROR) << "poll() timed out; bytes_read=" << bytes_read;
80 PLOG(ERROR) << "poll() failed for child file descriptor; bytes_read="
81 << bytes_read;
91 ssize_t num_bytes = HANDLE_EINTR(read(fd, buffer + bytes_read,
92 bytes_max - bytes_read));
95 bytes_read += num_bytes;
/external/chromium_org/remoting/host/
H A Dtoken_validator_base.cc85 int bytes_read = 0; local
86 request_->Read(buffer_.get(), kBufferSize, &bytes_read);
87 OnReadCompleted(request_.get(), bytes_read);
91 int bytes_read) {
95 if (!request_->status().is_success() || bytes_read <= 0)
98 data_.append(buffer_->data(), bytes_read);
99 } while (request_->Read(buffer_.get(), kBufferSize, &bytes_read));
90 OnReadCompleted(net::URLRequest* source, int bytes_read) argument
/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/chromium_org/net/socket/
H A Dtransport_client_socket_unittest.cc144 uint32 bytes_read = 0; local
146 while (bytes_read < bytes_to_read) {
154 bytes_read += rv;
157 return static_cast<int>(bytes_read);
212 uint32 bytes_read; local
229 bytes_read = DrainClientSocket(buf.get(), 1, 1, &callback);
230 ASSERT_EQ(bytes_read, 1u);
237 bytes_read = DrainClientSocket(
239 ASSERT_EQ(bytes_read, arraysize(kServerReply) - 2);
250 bytes_read
285 uint32 bytes_read = DrainClientSocket( local
310 uint32 bytes_read = 0; local
[all...]
/external/chromium_org/content/browser/net/
H A Dview_http_cache_job_factory.cc46 int buf_size, int *bytes_read) OVERRIDE{
47 return core_->ReadRawData(buf, buf_size, bytes_read);
67 bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
168 int* bytes_read) {
169 DCHECK(bytes_read);
175 *bytes_read = buf_size;
166 ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) argument
/external/chromium_org/net/base/
H A Dsdch_dictionary_fetcher.cc102 int bytes_read) {
111 dictionary_.append(buffer_->data(), bytes_read);
201 int bytes_read = 0; local
202 if (!current_request_->Read(buffer_.get(), kBufferSize, &bytes_read)) {
220 if (bytes_read != 0)
221 dictionary_.append(buffer_->data(), bytes_read);
101 OnReadCompleted(URLRequest* request, int bytes_read) argument
/external/chromium_org/content/browser/loader/
H A Dstream_resource_handler.cc73 bool StreamResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { argument
74 if (!bytes_read)
84 stream_->AddData(buffer, bytes_read);

Completed in 8333 milliseconds

1234567891011>>