Searched refs:fence (Results 1 - 25 of 136) sorted by relevance

123456

/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/
H A Dparcelable_unique_fd.h16 ParcelableUniqueFd(const base::unique_fd& fence);
19 void set_fence(const base::unique_fd& fence) { argument
20 fence_.reset(dup(fence.get()));
22 base::unique_fd fence() const { return base::unique_fd(dup(fence_.get())); } function in class:android::dvr::ParcelableUniqueFd
H A Dparcelable_unique_fd.cpp10 ParcelableUniqueFd::ParcelableUniqueFd(const base::unique_fd& fence) argument
11 : fence_(dup(fence.get())) {}
/frameworks/native/libs/ui/
H A DFenceTime.cpp48 FenceTime::FenceTime(const sp<Fence>& fence) argument
49 : mState(((fence.get() != nullptr) && fence->isValid()) ?
51 mFence(fence),
56 FenceTime::FenceTime(sp<Fence>&& fence) argument
57 : mState(((fence.get() != nullptr) && fence->isValid()) ?
59 mFence(std::move(fence)),
79 ALOGE("applyTrustedSnapshot: Unexpected fence.");
108 // underlying fence i
123 sp<Fence> fence; local
182 FenceTime(const sp<Fence>& fence, bool forceValidForTest) argument
274 push(const std::shared_ptr<FenceTime>& fence) argument
296 std::shared_ptr<FenceTime> fence = mQueue.front().lock(); local
317 createFenceTimeForTest( const sp<Fence>& fence) argument
327 signalAllForTest( const sp<Fence>& fence, nsecs_t signalTime) argument
[all...]
/frameworks/av/media/libmedia/omx/1.0/
H A DWOmxBufferSource.cpp54 hidl_handle fence; local
56 if (!wrapAs(&fence, &fenceNh, fenceParcel)) {
59 "Invalid fence");
63 static_cast<uint32_t>(bufferId), fence));
95 uint32_t buffer, hidl_handle const& fence) {
97 if (!convertTo(&fenceParcelable, fence)) {
94 onInputBufferEmptied( uint32_t buffer, hidl_handle const& fence) argument
/frameworks/av/media/libstagefright/omx/1.0/
H A DWOmxBufferSource.cpp54 hidl_handle fence; local
56 if (!wrapAs(&fence, &fenceNh, fenceParcel)) {
59 "Invalid fence");
63 static_cast<uint32_t>(bufferId), fence));
95 uint32_t buffer, hidl_handle const& fence) {
97 if (!convertTo(&fenceParcelable, fence)) {
94 onInputBufferEmptied( uint32_t buffer, hidl_handle const& fence) argument
/frameworks/native/include/ui/
H A DFenceTime.h33 // A wrapper around fence that only implements isValid and getSignalTime.
34 // It automatically closes the fence in a thread-safe manner once the signal
53 explicit Snapshot(const sp<Fence>& fence);
72 sp<Fence> fence{Fence::NO_FENCE};
78 explicit FenceTime(const sp<Fence>& fence);
79 explicit FenceTime(sp<Fence>&& fence);
97 // This method should only be called when replacing the fence with
99 // of a fence, the snapshot should come from a trusted source.
124 FenceTime(const sp<Fence>& fence, bool forceValidForTest);
146 // Can be used to get the signal time of a fence an
[all...]
/frameworks/native/libs/ui/include/ui/
H A DFenceTime.h33 // A wrapper around fence that only implements isValid and getSignalTime.
34 // It automatically closes the fence in a thread-safe manner once the signal
53 explicit Snapshot(const sp<Fence>& fence);
72 sp<Fence> fence{Fence::NO_FENCE};
78 explicit FenceTime(const sp<Fence>& fence);
79 explicit FenceTime(sp<Fence>&& fence);
97 // This method should only be called when replacing the fence with
99 // of a fence, the snapshot should come from a trusted source.
124 FenceTime(const sp<Fence>& fence, bool forceValidForTest);
146 // Can be used to get the signal time of a fence an
[all...]
/frameworks/native/libs/ui/include_vndk/ui/
H A DFenceTime.h33 // A wrapper around fence that only implements isValid and getSignalTime.
34 // It automatically closes the fence in a thread-safe manner once the signal
53 explicit Snapshot(const sp<Fence>& fence);
72 sp<Fence> fence{Fence::NO_FENCE};
78 explicit FenceTime(const sp<Fence>& fence);
79 explicit FenceTime(sp<Fence>&& fence);
97 // This method should only be called when replacing the fence with
99 // of a fence, the snapshot should come from a trusted source.
124 FenceTime(const sp<Fence>& fence, bool forceValidForTest);
146 // Can be used to get the signal time of a fence an
[all...]
/frameworks/base/libs/hwui/utils/
H A DTestWindowContext.h49 void fence();
/frameworks/base/services/core/java/com/android/server/location/
H A DGeofenceState.java44 double mDistanceToCenter; // current distance to center of fence
46 public GeofenceState(Geofence fence, long expireAt, argument
51 mFence = fence;
59 mLocation.setLatitude(fence.getLatitude());
60 mLocation.setLongitude(fence.getLongitude());
65 * @return FLAG_ENTER or FLAG_EXIT if the fence was crossed, 0 otherwise
88 * Gets the distance from the current location to the fence's boundary.
/frameworks/native/libs/vr/libbufferhubqueue/tests/
H A Dbuffer_hub_queue-test.cpp99 LocalHandle fence; local
103 auto p1_status = producer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence);
113 auto c1_status = consumer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence);
129 LocalHandle fence; local
146 auto status = consumer_queue_->Dequeue(kNoTimeout, &slot, &mo, &fence);
152 // Use eventfd as a stand-in for a fence.
158 consumer_queue_->Dequeue(kNoTimeout, &slot, &mo, &fence);
165 producer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence);
174 consumer_status = consumer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence);
176 EXPECT_TRUE(fence
207 LocalHandle fence; member in struct:android::dvr::__anon1697::Entry
308 LocalHandle fence; local
395 LocalHandle fence; local
438 LocalHandle fence; local
462 LocalHandle fence; local
479 LocalHandle fence; local
542 LocalHandle fence; local
562 LocalHandle fence; local
646 LocalHandle fence; local
790 LocalHandle fence; local
857 LocalHandle fence; local
[all...]
/frameworks/native/services/vr/hardware_composer/
H A Dvr_composer.cpp70 ParcelableUniqueFd fence; local
71 binder::Status ret = callback_->onNewFrame(parcelable_frame, &fence);
75 return fence.fence();
/frameworks/native/services/vr/hardware_composer/tests/
H A Dvr_composer_test.cpp40 ParcelableUniqueFd* /* fence */) override {
58 ParcelableUniqueFd* fence) override {
59 binder::Status status = TestComposerCallback::onNewFrame(frame, fence);
63 fence->set_fence(fd);
104 base::unique_fd fence = composer_->OnNewFrame(frame); local
105 ASSERT_EQ(-1, fence.get());
116 base::unique_fd fence = composer_->OnNewFrame(frame); local
117 ASSERT_EQ(-1, fence.get());
133 .fence = new Fence(eventfd(0, 0)),
141 base::unique_fd fence local
[all...]
/frameworks/native/libs/gui/tests/
H A DIGraphicBufferProducer_test.cpp158 fence = QUEUE_BUFFER_INPUT_FENCE;
169 fence);
202 QueueBufferInputBuilder& setFence(sp<Fence> fence) { argument
203 this->fence = fence;
214 sp<Fence> fence; member in struct:android::IGraphicBufferProducerTest::QueueBufferInputBuilder
220 sp<Fence> fence; member in struct:android::IGraphicBufferProducerTest::DequeueBufferResult
224 return mProducer->dequeueBuffer(&result->slot, &result->fence, w, h, format, usage,
228 void setupDequeueRequestBuffer(int *slot, sp<Fence> *fence, argument
232 ASSERT_TRUE(fence !
686 sp<Fence> fence; local
695 sp<Fence> fence; local
709 sp<Fence> fence; local
731 sp<Fence> fence; local
747 sp<Fence> fence; local
764 sp<Fence> fence; local
777 sp<Fence> fence; local
[all...]
H A DBufferQueue_test.cpp82 sp<Fence> fence; local
85 &scalingMode, &transform, &fence, NULL);
92 ASSERT_EQ(fence, item.mFence);
144 sp<Fence> fence; local
147 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN,
182 sp<Fence> fence; local
191 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN,
199 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN,
233 sp<Fence> fence; local
242 mProducer->dequeueBuffer(&slot, &fence,
270 sp<Fence> fence; local
335 sp<Fence> fence; local
384 sp<Fence> fence; local
443 sp<Fence> fence; local
491 sp<Fence> fence; local
527 sp<Fence> fence; local
569 sp<Fence> fence; local
620 sp<Fence> fence; local
686 sp<Fence> fence; local
740 sp<Fence> fence = Fence::NO_FENCE; local
767 sp<Fence> fence = Fence::NO_FENCE; local
777 sp<Fence> fence = Fence::NO_FENCE; local
821 sp<Fence> fence; local
874 sp<Fence> fence = Fence::NO_FENCE; local
1010 sp<Fence> fence = Fence::NO_FENCE; local
1088 sp<Fence> fence = Fence::NO_FENCE; local
1129 sp<Fence> fence = Fence::NO_FENCE; local
[all...]
H A DStreamSplitter_test.cpp82 sp<Fence> fence; local
85 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN,
119 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN,
154 sp<Fence> fence; local
157 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN,
194 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN,
218 sp<Fence> fence; local
221 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN,
235 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN,
/frameworks/av/include/media/stagefright/
H A DFrameRenderTracker.h39 // queue fence (read fence). mIndex is negative, and mRenderTimeNs is invalid.
42 // 2. dequeued frame: mFence is updated with the dequeue fence (write fence). mIndex is set.
61 const sp<Fence> &fence)
66 mFence(fence) {
99 // queued to the output surface using |fence|.
101 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence);
104 // |fenceFd| is the dequeue fence, and |index| is a positive buffer ID to be usable by the
117 // unrendered frame, as well as any dropped frames (those with invalid fence) u
60 RenderedFrameInfo(int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) argument
[all...]
/frameworks/av/media/libstagefright/include/media/stagefright/
H A DFrameRenderTracker.h39 // queue fence (read fence). mIndex is negative, and mRenderTimeNs is invalid.
42 // 2. dequeued frame: mFence is updated with the dequeue fence (write fence). mIndex is set.
61 const sp<Fence> &fence)
66 mFence(fence) {
99 // queued to the output surface using |fence|.
101 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence);
104 // |fenceFd| is the dequeue fence, and |index| is a positive buffer ID to be usable by the
117 // unrendered frame, as well as any dropped frames (those with invalid fence) u
60 RenderedFrameInfo(int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) argument
[all...]
/frameworks/native/libs/vr/libvrflinger/
H A Dacquired_buffer.cpp17 LocalHandle fence; local
18 const int ret = buffer->Acquire(&fence);
30 acquire_fence_ = std::move(fence);
56 // Only check the fence if the acquire fence is not empty.
64 // The fence is completed, so to avoid further calls to sync_wait we close
/frameworks/native/include/gui/
H A DBufferQueueConsumer.h61 // being accessed. The fence will signal when the buffer is no longer
73 EGLSyncKHR fence);
160 EGLDisplay display, EGLSyncKHR fence,
162 return releaseBuffer(buf, frameNumber, releaseFence, display, fence);
159 releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR fence, const sp<Fence>& releaseFence) argument
/frameworks/native/libs/gui/include/gui/
H A DBufferQueueConsumer.h61 // being accessed. The fence will signal when the buffer is no longer
73 EGLSyncKHR fence);
160 EGLDisplay display, EGLSyncKHR fence,
162 return releaseBuffer(buf, frameNumber, releaseFence, display, fence);
159 releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR fence, const sp<Fence>& releaseFence) argument
/frameworks/native/services/surfaceflinger/
H A DMonitoredProducer.cpp58 status_t MonitoredProducer::dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, uint32_t h, argument
62 return mProducer->dequeueBuffer(slot, fence, w, h, format, usage, outBufferAge, outTimestamps);
84 status_t MonitoredProducer::cancelBuffer(int slot, const sp<Fence>& fence) { argument
85 return mProducer->cancelBuffer(slot, fence);
/frameworks/native/libs/gui/
H A DIGraphicBufferProducer.cpp131 virtual status_t dequeueBuffer(int* buf, sp<Fence>* fence, uint32_t width, uint32_t height, argument
150 *fence = new Fence();
151 result = reply.read(**fence);
153 fence->clear();
274 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { argument
278 data.write(*fence.get());
462 sp<Fence> fence(new Fence);
463 result = reply.read(*fence);
465 ALOGE("getLastQueuedBuffer failed to read fence: %d", result);
469 *outFence = fence;
772 sp<Fence> fence = Fence::NO_FENCE; local
796 sp<Fence> fence; local
838 sp<Fence> fence = new Fence(); local
[all...]
/frameworks/native/libs/nativewindow/include/android/
H A Dhardware_buffer.h245 * specific reasons. If fence is not negative, then it specifies a fence file
275 int32_t fence, const ARect* rect, void** outVirtualAddress);
279 * are completed by the caller. If fence is not NULL then it will be set to a
281 * completed. The caller is responsible for closing the fence when it is no
287 int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence);
/frameworks/native/vulkan/include/vulkan/
H A Dvk_android_native_buffer.h90 typedef VkResult (VKAPI_PTR *PFN_vkAcquireImageANDROID)(VkDevice device, VkImage image, int nativeFenceFd, VkSemaphore semaphore, VkFence fence);
116 VkFence fence

Completed in 343 milliseconds

123456