Searched refs:forward_bytes (Results 1 – 12 of 12) sorted by relevance
/external/chromium_org/media/base/ |
D | seekable_buffer_unittest.cc | 54 EXPECT_EQ(write_position - read_position, buffer_.forward_bytes()); in TEST_F() 55 EXPECT_EQ(should_append, buffer_.forward_bytes() < kBufferSize) in TEST_F() 71 EXPECT_EQ(write_position - read_position, buffer_.forward_bytes()); in TEST_F() 84 EXPECT_EQ(j + kWriteSize, buffer_.forward_bytes()); in TEST_F() 90 int forward_bytes = kBufferSize; in TEST_F() local 94 forward_bytes -= kReadSize; in TEST_F() 95 EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); in TEST_F() 101 forward_bytes -= 2 * kReadSize; in TEST_F() 103 EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); in TEST_F() 107 EXPECT_EQ(forward_bytes, buffer_.forward_bytes()); in TEST_F() [all …]
|
D | seekable_buffer.h | 99 int forward_bytes() const { return forward_bytes_; } in forward_bytes() function
|
/external/chromium/webkit/glue/media/ |
D | buffered_resource_loader.cc | 206 return offset_ + static_cast<int>(buffer_->forward_bytes()) - 1; in GetBufferedPosition() 357 if (buffer_->forward_bytes() > buffer_->forward_capacity()) { in didReceiveData() 358 size_t excess = buffer_->forward_bytes() - buffer_->forward_capacity(); in didReceiveData() 389 instance_size_ = offset_ + buffer_->forward_bytes(); in didFinishLoading() 483 return buffer_->forward_bytes() >= buffer_->forward_capacity(); in ShouldEnableDefer() 502 size_t amount_buffered = buffer_->forward_bytes(); in ShouldDisableDefer() 510 size_t amount_buffered = buffer_->forward_bytes(); in ShouldDisableDefer() 536 if (first_offset_ >= static_cast<int>(buffer_->forward_bytes())) in CanFulfillRead() 546 if (last_offset_ > static_cast<int>(buffer_->forward_bytes())) in CanFulfillRead()
|
/external/chromium_org/content/renderer/media/ |
D | buffered_resource_loader.cc | 283 int advance = std::min(first_offset_, buffer_.forward_bytes()); in Read() 458 if (buffer_.forward_bytes() > buffer_.forward_capacity()) { in didReceiveData() 459 int excess = buffer_.forward_bytes() - buffer_.forward_capacity(); in didReceiveData() 466 progress_cb_.Run(offset_ + buffer_.forward_bytes() - 1); in didReceiveData() 496 instance_size_ = offset_ + buffer_.forward_bytes(); in didFinishLoading() 621 DCHECK(read_cb_.is_null() || last_offset_ > buffer_.forward_bytes()) in ShouldDefer() 626 return buffer_.forward_bytes() >= buffer_.forward_capacity(); in ShouldDefer() 638 if (first_offset_ >= buffer_.forward_bytes()) in CanFulfillRead() 648 if (last_offset_ > buffer_.forward_bytes()) in CanFulfillRead() 660 if ((first_offset_ - buffer_.forward_bytes()) >= kForwardWaitThreshold) in WillFulfillRead() [all …]
|
D | buffered_resource_loader_unittest.cc | 222 int buffered = loader_->buffer_.forward_bytes(); in WriteUntilThreshold() 253 int forward_bytes, in ConfirmBufferState() argument 257 EXPECT_EQ(forward_bytes, loader_->buffer_.forward_bytes()); in ConfirmBufferState()
|
/external/chromium_org/media/audio/alsa/ |
D | alsa_output_unittest.cc | 509 ASSERT_EQ(test_stream->buffer_->forward_bytes(), in TEST_F() 521 EXPECT_EQ(0, test_stream->buffer_->forward_bytes()); in TEST_F() 558 ASSERT_EQ(test_stream->buffer_->forward_bytes(), packet_->data_size()); in TEST_F() 570 EXPECT_EQ(test_stream->buffer_->forward_bytes(), packet_->data_size()); in TEST_F() 590 EXPECT_EQ(0, test_stream->buffer_->forward_bytes()); in TEST_F() 616 EXPECT_EQ(kTestPacketSize / 2, test_stream->buffer_->forward_bytes()); in TEST_F() 642 EXPECT_EQ(kTestPacketSize / 2, test_stream->buffer_->forward_bytes()); in TEST_F() 669 EXPECT_EQ(kTestPacketSize / 2, test_stream->buffer_->forward_bytes()); in TEST_F() 681 EXPECT_EQ(kTestPacketSize, test_stream->buffer_->forward_bytes()); in TEST_F() 828 EXPECT_EQ(0, test_stream->buffer_->forward_bytes()); in TEST_F()
|
D | alsa_output.cc | 356 if (!buffer_->forward_bytes()) { in BufferPacket() 407 CHECK_EQ(buffer_->forward_bytes() % bytes_per_output_frame_, 0u); in WritePacket() 481 if (buffer_->forward_bytes() && available_frames) { in ScheduleNextWrite() 484 } else if (buffer_->forward_bytes()) { in ScheduleNextWrite()
|
/external/chromium_org/media/audio/pulse/ |
D | pulse_input.cc | 275 while (buffer_->forward_bytes() >= packet_size) { in ReadData() 280 if (buffer_->forward_bytes() < packet_size) in ReadData()
|
D | pulse_unified.cc | 202 while (fifo_->forward_bytes() >= packet_size) { in ReadData()
|
/external/chromium_org/media/audio/ |
D | audio_low_latency_input_output_unittest.cc | 201 BytesToMilliseconds(buffer_->forward_bytes()); in OnData()
|
/external/chromium_org/media/audio/android/ |
D | audio_android_unittest.cc | 309 static_cast<int>(BytesToMilliseconds(fifo_->forward_bytes() + size)); in OnData() 349 if (fifo_->forward_bytes() < size_in_bytes) { in OnMoreData()
|
/external/chromium_org/media/audio/mac/ |
D | audio_low_latency_input_mac.cc | 517 if (fifo_->forward_bytes() >= requested_size_bytes_) { in Provide()
|