/external/chromium_org/third_party/brotli/src/brotli/dec/ |
H A D | bit_reader.h | 104 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 D | url_request_adapter.cc | 212 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 D | vcdiff_main.cc | 138 // 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 D | ipc_channel_reader.h | 44 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 D | test_utils.h | 28 // 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 D | test_utils_posix.cc | 41 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 D | test_utils_win.cc | 42 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 D | html5_fs_test.cc | 294 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 D | rw-by-pid.pl | 31 $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 D | url_request_abort_on_end_job.cc | 102 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 D | mpeg_audio_stream_parser_base.cc | 109 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 D | input_stream_reader.cc | 47 int bytes_read = 0; local 48 if (!stream_->Read(dest, dest_size, &bytes_read)) 51 return bytes_read;
|
/external/chromium_org/base/ |
H A D | sync_socket_nacl.cc | 63 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 D | platform-freebsd.cc | 134 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 D | http_fs_node.cc | 290 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 D | process_output_watcher.cc | 120 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 D | device_forwarder_main.cc | 124 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 D | tcp_socket_event_dispatcher.cc | 115 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 D | local_test_server_posix.cc | 65 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 D | token_validator_base.cc | 85 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 D | ogg_helper.c | 47 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 D | transport_client_socket_unittest.cc | 144 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 D | view_http_cache_job_factory.cc | 46 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 D | sdch_dictionary_fetcher.cc | 102 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 D | stream_resource_handler.cc | 73 bool StreamResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { argument 74 if (!bytes_read) 84 stream_->AddData(buffer, bytes_read);
|