/external/droiddriver/src/com/google/android/droiddriver/actions/ |
PressKeyAction.java | 47 final long downTime = SystemClock.uptimeMillis(); 48 KeyEvent downEvent = Events.newKeyEvent(downTime, KeyEvent.ACTION_DOWN, keyCode); 49 KeyEvent upEvent = Events.newKeyEvent(downTime, KeyEvent.ACTION_UP, keyCode);
|
ClickAction.java | 59 long downTime = Events.touchDown(injector, elementRect.centerX(), elementRect.centerY()); 62 Events.touchUp(injector, downTime, elementRect.centerX(), elementRect.centerY()); 75 long downTime = Events.touchDown(injector, elementRect.centerX(), elementRect.centerY()); 79 Events.touchUp(injector, downTime, elementRect.centerX(), elementRect.centerY());
|
SwipeAction.java | 94 long downTime = Events.touchDown(injector, startX, startY); 99 Events.touchMove(injector, downTime, startX + (int) (xStep * i), startY + (int) (yStep * i)); 106 Events.touchUp(injector, downTime, endX, endY);
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/util/ |
AwTestTouchUtils.java | 22 private static void sendAction(View view, int action, long downTime, float x, float y) { 24 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); 29 long downTime = SystemClock.uptimeMillis(); 30 sendAction(view, MotionEvent.ACTION_DOWN, downTime, x, y); 31 return downTime; 35 float toY, int stepCount, long downTime) { 43 sendAction(view, MotionEvent.ACTION_MOVE, downTime, x, y); 47 private static void dragEnd(View view, float x, float y, long downTime) { 48 sendAction(view, MotionEvent.ACTION_UP, downTime, x, y); 70 long downTime = dragStart(view, fromX, fromY) [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeyKeyEvent.java | 45 public MonkeyKeyEvent(long downTime, long eventTime, int action, 49 mDownTime = downTime; 80 public void setDownTime(long downTime) { 84 mDownTime = downTime; 125 long downTime = mDownTime; 126 if (downTime <= 0) { 127 downTime = eventTime; 129 keyEvent = new KeyEvent(downTime, eventTime, mAction, mKeyCode,
|
MonkeySourceScript.java | 284 long downTime = Long.parseLong(args[0]); 293 MonkeyKeyEvent e = new MonkeyKeyEvent(downTime, eventTime, action, code, repeat, 308 long downTime = Long.parseLong(args[0]); 328 e.setDownTime(downTime) 345 long downTime = Long.parseLong(args[0]); 377 e.setDownTime(downTime) 388 e.setDownTime(downTime) 447 long downTime = SystemClock.uptimeMillis(); 449 .setDownTime(downTime) 450 .setEventTime(downTime) [all...] |
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
LongPressDetectorTest.java | 28 private MotionEvent motionEvent(int action, long downTime, long eventTime) { 29 return MotionEvent.obtain(downTime, eventTime, action, FAKE_COORD_X, FAKE_COORD_Y, 0); 45 final long downTime = SystemClock.uptimeMillis(); 48 MotionEvent event = motionEvent(MotionEvent.ACTION_DOWN, downTime, eventTime); 55 final long downTime = SystemClock.uptimeMillis(); 58 MotionEvent event = motionEvent(MotionEvent.ACTION_DOWN, downTime, eventTime); 63 event = motionEvent(cancelActionType, downTime, eventTime + 10); 100 final long downTime = SystemClock.uptimeMillis(); 103 MotionEvent event = motionEvent(MotionEvent.ACTION_DOWN, downTime, eventTime); 109 event = motionEvent(MotionEvent.ACTION_UP, downTime, eventTime + 1000) [all...] |
ContentViewGestureHandlerTest.java | 179 private static MotionEvent motionEvent(int action, long downTime, long eventTime) { 180 return MotionEvent.obtain(downTime, eventTime, action, FAKE_COORD_X, FAKE_COORD_Y, 0); 208 final long downTime = SystemClock.uptimeMillis(); 211 MotionEvent event = motionEvent(MotionEvent.ACTION_DOWN, downTime, downTime); 217 event = motionEvent(MotionEvent.ACTION_UP, downTime, eventTime + 10); 233 final long downTime = SystemClock.uptimeMillis(); 236 MotionEvent event = motionEvent(MotionEvent.ACTION_DOWN, downTime, downTime); 246 downTime, eventTime + 5, MotionEvent.ACTION_MOVE [all...] |
/external/droiddriver/src/com/google/android/droiddriver/util/ |
Events.java | 35 long downTime = SystemClock.uptimeMillis(); 36 MotionEvent event = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_DOWN, x, y, 1); 44 public static MotionEvent newTouchUpEvent(long downTime, int x, int y) { 46 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 1); 54 public static MotionEvent newTouchMoveEvent(long downTime, int x, int y) { 56 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 1); 61 public static KeyEvent newKeyEvent(long downTime, int action, int keyCode) { 62 KeyEvent event = new KeyEvent(downTime, downTime, action, keyCode, 0 /* repeat */) [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
TouchTest.java | 131 long downTime = SystemClock.uptimeMillis(); 133 final MotionEvent event1 = MotionEvent.obtain(downTime, eventTime, 135 final MotionEvent event2 = MotionEvent.obtain(downTime, eventTime, 137 final MotionEvent event3 = MotionEvent.obtain(downTime, eventTime,
|
/cts/tests/tests/widget/src/android/widget/cts/ |
SeekBarTest.java | 65 long downTime = SystemClock.uptimeMillis(); 69 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, 78 downTime = SystemClock.uptimeMillis(); 80 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 87 downTime = SystemClock.uptimeMillis(); 89 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP,
|
PopupWindowTest.java | 679 long downTime = SystemClock.uptimeMillis(); 681 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 686 downTime = SystemClock.uptimeMillis(); 688 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); 693 downTime = SystemClock.uptimeMillis(); 695 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, x, y, 0);
|
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/ |
TestTouchUtils.java | 37 private static void sendAction(Instrumentation instrumentation, int action, long downTime, 40 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); 53 long downTime = SystemClock.uptimeMillis(); 54 sendAction(instrumentation, MotionEvent.ACTION_DOWN, downTime, x, y); 55 sendAction(instrumentation, MotionEvent.ACTION_UP, downTime, x, y); 107 long downTime = SystemClock.uptimeMillis(); 108 sendAction(instrumentation, MotionEvent.ACTION_DOWN, downTime, absoluteX, absoluteY); 110 sendAction(instrumentation, MotionEvent.ACTION_UP, downTime, absoluteX, absoluteY); 131 * @return The downTime of the triggered event. 134 long downTime = SystemClock.uptimeMillis() [all...] |
TouchCommon.java | 32 * @param downTime (in ms) 35 public void dragStart(float x, float y, long downTime) { 36 MotionEvent event = MotionEvent.obtain(downTime, downTime, 50 * @param downTime (in ms) 54 float toY, int stepCount, long downTime) { 63 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 75 * @param downTime (in ms) 78 public void dragEnd(float x, float y, long downTime) { 80 MotionEvent event = MotionEvent.obtain(downTime, eventTime [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowMotionEvent.java | 24 private long downTime; 30 public static MotionEvent obtain(long downTime, long eventTime, int action, float x, float y, int metaState) { 39 shadowMotionEvent.downTime = downTime; 99 return downTime;
|
/frameworks/base/core/jni/ |
android_view_KeyEvent.cpp | 85 jlong downTime = env->GetLongField(eventObj, gKeyEventClassInfo.mDownTime); 89 milliseconds_to_nanoseconds(downTime),
|
/frameworks/native/libs/input/tests/ |
InputPublisherAndConsumer_test.cpp | 82 const nsecs_t downTime = 3; 86 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); 111 EXPECT_EQ(downTime, keyEvent->getDownTime()); 144 const nsecs_t downTime = 3; 168 downTime, eventTime, pointerCount, 195 EXPECT_EQ(downTime, motionEvent->getDownTime());
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
MotionEventHelper.java | 48 long downTime = e.getDownTime(); 76 MotionEvent n = MotionEvent.obtain(downTime, eventTime, action,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
NonDistinctMultitouchHelper.java | 49 final long downTime = me.getDownTime(); 58 injectMotionEvent(action, me.getX(index), me.getY(index), downTime, eventTime, 72 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime, 87 injectMotionEvent(MotionEvent.ACTION_DOWN, x, y, downTime, eventTime, 91 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime, 103 final long downTime, final long eventTime, final PointerTracker tracker, 106 downTime, eventTime, action, x, y, 0 /* metaState */);
|
/frameworks/base/services/input/ |
InputListener.h | 64 nsecs_t downTime; 70 int32_t metaState, nsecs_t downTime); 97 nsecs_t downTime; 105 float xPrecision, float yPrecision, nsecs_t downTime);
|
/frameworks/base/test-runner/src/android/test/ |
TouchUtils.java | 264 long downTime = SystemClock.uptimeMillis(); 267 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 274 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 280 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); 304 long downTime = SystemClock.uptimeMillis(); 307 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 314 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, 339 long downTime = SystemClock.uptimeMillis(); 342 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 350 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE [all...] |
/frameworks/native/include/input/ |
InputTransport.h | 67 nsecs_t downTime; 84 nsecs_t downTime; 211 nsecs_t downTime, 235 nsecs_t downTime,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
AccessibilityEntityProvider.java | 215 final long downTime = SystemClock.uptimeMillis(); 217 downTime, downTime, MotionEvent.ACTION_DOWN, x, y, 0); 219 downTime, SystemClock.uptimeMillis(), MotionEvent.ACTION_UP, x, y, 0);
|
/cts/tests/tests/view/src/android/view/cts/ |
WindowTest.java | [all...] |
/frameworks/base/core/java/android/app/ |
Instrumentation.java | 873 long downTime = event.getDownTime(); [all...] |