Home
last modified time | relevance | path

Searched refs:eventThread (Results 1 – 16 of 16) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionFrameTracerTest.cpp70 auto eventThread = std::make_unique<mock::EventThread>(); in setupScheduler() local
73 EXPECT_CALL(*eventThread, registerDisplayEventConnection(_)); in setupScheduler()
74 EXPECT_CALL(*eventThread, createEventConnection(_, _)) in setupScheduler()
75 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
91 std::move(eventThread), std::move(sfEventThread)); in setupScheduler()
DGameModeTest.cpp62 auto eventThread = std::make_unique<mock::EventThread>(); in setupScheduler() local
65 EXPECT_CALL(*eventThread, registerDisplayEventConnection(_)); in setupScheduler()
66 EXPECT_CALL(*eventThread, createEventConnection(_, _)) in setupScheduler()
67 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
83 std::move(eventThread), std::move(sfEventThread)); in setupScheduler()
DTunnelModeEnabledReporterTest.cpp109 auto eventThread = std::make_unique<mock::EventThread>(); in setupScheduler() local
112 EXPECT_CALL(*eventThread, registerDisplayEventConnection(_)); in setupScheduler()
113 EXPECT_CALL(*eventThread, createEventConnection(_, _)) in setupScheduler()
114 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
130 std::move(eventThread), std::move(sfEventThread)); in setupScheduler()
DFpsReporterTest.cpp123 auto eventThread = std::make_unique<mock::EventThread>(); in setupScheduler() local
126 EXPECT_CALL(*eventThread, registerDisplayEventConnection(_)); in setupScheduler()
127 EXPECT_CALL(*eventThread, createEventConnection(_, _)) in setupScheduler()
128 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
144 std::move(eventThread), std::move(sfEventThread)); in setupScheduler()
DSchedulerTest.cpp43 explicit MockEventThreadConnection(EventThread* eventThread) in MockEventThreadConnection() argument
44 : EventThreadConnection(eventThread, /*callingUid=*/0, ResyncCallback()) {} in MockEventThreadConnection()
86 auto eventThread = std::make_unique<mock::EventThread>(); in SchedulerTest() local
87 mEventThread = eventThread.get(); in SchedulerTest()
97 mConnectionHandle = mScheduler->createConnection(std::move(eventThread)); in SchedulerTest()
DRefreshRateSelectionTest.cpp124 auto eventThread = std::make_unique<mock::EventThread>(); in setupScheduler() local
127 EXPECT_CALL(*eventThread, registerDisplayEventConnection(_)); in setupScheduler()
128 EXPECT_CALL(*eventThread, createEventConnection(_, _)) in setupScheduler()
129 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
145 std::move(eventThread), std::move(sfEventThread)); in setupScheduler()
DVSyncDispatchRealtimeTest.cpp205 std::thread eventThread([&] { cb_receiver.repeatedly_schedule(mIterations, on_each_frame); }); in TEST_F() local
206 eventThread.join(); in TEST_F()
226 std::thread eventThread([&] { cb_receiver.repeatedly_schedule(mIterations, on_each_frame); }); in TEST_F() local
227 eventThread.join(); in TEST_F()
DTransactionApplicationTest.cpp60 auto eventThread = std::make_unique<mock::EventThread>(); in setupScheduler() local
63 EXPECT_CALL(*eventThread, registerDisplayEventConnection(_)); in setupScheduler()
64 EXPECT_CALL(*eventThread, createEventConnection(_, _)) in setupScheduler()
65 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
79 std::move(eventThread), std::move(sfEventThread)); in setupScheduler()
DTestableScheduler.h47 ConnectionHandle createConnection(std::unique_ptr<EventThread> eventThread) { in createConnection() argument
48 return Scheduler::createConnection(std::move(eventThread)); in createConnection()
DTransactionSurfaceFrameTest.cpp70 auto eventThread = std::make_unique<mock::EventThread>(); in setupScheduler() local
73 EXPECT_CALL(*eventThread, registerDisplayEventConnection(_)); in setupScheduler()
74 EXPECT_CALL(*eventThread, createEventConnection(_, _)) in setupScheduler()
75 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
91 std::move(eventThread), std::move(sfEventThread)); in setupScheduler()
DSetFrameRateTest.cpp161 auto eventThread = std::make_unique<mock::EventThread>(); in setupScheduler() local
164 EXPECT_CALL(*eventThread, registerDisplayEventConnection(_)); in setupScheduler()
165 EXPECT_CALL(*eventThread, createEventConnection(_, _)) in setupScheduler()
166 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
182 std::move(eventThread), std::move(sfEventThread), /*callback*/ nullptr, in setupScheduler()
DCompositionTest.cpp120 auto eventThread = std::make_unique<mock::EventThread>(); in setupScheduler() local
123 EXPECT_CALL(*eventThread, registerDisplayEventConnection(_)); in setupScheduler()
124 EXPECT_CALL(*eventThread, createEventConnection(_, _)) in setupScheduler()
125 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
144 std::move(eventThread), std::move(sfEventThread), kCallback, in setupScheduler()
DEventThreadTest.cpp67 MockEventThreadConnection(impl::EventThread* eventThread, uid_t callingUid, in MockEventThreadConnection() argument
70 : EventThreadConnection(eventThread, callingUid, std::move(resyncCallback), in MockEventThreadConnection()
DSurfaceFlinger_HandleTransactionLockedTest.cpp71 void HandleTransactionLockedTest::expectHotplugReceived(mock::EventThread* eventThread) { in expectHotplugReceived() argument
76 EXPECT_CALL(*eventThread, in expectHotplugReceived()
/frameworks/native/services/surfaceflinger/Scheduler/
DScheduler.cpp273 auto eventThread = std::make_unique<impl::EventThread>(std::move(vsyncSource), tokenManager, in createConnection() local
277 return createConnection(std::move(eventThread)); in createConnection()
280 Scheduler::ConnectionHandle Scheduler::createConnection(std::unique_ptr<EventThread> eventThread) { in createConnection() argument
284 auto connection = createConnectionInternal(eventThread.get()); in createConnection()
287 mConnections.emplace(handle, Connection{connection, std::move(eventThread)}); in createConnection()
292 EventThread* eventThread, ISurfaceComposer::EventRegistrationFlags eventRegistration) { in createConnectionInternal() argument
293 return eventThread->createEventConnection([&] { resync(); }, eventRegistration); in createConnectionInternal()
460 auto eventThread = in enableVSyncInjection() local
468 eventThread->onHotplugReceived(PhysicalDisplayId::fromPort(0), true); in enableVSyncInjection()
469 eventThread->onScreenAcquired(); in enableVSyncInjection()
[all …]
DEventThread.cpp155 EventThread* eventThread, uid_t callingUid, ResyncCallback resyncCallback, in EventThreadConnection() argument
160 mEventThread(eventThread), in EventThreadConnection()