Home
last modified time | relevance | path

Searched refs:Fence (Results 1 – 25 of 162) sorted by relevance

1234567

/frameworks/native/libs/ui/include_vndk/ui/
DFence.h35 class Fence
36 : public LightRefBase<Fence>, public Flattenable<Fence>
39 static const sp<Fence> NO_FENCE;
53 Fence() = default;
58 explicit Fence(int fenceFd);
59 explicit Fence(base::unique_fd fenceFd);
62 Fence(const Fence& rhs) = delete;
63 Fence& operator=(const Fence& rhs) = delete;
64 Fence(Fence&& rhs) = delete;
65 Fence& operator=(Fence&& rhs) = delete;
[all …]
DFenceTime.h54 explicit Snapshot(const sp<Fence>& fence);
73 sp<Fence> fence{Fence::NO_FENCE};
74 nsecs_t signalTime{Fence::SIGNAL_TIME_INVALID};
79 explicit FenceTime(const sp<Fence>& fence);
80 explicit FenceTime(sp<Fence>&& fence);
120 FenceTime(const sp<Fence>& fence, bool forceValidForTest);
134 sp<Fence> mFence{Fence::NO_FENCE};
135 std::atomic<nsecs_t> mSignalTime{Fence::SIGNAL_TIME_INVALID};
187 std::shared_ptr<FenceTime> createFenceTimeForTest(const sp<Fence>& fence);
191 void signalAllForTest(const sp<Fence>& fence, nsecs_t signalTime);
[all …]
/frameworks/native/libs/ui/include/ui/
DFence.h35 class Fence
36 : public LightRefBase<Fence>, public Flattenable<Fence>
39 static const sp<Fence> NO_FENCE;
53 Fence() = default;
58 explicit Fence(int fenceFd);
59 explicit Fence(base::unique_fd fenceFd);
62 Fence(const Fence& rhs) = delete;
63 Fence& operator=(const Fence& rhs) = delete;
64 Fence(Fence&& rhs) = delete;
65 Fence& operator=(Fence&& rhs) = delete;
[all …]
DFenceTime.h54 explicit Snapshot(const sp<Fence>& fence);
73 sp<Fence> fence{Fence::NO_FENCE};
74 nsecs_t signalTime{Fence::SIGNAL_TIME_INVALID};
79 explicit FenceTime(const sp<Fence>& fence);
80 explicit FenceTime(sp<Fence>&& fence);
120 FenceTime(const sp<Fence>& fence, bool forceValidForTest);
134 sp<Fence> mFence{Fence::NO_FENCE};
135 std::atomic<nsecs_t> mSignalTime{Fence::SIGNAL_TIME_INVALID};
187 std::shared_ptr<FenceTime> createFenceTimeForTest(const sp<Fence>& fence);
191 void signalAllForTest(const sp<Fence>& fence, nsecs_t signalTime);
[all …]
/frameworks/native/libs/ui/
DFence.cpp38 const sp<Fence> Fence::NO_FENCE = sp<Fence>(new Fence);
40 Fence::Fence(int fenceFd) : in Fence() function in android::Fence
44 Fence::Fence(base::unique_fd fenceFd) : in Fence() function in android::Fence
48 status_t Fence::wait(int timeout) { in wait()
57 status_t Fence::waitForever(const char* logname) { in waitForever()
72 sp<Fence> Fence::merge(const char* name, const sp<Fence>& f1, in merge()
73 const sp<Fence>& f2) { in merge()
95 return sp<Fence>(new Fence(result)); in merge()
98 sp<Fence> Fence::merge(const String8& name, const sp<Fence>& f1, in merge()
99 const sp<Fence>& f2) { in merge()
[all …]
DFenceTime.cpp34 const auto FenceTime::NO_FENCE = std::make_shared<FenceTime>(Fence::NO_FENCE);
36 FenceTime::FenceTime(const sp<Fence>& fence) in FenceTime()
41 Fence::SIGNAL_TIME_INVALID : Fence::SIGNAL_TIME_PENDING) { in FenceTime()
44 FenceTime::FenceTime(sp<Fence>&& fence) in FenceTime()
49 Fence::SIGNAL_TIME_INVALID : Fence::SIGNAL_TIME_PENDING) { in FenceTime()
53 : mState(Fence::isValidTimestamp(signalTime) ? State::VALID : State::INVALID), in FenceTime()
56 if (CC_UNLIKELY(mSignalTime == Fence::SIGNAL_TIME_PENDING)) { in FenceTime()
58 mSignalTime = Fence::SIGNAL_TIME_INVALID; in FenceTime()
76 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in applyTrustedSnapshot()
103 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in getSignalTime()
[all …]
/frameworks/native/libs/gui/tests/
DBufferQueue_test.cpp82 sp<Fence> fence; in testBufferItem()
144 sp<Fence> fence; in TEST_F()
159 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F()
182 sp<Fence> fence; in TEST_F()
186 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F()
233 sp<Fence> fence; in TEST_F()
237 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F()
270 sp<Fence> fence; in TEST_F()
274 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F()
335 sp<Fence> fence; in TEST_F()
[all …]
DIGraphicBufferProducer_test.cpp72 const sp<Fence> QUEUE_BUFFER_INPUT_FENCE = Fence::NO_FENCE;
202 QueueBufferInputBuilder& setFence(sp<Fence> fence) { in setFence()
214 sp<Fence> fence;
220 sp<Fence> fence;
228 void setupDequeueRequestBuffer(int *slot, sp<Fence> *fence, in setupDequeueRequestBuffer()
381 sp<Fence> dequeuedFence; in TEST_P()
446 sp<Fence> dequeuedFence; in TEST_P()
468 sp<Fence> nullFence = nullptr; in TEST_P()
517 sp<Fence> dequeuedFence; in TEST_P()
565 sp<Fence> dequeuedFence; in TEST_P()
[all …]
DStreamSplitter_test.cpp82 sp<Fence> fence; in TEST_F()
97 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F()
114 EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, Fence::NO_FENCE)); in TEST_F()
154 sp<Fence> fence; in TEST_F()
169 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F()
188 Fence::NO_FENCE)); in TEST_F()
218 sp<Fence> fence; in TEST_F()
230 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F()
/frameworks/av/services/camera/libcameraservice/device3/
DStatusTracker.h33 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;
DStatusTracker.cpp36 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/
DVirtualDisplaySurface.h94 virtual const sp<Fence>& getClientTargetAcquireFence() const override;
107 virtual status_t dequeueBuffer(int* pslot, sp<Fence>* fence, uint32_t w, uint32_t h,
112 sp<Fence>* outFence);
116 virtual status_t cancelBuffer(int pslot, const sp<Fence>& fence);
131 sp<Fence>* outFence, float outTransformMatrix[16]) override;
140 int* sslot, sp<Fence>* fence);
204 sp<Fence> mFbFence;
208 sp<Fence> mOutputFence;
DHWComposer.h78 const sp<Fence>& acquireFence, const sp<GraphicBuffer>& target,
106 virtual sp<Fence> getPresentFence(DisplayId displayId) const = 0;
109 virtual sp<Fence> getLayerReleaseFence(DisplayId displayId, HWC2::Layer* layer) const = 0;
113 virtual status_t setOutputBuffer(DisplayId displayId, const sp<Fence>& acquireFence,
216 status_t setClientTarget(DisplayId displayId, uint32_t slot, const sp<Fence>& acquireFence,
244 sp<Fence> getPresentFence(DisplayId displayId) const override;
247 sp<Fence> getLayerReleaseFence(DisplayId displayId, HWC2::Layer* layer) const override;
251 status_t setOutputBuffer(DisplayId displayId, const sp<Fence>& acquireFence,
337 sp<Fence> lastPresentFence = Fence::NO_FENCE; // signals when the last set op retires
338 std::unordered_map<HWC2::Layer*, sp<Fence>> releaseFences;
[all …]
DFramebufferSurface.cpp61 mCurrentFence(Fence::NO_FENCE), in FramebufferSurface()
95 sp<Fence> acquireFence(Fence::NO_FENCE); in advanceFrame()
107 sp<GraphicBuffer>& outBuffer, sp<Fence>& outFence, in nextBuffer()
160 sp<Fence> fence = mHwc.getPresentFence(mDisplayId); in onFrameCommitted()
189 const sp<Fence>& FramebufferSurface::getClientTargetAcquireFence() const { in getClientTargetAcquireFence()
DFramebufferSurface.h52 virtual const sp<Fence>& getClientTargetAcquireFence() const override;
65 sp<Fence>& outFence, ui::Dataspace& outDataspace);
86 sp<Fence> mCurrentFence;
/frameworks/native/libs/gui/include/gui/bufferqueue/2.0/
DH2BGraphicBufferProducer.h36 using Fence = ::android::Fence; variable
57 int* slot, sp<Fence>* fence,
65 sp<Fence>* outFence) override;
73 virtual status_t cancelBuffer(int slot, sp<Fence> const& fence) override;
94 sp<Fence>* outFence, float outTransformMatrix[16]) override;
/frameworks/native/services/surfaceflinger/tests/unittests/mock/gui/
DMockGraphicBufferProducer.h37 status_t(int*, sp<Fence>*, uint32_t, uint32_t, PixelFormat, uint64_t, uint64_t*,
40 MOCK_METHOD2(detachNextBuffer, status_t(sp<GraphicBuffer>*, sp<Fence>*));
43 MOCK_METHOD2(cancelBuffer, status_t(int, const sp<Fence>&));
55 MOCK_METHOD3(getLastQueuedBuffer, status_t(sp<GraphicBuffer>*, sp<Fence>*, float[16]));
/frameworks/native/libs/gui/
DConsumerBase.cpp61 mPrevFinalReleaseFence(Fence::NO_FENCE) { in ConsumerBase()
100 mSlots[slotIndex].mFence = Fence::NO_FENCE; in freeBufferLocked()
372 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFence()
378 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFenceLocked()
396 if (currentStatus == Fence::Status::Invalid) { in addReleaseFenceLocked()
402 if (incomingStatus == Fence::Status::Invalid) { in addReleaseFenceLocked()
413 sp<Fence> mergedFence = Fence::merge( in addReleaseFenceLocked()
423 } else if (incomingStatus == Fence::Status::Unsignaled) { in addReleaseFenceLocked()
461 mSlots[slot].mFence = Fence::NO_FENCE; in releaseBufferLocked()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockDisplay.h66 Error(std::unordered_map<Layer*, android::sp<android::Fence>>* outFences));
67 MOCK_METHOD1(present, Error(android::sp<android::Fence>*));
71 const android::sp<android::Fence>&, android::ui::Dataspace));
76 const android::sp<android::Fence>&));
81 Error(uint32_t*, uint32_t*, android::sp<android::Fence>*, uint32_t*));
/frameworks/native/libs/gui/include/gui/
DBufferQueueProducer.h84 virtual status_t dequeueBuffer(int* outSlot, sp<Fence>* outFence, uint32_t width,
94 sp<Fence>* outFence);
122 virtual status_t cancelBuffer(int slot, const sp<Fence>& fence);
182 sp<Fence>* outFence, float outTransformMatrix[16]) override;
240 sp<Fence> mLastQueueBufferFence;
DIGraphicBufferProducer.h215 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, uint32_t h,
256 sp<Fence>* outFence) = 0;
337 int _scalingMode, uint32_t _transform, const sp<Fence>& _fence,
347 uint32_t* outTransform, sp<Fence>* outFence,
385 sp<Fence> fence;
438 virtual status_t cancelBuffer(int slot, const sp<Fence>& fence) = 0;
618 sp<Fence>* outFence, float outTransformMatrix[16]) = 0;
DBufferSlot.h30 class Fence; variable
183 mFence(Fence::NO_FENCE), in BufferSlot()
224 sp<Fence> mFence;
DITransactionCompletedListener.h43 SurfaceStats(const sp<IBinder>& sc, nsecs_t time, const sp<Fence>& prevReleaseFence) in SurfaceStats()
48 sp<Fence> previousReleaseFence;
60 TransactionStats(const std::vector<CallbackId>& ids, nsecs_t latch, const sp<Fence>& present, in TransactionStats()
66 sp<Fence> presentFence = nullptr;
/frameworks/native/services/surfaceflinger/
DBufferLayerConsumer.h106 void setReleaseFence(const sp<Fence>& fence);
110 sp<Fence> getPrevFinalReleaseFence() const;
160 sp<GraphicBuffer> getCurrentBuffer(int* outSlot = nullptr, sp<Fence>* outFence = nullptr) const;
173 sp<Fence> getCurrentFence() const;
289 sp<Fence> mCurrentFence;
DMonitoredProducer.h42 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, uint32_t h,
47 sp<Fence>* outFence);
52 virtual status_t cancelBuffer(int slot, const sp<Fence>& fence);
66 sp<Fence>* outFence, float outTransformMatrix[16]) override;

1234567