/external/chromium_org/third_party/sfntly/cpp/src/test/ |
H A D | byte_array_test.cc | 39 int32_t bytes_read = ba->Get(index, buffer); local 40 std::copy(buffer->begin(), buffer->begin() + bytes_read, 42 index += bytes_read; 54 int32_t bytes_read = ba->Get(index, &((*b)[0]), index, actual_window_size); local 55 index += bytes_read;
|
/external/sfntly/cpp/src/test/ |
H A D | byte_array_test.cc | 39 int32_t bytes_read = ba->Get(index, buffer); local 40 std::copy(buffer->begin(), buffer->begin() + bytes_read, 42 index += bytes_read; 54 int32_t bytes_read = ba->Get(index, &((*b)[0]), index, actual_window_size); local 55 index += bytes_read;
|
/external/libexif/libexif/ |
H A D | exif-loader.c | 79 unsigned int bytes_read; member in struct:_ExifLoader 135 if (!eld || (len && !buf) || (eld->bytes_read >= eld->size)) 145 len = MIN (len, eld->size - eld->bytes_read); 146 memcpy (eld->buf + eld->bytes_read, buf, len); 147 eld->bytes_read += len; 149 return (eld->bytes_read >= eld->size) ? 0 : 1; 384 loader->bytes_read = 0; 396 !loader->bytes_read) 401 exif_data_load_data (ed, loader->buf, loader->bytes_read); 418 s = loader->bytes_read; [all...] |
/external/chromium_org/media/base/ |
H A D | seekable_buffer_unittest.cc | 69 int bytes_read = buffer_.Read(write_buffer_, read_size); local 70 EXPECT_GE(read_size, bytes_read); 71 EXPECT_EQ(0, memcmp(write_buffer_, data_ + read_position, bytes_read)); 72 read_position += bytes_read; 181 int bytes_read = buffer_.Read(write_buffer_, read_size); 182 EXPECT_EQ(0, memcmp(write_buffer_, data_ + read_position, bytes_read)); 184 EXPECT_EQ(forward_bytes, bytes_read); 186 EXPECT_EQ(read_size, bytes_read); 187 read_position += bytes_read; 274 int bytes_read [all...] |
/external/chromium_org/chrome/browser/predictors/ |
H A D | resource_prefetcher.cc | 168 int bytes_read = 0; local 171 status = request->Read(buffer.get(), kResourceBufferSizeBytes, &bytes_read); 174 status = ShouldContinueReadingRequest(request, bytes_read); 183 int bytes_read) { 184 if (bytes_read == 0) { // When bytes_read == 0, no more data. 230 int bytes_read) { 236 if (ShouldContinueReadingRequest(request, bytes_read)) 182 ShouldContinueReadingRequest(net::URLRequest* request, int bytes_read) argument 229 OnReadCompleted(net::URLRequest* request, int bytes_read) argument
|
/external/chromium_org/native_client_sdk/src/examples/api/file_io/ |
H A D | file_io.cc | 235 int32_t bytes_read = 0; local 238 bytes_read = file.Read(offset, 242 if (bytes_read > 0) { 243 offset += bytes_read; 244 bytes_to_read -= bytes_read; 245 } else if (bytes_read < 0) { 246 // If bytes_read < PP_OK then it indicates the error code. 247 ShowErrorMessage("File read failed", bytes_read);
|
/external/chromium_org/net/url_request/ |
H A D | url_request_test_job.cc | 218 int *bytes_read) { 226 DCHECK(bytes_read); 227 *bytes_read = 0; 240 *bytes_read = to_read; 299 int bytes_read; local 300 if (!ReadRawData(async_buf_, async_buf_size_, &bytes_read)) 308 NotifyReadComplete(bytes_read); 217 ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read) argument
|
/external/chromium_org/tools/android/heap_profiler/ |
H A D | heap_dump.c | 236 size_t bytes_read = 0; local 241 res = read(fd, buf + bytes_read, count - bytes_read); 245 bytes_read += res; 246 } while (bytes_read < count); 247 return bytes_read ? bytes_read : res;
|
/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.h | 73 int bytes_read) OVERRIDE; 100 void ReadMore(int* bytes_read); 102 void CompleteRead(int bytes_read);
|
H A D | sync_resource_handler.cc | 115 bool SyncResourceHandler::OnReadCompleted(int bytes_read, bool* defer) { argument 116 if (!bytes_read) 118 result_.data.append(read_buffer_->data(), bytes_read);
|
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/android_webview/native/ |
H A D | input_stream_impl.cc | 79 bool InputStreamImpl::Read(net::IOBuffer* dest, int length, int* bytes_read) { argument 93 *bytes_read = 0; 129 // bytes_read can be strictly less than the req. length if EOF is encountered. 132 *bytes_read = length - remaining_length;
|
H A D | input_stream_impl.h | 37 virtual bool Read(net::IOBuffer* dest, int length, int* bytes_read) OVERRIDE;
|
/external/chromium_org/chrome/browser/chromeos/file_system_provider/fileapi/ |
H A D | buffering_file_stream_reader.cc | 38 const int bytes_read = local 40 if (bytes_read) 41 return bytes_read;
|
/external/chromium_org/components/cronet/android/ |
H A D | url_request_adapter.h | 107 size_t bytes_read() const { return bytes_read_; } function in class:cronet::URLRequestAdapter 118 int bytes_read) OVERRIDE; 129 void OnBytesRead(int bytes_read);
|
/external/chromium_org/content/browser/service_worker/ |
H A D | service_worker_write_to_cache_job.h | 66 int *bytes_read) OVERRIDE; 77 int *bytes_read); 104 int bytes_read) OVERRIDE;
|
/external/chromium_org/mojo/common/test/ |
H A D | multiprocess_test_helper_unittest.cc | 38 size_t bytes_read = 0; local 39 BlockingRead(handle, c, 1, &bytes_read); 40 return bytes_read == 1;
|
/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/ppapi/tests/ |
H A D | test_flash_file.cc | 59 DWORD bytes_read = 0; local 61 result = !!::ReadFile(file_handle, buffer, kBufferSize, &bytes_read, NULL); 62 if (result && bytes_read > 0) 63 contents->append(buffer, bytes_read); 64 } while (result && bytes_read > 0); 67 ssize_t bytes_read = 0; local 70 bytes_read = read(file_handle, buffer, kBufferSize); 71 } while (bytes_read == -1 && errno == EINTR); 72 result = bytes_read != -1; 73 if (bytes_read > [all...] |
/external/chromium_org/storage/browser/fileapi/ |
H A D | file_writer_delegate.h | 67 int bytes_read) OVERRIDE; 75 void OnDataReceived(int bytes_read); 79 void OnProgress(int bytes_read, bool done);
|
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/data/ |
H A D | font_input_stream.cc | 86 int32_t bytes_read = stream_->Read(b, offset, bytes_to_read); local 87 position_ += bytes_read; 88 return bytes_read;
|
/external/chromium_org/third_party/webrtc/test/ |
H A D | fake_audio_device.cc | 100 int bytes_read = file_utility_->ReadPCMData( local 102 if (bytes_read <= 0) 104 int num_samples = bytes_read / 2; // 2 bytes per sample.
|
/external/chromium_org/tools/android/md5sum/ |
H A D | md5sum.cc | 34 std::streamsize bytes_read = stream.readsome(buf, sizeof(buf)); local 35 if (bytes_read == 0) 37 base::MD5Update(&ctx, base::StringPiece(buf, bytes_read));
|
/external/sfntly/cpp/src/sfntly/data/ |
H A D | font_input_stream.cc | 86 int32_t bytes_read = stream_->Read(b, offset, bytes_to_read); local 87 position_ += bytes_read; 88 return bytes_read;
|