Home
last modified time | relevance | path

Searched refs:EventThreadConnection (Results 1 – 20 of 20) sorted by relevance

/aosp12/frameworks/native/services/surfaceflinger/Scheduler/
H A DEventThread.h83 class EventThreadConnection : public BnDisplayEventConnection {
85 EventThreadConnection(EventThread*, uid_t callingUid, ResyncCallback,
87 virtual ~EventThreadConnection();
114 virtual sp<EventThreadConnection> createEventConnection(
139 const sp<EventThreadConnection>& connection) = 0;
142 virtual void requestNextVsync(const sp<EventThreadConnection>& connection) = 0;
160 sp<EventThreadConnection> createEventConnection(
166 void requestNextVsync(const sp<EventThreadConnection>& connection) override;
191 using DisplayEventConsumers = std::vector<sp<EventThreadConnection>>;
200 void removeDisplayEventConnectionLocked(const wp<EventThreadConnection>& connection)
[all …]
H A DEventThread.cpp78 std::string toString(const EventThreadConnection& connection) { in toString()
154 EventThreadConnection::EventThreadConnection( in EventThreadConnection() function in android::EventThreadConnection
163 EventThreadConnection::~EventThreadConnection() { in ~EventThreadConnection()
168 void EventThreadConnection::onFirstRef() { in onFirstRef()
173 status_t EventThreadConnection::stealReceiveChannel(gui::BitTube* outChannel) { in stealReceiveChannel()
179 status_t EventThreadConnection::setVsyncRate(uint32_t rate) { in setVsyncRate()
184 void EventThreadConnection::requestNextVsync() { in requestNextVsync()
189 status_t EventThreadConnection::postEvent(const DisplayEventReceiver::Event& event) { in postEvent()
271 sp<EventThreadConnection> EventThread::createEventConnection( in createEventConnection()
274 return new EventThreadConnection(const_cast<EventThread*>(this), in createEventConnection()
[all …]
H A DMessageQueue.h70 virtual void setInjector(sp<EventThreadConnection>) = 0;
124 sp<EventThreadConnection> connection GUARDED_BY(mutex);
141 void setInjector(sp<EventThreadConnection>) override;
H A DScheduler.h87 sp<EventThreadConnection> getEventConnection(ConnectionHandle);
249 sp<EventThreadConnection> createConnectionInternal(
288 sp<EventThreadConnection> connection;
H A DMessageQueue.cpp76 void MessageQueue::setInjector(sp<EventThreadConnection> connection) { in setInjector()
H A DScheduler.cpp289 sp<EventThreadConnection> Scheduler::createConnectionInternal( in createConnectionInternal()
301 sp<EventThreadConnection> Scheduler::getEventConnection(ConnectionHandle handle) { in getEventConnection()
/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/mock/
H A DMockEventThread.h31 sp<EventThreadConnection>(ResyncCallback,
44 status_t(const sp<android::EventThreadConnection> &));
45 MOCK_METHOD2(setVsyncRate, void(uint32_t, const sp<android::EventThreadConnection> &));
46 MOCK_METHOD1(requestNextVsync, void(const sp<android::EventThreadConnection> &));
47 MOCK_METHOD1(requestLatestConfig, void(const sp<android::EventThreadConnection> &));
H A DMockMessageQueue.h33 MOCK_METHOD1(setInjector, void(sp<EventThreadConnection>));
/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/
H A DGameModeTest.cpp67 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
72 .WillOnce(Return(new EventThreadConnection(sfEventThread.get(), /*callingUid=*/0, in setupScheduler()
H A DTransactionFrameTracerTest.cpp75 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
80 .WillOnce(Return(new EventThreadConnection(sfEventThread.get(), /*callingUid=*/0, in setupScheduler()
H A DDisplayTransactionTest.cpp71 new EventThreadConnection(mEventThread, /*callingUid=*/0, ResyncCallback()))); in injectMockScheduler()
76 new EventThreadConnection(mSFEventThread, /*callingUid=*/0, ResyncCallback()))); in injectMockScheduler()
H A DTunnelModeEnabledReporterTest.cpp114 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
119 .WillOnce(Return(new EventThreadConnection(sfEventThread.get(), /*callingUid=*/0, in setupScheduler()
H A DFpsReporterTest.cpp128 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
133 .WillOnce(Return(new EventThreadConnection(sfEventThread.get(), /*callingUid=*/0, in setupScheduler()
H A DSchedulerTest.cpp41 class MockEventThreadConnection : public android::EventThreadConnection {
44 : EventThreadConnection(eventThread, /*callingUid=*/0, ResyncCallback()) {} in MockEventThreadConnection()
H A DRefreshRateSelectionTest.cpp129 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
134 .WillOnce(Return(new EventThreadConnection(sfEventThread.get(), /*callingUid=*/0, in setupScheduler()
H A DTransactionApplicationTest.cpp65 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
70 .WillOnce(Return(new EventThreadConnection(sfEventThread.get(), /*callingUid=*/0, in setupScheduler()
H A DTransactionSurfaceFrameTest.cpp75 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
80 .WillOnce(Return(new EventThreadConnection(sfEventThread.get(), /*callingUid=*/0, in setupScheduler()
H A DEventThreadTest.cpp65 class MockEventThreadConnection : public EventThreadConnection {
70 : EventThreadConnection(eventThread, callingUid, std::move(resyncCallback), in MockEventThreadConnection()
H A DSetFrameRateTest.cpp166 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
171 .WillOnce(Return(new EventThreadConnection(sfEventThread.get(), /*callingUid=*/0, in setupScheduler()
H A DCompositionTest.cpp127 .WillOnce(Return(new EventThreadConnection(eventThread.get(), /*callingUid=*/0, in setupScheduler()
132 .WillOnce(Return(new EventThreadConnection(sfEventThread.get(), /*callingUid=*/0, in setupScheduler()