Searched refs:write_buffer (Results 1 – 11 of 11) sorted by relevance
/frameworks/native/libs/vr/libdvr/ |
D | dvr_buffer.cpp | 42 void dvrWriteBufferDestroy(DvrWriteBuffer* write_buffer) { in dvrWriteBufferDestroy() argument 43 if (write_buffer != nullptr) { in dvrWriteBufferDestroy() 45 write_buffer->slot != -1, in dvrWriteBufferDestroy() 48 dvrWriteBufferGetId(write_buffer)); in dvrWriteBufferDestroy() 49 delete write_buffer; in dvrWriteBufferDestroy() 53 int dvrWriteBufferIsValid(DvrWriteBuffer* write_buffer) { in dvrWriteBufferIsValid() argument 54 return write_buffer && write_buffer->write_buffer; in dvrWriteBufferIsValid() 57 int dvrWriteBufferGetId(DvrWriteBuffer* write_buffer) { in dvrWriteBufferGetId() argument 58 if (!write_buffer || !write_buffer->write_buffer) in dvrWriteBufferGetId() 61 return write_buffer->write_buffer->id(); in dvrWriteBufferGetId() [all …]
|
D | dvr_buffer_queue.cpp | 54 int DvrWriteBufferQueue::Dequeue(int timeout, DvrWriteBuffer* write_buffer, in Dequeue() argument 65 write_buffer->write_buffer = std::move(buffer->write_buffer); in Dequeue() 102 write_buffers_[slot]->write_buffer, in GainBuffer() 104 write_buffers_[slot]->write_buffer = std::move(buffer_status.take()); in GainBuffer() 106 const auto& producer_buffer = write_buffers_[slot]->write_buffer; in GainBuffer() 147 write_buffers_[slot]->write_buffer = nullptr; in GainBuffer() 171 int DvrWriteBufferQueue::PostBuffer(DvrWriteBuffer* write_buffer, in PostBuffer() argument 175 size_t slot = static_cast<size_t>(write_buffer->slot); in PostBuffer() 184 if (write_buffer->write_buffer == nullptr) { in PostBuffer() 188 if (write_buffer->write_buffer->id() != producer_queue_->GetBufferId(slot)) { in PostBuffer() [all …]
|
D | dvr_buffer_queue_internal.h | 45 int Dequeue(int timeout, DvrWriteBuffer* write_buffer, int* out_fence_fd); 48 int PostBuffer(DvrWriteBuffer* write_buffer,
|
D | dvr_internal.h | 35 std::shared_ptr<android::dvr::ProducerBuffer> write_buffer; member
|
/frameworks/native/libs/vr/libdvr/tests/ |
D | dvr_display-test.cpp | 50 void FillWriteBuffer(DvrWriteBuffer* write_buffer, 98 DvrWriteBuffer* write_buffer = nullptr; in TEST_F() local 101 ret = api_.WriteBufferQueueGainBuffer(write_queue_, kTimeoutMs, &write_buffer, in TEST_F() 104 ASSERT_NE(nullptr, write_buffer) << "Gained buffer should not be null."; in TEST_F() 107 FillWriteBuffer(write_buffer, in TEST_F() 113 ret = api_.WriteBufferQueuePostBuffer(write_queue_, write_buffer, &out_meta, in TEST_F() 154 DvrWriteBuffer* write_buffer = nullptr; in TEST_F() local 158 write_queue_, kTimeoutMs, &write_buffer, &out_meta, &out_fence_fd); in TEST_F() 160 ASSERT_NE(nullptr, write_buffer) << "The gained buffer should not be null."; in TEST_F() 162 int bufferhub_id = api_.WriteBufferGetId(write_buffer); in TEST_F() [all …]
|
/frameworks/native/libs/vr/libdvr/include/dvr/ |
D | dvr_buffer.h | 18 void dvrWriteBufferDestroy(DvrWriteBuffer* write_buffer); 21 int dvrWriteBufferIsValid(DvrWriteBuffer* write_buffer); 24 int dvrWriteBufferGetId(DvrWriteBuffer* write_buffer); 28 int dvrWriteBufferGetAHardwareBuffer(DvrWriteBuffer* write_buffer,
|
D | dvr_api.h | 140 typedef void (*DvrWriteBufferDestroyPtr)(DvrWriteBuffer* write_buffer); 141 typedef int (*DvrWriteBufferIsValidPtr)(DvrWriteBuffer* write_buffer); 142 typedef int (*DvrWriteBufferClearPtr)(DvrWriteBuffer* write_buffer); 143 typedef int (*DvrWriteBufferGetIdPtr)(DvrWriteBuffer* write_buffer); 145 DvrWriteBuffer* write_buffer, AHardwareBuffer** hardware_buffer); 146 typedef int (*DvrWriteBufferPostPtr)(DvrWriteBuffer* write_buffer, 149 typedef int (*DvrWriteBufferGainPtr)(DvrWriteBuffer* write_buffer, 151 typedef int (*DvrWriteBufferGainAsyncPtr)(DvrWriteBuffer* write_buffer); 153 DvrWriteBuffer* write_buffer); 204 DvrWriteBufferQueue* write_queue, DvrWriteBuffer* write_buffer,
|
D | dvr_buffer_queue.h | 119 DvrWriteBuffer* write_buffer,
|
D | dvr_deleter.h | 26 void dvrWriteBufferDestroy(DvrWriteBuffer* write_buffer);
|
/frameworks/native/libs/binder/tests/ |
D | binderDriverInterfaceTest.cpp | 63 bwr.write_buffer = (uintptr_t)bc; in EnterLooper() 227 bwr.write_buffer = (uintptr_t)bc; in TEST_F() 263 bwr.write_buffer = (uintptr_t)&bc1; in TEST_F() 305 bwr.write_buffer = (uintptr_t)&bc2; in TEST_F() 351 bwr.write_buffer = (uintptr_t)&bc; in TEST_F()
|
/frameworks/native/libs/binder/ |
D | IPCThreadState.cpp | 992 bwr.write_buffer = (uintptr_t)mOut.data(); in talkWithDriver() 1007 const void* cmds = (const void*)bwr.write_buffer; in talkWithDriver()
|