Home
last modified time | relevance | path

Searched refs:fence (Results 1 – 25 of 164) sorted by relevance

1234567

/frameworks/native/libs/ui/
DFenceTime.cpp36 FenceTime::FenceTime(const sp<Fence>& fence) in FenceTime() argument
37 : mState(((fence.get() != nullptr) && fence->isValid()) ? in FenceTime()
39 mFence(fence), in FenceTime()
44 FenceTime::FenceTime(sp<Fence>&& fence) in FenceTime() argument
45 : mState(((fence.get() != nullptr) && fence->isValid()) ? in FenceTime()
47 mFence(std::move(fence)), in FenceTime()
111 sp<Fence> fence; in getSignalTime() local
121 fence = mFence; in getSignalTime()
125 signalTime = fence->getSignalTime(); in getSignalTime()
170 FenceTime::FenceTime(const sp<Fence>& fence, bool forceValidForTest) in FenceTime() argument
[all …]
/frameworks/native/opengl/specs/
DEGL_ANDROID_native_fence_sync.txt39 This extension enables the creation of EGL fence sync objects that are
40 associated with a native synchronization fence object that is referenced
41 using a file descriptor. These EGL fence sync objects have nearly
44 referring to the native fence object.
46 This extension assumes the existence of a native fence synchronization
47 object that behaves similarly to an EGL fence sync object. These native
49 indicates whether the fence has ever been signaled. Once signaled the
89 "If <type> is EGL_SYNC_NATIVE_FENCE_ANDROID, an EGL native fence sync
92 must be set to either a file descriptor that refers to a native fence
95 The default values for the EGL native fence sync object attributes are as
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/tests/
Dbuffer_hub_queue-test.cpp101 LocalHandle fence; in TEST_F() local
105 auto p1_status = producer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence); in TEST_F()
115 auto c1_status = consumer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence); in TEST_F()
139 LocalHandle fence; in TEST_F() local
146 producer_queue_->Dequeue(kTimeoutMs, &producer_slot, &mo, &fence, true); in TEST_F()
165 consumer_queue_->Dequeue(kTimeoutMs, &consumer_slot, &mo, &fence); in TEST_F()
179 producer_queue_->Dequeue(kTimeoutMs, &producer_slot, &mo, &fence, true); in TEST_F()
194 producer_queue_->Dequeue(kTimeoutMs, &producer_slot, &mo, &fence, true); in TEST_F()
222 LocalHandle fence; in TEST_F() local
227 producer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence, true); in TEST_F()
[all …]
Dbuffer_hub_queue_producer-test.cpp72 QueueBufferInputBuilder& setFence(sp<Fence> fence) { in setFence()
73 this->mFence = fence; in setFence()
118 sp<Fence> fence; in DequeueBuffer() local
119 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(outSlot, &fence)); in DequeueBuffer()
367 sp<Fence> fence; in TEST_F() local
370 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot, &fence)); in TEST_F()
373 EXPECT_EQ(OK, mProducer->cancelBuffer(slot, fence)); in TEST_F()
408 sp<Fence> fence; in TEST_F() local
410 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot, &fence)); in TEST_F()
414 ASSERT_EQ(OK, mProducer->cancelBuffer(slot, fence)); in TEST_F()
[all …]
/frameworks/native/libs/gui/tests/
DBufferQueue_test.cpp82 sp<Fence> fence; in testBufferItem() local
85 &scalingMode, &transform, &fence, nullptr); in testBufferItem()
92 ASSERT_EQ(fence, item.mFence); in testBufferItem()
144 sp<Fence> fence; in TEST_F() local
147 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
182 sp<Fence> fence; in TEST_F() local
191 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F()
199 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F()
233 sp<Fence> fence; in TEST_F() local
242 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F()
[all …]
DIGraphicBufferProducer_test.cpp158 fence = QUEUE_BUFFER_INPUT_FENCE; in QueueBufferInputBuilder()
169 fence); in build()
202 QueueBufferInputBuilder& setFence(sp<Fence> fence) { in setFence()
203 this->fence = fence; in setFence()
214 sp<Fence> fence; member
220 sp<Fence> fence; member
224 return mProducer->dequeueBuffer(&result->slot, &result->fence, w, h, format, usage, in dequeueBuffer()
228 void setupDequeueRequestBuffer(int *slot, sp<Fence> *fence, in setupDequeueRequestBuffer() argument
232 ASSERT_TRUE(fence != nullptr); in setupDequeueRequestBuffer()
240 (mProducer->dequeueBuffer(slot, fence, DEFAULT_WIDTH, DEFAULT_HEIGHT, in setupDequeueRequestBuffer()
[all …]
DStreamSplitter_test.cpp82 sp<Fence> fence; in TEST_F() local
85 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
119 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
154 sp<Fence> fence; in TEST_F() local
157 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
194 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
218 sp<Fence> fence; in TEST_F() local
221 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
235 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
DMalicious.cpp40 status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, uint32_t h, PixelFormat format, in dequeueBuffer() argument
43 return mProducer->dequeueBuffer(slot, fence, w, h, format, usage, outBufferAge, in dequeueBuffer()
57 status_t cancelBuffer(int slot, const sp<Fence>& fence) override { in cancelBuffer() argument
58 return mProducer->cancelBuffer(slot, fence); in cancelBuffer()
112 status_t dequeueBuffer(int* buf, sp<Fence>* fence, uint32_t width, uint32_t height, in dequeueBuffer() argument
116 mProducer->dequeueBuffer(buf, fence, width, height, format, usage, outBufferAge, in dequeueBuffer()
/frameworks/native/libs/ui/include_vndk/ui/
DFenceTime.h54 explicit Snapshot(const sp<Fence>& fence);
73 sp<Fence> fence{Fence::NO_FENCE};
79 explicit FenceTime(const sp<Fence>& fence);
80 explicit FenceTime(sp<Fence>&& fence);
120 FenceTime(const sp<Fence>& fence, bool forceValidForTest);
158 void push(const std::shared_ptr<FenceTime>& fence);
187 std::shared_ptr<FenceTime> createFenceTimeForTest(const sp<Fence>& fence);
191 void signalAllForTest(const sp<Fence>& fence, nsecs_t signalTime);
/frameworks/native/libs/ui/include/ui/
DFenceTime.h54 explicit Snapshot(const sp<Fence>& fence);
73 sp<Fence> fence{Fence::NO_FENCE};
79 explicit FenceTime(const sp<Fence>& fence);
80 explicit FenceTime(sp<Fence>&& fence);
120 FenceTime(const sp<Fence>& fence, bool forceValidForTest);
158 void push(const std::shared_ptr<FenceTime>& fence);
187 std::shared_ptr<FenceTime> createFenceTimeForTest(const sp<Fence>& fence);
191 void signalAllForTest(const sp<Fence>& fence, nsecs_t signalTime);
/frameworks/native/services/vr/hardware_composer/tests/
Dvr_composer_test.cpp58 ParcelableUniqueFd* fence) override { in onNewFrame() argument
59 binder::Status status = TestComposerCallback::onNewFrame(frame, fence); in onNewFrame()
63 fence->set_fence(fd); in onNewFrame()
104 base::unique_fd fence = composer_->OnNewFrame(frame); in TEST_F() local
105 ASSERT_EQ(-1, fence.get()); in TEST_F()
116 base::unique_fd fence = composer_->OnNewFrame(frame); in TEST_F() local
117 ASSERT_EQ(-1, fence.get()); in TEST_F()
133 .fence = new Fence(eventfd(0, 0)), in TEST_F()
141 base::unique_fd fence = composer_->OnNewFrame(frame); in TEST_F() local
142 ASSERT_LE(0, fence.get()); in TEST_F()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DCommonPoolTests.cpp59 std::condition_variable fence; in TEST() local
67 fence.notify_all(); in TEST()
69 fence.wait(lock); in TEST()
78 fence.wait(lock); in TEST()
89 fence.notify_all(); in TEST()
102 std::condition_variable fence; in TEST() local
113 fence.wait(_lock); in TEST()
132 fence.notify_all(); in TEST()
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/
Dparcelable_unique_fd.h16 explicit ParcelableUniqueFd(const base::unique_fd& fence);
19 void set_fence(const base::unique_fd& fence) { in set_fence() argument
20 fence_.reset(dup(fence.get())); in set_fence()
22 base::unique_fd fence() const { return base::unique_fd(dup(fence_.get())); } in fence() function
/frameworks/av/media/libmedia/omx/1.0/
DWOmxBufferSource.cpp54 hidl_handle fence; in onInputBufferEmptied() local
56 if (!wrapAs(&fence, &fenceNh, fenceParcel)) { in onInputBufferEmptied()
63 static_cast<uint32_t>(bufferId), fence)); in onInputBufferEmptied()
95 uint32_t buffer, hidl_handle const& fence) { in onInputBufferEmptied() argument
97 if (!convertTo(&fenceParcelable, fence)) { in onInputBufferEmptied()
/frameworks/av/media/libstagefright/omx/1.0/
DWOmxBufferSource.cpp54 hidl_handle fence; in onInputBufferEmptied() local
56 if (!wrapAs(&fence, &fenceNh, fenceParcel)) { in onInputBufferEmptied()
63 static_cast<uint32_t>(bufferId), fence)); in onInputBufferEmptied()
95 uint32_t buffer, hidl_handle const& fence) { in onInputBufferEmptied() argument
97 if (!convertTo(&fenceParcelable, fence)) { in onInputBufferEmptied()
/frameworks/native/libs/gui/
DIGraphicBufferProducer.cpp137 virtual status_t dequeueBuffer(int* buf, sp<Fence>* fence, uint32_t width, uint32_t height, in dequeueBuffer() argument
156 *fence = new Fence(); in dequeueBuffer()
157 result = reply.read(**fence); in dequeueBuffer()
159 fence->clear(); in dequeueBuffer()
280 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { in cancelBuffer() argument
284 data.write(*fence.get()); in cancelBuffer()
482 sp<Fence> fence(new Fence); in getLastQueuedBuffer() local
483 result = reply.read(*fence); in getLastQueuedBuffer()
489 *outFence = fence; in getLastQueuedBuffer()
575 status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, uint32_t h, PixelFormat format, in dequeueBuffer() argument
[all …]
DConsumerBase.cpp372 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFence() argument
374 return addReleaseFenceLocked(slot, graphicBuffer, fence); in addReleaseFence()
378 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFenceLocked() argument
388 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
401 auto incomingStatus = fence->getStatus(); in addReleaseFenceLocked()
404 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
414 fenceName, mSlots[slot].mFence, fence); in addReleaseFenceLocked()
419 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
431 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
DBufferHubProducer.cpp164 LocalHandle fence; in dequeueBuffer() local
165 auto buffer_status = queue_->Dequeue(dequeue_timeout_ms_, &slot, &fence); in dequeueBuffer()
309 LocalHandle fence; in detachNextBuffer() local
313 auto status_or_buffer = queue_->Dequeue(/*timeout=*/0, &slot, &fence); in detachNextBuffer()
356 *out_fence = new Fence(fence.Release()); in detachNextBuffer()
411 sp<Fence> fence; in queueBuffer() local
414 &fence); in queueBuffer()
429 if (fence == nullptr) { in queueBuffer()
467 LocalHandle fence_fd(fence->isValid() ? fence->dup() : -1); in queueBuffer()
500 status_t BufferHubProducer::cancelBuffer(int slot, const sp<Fence>& fence) { in cancelBuffer() argument
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DGeofenceState.java46 public GeofenceState(Geofence fence, long expireAt, in GeofenceState() argument
51 mFence = fence; in GeofenceState()
59 mLocation.setLatitude(fence.getLatitude()); in GeofenceState()
60 mLocation.setLongitude(fence.getLongitude()); in GeofenceState()
/frameworks/native/services/vr/hardware_composer/
Dvr_composer.cpp70 ParcelableUniqueFd fence; in OnNewFrame() local
71 binder::Status ret = callback_->onNewFrame(parcelable_frame, &fence); in OnNewFrame()
75 return fence.fence(); in OnNewFrame()
/frameworks/native/libs/vr/libbufferhub/
Dbuffer_hub-test.cpp86 LocalHandle fence; in TEST_F() local
87 EXPECT_EQ(0, c1->Acquire(&fence)); in TEST_F()
91 EXPECT_EQ(0, c2->Acquire(&fence)); in TEST_F()
100 EXPECT_EQ(0, p->Gain(&fence)); in TEST_F()
215 LocalHandle fence; in TEST_F() local
219 EXPECT_EQ(-EBUSY, c->Acquire(&fence)); in TEST_F()
226 EXPECT_EQ(-EBUSY, p->Gain(&fence)); in TEST_F()
229 EXPECT_EQ(0, c->Acquire(&fence)); in TEST_F()
232 EXPECT_EQ(-EBUSY, c->Acquire(&fence)); in TEST_F()
234 EXPECT_EQ(-EBUSY, p->Gain(&fence)); in TEST_F()
[all …]
/frameworks/native/libs/gui/bufferqueue/1.0/
DH2BGraphicBufferProducer.cpp216 inline size_t getFenceFdCount(hidl_handle const& fence) { in getFenceFdCount() argument
217 return native_handle_read_fd(fence) == -1 ? 0 : 1; in getFenceFdCount()
235 inline status_t unflattenFence(hidl_handle* fence, native_handle_t** nh, in unflattenFence() argument
257 *fence = *nh; in unflattenFence()
262 *fence = hidl_handle(); in unflattenFence()
278 inline status_t flattenFence(hidl_handle const& fence, in flattenFence() argument
280 if (size < getFenceFlattenedSize(fence) || in flattenFence()
281 numFds < getFenceFdCount(fence)) { in flattenFence()
287 static_cast<uint32_t>(getFenceFdCount(fence))); in flattenFence()
288 int fd = native_handle_read_fd(fence); in flattenFence()
[all …]
/frameworks/native/libs/nativewindow/include/android/
Dhardware_buffer.h432 int32_t fence, const ARect* rect, void** outVirtualAddress) __INTRODUCED_IN(26);
462 int32_t fence, const ARect* rect, AHardwareBuffer_Planes* outPlanes) __INTRODUCED_IN(29);
482 int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence) __INTRODUCED_IN(26);
541 int32_t fence, const ARect* rect, void** outVirtualAddress,
/frameworks/av/media/libstagefright/include/media/stagefright/
DFrameRenderTracker.h61 const sp<Fence> &fence) in RenderedFrameInfo()
66 mFence(fence) { in RenderedFrameInfo()
101 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence);
/frameworks/native/libs/vr/libvrflinger/
Dacquired_buffer.cpp17 LocalHandle fence; in AcquiredBuffer() local
18 const int ret = buffer->Acquire(&fence); in AcquiredBuffer()
30 acquire_fence_ = std::move(fence); in AcquiredBuffer()

1234567