Lines Matching full:eventthread
32 #include "EventThread.h"
39 EventThread::EventThread(const sp<SurfaceFlinger>& flinger)
52 void EventThread::onFirstRef() {
53 run("EventThread", PRIORITY_URGENT_DISPLAY + PRIORITY_MORE_FAVORABLE);
56 sp<EventThread::Connection> EventThread::createEventConnection() const {
57 return new Connection(const_cast<EventThread*>(this));
60 status_t EventThread::registerDisplayEventConnection(
61 const sp<EventThread::Connection>& connection) {
68 void EventThread::removeDisplayEventConnection(
69 const wp<EventThread::Connection>& connection) {
74 void EventThread::setVsyncRate(uint32_t count,
75 const sp<EventThread::Connection>& connection) {
86 void EventThread::requestNextVsync(
87 const sp<EventThread::Connection>& connection) {
95 void EventThread::onScreenReleased() {
104 void EventThread::onScreenAcquired() {
114 void EventThread::onVSyncReceived(int type, nsecs_t timestamp) {
128 void EventThread::onHotplugReceived(int type, bool connected) {
144 bool EventThread::threadLoop() {
146 Vector< sp<EventThread::Connection> > signalConnections;
161 ALOGW("EventThread: dropping event (%08x) for connection %p",
175 Vector< sp<EventThread::Connection> > EventThread::waitForEvent(
179 Vector< sp<EventThread::Connection> > signalConnections;
308 void EventThread::enableVSyncLocked() {
317 void EventThread::disableVSyncLocked() {
323 void EventThread::dump(String8& result, char* buffer, size_t SIZE) const {
342 EventThread::Connection::Connection(
343 const sp<EventThread>& eventThread)
344 : count(-1), mEventThread(eventThread), mChannel(new BitTube())
348 EventThread::Connection::~Connection() {
353 void EventThread::Connection::onFirstRef() {
358 sp<BitTube> EventThread::Connection::getDataChannel() const {
362 void EventThread::Connection::setVsyncRate(uint32_t count) {
366 void EventThread::Connection::requestNextVsync() {
370 status_t EventThread::Connection::postEvent(