summaryrefslogtreecommitdiff
path: root/libs/utils/Looper.cpp
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2011-04-12 22:39:53 -0700
committer Jeff Brown <jeffbrown@android.com> 2011-05-25 14:37:17 -0700
commit86ea1f5f521981d075aef56f11693e4f3bc32fdb (patch)
tree72e1e44513d3e9e204a4fbd2855a079822e949eb /libs/utils/Looper.cpp
parenta6dbfdd3a858aac52cc87f80f91e8eef7d613605 (diff)
Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)
Added a new PointerIcon API (hidden for now) for loading pointer icons. Fixed a starvation problem in the native Looper's sendMessage implementation which caused new messages to be posted ahead of old messages sent with sendMessageDelayed. Redesigned the touch pad gestures to be defined in terms of more fluid finger / spot movements. The objective is to reinforce the natural mapping between fingers and spots which means there must not be any discontinuities in spot motion relative to the fingers. Removed the SpotController stub and folded its responsibilities into PointerController. Change-Id: Ib647dbd7a57a7f30dd9c6e2c260df51d7bbdd18e
Diffstat (limited to 'libs/utils/Looper.cpp')
-rw-r--r--libs/utils/Looper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/utils/Looper.cpp b/libs/utils/Looper.cpp
index d5dd126065e7..b54fb9dd7353 100644
--- a/libs/utils/Looper.cpp
+++ b/libs/utils/Looper.cpp
@@ -662,7 +662,8 @@ void Looper::wakeAndLock() {
#endif
void Looper::sendMessage(const sp<MessageHandler>& handler, const Message& message) {
- sendMessageAtTime(LLONG_MIN, handler, message);
+ nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC);
+ sendMessageAtTime(now, handler, message);
}
void Looper::sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler,