summaryrefslogtreecommitdiffstats
path: root/include/ui/InputDispatcher.h
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-09-14 15:27:33 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-09-14 15:27:33 -0700
commitb06cca6228aec6acfefbfae7edd768d7de4c7057 (patch)
tree3b8867c86e546dd0dea4f356389a46bd084e7d6b /include/ui/InputDispatcher.h
parent959d007a864786bd99569c27b84e42aaf9d1507e (diff)
parent59abe7e0909bf4b7bf7b9601e1e40a05f6d4fd8a (diff)
downloadframeworks_native-b06cca6228aec6acfefbfae7edd768d7de4c7057.zip
frameworks_native-b06cca6228aec6acfefbfae7edd768d7de4c7057.tar.gz
frameworks_native-b06cca6228aec6acfefbfae7edd768d7de4c7057.tar.bz2
Merge "Replace epoll() with poll() and rename PollLoop to Looper." into gingerbread
Diffstat (limited to 'include/ui/InputDispatcher.h')
-rw-r--r--include/ui/InputDispatcher.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ui/InputDispatcher.h b/include/ui/InputDispatcher.h
index a06208a..d7e6254 100644
--- a/include/ui/InputDispatcher.h
+++ b/include/ui/InputDispatcher.h
@@ -25,7 +25,7 @@
#include <utils/Timers.h>
#include <utils/RefBase.h>
#include <utils/String8.h>
-#include <utils/PollLoop.h>
+#include <utils/Looper.h>
#include <utils/Pool.h>
#include <stddef.h>
@@ -826,7 +826,7 @@ private:
Mutex mLock;
Allocator mAllocator;
- sp<PollLoop> mPollLoop;
+ sp<Looper> mLooper;
EventEntry* mPendingEvent;
Queue<EventEntry> mInboundQueue;
@@ -837,7 +837,7 @@ private:
void dispatchOnceInnerLocked(nsecs_t keyRepeatTimeout, nsecs_t keyRepeatDelay,
nsecs_t* nextWakeupTime);
- // Enqueues an inbound event. Returns true if mPollLoop->wake() should be called.
+ // Enqueues an inbound event. Returns true if mLooper->wake() should be called.
bool enqueueInboundEventLocked(EventEntry* entry);
// App switch latency optimization.
@@ -1010,7 +1010,7 @@ private:
void abortDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection,
bool broken);
void drainOutboundQueueLocked(Connection* connection, DispatchEntry* firstDispatchEntryToDrain);
- static bool handleReceiveCallback(int receiveFd, int events, void* data);
+ static int handleReceiveCallback(int receiveFd, int events, void* data);
// Preempting input dispatch.
bool preemptInputDispatchInnerLocked();