Lines Matching defs:Connection
96 sp<EventThread::Connection> EventThread::createEventConnection() const {
97 return new Connection(const_cast<EventThread*>(this));
101 const sp<EventThread::Connection>& connection) {
103 mDisplayEventConnections.add(connection);
109 const wp<EventThread::Connection>& connection) {
111 mDisplayEventConnections.remove(connection);
115 const sp<EventThread::Connection>& connection) {
119 if (connection->count != new_count) {
120 connection->count = new_count;
127 const sp<EventThread::Connection>& connection) {
129 if (connection->count < 0) {
130 connection->count = 0;
180 Vector< sp<EventThread::Connection> > signalConnections;
186 const sp<Connection>& conn(signalConnections[i]);
195 ALOGW("EventThread: dropping event (%08x) for connection %p",
199 // reasonable thing to do is to clean-up this connection.
208 // at least one connection interested in receiving it when we started waiting.
209 Vector< sp<EventThread::Connection> > EventThread::waitForEvent(
213 Vector< sp<EventThread::Connection> > signalConnections;
245 sp<Connection> connection(mDisplayEventConnections[i].promote());
246 if (connection != NULL) {
248 if (connection->count >= 0) {
250 // one connection is waiting for it
255 if (connection->count == 0) {
257 connection->count = -1;
258 signalConnections.add(connection);
260 } else if (connection->count == 1 ||
261 (vsyncCount % connection->count) == 0) {
263 signalConnections.add(connection);
273 signalConnections.add(connection);
276 // we couldn't promote this reference, the connection has
329 // get a new connection, or an existing connection becomes
373 sp<Connection> connection =
376 connection.get(), connection!=NULL ? connection->count : 0);
382 EventThread::Connection::Connection(
388 EventThread::Connection::~Connection() {
393 void EventThread::Connection::onFirstRef() {
398 sp<BitTube> EventThread::Connection::getDataChannel() const {
402 void EventThread::Connection::setVsyncRate(uint32_t count) {
406 void EventThread::Connection::requestNextVsync() {
410 status_t EventThread::Connection::postEvent(