summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2010-02-05 13:55:16 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2010-02-05 13:55:16 -0800
commitad9bcb22d05fbf130ac64254abd51a137e9a3d3f (patch)
tree51ef94ac11b8822b27b06da4669375863ece12b8 /test-runner
parent0af0449301e72a52beeed8f26021e5460004d67a (diff)
parent7d039fbe07687c9046b23b9a3735fe8f95906dde (diff)
downloadframeworks_base-ad9bcb22d05fbf130ac64254abd51a137e9a3d3f.zip
frameworks_base-ad9bcb22d05fbf130ac64254abd51a137e9a3d3f.tar.gz
frameworks_base-ad9bcb22d05fbf130ac64254abd51a137e9a3d3f.tar.bz2
merge from open-source master
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();
}