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

123

/frameworks/native/services/surfaceflinger/
H A DSurfaceFlingerConsumer.cpp146 // time when previous buffer's actual-present fence was signaled
193 void SurfaceFlingerConsumer::setReleaseFence(const sp<Fence>& fence) argument
195 mPrevReleaseFence = fence;
197 GLConsumer::setReleaseFence(fence);
201 if (fence->isValid() &&
204 mPendingRelease.graphicBuffer, fence);
206 " fence: %s (%d)", strerror(-result), result);
220 mPendingRelease.fence);
226 void SurfaceFlingerConsumer::setReleaseFence(const sp<Fence>& fence) { argument
227 mPrevReleaseFence = fence;
[all...]
H A DMonitoredProducer.cpp68 status_t MonitoredProducer::dequeueBuffer(int* slot, sp<Fence>* fence, argument
70 return mProducer->dequeueBuffer(slot, fence, w, h, format, usage);
92 status_t MonitoredProducer::cancelBuffer(int slot, const sp<Fence>& fence) { argument
93 return mProducer->cancelBuffer(slot, fence);
H A DMonitoredProducer.h40 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w,
49 virtual status_t cancelBuffer(int slot, const sp<Fence>& fence);
H A DDispSync.h48 // to the DispSync object via the addPresentFence method. These fence
70 // addPresentFence adds a fence for use in validating the current vsync
71 // event model. The fence need not be signaled at the time
72 // addPresentFence is called. When the fence does signal, its timestamp
77 // This method should be called with the retire fence from each HWComposer
79 bool addPresentFence(const sp<Fence>& fence);
H A DFrameTracker.h37 // or a fence. When a non-NULL fence is set for a given time value, the
38 // signal time of that fence is used instead of the timestamp.
61 // setFrameReadyFence sets the fence that is used to get the time at which
69 // setActualPresentFence sets the fence that is used to get the time
71 void setActualPresentFence(const sp<Fence>& fence);
107 // processFences iterates over all the frame records that have a fence set
108 // and replaces that fence with a timestamp if the fence has signaled. If
109 // the fence i
[all...]
/frameworks/base/libs/hwui/utils/
H A DTestWindowContext.h51 void fence();
H A DTestWindowContext.cpp109 // Surprisingly, calling mProxy->fence() here appears to make no difference to
113 void fence() { function in class:android::uirenderer::TestWindowContext::TestWindowData
114 mProxy->fence();
208 void TestWindowContext::fence() { function in class:android::uirenderer::TestWindowContext
210 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/tests/
H A DBufferQueue_test.cpp80 sp<Fence> fence; local
83 &scalingMode, &transform, &fence, NULL);
90 ASSERT_EQ(fence, item.mFence);
138 sp<Fence> fence; local
141 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0,
176 sp<Fence> fence; local
185 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0,
193 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0,
227 sp<Fence> fence; local
236 mProducer->dequeueBuffer(&slot, &fence,
264 sp<Fence> fence; local
329 sp<Fence> fence; local
378 sp<Fence> fence; local
437 sp<Fence> fence; local
485 sp<Fence> fence; local
519 sp<Fence> fence; local
561 sp<Fence> fence; local
612 sp<Fence> fence; local
678 sp<Fence> fence; local
732 sp<Fence> fence = Fence::NO_FENCE; local
759 sp<Fence> fence = Fence::NO_FENCE; local
769 sp<Fence> fence = Fence::NO_FENCE; local
813 sp<Fence> fence; local
866 sp<Fence> fence = Fence::NO_FENCE; local
1002 sp<Fence> fence = Fence::NO_FENCE; local
[all...]
H A DIGraphicBufferProducer_test.cpp133 fence = QUEUE_BUFFER_INPUT_FENCE;
144 fence);
177 QueueBufferInputBuilder& setFence(sp<Fence> fence) { argument
178 this->fence = fence;
189 sp<Fence> fence; member in struct:android::IGraphicBufferProducerTest::QueueBufferInputBuilder
195 sp<Fence> fence; member in struct:android::IGraphicBufferProducerTest::DequeueBufferResult
199 return mProducer->dequeueBuffer(&result->slot, &result->fence, w, h, format, usage);
202 void setupDequeueRequestBuffer(int *slot, sp<Fence> *fence, argument
206 ASSERT_TRUE(fence !
639 sp<Fence> fence; local
647 sp<Fence> fence; local
658 sp<Fence> fence; local
678 sp<Fence> fence; local
691 sp<Fence> fence; local
708 sp<Fence> fence; local
721 sp<Fence> fence; local
[all...]
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,
H A DSurface_test.cpp202 sp<Fence> fence; local
203 ASSERT_EQ(NO_ERROR, surface->detachNextBuffer(&graphicBuffer, &fence));
251 int fence; local
253 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fence));
255 ASSERT_EQ(NO_ERROR, window->queueBuffer(window.get(), buffer, fence));
257 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fence));
258 ASSERT_EQ(NO_ERROR, window->queueBuffer(window.get(), buffer, fence));
/frameworks/base/services/core/jni/
H A Dcom_android_server_AssetAtlasService.cpp54 if (fence != EGL_NO_SYNC_KHR) eglDestroySyncKHR(display, fence); \
119 EGLSyncKHR fence = EGL_NO_SYNC_KHR; local
169 // The fence is used to wait for the texture upload to finish
172 fence = eglCreateSyncKHR(display, EGL_SYNC_FENCE_KHR, NULL);
173 if (fence == EGL_NO_SYNC_KHR) {
174 ALOGW("Could not create sync fence %#x", eglGetError());
180 EGLint waitStatus = eglClientWaitSyncKHR(display, fence,
183 ALOGW("Failed to wait for the fence %#x", eglGetError());
/frameworks/av/include/media/stagefright/
H A DFrameRenderTracker.h40 // queue fence (read fence). mIndex is negative, and mRenderTimeNs is invalid.
43 // 2. dequeued frame: mFence is updated with the dequeue fence (write fence). mIndex is set.
61 Info(int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) argument
66 mFence(fence) {
96 // queued to the output surface using |fence|.
98 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence);
101 // |fenceFd| is the dequeue fence, and |index| is a positive buffer ID to be usable by the
114 // unrendered frame, as well as any dropped frames (those with invalid fence) u
[all...]
/frameworks/native/libs/ui/
H A DGraphicBufferMapper.cpp123 sp<Fence> fence = new Fence(fenceFd); local
127 &accessRegion, vaddr, fence);
163 sp<Fence> fence = new Fence(fenceFd); local
169 &accessRegion, ycbcr, fence);
194 &accessRegion, &flexLayout, fence);
279 sp<Fence> fence = Fence::NO_FENCE; local
280 gralloc1_error_t error = mDevice->unlock(handle, &fence);
286 *fenceFd = fence->dup();
/frameworks/native/vulkan/include/vulkan/
H A Dvk_android_native_buffer.h50 typedef VkResult (VKAPI_PTR *PFN_vkAcquireImageANDROID)(VkDevice device, VkImage image, int nativeFenceFd, VkSemaphore semaphore, VkFence fence);
65 VkFence fence
/frameworks/native/libs/gui/
H A DIGraphicBufferProducer.cpp121 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, uint32_t width, argument
136 *fence = new Fence();
137 result = reply.read(**fence);
139 fence->clear();
235 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { argument
239 data.write(*fence.get());
423 sp<Fence> fence(new Fence);
424 result = reply.read(*fence);
426 ALOGE("getLastQueuedBuffer failed to read fence: %d", result);
430 *outFence = fence;
535 sp<Fence> fence; local
556 sp<Fence> fence; local
598 sp<Fence> fence = new Fence(); local
[all...]
H A DConsumerBase.cpp300 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) {
302 return addReleaseFenceLocked(slot, graphicBuffer, fence);
306 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) {
310 // drop this fence, as it will never be received by the producer.
316 mSlots[slot].mFence = fence;
323 CB_LOGE("fence has invalid state");
328 mSlots[slot].mFence = fence;
333 fenceName, mSlots[slot].mFence, fence);
337 // signal in order so the new fence will act like a union
338 mSlots[slot].mFence = fence;
299 addReleaseFence(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument
305 addReleaseFenceLocked(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument
[all...]
/frameworks/native/include/gui/
H A DIGraphicBufferProducer.h148 // The fence parameter will be updated to hold the fence associated with
150 // fence signals. If the fence is Fence::NO_FENCE, the buffer may be written
192 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w,
223 // equivalent to fence from the dequeueBuffer call.
286 // * fence was NULL
304 // fence - a fence that the consumer must wait on before reading the buffer,
310 uint32_t transform, const sp<Fence>& fence, uint32_
308 QueueBufferInput(int64_t timestamp, bool isAutoTimestamp, android_dataspace dataSpace, const Rect& crop, int scalingMode, uint32_t transform, const sp<Fence>& fence, uint32_t sticky = 0) argument
349 sp<Fence> fence; member in struct:android::IGraphicBufferProducer::QueueBufferInput
[all...]
H A DBufferQueueConsumer.h60 // being accessed. The fence will signal when the buffer is no longer
72 EGLSyncKHR fence);
154 EGLDisplay display, EGLSyncKHR fence,
156 return releaseBuffer(buf, frameNumber, releaseFence, display, fence);
153 releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR fence, const sp<Fence>& releaseFence) argument
H A DConsumerBase.h191 // addReleaseFence* adds the sync points associated with a fence to the set
197 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence);
199 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence);
208 // mFence is a fence which will signal when the buffer associated with
210 // overwritten. The buffer can be dequeued before the fence signals;
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFramebufferSurface.cpp208 sp<Fence> fence = mHwc.getRetireFence(mDisplayType); local
209 if (fence->isValid()) {
211 mPreviousBuffer, fence);
213 " fence: %s (%d)", strerror(-result), result);
224 sp<Fence> fence = mHwc.getAndResetReleaseFence(mDisplayType);
225 if (fence->isValid() &&
228 mCurrentBuffer, fence);
229 ALOGE_IF(err, "setReleaseFenceFd: failed to add the fence: %s (%d)",
H A DVirtualDisplaySurface.h106 virtual status_t dequeueBuffer(int* pslot, sp<Fence>* fence, uint32_t w,
114 virtual status_t cancelBuffer(int pslot, const sp<Fence>& fence);
137 int* sslot, sp<Fence>* fence);
197 // mFbFence is the fence HWC should wait for before reading the framebuffer
201 // mOutputFence is the fence HWC should wait for before writing to the
/frameworks/base/libs/hwui/tests/macrobench/
H A DTestSceneRunner.cpp102 proxy->fence();
116 proxy->fence();
/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

Completed in 228 milliseconds

123