Home
last modified time | relevance | path

Searched refs:producer_queue_ (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/libs/vr/libbufferhubqueue/tests/
Dbuffer_hub_queue-test.cpp37 producer_queue_ = ProducerQueue::Create(config, usage); in CreateProducerQueue()
38 return producer_queue_ != nullptr; in CreateProducerQueue()
42 if (producer_queue_) { in CreateConsumerQueue()
43 consumer_queue_ = producer_queue_->CreateConsumerQueue(); in CreateConsumerQueue()
57 auto status = producer_queue_->AllocateBuffer(kBufferWidth, kBufferHeight, in AllocateBuffer()
86 std::unique_ptr<ProducerQueue> producer_queue_; member in android::dvr::__anonba5096350111::BufferHubQueueTest
105 auto p1_status = producer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence); in TEST_F()
136 EXPECT_EQ(producer_queue_->capacity(), test_queue_capacity); in TEST_F()
146 producer_queue_->Dequeue(kTimeoutMs, &producer_slot, &mo, &fence, true); in TEST_F()
179 producer_queue_->Dequeue(kTimeoutMs, &producer_slot, &mo, &fence, true); in TEST_F()
[all …]
/frameworks/native/libs/vr/libdvr/
Ddvr_buffer_queue_internal.h34 int id() const { return producer_queue_->id(); } in id()
38 size_t capacity() const { return producer_queue_->capacity(); } in capacity()
40 return producer_queue_; in producer_queue()
53 std::shared_ptr<ProducerQueue> producer_queue_;
Ddvr_buffer_queue.cpp23 : producer_queue_(producer_queue), in DvrWriteBufferQueue()
32 sp<IGraphicBufferProducer> gbp = BufferHubProducer::Create(producer_queue_); in GetNativeWindow()
42 producer_queue_->CreateConsumerQueue(); in CreateReadQueue()
46 "from producer queue: queue_id=%d.", producer_queue_->id()); in CreateReadQueue()
80 size_t max_retries = 1 + producer_queue_->capacity(); in GainBuffer()
85 producer_queue_->Dequeue(timeout, &slot, out_meta, &release_fence); in GainBuffer()
139 auto remove_status = producer_queue_->RemoveBuffer(slot); in GainBuffer()
149 auto allocate_status = producer_queue_->AllocateBuffer( in GainBuffer()
188 if (write_buffer->write_buffer->id() != producer_queue_->GetBufferId(slot)) { in PostBuffer()
193 write_buffer->write_buffer->id(), producer_queue_->GetBufferId(slot)); in PostBuffer()