Lines Matching refs:connection

64 std::string toString(const EventThreadConnection& connection) {  in toString()  argument
65 return StringPrintf("Connection{%p, %s}", &connection, in toString()
66 toString(connection.vsyncRequest).c_str()); in toString()
218 status_t EventThread::registerDisplayEventConnection(const sp<EventThreadConnection>& connection) { in registerDisplayEventConnection() argument
223 mDisplayEventConnections.cend(), connection); in registerDisplayEventConnection()
225 ALOGW("DisplayEventConnection %p already exists", connection.get()); in registerDisplayEventConnection()
230 mDisplayEventConnections.push_back(connection); in registerDisplayEventConnection()
235 void EventThread::removeDisplayEventConnectionLocked(const wp<EventThreadConnection>& connection) { in removeDisplayEventConnectionLocked() argument
237 mDisplayEventConnections.cend(), connection); in removeDisplayEventConnectionLocked()
243 void EventThread::setVsyncRate(uint32_t rate, const sp<EventThreadConnection>& connection) { in setVsyncRate() argument
251 if (connection->vsyncRequest != request) { in setVsyncRate()
252 connection->vsyncRequest = request; in setVsyncRate()
257 void EventThread::requestNextVsync(const sp<EventThreadConnection>& connection) { in requestNextVsync() argument
258 if (connection->resyncCallback) { in requestNextVsync()
259 connection->resyncCallback(); in requestNextVsync()
264 if (connection->vsyncRequest == VSyncRequest::None) { in requestNextVsync()
265 connection->vsyncRequest = VSyncRequest::Single; in requestNextVsync()
346 if (const auto connection = it->promote()) { in threadMain() local
347 vsyncRequested |= connection->vsyncRequest != VSyncRequest::None; in threadMain()
349 if (event && shouldConsumeEvent(*event, connection)) { in threadMain()
350 consumers.push_back(connection); in threadMain()
406 const sp<EventThreadConnection>& connection) const { in shouldConsumeEvent()
412 return connection->configChanged == ISurfaceComposer::eConfigChangedDispatch; in shouldConsumeEvent()
415 switch (connection->vsyncRequest) { in shouldConsumeEvent()
419 connection->vsyncRequest = VSyncRequest::None; in shouldConsumeEvent()
424 return event.vsync.count % vsyncPeriod(connection->vsyncRequest) == 0; in shouldConsumeEvent()
471 if (const auto connection = ptr.promote()) { in dump() local
472 StringAppendF(&result, " %s\n", toString(*connection).c_str()); in dump()