/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlingerConsumer.cpp | 144 // time when previous buffer's actual-present fence was signaled 191 void SurfaceFlingerConsumer::setReleaseFence(const sp<Fence>& fence) argument 193 mPrevReleaseFence = fence; 195 GLConsumer::setReleaseFence(fence); 199 if (fence->isValid() && 202 mPendingRelease.graphicBuffer, fence); 204 " fence: %s (%d)", strerror(-result), result); 218 mPendingRelease.fence); 224 void SurfaceFlingerConsumer::setReleaseFence(const sp<Fence>& fence) { argument 225 mPrevReleaseFence = fence; [all...] |
H A D | MonitoredProducer.cpp | 68 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 D | MonitoredProducer.h | 40 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 D | DispSync.h | 48 // 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 D | FrameTracker.h | 37 // 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...] |
H A D | SurfaceFlingerConsumer.h | 79 virtual void setReleaseFence(const sp<Fence>& fence) override; 99 // A release that is pending on the receipt of a new release fence from 104 // The release fence of the already displayed buffer (previous frame).
|
/frameworks/base/libs/hwui/utils/ |
H A D | TestWindowContext.h | 51 void fence();
|
H A D | TestWindowContext.cpp | 109 // 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 D | GeofenceState.java | 44 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 D | IGraphicBufferProducer_test.cpp | 133 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 ! 636 sp<Fence> fence; local 644 sp<Fence> fence; local 655 sp<Fence> fence; local 675 sp<Fence> fence; local 688 sp<Fence> fence; local 705 sp<Fence> fence; local 718 sp<Fence> fence; local [all...] |
H A D | StreamSplitter_test.cpp | 80 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 D | BufferQueue_test.cpp | 76 sp<Fence> fence; local 79 &scalingMode, &transform, &fence, NULL); 86 ASSERT_EQ(fence, item.mFence); 134 sp<Fence> fence; local 137 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 172 sp<Fence> fence; local 181 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, 189 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, 223 sp<Fence> fence; local 232 mProducer->dequeueBuffer(&slot, &fence, 260 sp<Fence> fence; local 325 sp<Fence> fence; local 374 sp<Fence> fence; local 433 sp<Fence> fence; local 481 sp<Fence> fence; local 515 sp<Fence> fence; local 557 sp<Fence> fence; local 608 sp<Fence> fence; local 674 sp<Fence> fence; local 728 sp<Fence> fence = Fence::NO_FENCE; local 755 sp<Fence> fence = Fence::NO_FENCE; local 765 sp<Fence> fence = Fence::NO_FENCE; local 809 sp<Fence> fence; local [all...] |
H A D | Surface_test.cpp | 202 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 D | com_android_server_AssetAtlasService.cpp | 54 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 D | FrameRenderTracker.h | 40 // 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/vulkan/include/vulkan/ |
H A D | vk_android_native_buffer.h | 50 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 D | IGraphicBufferProducer.cpp | 120 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, uint32_t width, argument 135 *fence = new Fence(); 136 reply.read(**fence); 213 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { argument 217 data.write(*fence.get()); 412 sp<Fence> fence(new Fence); 413 result = reply.read(*fence); 415 ALOGE("getLastQueuedBuffer failed to read fence: %d", result); 419 *outFence = fence; 488 sp<Fence> fence; local 509 sp<Fence> fence; local 549 sp<Fence> fence = new Fence(); local [all...] |
H A D | ConsumerBase.cpp | 281 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { 283 return addReleaseFenceLocked(slot, graphicBuffer, fence); 287 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { 291 // drop this fence, as it will never be received by the producer. 297 mSlots[slot].mFence = fence; 301 mSlots[slot].mFence, fence); 305 // signal in order so the new fence will act like a union 306 mSlots[slot].mFence = fence; 280 addReleaseFence(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument 286 addReleaseFenceLocked(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument
|
/frameworks/native/include/gui/ |
H A D | IGraphicBufferProducer.h | 146 // The fence parameter will be updated to hold the fence associated with 148 // fence signals. If the fence is Fence::NO_FENCE, the buffer may be written 190 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, 221 // equivalent to fence from the dequeueBuffer call. 284 // * fence was NULL 302 // fence - a fence that the consumer must wait on before reading the buffer, 308 uint32_t transform, const sp<Fence>& fence, uint32_ 306 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 347 sp<Fence> fence; member in struct:android::IGraphicBufferProducer::QueueBufferInput [all...] |
H A D | BufferQueueConsumer.h | 60 // being accessed. The fence will signal when the buffer is no longer 72 EGLSyncKHR fence); 147 EGLDisplay display, EGLSyncKHR fence, 149 return releaseBuffer(buf, frameNumber, releaseFence, display, fence); 146 releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR fence, const sp<Fence>& releaseFence) argument
|
H A D | ConsumerBase.h | 184 // addReleaseFence* adds the sync points associated with a fence to the set 190 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence); 192 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence); 201 // mFence is a fence which will signal when the buffer associated with 203 // overwritten. The buffer can be dequeued before the fence signals;
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | FramebufferSurface.cpp | 208 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 D | VirtualDisplaySurface.h | 106 virtual status_t dequeueBuffer(int* pslot, sp<Fence>* fence, uint32_t w, 114 virtual status_t cancelBuffer(int pslot, const sp<Fence>& fence); 138 int* sslot, sp<Fence>* fence); 198 // mFbFence is the fence HWC should wait for before reading the framebuffer 202 // mOutputFence is the fence HWC should wait for before writing to the
|
/frameworks/base/libs/hwui/tests/macrobench/ |
H A D | TestSceneRunner.cpp | 102 proxy->fence(); 116 proxy->fence();
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | StatusTracker.h | 63 // 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
|