HomeSort by relevance Sort by last modified time
    Searched defs:bytes_read (Results 101 - 125 of 213) sorted by null

1 2 3 45 6 7 8 9

  /external/chromium/third_party/libjingle/source/talk/xmpp/
xmppclient.cc 328 size_t bytes_read; local
330 if (!socket_->Read(bytes, sizeof(bytes), &bytes_read)) {
335 if (bytes_read == 0)
339 client_->SignalLogInput(bytes, bytes_read);
342 engine_->HandleInput(bytes, bytes_read);
  /external/chromium_org/base/files/
file_path_watcher_linux.cc 191 ssize_t bytes_read = HANDLE_EINTR(read(inotify_fd, &buffer[0], local
194 if (bytes_read < 0) {
200 while (i < bytes_read) {
203 DCHECK(i + event_size <= static_cast<size_t>(bytes_read));
  /external/chromium_org/chrome/browser/extensions/api/serial/
serial_api.cc 212 int bytes_read = -1; local
219 bytes_read = serial_connection->Read(io_buffer);
225 if (bytes_read < 0)
226 bytes_read = 0;
227 result->SetInteger(kBytesReadKey, bytes_read);
229 io_buffer->data(), bytes_read));
  /external/chromium_org/chrome/test/webdriver/
webdriver_dispatch.cc 57 int bytes_read = 0; local
58 while (bytes_read < content_length) {
59 bytes_read += mg_read(connection,
60 &(*request_body)[bytes_read],
61 content_length - bytes_read);
  /external/chromium_org/content/browser/loader/
resource_loader.cc 386 void ResourceLoader::OnReadCompleted(net::URLRequest* unused, int bytes_read) {
389 << " bytes_read = " << bytes_read;
391 // bytes_read == -1 always implies an error.
392 if (bytes_read == -1 || !request_->status().is_success()) {
397 CompleteRead(bytes_read);
402 if (request_->status().is_success() && bytes_read > 0) {
576 int bytes_read = 0; local
577 ReadMore(&bytes_read);
583 if (!is_continuation || bytes_read <= 0)
    [all...]
  /external/chromium_org/media/base/
yuv_convert_unittest.cc 58 int bytes_read = file_util::ReadFile( local
60 CHECK_EQ(bytes_read, expected_size);
    [all...]
  /external/chromium_org/native_client_sdk/src/examples/api/file_io/
file_io.cc 235 int32_t bytes_read = 0; local
237 bytes_read = file.Read(offset,
241 if (bytes_read > 0)
242 offset += bytes_read;
243 } while (bytes_read > 0);
244 // If bytes_read < PP_OK then it indicates the error code.
245 if (bytes_read < PP_OK) {
246 ShowErrorMessage("File read failed", bytes_read);
249 PP_DCHECK(bytes_read == 0);
  /external/chromium_org/native_client_sdk/src/examples/demo/nacl_io/
handlers.c 287 size_t bytes_read; local
305 bytes_read = fread(buffer, 1, data_len, file);
306 buffer[bytes_read] = 0;
310 "Error: Read %d bytes, but ferror() returns true.", bytes_read);
  /external/chromium_org/native_client_sdk/src/libraries/nacl_io/
mount_node_http.cc 383 int bytes_read; local
384 error = DownloadToBuffer(loader, buf, bytes_to_read, &bytes_read);
388 total_bytes_read += bytes_read;
390 if (bytes_read < bytes_to_read) {
496 int32_t bytes_read; local
498 DownloadToBuffer(loader, buffer_.data(), buffer_.size(), &bytes_read);
502 bytes_to_read -= bytes_read;
521 int bytes_read = loader_interface->ReadResponseBody( local
524 if (bytes_read == 0) {
531 if (bytes_read < 0
    [all...]
  /external/chromium_org/net/base/
upload_data_stream_unittest.cc 48 const int bytes_read = local
50 data_read.append(buf->data(), bytes_read);
158 int bytes_read = local
160 ASSERT_LE(0, bytes_read); // Not an error.
233 int bytes_read = read_callback.WaitForResult(); local
234 ASSERT_LE(0, bytes_read); // Not an error.
235 read_counter += bytes_read;
351 const int bytes_read = local
353 ASSERT_LE(0, bytes_read); // Not an error.
372 int bytes_read local
463 int bytes_read = stream.Read(buf.get(), kTestDataSize, CompletionCallback()); local
464 ASSERT_EQ(static_cast<int>(kTestDataSize), bytes_read); \/\/ Not an error. local
    [all...]
  /external/chromium_org/net/quic/
quic_http_stream.cc 164 int bytes_read = 0; local
168 memcpy(&(buf->data()[bytes_read]), data->data(), bytes_to_copy);
180 bytes_read += bytes_to_copy;
182 return bytes_read;
quic_stream_sequencer_test.cc 471 int bytes_read = sequencer_->Readv(&iov, 1); local
472 EXPECT_EQ(3, bytes_read);
reliable_quic_stream_test.cc 328 size_t bytes_read = stream_->Readv(&vec, 1); local
329 EXPECT_EQ(uncompressed_headers.length(), bytes_read);
330 EXPECT_EQ(uncompressed_headers, string(buffer, bytes_read));
332 bytes_read = stream_->Readv(&vec, 1);
333 EXPECT_EQ(body.length(), bytes_read);
334 EXPECT_EQ(body, string(buffer, bytes_read));
356 size_t bytes_read = stream_->Readv(&vec, 1); local
357 ASSERT_EQ(1u, bytes_read);
384 size_t bytes_read = stream_->Readv(vec, 2); local
385 ASSERT_EQ(2u, bytes_read) << i
    [all...]
  /external/chromium_org/net/tools/flip_server/
sm_connection.cc 420 ssize_t bytes_read = 0; local
422 bytes_read = SSL_read(ssl_, bytes, size);
423 if (bytes_read < 0) {
424 int err = SSL_get_error(ssl_, bytes_read);
440 bytes_read = recv(fd_, bytes, size, MSG_DONTWAIT);
443 if (bytes_read == -1) {
460 } else if (bytes_read > 0) {
461 VLOG(2) << log_prefix_ << ACCEPTOR_CLIENT_IDENT << "read " << bytes_read local
472 read_buffer_.AdvanceWritablePtr(bytes_read);
476 } else { // bytes_read ==
    [all...]
  /external/chromium_org/net/tools/quic/test_tools/
quic_test_client.cc 315 size_t QuicTestClient::bytes_read() const { function in class:net::tools::test::QuicTestClient
  /external/chromium_org/sdch/open-vcdiff/src/
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) {
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 > 0)
471 size_t bytes_read = 0; local
535 size_t bytes_read = 0; local
    [all...]
  /external/chromium_org/sync/engine/net/
server_connection_manager.cc 92 const int64 bytes_read = ReadResponse(buffer_out, local
94 if (bytes_read != response->content_length) {
104 const int64 bytes_read = ReadResponse(buffer_out, local
107 if (bytes_read != response->content_length) {
109 response->content_length << ", but sent " << bytes_read;
159 int bytes_read = buffer_.length(); local
160 CHECK(length <= bytes_read);
162 return bytes_read;
  /external/chromium_org/third_party/leveldatabase/src/db/
db_impl.h 172 int64_t bytes_read; member in struct:leveldb::DBImpl::CompactionStats
175 CompactionStats() : micros(0), bytes_read(0), bytes_written(0) { }
179 this->bytes_read += c.bytes_read;
  /external/chromium_org/third_party/libjingle/source/talk/xmpp/
xmppclient.cc 365 size_t bytes_read; local
373 if (!socket_->Read(bytes, sizeof(bytes), &bytes_read)) {
378 if (bytes_read == 0)
382 client_->SignalLogInput(bytes, static_cast<int>(bytes_read));
385 engine_->HandleInput(bytes, bytes_read);
  /external/chromium_org/third_party/openssl/openssl/apps/
s_time.c 134 static long bytes_read=0; variable
157 bytes_read=0;
396 bytes_read=0;
419 bytes_read+=i;
453 printf( "\n\n%d connections in %.2fs; %.2f connections/user sec, bytes read %ld\n", nConn, totalTime, ((double)nConn/totalTime),bytes_read);
454 printf( "%d connections in %ld real seconds, %ld bytes read per connection\n",nConn,(long)time(NULL)-finishtime+maxTime,bytes_read/nConn);
489 bytes_read=0;
512 bytes_read+=i;
543 printf( "\n\n%d connections in %.2fs; %.2f connections/user sec, bytes read %ld\n", nConn, totalTime, ((double)nConn/totalTime),bytes_read);
544 printf( "%d connections in %ld real seconds, %ld bytes read per connection\n",nConn,(long)time(NULL)-finishtime+maxTime,bytes_read/nConn)
    [all...]
  /external/chromium_org/third_party/tcmalloc/chromium/src/tests/
profiledata_unittest.cc 171 ssize_t bytes_read = ReadPersistent(fd.get(), filedata.get(), expected_bytes); local
172 if (expected_bytes != bytes_read)
  /external/chromium_org/third_party/tcmalloc/vendor/src/tests/
profiledata_unittest.cc 171 ssize_t bytes_read = ReadPersistent(fd.get(), filedata.get(), expected_bytes); local
172 if (expected_bytes != bytes_read)
  /external/chromium_org/tools/android/forwarder2/
host_forwarder_main.cc 278 const int bytes_read = client_socket->Read(buf, sizeof(buf)); variable
279 if (bytes_read <= 0) {
286 const Pickle command_pickle(buf, bytes_read);
325 const int bytes_read = daemon_socket->Read( variable
327 CHECK_GT(bytes_read, 0);
328 DCHECK(bytes_read < sizeof(buf));
329 buf[bytes_read] = 0;
330 base::StringPiece msg(buf, bytes_read);
socket.cc 293 int bytes_read = 0; local
295 while (bytes_read < num_bytes && ret > 0) {
296 ret = Read(static_cast<char*>(buffer) + bytes_read, num_bytes - bytes_read);
298 bytes_read += ret;
300 return bytes_read;
  /external/chromium_org/webkit/browser/blob/
blob_url_request_job.cc 84 int* bytes_read) {
86 DCHECK(bytes_read);
91 *bytes_read = 0;
101 *bytes_read = 0;
109 return ReadLoop(bytes_read);
407 int bytes_read = BytesReadCompleted(); local
408 NotifyReadComplete(bytes_read);
413 int bytes_read = 0; local
414 if (ReadLoop(&bytes_read))
415 NotifyReadComplete(bytes_read);
427 int bytes_read = read_buf_->BytesConsumed(); local
    [all...]

Completed in 2451 milliseconds

1 2 3 45 6 7 8 9