/frameworks/native/include/ui/ |
D | Fence.h | 34 class Fence 35 : public LightRefBase<Fence>, public Flattenable<Fence> 38 static const sp<Fence> NO_FENCE; 52 Fence(); 57 explicit Fence(int fenceFd); 60 Fence(const Fence& rhs) = delete; 61 Fence& operator=(const Fence& rhs) = delete; 62 Fence(Fence&& rhs) = delete; 63 Fence& operator=(Fence&& rhs) = delete; 89 static sp<Fence> merge(const char* name, const sp<Fence>& f1, [all …]
|
D | FenceTime.h | 53 explicit Snapshot(const sp<Fence>& fence); 72 sp<Fence> fence{Fence::NO_FENCE}; 73 nsecs_t signalTime{Fence::SIGNAL_TIME_INVALID}; 78 explicit FenceTime(const sp<Fence>& fence); 79 explicit FenceTime(sp<Fence>&& fence); 124 FenceTime(const sp<Fence>& fence, bool forceValidForTest); 138 sp<Fence> mFence{Fence::NO_FENCE}; 139 std::atomic<nsecs_t> mSignalTime{Fence::SIGNAL_TIME_INVALID}; 191 std::shared_ptr<FenceTime> createFenceTimeForTest(const sp<Fence>& fence); 195 void signalAllForTest(const sp<Fence>& fence, nsecs_t signalTime); [all …]
|
/frameworks/native/libs/ui/ |
D | Fence.cpp | 38 const sp<Fence> Fence::NO_FENCE = sp<Fence>(new Fence); 40 Fence::Fence() : in Fence() function in android::Fence 44 Fence::Fence(int fenceFd) : in Fence() function in android::Fence 48 Fence::~Fence() { in ~Fence() 54 status_t Fence::wait(int timeout) { in wait() 63 status_t Fence::waitForever(const char* logname) { in waitForever() 78 sp<Fence> Fence::merge(const char* name, const sp<Fence>& f1, in merge() 79 const sp<Fence>& f2) { in merge() 101 return sp<Fence>(new Fence(result)); in merge() 104 sp<Fence> Fence::merge(const String8& name, const sp<Fence>& f1, in merge() [all …]
|
D | FenceTime.cpp | 34 const auto FenceTime::NO_FENCE = std::make_shared<FenceTime>(Fence::NO_FENCE); 48 FenceTime::FenceTime(const sp<Fence>& fence) in FenceTime() 53 Fence::SIGNAL_TIME_INVALID : Fence::SIGNAL_TIME_PENDING) { in FenceTime() 56 FenceTime::FenceTime(sp<Fence>&& fence) in FenceTime() 61 Fence::SIGNAL_TIME_INVALID : Fence::SIGNAL_TIME_PENDING) { in FenceTime() 65 : mState(Fence::isValidTimestamp(signalTime) ? State::VALID : State::INVALID), in FenceTime() 68 if (CC_UNLIKELY(mSignalTime == Fence::SIGNAL_TIME_PENDING)) { in FenceTime() 70 mSignalTime = Fence::SIGNAL_TIME_INVALID; in FenceTime() 88 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in applyTrustedSnapshot() 115 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in getSignalTime() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | BufferQueue_test.cpp | 80 sp<Fence> fence; in testBufferItem() 142 sp<Fence> fence; in TEST_F() 157 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F() 180 sp<Fence> fence; in TEST_F() 184 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F() 231 sp<Fence> fence; in TEST_F() 235 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F() 268 sp<Fence> fence; in TEST_F() 272 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F() 333 sp<Fence> fence; in TEST_F() [all …]
|
D | IGraphicBufferProducer_test.cpp | 66 const sp<Fence> QUEUE_BUFFER_INPUT_FENCE = Fence::NO_FENCE; 173 QueueBufferInputBuilder& setFence(sp<Fence> fence) { in setFence() 185 sp<Fence> fence; 191 sp<Fence> fence; 198 void setupDequeueRequestBuffer(int *slot, sp<Fence> *fence, in setupDequeueRequestBuffer() 342 sp<Fence> dequeuedFence; in TEST_F() 402 sp<Fence> dequeuedFence; in TEST_F() 423 sp<Fence> nullFence = NULL; in TEST_F() 471 sp<Fence> dequeuedFence; in TEST_F() 518 sp<Fence> dequeuedFence; in TEST_F() [all …]
|
D | StreamSplitter_test.cpp | 80 sp<Fence> fence; in TEST_F() 95 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F() 112 EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, Fence::NO_FENCE)); in TEST_F() 152 sp<Fence> fence; in TEST_F() 167 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F() 186 Fence::NO_FENCE)); in TEST_F() 216 sp<Fence> fence; in TEST_F() 228 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | StatusTracker.h | 33 class Fence; variable 66 void markComponentIdle(int id, const sp<Fence>& componentFence); 83 const sp<Fence>& componentFence); 93 sp<Fence> fence; 109 sp<Fence> mIdleFence;
|
D | StatusTracker.cpp | 36 mIdleFence(new Fence()), in StatusTracker() 83 void StatusTracker::markComponentIdle(int id, const sp<Fence>& componentFence) { in markComponentIdle() 88 markComponent(id, ACTIVE, Fence::NO_FENCE); in markComponentActive() 92 const sp<Fence>& componentFence) { in markComponent() 182 mIdleFence = Fence::merge(String8("idleFence"), in threadLoop()
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | VirtualDisplaySurface.h | 94 virtual const sp<Fence>& getClientTargetAcquireFence() const override; 107 virtual status_t dequeueBuffer(int* pslot, sp<Fence>* fence, uint32_t w, 112 sp<Fence>* outFence); 116 virtual status_t cancelBuffer(int pslot, const sp<Fence>& fence); 131 sp<Fence>* outFence, float outTransformMatrix[16]) override; 139 int* sslot, sp<Fence>* fence); 203 sp<Fence> mFbFence; 207 sp<Fence> mOutputFence;
|
D | FramebufferSurface.cpp | 60 mCurrentFence(Fence::NO_FENCE), in FramebufferSurface() 103 sp<Fence> acquireFence(Fence::NO_FENCE); in advanceFrame() 127 sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence, in nextBuffer() 130 status_t FramebufferSurface::nextBuffer(sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence) { in nextBuffer() 192 sp<Fence> acquireFence; in nextBuffer() 216 sp<Fence> fence = mHwc.getPresentFence(mDisplayType); in nextBuffer() 232 sp<Fence> fence = mHwc.getAndResetReleaseFence(mDisplayType); in nextBuffer() 262 const sp<Fence>& FramebufferSurface::getClientTargetAcquireFence() const { in nextBuffer()
|
D | HWComposer_hwc1.h | 50 class Fence; variable 126 sp<Fence> getAndResetReleaseFence(int32_t id); 136 int fbPost(int32_t id, const sp<Fence>& acquireFence, const sp<GraphicBuffer>& buf); 142 status_t setOutputBuffer(int32_t id, const sp<Fence>& acquireFence, 149 sp<Fence> getLastRetireFence(int32_t id) const; 166 virtual sp<Fence> getAndResetReleaseFence() = 0; 278 sp<Fence> getDisplayFence(int disp) const; 339 const sp<Fence>& acquireFence, const sp<GraphicBuffer>& buf); 354 sp<Fence> lastRetireFence; // signals when the last set op retires 355 sp<Fence> lastDisplayFence; // signals when the last set op takes [all …]
|
D | HWComposer.h | 58 class Fence; variable 101 const sp<Fence>& acquireFence, 126 sp<Fence> getPresentFence(int32_t displayId) const; 129 sp<Fence> getLayerReleaseFence(int32_t displayId, 134 status_t setOutputBuffer(int32_t displayId, const sp<Fence>& acquireFence, 195 sp<Fence> lastPresentFence; // signals when the last set op retires 196 std::unordered_map<std::shared_ptr<HWC2::Layer>, sp<Fence>> 199 sp<Fence> outbufAcquireFence;
|
D | FramebufferSurface.h | 56 virtual const sp<Fence>& getClientTargetAcquireFence() const override; 73 sp<Fence>& outFence, android_dataspace_t& outDataspace); 75 status_t nextBuffer(sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence); 91 sp<Fence> mCurrentFence;
|
D | VirtualDisplaySurface.cpp | 66 mFbFence(Fence::NO_FENCE), 67 mOutputFence(Fence::NO_FENCE), 246 sp<Fence> retireFence = mHwc.getPresentFence(mDisplayId); in onFrameCommitted() 248 sp<Fence> fbFence = mHwc.getAndResetReleaseFence(mDisplayId); in onFrameCommitted() 269 sp<Fence> outFence = mHwc.getLastRetireFence(mDisplayId); in onFrameCommitted() 314 const sp<Fence>& VirtualDisplaySurface::getClientTargetAcquireFence() const { in getClientTargetAcquireFence() 341 PixelFormat format, uint32_t usage, int* sslot, sp<Fence>* fence) { in dequeueBuffer() 383 status_t VirtualDisplaySurface::dequeueBuffer(int* pslot, sp<Fence>* fence, in dequeueBuffer() 457 sp<GraphicBuffer>* /* outBuffer */, sp<Fence>* /* outFence */) { in detachNextBuffer() argument 527 const sp<Fence>& fence) { in cancelBuffer() [all …]
|
/frameworks/av/media/libstagefright/include/ |
D | FrameRenderTracker.h | 32 class Fence; variable 61 const sp<Fence> &fence) in RenderedFrameInfo() 83 sp<Fence> mFence; 101 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence);
|
/frameworks/native/include/gui/ |
D | BufferQueueProducer.h | 83 status_t dequeueBuffer(int *outSlot, sp<Fence>* outFence, 92 sp<Fence>* outFence); 120 virtual status_t cancelBuffer(int slot, const sp<Fence>& fence); 177 sp<Fence>* outFence, float outTransformMatrix[16]) override; 231 sp<Fence> mLastQueueBufferFence;
|
D | IGraphicBufferProducer.h | 197 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, 238 sp<Fence>* outFence) = 0; 319 int _scalingMode, uint32_t _transform, const sp<Fence>& _fence, 329 uint32_t* outTransform, sp<Fence>* outFence, 365 sp<Fence> fence; 417 virtual status_t cancelBuffer(int slot, const sp<Fence>& fence) = 0; 589 sp<Fence>* outFence, float outTransformMatrix[16]) = 0;
|
D | ConsumerBase.h | 201 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence); 203 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence); 216 sp<Fence> mFence; 255 sp<Fence> mPrevFinalReleaseFence;
|
D | BufferSlot.h | 30 class Fence; variable 183 mFence(Fence::NO_FENCE), in BufferSlot() 224 sp<Fence> mFence;
|
/frameworks/native/libs/gui/ |
D | ConsumerBase.cpp | 61 mPrevFinalReleaseFence(Fence::NO_FENCE) { in ConsumerBase() 100 mSlots[slotIndex].mFence = Fence::NO_FENCE; in freeBufferLocked() 318 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFence() 324 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFenceLocked() 340 if (status == Fence::Status::Invalid) { in addReleaseFenceLocked() 345 if (status == Fence::Status::Signaled) { in addReleaseFenceLocked() 350 sp<Fence> mergedFence = Fence::merge( in addReleaseFenceLocked() 388 mSlots[slot].mFence = Fence::NO_FENCE; in releaseBufferLocked()
|
/frameworks/native/services/surfaceflinger/ |
D | MonitoredProducer.h | 42 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, 47 sp<Fence>* outFence); 52 virtual status_t cancelBuffer(int slot, const sp<Fence>& fence); 65 sp<Fence>* outFence, float outTransformMatrix[16]) override;
|
D | DispSync.h | 29 class Fence; variable 70 bool addPresentFence(const sp<Fence>& fence); 165 sp<Fence> mPresentFences[NUM_PRESENT_SAMPLES];
|
/frameworks/native/libs/vr/libbufferhubqueue/tests/ |
D | buffer_hub_queue_producer-test.cpp | 70 QueueBufferInputBuilder& setFence(sp<Fence> fence) { in setFence() 82 sp<Fence> mFence{Fence::NO_FENCE}; 112 sp<Fence> fence; in DequeueBuffer() 116 void DequeueBuffer(int* outSlot, sp<Fence>* outFence) { in DequeueBuffer() 312 sp<Fence> nullFence = NULL; in TEST_F() 363 sp<Fence> fence; in TEST_F() 405 sp<Fence> fence; in TEST_F() 440 sp<Fence> fence; in TEST_F() 457 sp<Fence> fence; in TEST_F() 506 ASSERT_EQ(NO_INIT, mProducer->cancelBuffer(slot, Fence::NO_FENCE)); in TEST_F()
|
/frameworks/native/include/gui/bufferqueue/1.0/ |
D | H2BGraphicBufferProducer.h | 67 status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, 71 status_t detachNextBuffer(sp<GraphicBuffer>* outBuffer, sp<Fence>* outFence) 78 status_t cancelBuffer(int slot, const sp<Fence>& fence) override; 94 sp<Fence>* outFence, float outTransformMatrix[16]) override;
|