Home | History | Annotate | Download | only in surfaceflinger

Lines Matching defs:connection

92     return new Connection(const_cast<EventThread*>(this));
96 const sp<EventThread::Connection>& connection) {
98 mDisplayEventConnections.add(connection);
103 void EventThread::removeDisplayEventConnectionLocked(const wp<EventThread::Connection>& connection) {
104 mDisplayEventConnections.remove(connection);
107 void EventThread::setVsyncRate(uint32_t count, const sp<EventThread::Connection>& connection) {
111 if (connection->count != new_count) {
112 connection->count = new_count;
118 void EventThread::requestNextVsync(const sp<EventThread::Connection>& connection) {
125 if (connection->count < 0) {
126 connection->count = 0;
178 Vector<sp<EventThread::Connection> > signalConnections;
184 const sp<Connection>& conn(signalConnections[i]);
193 ALOGW("EventThread: dropping event (%08x) for connection %p", event.header.type,
197 // reasonable thing to do is to clean-up this connection.
206 // at least one connection interested in receiving it when we started waiting.
207 Vector<sp<EventThread::Connection> > EventThread::waitForEventLocked(
209 Vector<sp<EventThread::Connection> > signalConnections;
244 sp<Connection> connection(mDisplayEventConnections[i].promote());
245 if (connection != nullptr) {
247 if (connection->count >= 0) {
249 // one connection is waiting for it
254 if (connection->count == 0) {
256 connection->count = -1;
257 signalConnections.add(connection);
259 } else if (connection->count == 1 ||
260 (vsyncCount % connection->count) == 0) {
262 signalConnections.add(connection);
272 signalConnections.add(connection);
276 // we couldn't promote this reference, the connection has
329 // get a new connection, or an existing connection becomes
370 sp<Connection> connection = mDisplayEventConnections.itemAt(i).promote();
371 result.appendFormat(" %p: count=%d\n", connection.get(),
372 connection != nullptr ? connection->count : 0);
378 EventThread::Connection::Connection(EventThread* eventThread)
381 EventThread::Connection::~Connection() {
386 void EventThread::Connection::onFirstRef() {
391 status_t EventThread::Connection::stealReceiveChannel(gui::BitTube* outChannel) {
396 status_t EventThread::Connection::setVsyncRate(uint32_t count) {
401 void EventThread::Connection::requestNextVsync() {
405 status_t EventThread::Connection::postEvent(const DisplayEventReceiver::Event& event) {