Searched defs:fence (Results 1 - 25 of 77) sorted by relevance

1234

/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/include/gui/
H A DBufferQueueConsumer.h61 // being accessed. The fence will signal when the buffer is no longer
73 EGLSyncKHR fence);
161 EGLDisplay display, EGLSyncKHR fence,
163 return releaseBuffer(buf, frameNumber, releaseFence, display, fence);
160 releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR fence, const sp<Fence>& releaseFence) argument
H A DIGraphicBufferProducer.h153 // The fence parameter will be updated to hold the fence associated with
155 // fence signals. If the fence is Fence::NO_FENCE, the buffer may be written
197 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w,
229 // equivalent to fence from the dequeueBuffer call.
292 // * fence was NULL
311 // fence - a fence that the consumer must wait on before reading the buffer,
323 transform(_transform), stickyTransform(_sticky), fence(_fenc
365 sp<Fence> fence; member in struct:android::IGraphicBufferProducer::QueueBufferInput
[all...]
/frameworks/native/libs/vr/libbufferhub/
H A Dbufferhub_tests.cpp47 LocalHandle fence; local
48 EXPECT_LE(0, c->Acquire(&fence, &context));
52 EXPECT_LE(0, c2->Acquire(&fence, &context));
61 EXPECT_EQ(0, p->Gain(&fence));
81 LocalHandle fence; local
83 EXPECT_EQ(0, c->Acquire(&fence, &m2));
123 LocalHandle fence; local
125 EXPECT_NE(0, c->Acquire(&fence, &sequence));
139 LocalHandle fence; local
140 EXPECT_EQ(0, c->Acquire(&fence));
151 LocalHandle fence; local
185 LocalHandle fence; local
215 LocalHandle fence; local
[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);
54 // Only check the fence if the acquire fence is not empty.
62 // The fence is completed, so to avoid further calls to sync_wait we close
82 // Close the release fence since we can't transfer it with an async release.
/frameworks/native/services/vr/hardware_composer/tests/
H A Dvr_composer_test.cpp22 ParcelableUniqueFd* /* fence */) override {
40 ParcelableUniqueFd* fence) override {
41 binder::Status status = TestComposerCallback::onNewFrame(frame, fence);
45 fence->set_fence(fd);
85 base::unique_fd fence = composer_->OnNewFrame(frame); local
86 ASSERT_EQ(-1, fence.get());
95 base::unique_fd fence = composer_->OnNewFrame(frame); local
96 ASSERT_EQ(-1, fence.get());
112 .fence = new Fence(eventfd(0, 0)),
120 base::unique_fd fence local
[all...]
/frameworks/native/services/vr/hardware_composer/
H A Dvr_composer.cpp52 ParcelableUniqueFd fence; local
53 binder::Status ret = callback_->onNewFrame(parcelable_frame, &fence);
57 return fence.fence();
/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/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/foundation/include/
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/
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/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/services/camera/libcameraservice/device3/
H A DStatusTracker.h63 // accept a fence to wait on to complete idle. The fence is merged with any
93 sp<Fence> fence; member in struct:android::camera3::StatusTracker::StateChange
108 // Merged fence for all processed state changes
118 // - The merged fence for all component updates has signalled
H A DCamera3StreamSplitter.cpp454 sp<Fence> fence; local
455 status_t res = from->detachNextBuffer(&buffer, &fence);
470 // Merge the release fence of the incoming buffer so that the fence we send
472 if (fence != nullptr && fence->isValid()) {
473 tracker.mergeFence(fence);
/frameworks/native/libs/gui/tests/
H A DStreamSplitter_test.cpp80 sp<Fence> fence; local
83 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0,
117 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0,
152 sp<Fence> fence; local
155 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0,
192 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0,
216 sp<Fence> fence; local
219 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0,
232 ASSERT_EQ(NO_INIT, inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0,
/frameworks/av/media/libstagefright/
H A DFrameRenderTracker.cpp46 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) {
47 mRenderQueue.emplace_back(mediaTimeUs, graphicBuffer, fence);
66 // could have been canceled after fence has signaled
75 // was this frame dropped (we could also infer this if the fence is invalid or a dup of
76 // the queued fence; however, there is no way to figure that out.)
83 // store dequeue fence and buffer index
121 // check if fence signaled
123 if (signalTime < 0) { // invalid fence
125 } else if (signalTime == INT64_MAX) { // unsignaled fence
181 ALOGI(" QUEUED: handle: %p, media time: %lldus, fence
45 onFrameQueued( int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) argument
[all...]
/frameworks/base/libs/hwui/utils/
H A DTestWindowContext.cpp103 // Surprisingly, calling mProxy->fence() here appears to make no difference to
107 void fence() { function in class:android::uirenderer::TestWindowContext::TestWindowData
108 mProxy->fence();
199 void TestWindowContext::fence() { function in class:android::uirenderer::TestWindowContext
201 mData->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/gui/
H A DStreamSplitter.cpp193 sp<Fence> fence; local
194 status_t status = from->detachNextBuffer(&buffer, &fence);
210 // Merge the release fence of the incoming buffer so that the fence we send
212 tracker->mergeFence(fence);
/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/native/services/surfaceflinger/DisplayHardware/
H A DFramebufferSurface.cpp216 sp<Fence> fence = mHwc.getPresentFence(mDisplayType); local
217 if (fence->isValid()) {
219 mPreviousBuffer, fence);
221 " fence: %s (%d)", strerror(-result), result);
232 sp<Fence> fence = mHwc.getAndResetReleaseFence(mDisplayType);
233 if (fence->isValid() &&
236 mCurrentBuffer, fence);
237 ALOGE_IF(err, "setReleaseFenceFd: failed to add the fence: %s (%d)",
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlingerConsumer.cpp149 // time when previous buffer's actual-present fence was signaled
201 void SurfaceFlingerConsumer::setReleaseFence(const sp<Fence>& fence) argument
204 GLConsumer::setReleaseFence(fence);
208 if (fence->isValid() &&
211 mPendingRelease.graphicBuffer, fence);
213 " fence: %s (%d)", strerror(-result), result);
227 mPendingRelease.fence);
/frameworks/av/media/libstagefright/colorconversion/
H A DSoftwareRenderer.cpp218 sp<Fence> fence = new Fence(fenceFd); local
219 err = fence->waitForever("SoftwareRenderer::render");
223 // complete (drop) dequeued frame if fence wait failed; otherwise,
/frameworks/base/libs/hwui/renderthread/
H A DEglManager.cpp336 fence();
362 void EglManager::fence() { function in class:android::uirenderer::renderthread::EglManager
363 EGLSyncKHR fence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, NULL); local
364 eglClientWaitSyncKHR(mEglDisplay, fence,
366 eglDestroySyncKHR(mEglDisplay, fence);

Completed in 1041 milliseconds

1234