Searched refs:bytes_read (Results 251 - 275 of 426) sorted by relevance

<<1112131415161718

/external/chromium_org/mojo/system/
H A Draw_channel.cc269 void RawChannel::OnReadCompleted(IOResult io_result, size_t bytes_read) { argument
297 read_buffer_->num_valid_bytes_ += bytes_read;
414 bool schedule_for_later = did_dispatch_message || bytes_read < kReadSize;
415 bytes_read = 0;
416 io_result = schedule_for_later ? ScheduleRead() : Read(&bytes_read);
H A Dmessage_pipe_dispatcher_unittest.cc572 // |*messages_read| and |*bytes_read| belong to the thread while it's alive.
575 size_t* bytes_read)
579 bytes_read_(bytes_read) {
676 size_t bytes_read[kNumReaders]; local
689 new ReaderThread(d_read, &messages_read[i], &bytes_read[i]));
715 total_bytes_read += bytes_read[i];
718 EXPECT_GE(bytes_read[i], messages_read[i]) << "reader: " << i;
573 ReaderThread(scoped_refptr<Dispatcher> read_dispatcher, size_t* messages_read, size_t* bytes_read) argument
/external/chromium_org/net/base/
H A Dnss_memio.c428 void memio_PutReadResult(memio_Private *secret, int bytes_read) argument
433 if (bytes_read > 0) {
434 mb->tail += bytes_read;
437 } else if (bytes_read == 0) {
440 } else /* if (bytes_read < 0) */ {
441 mb->last_err = bytes_read;
H A Dnetwork_change_notifier.cc286 void NotifyDataReceived(const URLRequest& request, int bytes_read) { argument
299 bytes_read_since_last_connection_change_ += bytes_read;
304 if (bytes_read > 10000 &&
307 int32 kbps = bytes_read * 8 / request_duration.InMilliseconds();
572 int bytes_read) {
578 bytes_read);
571 NotifyDataReceived(const URLRequest& request, int bytes_read) argument
/external/chromium_org/third_party/leveldatabase/
H A Denv_chromium_win.cc69 DWORD bytes_read(0);
71 if (ReadFile(file_, scratch, n, &bytes_read, NULL)) {
72 *result = Slice(scratch, bytes_read);
78 if (bytes_read > 0)
79 *result = Slice(scratch, bytes_read);
/external/lldb/source/Host/linux/
H A DHost.cpp77 size_t bytes_read = 0; local
82 size_t avail = buf_ap->GetByteSize() - bytes_read;
83 ssize_t status = read (fd, buf_ap->GetBytes() + bytes_read, avail);
90 buf_ap->SetByteSize (bytes_read);
95 bytes_read += status;
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r600/
H A Dr600_shader.c262 unsigned * bytes_read)
267 out |= bytes[(*bytes_read)++] << (8 * i);
273 unsigned bytes_read, struct r600_bytecode_alu * alu, unsigned src_idx)
277 sel0 = bytes[bytes_read++];
278 sel1 = bytes[bytes_read++];
280 alu->src[src_idx].chan = bytes[bytes_read++];
281 alu->src[src_idx].neg = bytes[bytes_read++];
282 alu->src[src_idx].abs = bytes[bytes_read++];
283 alu->src[src_idx].rel = bytes[bytes_read++];
284 alu->src[src_idx].kc_bank = bytes[bytes_read
261 i32_from_byte_stream(unsigned char * bytes, unsigned * bytes_read) argument
272 r600_src_from_byte_stream(unsigned char * bytes, unsigned bytes_read, struct r600_bytecode_alu * alu, unsigned src_idx) argument
291 r600_alu_from_byte_stream(struct r600_shader_ctx *ctx, unsigned char * bytes, unsigned bytes_read) argument
373 r600_fc_from_byte_stream(struct r600_shader_ctx *ctx, unsigned char * bytes, unsigned bytes_read) argument
439 r600_tex_from_byte_stream(struct r600_shader_ctx *ctx, unsigned char * bytes, unsigned bytes_read) argument
473 r600_vtx_from_byte_stream(struct r600_shader_ctx *ctx, unsigned char * bytes, unsigned bytes_read) argument
519 unsigned bytes_read = 0; local
[all...]
/external/mesa3d/src/gallium/drivers/r600/
H A Dr600_shader.c262 unsigned * bytes_read)
267 out |= bytes[(*bytes_read)++] << (8 * i);
273 unsigned bytes_read, struct r600_bytecode_alu * alu, unsigned src_idx)
277 sel0 = bytes[bytes_read++];
278 sel1 = bytes[bytes_read++];
280 alu->src[src_idx].chan = bytes[bytes_read++];
281 alu->src[src_idx].neg = bytes[bytes_read++];
282 alu->src[src_idx].abs = bytes[bytes_read++];
283 alu->src[src_idx].rel = bytes[bytes_read++];
284 alu->src[src_idx].kc_bank = bytes[bytes_read
261 i32_from_byte_stream(unsigned char * bytes, unsigned * bytes_read) argument
272 r600_src_from_byte_stream(unsigned char * bytes, unsigned bytes_read, struct r600_bytecode_alu * alu, unsigned src_idx) argument
291 r600_alu_from_byte_stream(struct r600_shader_ctx *ctx, unsigned char * bytes, unsigned bytes_read) argument
373 r600_fc_from_byte_stream(struct r600_shader_ctx *ctx, unsigned char * bytes, unsigned bytes_read) argument
439 r600_tex_from_byte_stream(struct r600_shader_ctx *ctx, unsigned char * bytes, unsigned bytes_read) argument
473 r600_vtx_from_byte_stream(struct r600_shader_ctx *ctx, unsigned char * bytes, unsigned bytes_read) argument
519 unsigned bytes_read = 0; local
[all...]
/external/chromium_org/components/crash/app/
H A Dbreakpad_linux.cc1034 size_t bytes_read = 0; local
1049 sys_read(fd, buf + bytes_read, bytes_to_read - bytes_read));
1052 bytes_read += len;
1053 if (bytes_read == bytes_to_read)
1057 // or |bytes_read| < |bytes_to_read| still, keep reading.
1060 return bytes_read;
1064 bool IsValidCrashReportId(const char* buf, size_t bytes_read, argument
1066 if (bytes_read != expected_len)
1071 for (size_t i = 0; i < bytes_read;
1080 HandleCrashReportId(const char* buf, size_t bytes_read, size_t expected_len) argument
1525 size_t bytes_read = local
[all...]
/external/bison/src/
H A Dscan-gram.l730 size_t bytes_read = fread (buf, 1, size, fp);
731 if (bytes_read)
733 char *w = memchr (buf, '\r', bytes_read);
737 char const *lim = buf + bytes_read;
766 return bytes_read;
/external/chromium_org/base/files/
H A Dfile_util_posix.cc375 ssize_t bytes_read = local
377 if (bytes_read <= 0)
379 total_read += bytes_read;
673 ssize_t bytes_read = HANDLE_EINTR(read(fd, data, max_size));
676 return bytes_read;
880 ssize_t bytes_read = HANDLE_EINTR(read(infile, &buffer[0], buffer.size())); local
881 if (bytes_read < 0) {
885 if (bytes_read == 0)
893 bytes_read - bytes_written_per_read));
899 } while (bytes_written_per_read < bytes_read);
[all...]
/external/chromium_org/net/url_request/
H A Durl_request.cc783 bool URLRequest::Read(IOBuffer* dest, int dest_size, int* bytes_read) { argument
785 DCHECK(bytes_read);
786 *bytes_read = 0;
809 bool rv = job_->Read(dest, dest_size, bytes_read);
812 if (rv && *bytes_read <= 0 && status_.is_success())
1155 void URLRequest::NotifyReadCompleted(int bytes_read) { argument
1157 if (bytes_read <= 0)
1164 if (bytes_read > 0 && !was_cached())
1165 NetworkChangeNotifier::NotifyDataReceived(*this, bytes_read);
1168 delegate_->OnReadCompleted(this, bytes_read);
[all...]
H A Durl_request.h271 virtual void OnReadCompleted(URLRequest* request, int bytes_read) = 0;
597 // The bytes_read parameter is an output parameter containing the
603 bool Read(IOBuffer* buf, int max_bytes, int* bytes_read);
766 void NotifyReadCompleted(int bytes_read);
H A Durl_request_ftp_job.cc351 int *bytes_read) {
353 DCHECK(bytes_read);
368 *bytes_read = rv;
349 ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read) argument
/external/chromium_org/third_party/libjpeg_turbo/
H A Djdmarker.c105 unsigned int bytes_read; /* data bytes read so far in marker */ member in struct:__anon12745
760 unsigned int bytes_read, data_length; local
789 marker->bytes_read = 0;
790 bytes_read = 0;
794 bytes_read = data_length = 0;
799 bytes_read = marker->bytes_read;
801 data = cur_marker->data + bytes_read;
804 while (bytes_read < data_length) {
806 marker->bytes_read
[all...]
/external/chromium_org/chrome/browser/extensions/api/dial/
H A Ddial_service.cc299 void DialServiceImpl::DialSocket::HandleResponse(int bytes_read) { argument
301 DCHECK_GT(bytes_read, 0);
302 if (bytes_read > kDialRecvBufferSize) {
303 VLOG(1) << bytes_read << " > " << kDialRecvBufferSize << "!?";
306 VLOG(2) << "Read " << bytes_read << " bytes from "
309 std::string response(recv_buffer_->data(), bytes_read);
/external/chromium_org/extensions/browser/api/serial/
H A Dserial_connection.cc147 virtual void Done(uint32_t bytes_read) OVERRIDE {
148 callback_.Run(bytes_read, device::serial::SEND_ERROR_NONE);
150 virtual void DoneWithError(uint32_t bytes_read, int32_t error) OVERRIDE {
151 callback_.Run(bytes_read, static_cast<device::serial::SendError>(error));
358 void SerialConnection::OnAsyncReadComplete(int bytes_read, argument
365 callback.Run(std::string(receive_buffer_->data(), bytes_read),
/external/chromium_org/ipc/
H A Dipc_channel_posix.cc784 int* bytes_read) {
800 *bytes_read = HANDLE_EINTR(read(pipe_, buffer, buffer_len));
806 *bytes_read = HANDLE_EINTR(recvmsg(pipe_, &msg, MSG_DONTWAIT));
808 if (*bytes_read < 0) {
824 } else if (*bytes_read == 0) {
828 DCHECK(*bytes_read);
781 ReadData( char* buffer, int buffer_len, int* bytes_read) argument
/external/gtest/src/
H A Dgtest-port.cc619 size_t bytes_read = 0; // # of bytes read so far
626 bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file);
627 bytes_read += bytes_last_read;
628 } while (bytes_last_read > 0 && bytes_read < file_size);
630 const std::string content(buffer, bytes_read);
/external/lldb/source/Plugins/Platform/MacOSX/
H A DPlatformDarwin.cpp957 size_t bytes_read = temp_file_spec.ReadFileContents(0, developer_dir_path, sizeof(developer_dir_path), NULL); local
958 if (bytes_read > 0)
960 developer_dir_path[bytes_read] = '\0';
961 while (developer_dir_path[bytes_read-1] == '\r' ||
962 developer_dir_path[bytes_read-1] == '\n')
963 developer_dir_path[--bytes_read] = '\0';
/external/chromium_org/chrome/app/
H A Dimage_pre_reader_win.cc60 DWORD bytes_read = 0; local
65 &bytes_read,
67 bytes_read == bytes_to_read;
/external/chromium_org/chrome/browser/chromeos/fileapi/
H A Dexternal_file_url_request_job.cc308 int* bytes_read) {
313 *bytes_read = 0;
335 *bytes_read = result;
306 ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) argument
/external/chromium_org/google_apis/gcm/engine/
H A Dconnection_handler_impl.cc346 int bytes_read = prev_byte_count - input_stream_->UnreadByteCount(); local
347 DCHECK_EQ(bytes_read, 1);
348 input_stream_->BackUp(bytes_read);
/external/chromium_org/net/tools/quic/
H A Dquic_client.cc350 int bytes_read = ReadPacket(buf, arraysize(buf), &server_address, &client_ip); local
352 if (bytes_read < 0) {
356 QuicEncryptedPacket packet(buf, bytes_read, false);
/external/e2fsprogs/lib/quota/
H A Dquotaio.c178 unsigned int bytes_read = 0; local
187 err = ext2fs_file_read(e2_file, buf, size, &bytes_read);
193 return bytes_read;

Completed in 655 milliseconds

<<1112131415161718