Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/Scheduler/
DEventThread.h69 class EventThreadConnection : public gui::BnDisplayEventConnection {
71 EventThreadConnection(EventThread*, uid_t callingUid,
73 virtual ~EventThreadConnection();
103 virtual sp<EventThreadConnection> createEventConnection(
126 const sp<EventThreadConnection>& connection) = 0;
127 virtual void setVsyncRate(uint32_t rate, const sp<EventThreadConnection>& connection) = 0;
129 virtual void requestNextVsync(const sp<EventThreadConnection>& connection) = 0;
130 virtual VsyncEventData getLatestVsyncEventData(const sp<EventThreadConnection>& connection,
157 sp<EventThreadConnection> createEventConnection(
160 status_t registerDisplayEventConnection(const sp<EventThreadConnection>& connection) override;
[all …]
DEventThread.cpp84 std::string toString(const EventThreadConnection& connection) { in toString()
194 EventThreadConnection::EventThreadConnection(EventThread* eventThread, uid_t callingUid, in EventThreadConnection() function in android::EventThreadConnection
201 EventThreadConnection::~EventThreadConnection() { in ~EventThreadConnection()
206 void EventThreadConnection::onFirstRef() { in onFirstRef()
208 mEventThread->registerDisplayEventConnection(sp<EventThreadConnection>::fromExisting(this)); in onFirstRef()
211 binder::Status EventThreadConnection::stealReceiveChannel(gui::BitTube* outChannel) { in stealReceiveChannel()
222 binder::Status EventThreadConnection::setVsyncRate(int rate) { in setVsyncRate()
224 sp<EventThreadConnection>::fromExisting(this)); in setVsyncRate()
228 binder::Status EventThreadConnection::requestNextVsync() { in requestNextVsync()
230 mEventThread->requestNextVsync(sp<EventThreadConnection>::fromExisting(this)); in requestNextVsync()
[all …]
DScheduler.h148 const sp<EventThreadConnection>& getEventConnection(Cycle cycle) const { in getEventConnection()
470 sp<EventThreadConnection> mRenderEventConnection;
473 sp<EventThreadConnection> mLastCompositeEventConnection;
599 std::unordered_set<wp<EventThreadConnection>, WpHash> connections;
DScheduler.cpp1012 sp<EventThreadConnection> choreographerConnection = it->promote(); in updateAttachedChoreographersFrameRate()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockEventThread.h36 sp<EventThreadConnection> createEventConnection(EventRegistrationFlags flags) const override { in createEventConnection()
39 MOCK_METHOD(sp<EventThreadConnection>, createEventConnection, (bool, EventRegistrationFlags),
53 (const sp<android::EventThreadConnection>&), (override));
54 MOCK_METHOD(void, setVsyncRate, (uint32_t, const sp<android::EventThreadConnection>&),
56 MOCK_METHOD(void, requestNextVsync, (const sp<android::EventThreadConnection>&), (override));
58 (const sp<android::EventThreadConnection>&, nsecs_t), (const, override));
59 MOCK_METHOD(void, requestLatestConfig, (const sp<android::EventThreadConnection>&));
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayTransactionTest.cpp71 sp<EventThreadConnection>::make(mEventThread, mock::EventThread::kCallingUid))); in injectMockScheduler()
75 .WillOnce(Return(sp<EventThreadConnection>::make(mSFEventThread, in injectMockScheduler()
DSurfaceFlinger_DisplayModeSwitching.cpp147 .WillOnce(Return(sp<EventThreadConnection>::make(eventThread.get(), in setupScheduler()
152 .WillOnce(Return(sp<EventThreadConnection>::make(sfEventThread.get(), in setupScheduler()
DEventThreadTest.cpp68 class MockEventThreadConnection : public EventThreadConnection {
72 : EventThreadConnection(eventThread, callingUid, eventRegistration) {} in MockEventThreadConnection()
DTestableSurfaceFlinger.h282 .WillOnce(Return(sp<EventThreadConnection>::make(eventThread.get(),
287 .WillOnce(Return(sp<EventThreadConnection>::make(sfEventThread.get(),
DSchedulerTest.cpp67 class MockEventThreadConnection : public android::EventThreadConnection {
70 : EventThreadConnection(eventThread, /*callingUid*/ static_cast<uid_t>(0)) {} in MockEventThreadConnection()