Home
last modified time | relevance | path

Searched refs:barrier (Results 1 – 12 of 12) sorted by relevance

/frameworks/native/libs/renderengine/gl/
DImageManager.cpp58 const std::shared_ptr<Barrier>& barrier) { in cacheAsync() argument
61 std::lock_guard<std::mutex> lock(barrier->mutex); in cacheAsync()
62 barrier->isOpen = true; in cacheAsync()
63 barrier->result = BAD_VALUE; in cacheAsync()
65 barrier->condition.notify_one(); in cacheAsync()
69 QueueEntry entry = {QueueEntry::Operation::Insert, buffer, buffer->getId(), barrier}; in cacheAsync()
75 auto barrier = std::make_shared<Barrier>(); in cache() local
76 cacheAsync(buffer, barrier); in cache()
77 std::lock_guard<std::mutex> lock(barrier->mutex); in cache()
78 barrier->condition.wait(barrier->mutex, in cache()
[all …]
DImageManager.h46 void cacheAsync(const sp<GraphicBuffer>& buffer, const std::shared_ptr<Barrier>& barrier)
49 void releaseAsync(uint64_t bufferId, const std::shared_ptr<Barrier>& barrier) EXCLUDES(mMutex);
58 std::shared_ptr<Barrier> barrier = nullptr; member
DGLESRenderEngine.cpp698 auto barrier = std::make_shared<ImageManager::Barrier>(); in cacheExternalTextureBufferForTesting() local
699 mImageManager->cacheAsync(buffer, barrier); in cacheExternalTextureBufferForTesting()
700 return barrier; in cacheExternalTextureBufferForTesting()
748 auto barrier = std::make_shared<ImageManager::Barrier>(); in unbindExternalTextureBufferForTesting() local
749 mImageManager->releaseAsync(bufferId, barrier); in unbindExternalTextureBufferForTesting()
750 return barrier; in unbindExternalTextureBufferForTesting()
/frameworks/native/libs/renderengine/tests/
DRenderEngineTest.cpp1006 std::shared_ptr<renderengine::gl::ImageManager::Barrier> barrier = in TEST_F() local
1008 std::lock_guard<std::mutex> lock(barrier->mutex); in TEST_F()
1009 ASSERT_TRUE(barrier->condition.wait_for(barrier->mutex, std::chrono::seconds(5), in TEST_F()
1010 [&]() REQUIRES(barrier->mutex) { in TEST_F()
1011 return barrier->isOpen; in TEST_F()
1014 EXPECT_EQ(NO_ERROR, barrier->result); in TEST_F()
1031 std::shared_ptr<renderengine::gl::ImageManager::Barrier> barrier = in TEST_F() local
1033 std::lock_guard<std::mutex> lock(barrier->mutex); in TEST_F()
1034 ASSERT_TRUE(barrier->condition.wait_for(barrier->mutex, std::chrono::seconds(5), in TEST_F()
1035 [&]() REQUIRES(barrier->mutex) { in TEST_F()
[all …]
/frameworks/libs/net/common/devicetests/com/android/testutils/
DConcurrentInterpreter.kt85 val barrier = CyclicBarrier(threadCount) in <lambda>() constant
90 barrier.await() in <lambda>()
107 barrier.await() in <lambda>()
/frameworks/native/services/surfaceflinger/Scheduler/
DMessageQueue.h50 void wait() const { barrier.wait(); } in wait()
58 mutable Barrier barrier; variable
DMessageQueue.cpp44 barrier.open(); in handleMessage()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DTransactionCompat.java97 Surface barrier, long frameNumber) { in deferTransactionUntil() argument
98 mTransaction.deferTransactionUntilSurface(surfaceControl.mSurfaceControl, barrier, in deferTransactionUntil()
/frameworks/native/services/surfaceflinger/layerproto/
Dlayers.proto155 // layer id the barrier is waiting on.
157 // frame number the barrier is waiting on.
/frameworks/base/core/proto/android/os/
Dmessage.proto44 optional int32 barrier = 8; field
/frameworks/base/core/java/android/view/
DSurfaceControl.java1018 public void deferTransactionUntil(Surface barrier, long frame) { in deferTransactionUntil() argument
1020 sGlobalTransaction.deferTransactionUntilSurface(this, barrier, frame); in deferTransactionUntil()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp1111 sp<Surface> barrier = reinterpret_cast<Surface *>(surfaceObject); in nativeDeferTransactionUntilSurface() local
1113 transaction->deferTransactionUntil_legacy(ctrl, barrier, frameNumber); in nativeDeferTransactionUntilSurface()