/external/sfntly/cpp/src/test/ |
H A D | font_data_test.cc | 158 int32_t bytes_read = rfd->ReadBytes(index, &(buffer[0]), 0, buffer.size()); local 159 EXPECT_GE(bytes_read, 0); 160 std::copy(buffer.begin(), buffer.begin() + bytes_read, b->begin() + index); 161 index += bytes_read; 172 int32_t bytes_read = local 174 EXPECT_GE(bytes_read, 0); 175 index += bytes_read; 205 int32_t bytes_read = rfd->ReadBytes(index, &(b[0]), index, sliding_size); local 207 index += bytes_read;
|
/external/tinyalsa/ |
H A D | tinycap.c | 192 unsigned int bytes_read = 0; local 227 bytes_read += size; 232 return pcm_bytes_to_frames(pcm, bytes_read);
|
/external/chromium_org/base/files/ |
H A D | file_path_watcher_linux.cc | 232 ssize_t bytes_read = HANDLE_EINTR(read(inotify_fd, &buffer[0], local 235 if (bytes_read < 0) { 241 while (i < bytes_read) { 244 DCHECK(i + event_size <= static_cast<size_t>(bytes_read));
|
/external/chromium_org/base/process/ |
H A D | launch_posix.cc | 600 ssize_t bytes_read = 1; // A lie to properly handle |max_output == 0| local 604 bytes_read = HANDLE_EINTR(read(pipe_fd[0], buffer, 606 if (bytes_read <= 0) 608 output->append(buffer, bytes_read); 609 output_buf_left -= static_cast<size_t>(bytes_read); 619 if (!output_buf_left && bytes_read > 0)
|
/external/chromium_org/chrome/browser/net/ |
H A D | connection_tester.cc | 323 int bytes_read) OVERRIDE; 359 int bytes_read) { 360 if (bytes_read <= 0) { 358 OnReadCompleted(net::URLRequest* request, int bytes_read) argument
|
/external/chromium_org/chrome/utility/media_galleries/ |
H A D | image_metadata_extractor.cc | 38 int bytes_read) { 39 if (bytes_read == media::DataSource::kReadError) { 44 buffer->DidConsume(bytes_read); 34 FinishGetImageBytes( const scoped_refptr<net::DrainableIOBuffer>& buffer, media::DataSource* source, const GotImageCallback& callback, int bytes_read) argument
|
/external/chromium_org/content/browser/loader/ |
H A D | async_resource_handler.cc | 62 int CalcUsedPercentage(int bytes_read, int buffer_size) { argument 63 double ratio = static_cast<double>(bytes_read) / buffer_size; 262 bool AsyncResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { argument 263 DCHECK_GE(bytes_read, 0); 265 if (!bytes_read) 272 buffer_->ShrinkLastAllocation(bytes_read); 276 bytes_read, 0, kMaxAllocationSize, 100); 279 CalcUsedPercentage(bytes_read, allocation_size_)); 298 GetRequestID(), data_offset, bytes_read, encoded_data_length));
|
H A D | resource_loader.cc | 356 void ResourceLoader::OnReadCompleted(net::URLRequest* unused, int bytes_read) { argument 359 << " bytes_read = " << bytes_read; 361 // bytes_read == -1 always implies an error. 362 if (bytes_read == -1 || !request_->status().is_success()) { 367 CompleteRead(bytes_read); 374 // Note: if bytes_read is 0 (EOF) and the handler defers, resumption will call 379 if (bytes_read > 0) { 383 DCHECK_EQ(0, bytes_read); 570 int bytes_read local 606 ReadMore(int* bytes_read) argument 628 CompleteRead(int bytes_read) argument [all...] |
/external/chromium_org/content/browser/service_worker/ |
H A D | service_worker_url_request_job.cc | 122 net::IOBuffer* buf, int buf_size, int *bytes_read) { 124 *bytes_read = 0; 128 blob_request_->Read(buf, buf_size, bytes_read); 175 int bytes_read) { 181 NotifyReadComplete(bytes_read); 182 if (bytes_read == 0) 121 ReadRawData( net::IOBuffer* buf, int buf_size, int *bytes_read) argument 174 OnReadCompleted(net::URLRequest* request, int bytes_read) argument
|
/external/chromium_org/extensions/browser/api/serial/ |
H A D | serial_connection.cc | 147 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 D | ipc_channel_win.cc | 157 int* /* bytes_read */) { 162 DWORD bytes_read = 0; local 164 &bytes_read, &input_state_.context.overlapped);
|
/external/chromium_org/media/base/ |
H A D | yuv_convert_unittest.cc | 64 int bytes_read = base::ReadFile( local 66 CHECK_EQ(bytes_read, expected_size);
|
/external/chromium_org/media/blink/ |
H A D | buffered_data_source.cc | 413 int bytes_read) { 449 if (bytes_read > 0) { 451 memcpy(read_op_->data(), &intermediate_read_buffer_[0], bytes_read); 452 } else if (bytes_read == 0 && total_bytes_ == kPositionNotSpecified) { 464 ReadOperation::Run(read_op_.Pass(), bytes_read); 411 ReadCallback( BufferedResourceLoader::Status status, 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/mojo/public/cpp/utility/tests/ |
H A D | run_loop_unittest.cc | 352 uint32_t bytes_read = 1; local 356 &read_byte, &bytes_read, NULL, &handles_read,
|
/external/chromium_org/mojo/services/network/ |
H A D | url_loader_impl.cc | 86 uint32_t bytes_read = variable 89 if (bytes_read > 0) { 90 ReadDataRaw(pipe_.get(), buf->data(), &bytes_read, 94 offset_ += bytes_read; 95 return bytes_read; 290 int bytes_read) { 294 DidRead(static_cast<uint32_t>(bytes_read), false); 353 int bytes_read; local 354 url_request_->Read(buf.get(), static_cast<int>(num_bytes), &bytes_read); 361 } else if (url_request_->status().is_success() && bytes_read > 289 OnReadCompleted(net::URLRequest* url_request, int bytes_read) argument [all...] |
/external/chromium_org/mojo/system/ |
H A D | raw_channel_win.cc | 133 void OnReadCompleted(DWORD bytes_read, DWORD error); 163 virtual IOResult Read(size_t* bytes_read) OVERRIDE; 295 void RawChannelWin::RawChannelIOHandler::OnReadCompleted(DWORD bytes_read, argument 307 DCHECK_GT(bytes_read, 0u); 308 owner_->OnReadCompleted(IO_SUCCEEDED, bytes_read); 310 DCHECK_EQ(bytes_read, 0u); 313 DCHECK_EQ(bytes_read, 0u); 365 RawChannel::IOResult RawChannelWin::Read(size_t* bytes_read) { argument 392 *bytes_read = bytes_read_dword; 414 size_t bytes_read local [all...] |
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
H A D | node.cc | 156 int bytes_read; local 157 Error read_error = Read(data, new_addr, length, &bytes_read);
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
H A D | jspipe_test.cc | 250 int bytes_read; local 259 ASSERT_EQ(0, pipe_dev_->Read(attrs, buffer, 5, &bytes_read)); 260 EXPECT_EQ(5, bytes_read); 267 &bytes_read)); 268 EXPECT_EQ(bytes_read, message.size() - 5); 394 int bytes_read = -1; local 396 ASSERT_EQ(0, pipe_dev_->Read(attrs, message, 5, &bytes_read)); 397 ASSERT_EQ(5, bytes_read);
|
/external/chromium_org/net/base/ |
H A D | network_delegate.cc | 88 int bytes_read) { 90 OnRawBytesRead(request, bytes_read); 228 int bytes_read) { 87 NotifyRawBytesRead(const URLRequest& request, int bytes_read) argument 227 OnRawBytesRead(const URLRequest& request, int bytes_read) argument
|
H A D | nss_memio.c | 428 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;
|
/external/chromium_org/net/quic/ |
H A D | quic_http_stream.cc | 179 int bytes_read = 0; local 183 memcpy(&(buf->data()[bytes_read]), data->data(), bytes_to_copy); 195 bytes_read += bytes_to_copy; 197 return bytes_read;
|
/external/chromium_org/net/tools/flip_server/ |
H A D | sm_connection.cc | 422 ssize_t bytes_read = 0; local 424 bytes_read = SSL_read(ssl_, bytes, size); 425 if (bytes_read < 0) { 426 int err = SSL_get_error(ssl_, bytes_read); 442 bytes_read = recv(fd_, bytes, size, MSG_DONTWAIT); 445 if (bytes_read == -1) { 462 } else if (bytes_read > 0) { 463 VLOG(2) << log_prefix_ << ACCEPTOR_CLIENT_IDENT << "read " << bytes_read local 474 read_buffer_.AdvanceWritablePtr(bytes_read); 478 } else { // bytes_read [all...] |
/external/chromium_org/net/websockets/ |
H A D | websocket_stream.cc | 81 virtual void OnReadCompleted(URLRequest* request, int bytes_read) OVERRIDE; 289 void Delegate::OnReadCompleted(URLRequest* request, int bytes_read) { argument
|
/external/chromium_org/storage/browser/blob/ |
H A D | blob_url_request_job.cc | 90 int* bytes_read) { 92 DCHECK(bytes_read); 97 *bytes_read = 0; 107 *bytes_read = 0; 115 return ReadLoop(bytes_read); 413 int bytes_read = BytesReadCompleted(); local 414 NotifyReadComplete(bytes_read); 419 int bytes_read = 0; local 420 if (ReadLoop(&bytes_read)) 421 NotifyReadComplete(bytes_read); 88 ReadRawData(net::IOBuffer* dest, int dest_size, int* bytes_read) argument 433 int bytes_read = read_buf_->BytesConsumed(); local 453 ReadLoop(int* bytes_read) argument [all...] |