Searched defs:bytes_read (Results 176 - 200 of 299) sorted by relevance

1234567891011>>

/external/sfntly/cpp/src/test/
H A Dfont_data_test.cc158 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 Dtinycap.c192 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 Dfile_path_watcher_linux.cc232 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 Dlaunch_posix.cc600 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 Dconnection_tester.cc323 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 Dimage_metadata_extractor.cc38 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 Dasync_resource_handler.cc62 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 Dresource_loader.cc356 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 Dservice_worker_url_request_job.cc122 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 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_win.cc157 int* /* bytes_read */) {
162 DWORD bytes_read = 0; local
164 &bytes_read, &input_state_.context.overlapped);
/external/chromium_org/media/base/
H A Dyuv_convert_unittest.cc64 int bytes_read = base::ReadFile( local
66 CHECK_EQ(bytes_read, expected_size);
/external/chromium_org/media/blink/
H A Dbuffered_data_source.cc413 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 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/mojo/public/cpp/utility/tests/
H A Drun_loop_unittest.cc352 uint32_t bytes_read = 1; local
356 &read_byte, &bytes_read, NULL, &handles_read,
/external/chromium_org/mojo/services/network/
H A Durl_loader_impl.cc86 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 Draw_channel_win.cc133 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 Dnode.cc156 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 Djspipe_test.cc250 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 Dnetwork_delegate.cc88 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 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;
/external/chromium_org/net/quic/
H A Dquic_http_stream.cc179 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 Dsm_connection.cc422 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 Dwebsocket_stream.cc81 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 Dblob_url_request_job.cc90 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...]

Completed in 688 milliseconds

1234567891011>>