summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2010-02-08 09:17:10 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-02-08 09:17:10 -0800
commit5d36c46d2d8fb3f1bdc8fd1ff407e14b4433272a (patch)
tree7c38ac85045aca12f67b4428ff07ec384506cf7d /test-runner
parent7406e53c4c152267bff799b0bb5d7edb6ece404f (diff)
parentad9bcb22d05fbf130ac64254abd51a137e9a3d3f (diff)
downloadframeworks_base-5d36c46d2d8fb3f1bdc8fd1ff407e14b4433272a.zip
frameworks_base-5d36c46d2d8fb3f1bdc8fd1ff407e14b4433272a.tar.gz
frameworks_base-5d36c46d2d8fb3f1bdc8fd1ff407e14b4433272a.tar.bz2
am ad9bcb22: merge from open-source master
Merge commit 'ad9bcb22d05fbf130ac64254abd51a137e9a3d3f' * commit 'ad9bcb22d05fbf130ac64254abd51a137e9a3d3f': Fix x coordinate of the ACTION_UP event in TouchUtils.drag() method Fixed Android animation framework, for using interpolators that do not start at 0.0f Fix for GPS engines without separate session and engine status events. Be tolerant of GPS session and engine on status messages arriving out of order. GpsLocationProvider: Do not release wakelock until the GPS engine is fully off
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/android/test/TouchUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-runner/android/test/TouchUtils.java b/test-runner/android/test/TouchUtils.java
index 962b2f9..69c6d2d 100644
--- a/test-runner/android/test/TouchUtils.java
+++ b/test-runner/android/test/TouchUtils.java
@@ -773,7 +773,7 @@ public class TouchUtils {
float xStep = (toX - fromX) / stepCount;
MotionEvent event = MotionEvent.obtain(downTime, eventTime,
- MotionEvent.ACTION_DOWN, fromX, y, 0);
+ MotionEvent.ACTION_DOWN, x, y, 0);
inst.sendPointerSync(event);
inst.waitForIdleSync();
@@ -787,7 +787,7 @@ public class TouchUtils {
}
eventTime = SystemClock.uptimeMillis();
- event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, fromX, y, 0);
+ event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0);
inst.sendPointerSync(event);
inst.waitForIdleSync();
}