summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Brown2011-04-13 00:39:53 -0500
committerAlex Ray2013-07-30 15:56:56 -0500
commitaa13c1b90e5d9cae064bb425dd094ccbd411e073 (patch)
tree395abb3eac486afb5f532a5834abb99245dc95c5 /libs/utils/Looper.cpp
parentaa3a2c561323b7c68594b2079b9d4f02ca9178d0 (diff)
downloadplatform-system-core-aa13c1b90e5d9cae064bb425dd094ccbd411e073.tar.gz
platform-system-core-aa13c1b90e5d9cae064bb425dd094ccbd411e073.tar.xz
platform-system-core-aa13c1b90e5d9cae064bb425dd094ccbd411e073.zip
Initial checkin of spot presentation for touchpad gestures.
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: I5126b1e69d95252fda7f2a684c9287e239a57163
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 d5dd12606..b54fb9dd7 100644
--- a/libs/utils/Looper.cpp
+++ b/libs/utils/Looper.cpp
@@ -662,7 +662,8 @@ void Looper::wakeAndLock() {
662#endif 662#endif
663 663
664void Looper::sendMessage(const sp<MessageHandler>& handler, const Message& message) { 664void Looper::sendMessage(const sp<MessageHandler>& handler, const Message& message) {
665 sendMessageAtTime(LLONG_MIN, handler, message); 665 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC);
666 sendMessageAtTime(now, handler, message);
666} 667}
667 668
668void Looper::sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, 669void Looper::sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler,