Home
last modified time | relevance | path

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

12345678910

/frameworks/native/libs/ui/include_vndk/ui/
DFence.h39 class Fence
40 : public LightRefBase<Fence>, public Flattenable<Fence>
43 static const sp<Fence> NO_FENCE;
57 Fence() = default;
62 explicit Fence(int fenceFd);
63 explicit Fence(base::unique_fd fenceFd);
66 Fence(const Fence& rhs) = delete;
67 Fence& operator=(const Fence& rhs) = delete;
68 Fence(Fence&& rhs) = delete;
69 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);
127 FenceTime(const sp<Fence>& fence, bool forceValidForTest);
141 sp<Fence> mFence{Fence::NO_FENCE};
142 std::atomic<nsecs_t> mSignalTime{Fence::SIGNAL_TIME_INVALID};
195 using FencePair = std::pair<sp<Fence>, FenceTimePtr>;
198 const auto fence = sp<Fence>::make(); in makePendingFenceForTest()
[all …]
/frameworks/native/libs/ui/include/ui/
DFence.h39 class Fence
40 : public LightRefBase<Fence>, public Flattenable<Fence>
43 static const sp<Fence> NO_FENCE;
57 Fence() = default;
62 explicit Fence(int fenceFd);
63 explicit Fence(base::unique_fd fenceFd);
66 Fence(const Fence& rhs) = delete;
67 Fence& operator=(const Fence& rhs) = delete;
68 Fence(Fence&& rhs) = delete;
69 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);
127 FenceTime(const sp<Fence>& fence, bool forceValidForTest);
141 sp<Fence> mFence{Fence::NO_FENCE};
142 std::atomic<nsecs_t> mSignalTime{Fence::SIGNAL_TIME_INVALID};
195 using FencePair = std::pair<sp<Fence>, FenceTimePtr>;
198 const auto fence = sp<Fence>::make(); in makePendingFenceForTest()
[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()
90 sp<Fence> Fence::merge(const char* name, const sp<Fence>& f1, in merge()
91 const sp<Fence>& f2) { in merge()
113 return sp<Fence>(new Fence(result)); in merge()
116 sp<Fence> Fence::merge(const String8& name, const sp<Fence>& f1, in merge()
117 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 wait()
[all …]
/frameworks/base/libs/hostgraphics/ui/
DFence.h27 class Fence : public LightRefBase<Fence> {
29 Fence() {} in Fence() function
31 Fence(int) {} in Fence() function
33 static const sp<Fence> NO_FENCE;
37 static sp<Fence> merge(const char* name, const sp<Fence>& f1, const sp<Fence>& f2) { in merge()
41 static sp<Fence> merge(const String8& name, const sp<Fence>& f1, const sp<Fence>& f2) { in merge()
/frameworks/native/libs/ui/tests/
DMockFence_test.cpp27 sp<Fence> getFenceForTesting() const { return mMockFence; } in getFenceForTesting()
36 sp<Fence> fence = getFenceForTesting(); in TEST_F()
38 EXPECT_CALL(getMockFence(), getSignalTime).WillOnce(Return(Fence::SIGNAL_TIME_PENDING)); in TEST_F()
39 EXPECT_EQ(Fence::SIGNAL_TIME_PENDING, fence->getSignalTime()); in TEST_F()
46 sp<Fence> fence = getFenceForTesting(); in TEST_F()
48 EXPECT_CALL(getMockFence(), getStatus).WillOnce(Return(Fence::Status::Unsignaled)); in TEST_F()
49 EXPECT_EQ(Fence::Status::Unsignaled, fence->getStatus()); in TEST_F()
51 EXPECT_CALL(getMockFence(), getStatus).WillOnce(Return(Fence::Status::Signaled)); in TEST_F()
52 EXPECT_EQ(Fence::Status::Signaled, fence->getStatus()); in TEST_F()
54 EXPECT_CALL(getMockFence(), getStatus).WillOnce(Return(Fence::Status::Invalid)); in TEST_F()
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_SyncFence.cpp37 static void destroyFence(Fence* fence) { in destroyFence()
46 Fence* fence = new Fence(fd); in SyncFence_create()
52 return fromJlong<Fence>(jPtr)->isValid(); in SyncFence_isValid()
56 return fromJlong<Fence>(jPtr)->get(); in SyncFence_getFd()
60 Fence* fence = fromJlong<Fence>(jPtr); in SyncFence_wait()
66 return fromJlong<Fence>(jPtr)->getSignalTime(); in SyncFence_getSignalTime()
70 fromJlong<Fence>(jPtr)->incStrong((void*)SyncFence_incRef); in SyncFence_incRef()
/frameworks/native/services/surfaceflinger/Utils/
DFenceUtils.h24 inline void mergeFence(const char* debugName, sp<Fence>&& incomingFence, sp<Fence>& prevFence) { in mergeFence()
25 if (prevFence == nullptr && incomingFence->getStatus() != Fence::Status::Invalid) { in mergeFence()
30 if (prevFence->getStatus() != Fence::Status::Invalid && in mergeFence()
34 sp<Fence> mergedFence = Fence::merge(fenceName, prevFence, incomingFence); in mergeFence()
38 } else if (incomingFence->getStatus() == Fence::Status::Unsignaled) { in mergeFence()
/frameworks/base/libs/hostgraphics/
DFence.cpp21 const sp<Fence> Fence::NO_FENCE = sp<Fence>(new Fence);
/frameworks/av/media/codec2/vndk/
DC2Fence.cpp287 return (mFence && (mFence->getStatus() != Fence::Status::Invalid)); in valid()
291 return mFence->getStatus() == Fence::Status::Signaled; in ready()
361 mFence(sp<Fence>::make(fenceFd)) { in SyncFenceImpl()
364 SyncFenceImpl(const sp<Fence> &fence) : in SyncFenceImpl()
375 SyncFenceImpl(const std::vector<sp<Fence>>& fences, const sp<Fence> &finalFence) : in SyncFenceImpl()
404 std::vector<sp<Fence>> fences; in CreateFromNativeHandle()
411 sp<Fence> fence = sp<Fence>::make(fd); in CreateFromNativeHandle()
430 sp<Fence> finalFence = fences.back(); in CreateFromNativeHandle()
457 std::vector<sp<Fence>> mListFences;
463 sp<Fence> mFence;
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/
DTexturePool.h44 std::shared_ptr<renderengine::ExternalTexture> texture, const sp<Fence>& fence) in AutoTexture()
49 sp<Fence> getReadyFence() { return mFence; } in getReadyFence()
51 void setReadyFence(const sp<Fence>& fence) { mFence = fence; } in setReadyFence()
63 sp<Fence> mFence;
95 sp<Fence> fence;
104 const sp<Fence>& fence);
/frameworks/av/services/camera/libcameraservice/device3/
DStatusTracker.h33 class Fence; variable
66 void markComponentIdle(int id, const sp<Fence>& componentFence);
89 const sp<Fence>& componentFence);
99 sp<Fence> fence;
116 sp<Fence> mIdleFence;
/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionApplicationTest.cpp332 EXPECT_CALL(*fence, getStatus()).WillRepeatedly(Return(Fence::Status::Unsignaled)); in TEST_F()
368 static sp<Fence> fence(Fence::Status status) { in fence()
374 ComposerState createComposerState(int layerId, sp<Fence> fence, uint64_t what, in createComposerState()
466 {createComposerState(kLayerId, fence(Fence::Status::Signaled), in TEST_F()
481 fence(Fence::Status::Unsignaled), in TEST_F()
497 fence(Fence::Status::Unsignaled), in TEST_F()
516 fence(Fence::Status::Unsignaled), in TEST_F()
535 fence(Fence::Status::Unsignaled), in TEST_F()
553 fence(Fence::Status::Unsignaled), in TEST_F()
571 fence(Fence::Status::Unsignaled), in TEST_F()
[all …]
DTransactionSurfaceFrameTest.cpp87 sp<Fence> fence(sp<Fence>::make()); in PresentedSurfaceFrameForBufferTransaction()
122 sp<Fence> fence1(sp<Fence>::make()); in DroppedSurfaceFrameForBufferTransaction()
142 sp<Fence> fence2(sp<Fence>::make()); in DroppedSurfaceFrameForBufferTransaction()
188 sp<Fence> fence(sp<Fence>::make()); in BufferlessSurfaceFramePromotedToBufferSurfaceFrame()
220 sp<Fence> fence(sp<Fence>::make()); in BufferlessSurfaceFrameNotCreatedIfBufferSufaceFrameExists()
263 sp<Fence> fence(sp<Fence>::make()); in MultipleSurfaceFramesPresentedTogether()
308 sp<Fence> fence1(sp<Fence>::make()); in PendingSurfaceFramesRemovedAfterClassification()
327 sp<Fence> fence2(sp<Fence>::make()); in PendingSurfaceFramesRemovedAfterClassification()
360 sp<Fence> fence1(sp<Fence>::make()); in BufferSurfaceFrame_ReplaceValidTokenBufferWithInvalidTokenBuffer()
380 sp<Fence> fence2(sp<Fence>::make()); in BufferSurfaceFrame_ReplaceValidTokenBufferWithInvalidTokenBuffer()
[all …]
/frameworks/native/libs/gui/tests/
DBufferQueue_test.cpp82 sp<Fence> fence; in testBufferItem()
143 sp<Fence> fence; in TEST_F()
158 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F()
192 sp<Fence> fence; in TEST_F()
196 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F()
242 sp<Fence> fence; in TEST_F()
246 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F()
278 sp<Fence> fence; in TEST_F()
282 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in TEST_F()
343 sp<Fence> fence; in TEST_F()
[all …]
/frameworks/av/media/codec2/hal/client/include/codec2/aidl/
DGraphicsTracker.h38 using ::android::Fence;
104 AHardwareBuffer **buf, sp<Fence> *fence);
115 c2_status_t deallocate(uint64_t bufId, const sp<Fence> &fence);
176 sp<Fence> mFence;
181 const sp<Fence> &fence);
294 c2_status_t requestDeallocate(uint64_t bid, const sp<Fence> &fence,
297 sp<Fence> *rFence);
305 bool cached, int slotId, const sp<Fence> &fence,
320 bool *cached, int *rSlotId, sp<Fence> *rFence,
/frameworks/native/services/surfaceflinger/DisplayHardware/
DVirtualDisplaySurface.h91 virtual const sp<Fence>& getClientTargetAcquireFence() const override;
113 virtual status_t dequeueBuffer(int* pslot, sp<Fence>*, uint32_t w, uint32_t h, PixelFormat,
117 virtual status_t detachNextBuffer(sp<GraphicBuffer>* outBuffer, sp<Fence>* outFence);
120 virtual status_t cancelBuffer(int pslot, const sp<Fence>&);
134 sp<Fence>* outFence, float outTransformMatrix[16]) override;
144 status_t dequeueBuffer(Source, PixelFormat, uint64_t usage, int* sslot, sp<Fence>*);
216 sp<Fence> mFbFence;
220 sp<Fence> mOutputFence;
/frameworks/native/services/surfaceflinger/
DScreenCaptureRenderSurface.h41 mRenderFence = sp<Fence>::make(readyFence.release()); in queueBuffer()
44 const sp<Fence>& getClientTargetAcquireFence() const override { return mRenderFence; } in getClientTargetAcquireFence()
76 sp<Fence> mRenderFence = Fence::NO_FENCE;
/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/base/libs/hostgraphics/gui/
DBufferItem.h27 class Fence; variable
38 BufferItem() : mGraphicBuffer(nullptr), mFence(Fence::NO_FENCE) {} in BufferItem()
44 sp<Fence> mFence;
/frameworks/native/libs/gui/include/gui/mock/
DGraphicBufferProducer.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/av/services/camera/virtualcamera/
DVirtualCameraRenderThread.h47 CaptureRequestBuffer(int streamId, int bufferId, sp<Fence> fence = nullptr);
51 sp<Fence> getFence() const;
56 const sp<Fence> mFence;
186 const RequestSettings& requestSettings, sp<Fence> fence = nullptr);
193 sp<Fence> fence = nullptr);
200 EglFrameBuffer& framebuffer, sp<Fence> fence = nullptr,
/frameworks/av/media/codec2/tests/aidl/
DGraphicsTracker_test.cpp43 using ::android::Fence;
127 sp<Fence> fence_;
130 Frame(AHardwareBuffer *buffer, sp<Fence> fence) in Frame()
148 bool queueItem(AHardwareBuffer *buffer, sp<Fence> fence) { in queueItem()
230 mTracker->deallocate(bid, Fence::NO_FENCE); in queueBuffer()
237 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, Fence::NO_FENCE); in queueBuffer()
243 mTracker->deallocate(bid, Fence::NO_FENCE); in queueBuffer()
329 sp<Fence> fence; in TEST_F()
369 sp<Fence> fence; in TEST_F()
391 ret = mTracker->deallocate(bids[i], Fence::NO_FENCE); in TEST_F()
[all …]

12345678910