Home
last modified time | relevance | path

Searched refs:FakeGuard (Results 1 – 15 of 15) sorted by relevance

/frameworks/native/include/ftl/
Dfake_guard.h60 struct [[clang::scoped_lockable]] FakeGuard final {
61 explicit FakeGuard(const Mutex& mutex) FTL_ATTRIBUTE(acquire_capability(mutex)) {} in FakeGuard() function
62 [[clang::release_capability()]] ~FakeGuard() {} in ~FakeGuard()
64 FakeGuard(const FakeGuard&) = delete;
65 FakeGuard& operator=(const FakeGuard&) = delete;
82 const android::ftl::FakeGuard guard(mutex); \
/frameworks/native/services/surfaceflinger/tests/unittests/
DTestableScheduler.h69 ftl::FakeGuard guard1(kMainThreadContext); in doFrameSignal()
70 ftl::FakeGuard guard2(mDisplayLock); in doFrameSignal()
98 ftl::FakeGuard guard(kMainThreadContext); in registerDisplay()
113 ftl::FakeGuard guard(kMainThreadContext); in setDisplayPowerMode()
122 ftl::FakeGuard guard(kMainThreadContext); in setPacesetterDisplay()
127 ftl::FakeGuard guard1(kMainThreadContext); in getDisplayPowerMode()
128 ftl::FakeGuard guard2(mDisplayLock); in getDisplayPowerMode()
DDisplayDevice_SetDisplayBrightnessTest.cpp39 ftl::FakeGuard guard(kMainThreadContext); in TEST_F()
56 ftl::FakeGuard guard(kMainThreadContext); in TEST_F()
74 ftl::FakeGuard guard(kMainThreadContext); in TEST_F()
100 ftl::FakeGuard guard(kMainThreadContext); in TEST_F()
DTestableSurfaceFlinger.h363 ftl::FakeGuard guard(kMainThreadContext); in configure()
374 ftl::FakeGuard guard(kMainThreadContext);
461 ftl::FakeGuard guard(kMainThreadContext); in commitTransactionsLocked()
496 ftl::FakeGuard guard(kMainThreadContext); in renderScreenImpl()
521 ftl::FakeGuard guard(kMainThreadContext); in getPendingTransactionQueue()
525 ftl::FakeGuard guard(kMainThreadContext); in getPendingTransactionCount()
572 ftl::FakeGuard guard(kMainThreadContext); in onActiveDisplayChanged()
658 ftl::FakeGuard guard(kMainThreadContext); in updateLayerSnapshots()
724 ftl::FakeGuard guard(kMainThreadContext); in sendNotifyExpectedPresentHint()
DSurfaceFlinger_DisplayModeSwitching.cpp173 ftl::FakeGuard guard(kMainThreadContext); in TEST_F()
211 ftl::FakeGuard guard(kMainThreadContext); in TEST_F()
239 ftl::FakeGuard guard(kMainThreadContext); in TEST_F()
277 ftl::FakeGuard guard(kMainThreadContext); in TEST_F()
350 ftl::FakeGuard guard(kMainThreadContext);
DDisplayModeControllerTest.cpp77 ftl::FakeGuard guard(kMainThreadContext); in SetUp()
DSurfaceFlinger_SetupNewDisplayDeviceInternalTest.cpp297 ftl::FakeGuard guard(kMainThreadContext); in setupNewDisplayDeviceInternalTest()
DRefreshRateSelectorTest.cpp64 ftl::FakeGuard guard(kMainThreadContext); in setActiveMode()
133 ftl::FakeGuard guard(kMainThreadContext); in setPolicy()
/frameworks/native/libs/ftl/
Dfake_guard_test.cpp26 TEST(FakeGuard, Example) { in TEST() argument
33 ftl::FakeGuard guard(mutex); in TEST()
/frameworks/native/services/surfaceflinger/Scheduler/
DScheduler.cpp143 const bool isPrimary = (ftl::FakeGuard(mDisplayLock), !mPacesetterDisplayId); in registerDisplayInternal()
523 ftl::FakeGuard guard(kMainThreadContext); in resyncAllToHardwareVsync()
575 ftl::FakeGuard guard(kMainThreadContext); in setRenderRate()
600 ftl::FakeGuard guard(kMainThreadContext); in getNextFrameInterval()
644 (ftl::FakeGuard(mDisplayLock), mDisplays.get(id)).and_then([](const Display& display) { in addPresentFence()
738 ftl::FakeGuard guard(mDisplayLock); in setDisplayPowerMode()
775 ftl::FakeGuard guard(kMainThreadContext); in getVsyncScheduleLocked()
809 ftl::FakeGuard guard(kMainThreadContext); in kernelIdleTimerCallback()
857 ftl::FakeGuard guard(kMainThreadContext); in dump()
878 ftl::FakeGuard guard(kMainThreadContext); in dump()
[all …]
DScheduler.h181 ftl::FakeGuard guard(kMainThreadContext); in modulateVsync()
211 ftl::FakeGuard guard(kMainThreadContext); in EXCLUDES()
542 ftl::FakeGuard guard(kMainThreadContext); in pacesetterDisplayLocked()
DVsyncSchedule.cpp105 ftl::FakeGuard guard(kMainThreadContext); in dump()
DRefreshRateSelector.cpp1092 ftl::FakeGuard guard(mLock); in onKernelTimerChanged()
1366 ftl::FakeGuard guard(mLock); in setPolicy()
1383 ftl::FakeGuard guard(mLock); in setPolicy()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp791 ftl::FakeGuard guard(mStateLock); in bootFinished()
2735 ftl::FakeGuard guard(mStateLock); in commit()
2768 ftl::FakeGuard guard(mStateLock); in composite()
3119 ftl::FakeGuard guard(mStateLock); in onCompositionPresented()
3297 ftl::FakeGuard guard(mStateLock); in onCompositionPresented()
3355 ftl::FakeGuard guard(mStateLock); in getMaxDisplayBounds()
3868 ftl::FakeGuard guard(kMainThreadContext); in processDisplayAdded()
4951 ftl::FakeGuard guard(kMainThreadContext); in transactionReadyBufferCheckLegacy()
5298 ftl::FakeGuard guard(kMainThreadContext); in setTransactionState()
6126 ftl::FakeGuard guard(kMainThreadContext); in onHandleDestroyed()
[all …]
DLayer.cpp2196 ftl::FakeGuard guard(mFlinger->mStateLock); // Called from the main thread. in writeCompositionStateToProto()
2197 ftl::FakeGuard mainThreadGuard(kMainThreadContext); in writeCompositionStateToProto()