/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
BaseKeyboardShortcutsTestCase.java | 51 final long downTime = SystemClock.uptimeMillis(); 52 final KeyEvent downEvent = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, 57 final KeyEvent upEvent = new KeyEvent(downTime, downTime + 500, KeyEvent.ACTION_UP,
|
/external/droiddriver/src/io/appium/droiddriver/actions/ |
ClickAction.java | 58 long downTime = Events.touchDown(injector, elementRect.centerX(), elementRect.centerY()); 61 Events.touchUp(injector, downTime, elementRect.centerX(), elementRect.centerY()); 74 long downTime = Events.touchDown(injector, elementRect.centerX(), elementRect.centerY()); 78 Events.touchUp(injector, downTime, elementRect.centerX(), elementRect.centerY());
|
SingleKeyAction.java | 73 final long downTime = Events.keyDown(injector, keyCode, metaState); 74 Events.keyUp(injector, downTime, keyCode, metaState);
|
SwipeAction.java | 193 long downTime = Events.touchDown(injector, startX, startY); 199 Events.touchMove(injector, downTime, startX + (int) (xStep * i), startY + (int) (yStep * i)); 206 Events.touchUp(injector, downTime, endX, endY);
|
/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...] |
/development/ndk/sources/android/ndk_helper/ |
gestureDetector.cpp | 65 int64_t downTime = AMotionEvent_getDownTime( motion_event ); 66 if( eventTime - downTime <= TAP_TIMEOUT )
|
/external/droiddriver/src/io/appium/droiddriver/util/ |
Events.java | 40 long downTime = SystemClock.uptimeMillis(); 41 MotionEvent event = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_DOWN, x, y, 1); 53 private static MotionEvent newTouchUpEvent(long downTime, int x, int y) { 55 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 1); 66 private static MotionEvent newTouchMoveEvent(long downTime, int x, int y) { 68 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 1); 76 private static KeyEvent newKeyEvent(long downTime, long eventTime, int action, int keyCode, 78 KeyEvent event = new KeyEvent(downTime, eventTime, action, keyCode, 0 /* repeat */, metaState); 110 long downTime = downEvent.getDownTime() [all...] |
/cts/libs/deviceutil/src/android/cts/util/ |
KeyEventUtil.java | 163 long downTime = event.getDownTime(); 179 if (downTime == 0) { 180 downTime = eventTime; 183 final KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount,
|
/cts/tests/tests/text/src/android/text/method/cts/ |
TouchTest.java | 138 long downTime = SystemClock.uptimeMillis(); 140 final MotionEvent event1 = MotionEvent.obtain(downTime, eventTime, 142 final MotionEvent event2 = MotionEvent.obtain(downTime, eventTime, 144 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,
|
PopupMenuTest.java | 205 long downTime = SystemClock.uptimeMillis(); 207 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedTapX, emulatedTapY, 1);
|
/external/robolectric/v1/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 | 88 jlong downTime = env->GetLongField(eventObj, gKeyEventClassInfo.mDownTime); 92 milliseconds_to_nanoseconds(downTime),
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
TouchUtils.java | 43 long downTime = SystemClock.uptimeMillis(); 46 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 53 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 59 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); 74 long downTime = SystemClock.uptimeMillis(); 77 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 84 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, 101 long downTime = SystemClock.uptimeMillis(); 104 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 111 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
MotionEventHelper.java | 47 long downTime = e.getDownTime(); 75 MotionEvent n = MotionEvent.obtain(downTime, eventTime, action,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
NonDistinctMultitouchHelper.java | 51 final long downTime = me.getDownTime(); 60 injectMotionEvent(action, me.getX(index), me.getY(index), downTime, eventTime, 74 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime, 89 injectMotionEvent(MotionEvent.ACTION_DOWN, x, y, downTime, eventTime, 93 injectMotionEvent(MotionEvent.ACTION_UP, x, y, downTime, eventTime, 105 final long downTime, final long eventTime, final PointerTracker tracker, 108 downTime, eventTime, action, x, y, 0 /* metaState */);
|
/cts/tests/tests/view/src/android/view/cts/ |
ViewGroupOverlayTest.java | 276 long downTime = SystemClock.uptimeMillis(); 278 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedTapX, emulatedTapY, 1);
|
/frameworks/base/test-runner/src/android/test/ |
TouchUtils.java | 258 long downTime = SystemClock.uptimeMillis(); 261 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 268 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 274 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); 298 long downTime = SystemClock.uptimeMillis(); 301 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 308 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, 333 long downTime = SystemClock.uptimeMillis(); 336 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 344 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE [all...] |
/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()); 145 const nsecs_t downTime = 3; 169 downTime, eventTime, pointerCount, 196 EXPECT_EQ(downTime, motionEvent->getDownTime());
|
/frameworks/native/services/inputflinger/ |
InputListener.h | 64 nsecs_t downTime; 70 int32_t metaState, nsecs_t downTime); 98 nsecs_t downTime; 107 float xPrecision, float yPrecision, nsecs_t downTime);
|
/packages/services/Car/service/src/com/android/car/ |
CarInputService.java | 161 long downTime; 165 downTime = mLastVoiceKeyDownTime; 170 long duration = SystemClock.elapsedRealtime() - downTime;
|
/frameworks/native/include/input/ |
InputTransport.h | 74 nsecs_t downTime __attribute__((aligned(8))); 92 nsecs_t downTime __attribute__((aligned(8))); 220 nsecs_t downTime, 245 nsecs_t downTime,
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
ListPopupWindowTest.java | 202 long downTime = SystemClock.uptimeMillis(); 204 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedTapX, emulatedTapY, 1); 312 long downTime = SystemClock.uptimeMillis(); 314 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedX, emulatedStartY, 1);
|
/frameworks/base/core/java/android/accessibilityservice/ |
GestureDescription.java | 558 long downTime = motionEvents.get(motionEvents.size() - 1).getDownTime(); 559 motionEvents.add(obtainMotionEvent(downTime, currentTime, MotionEvent.ACTION_MOVE, 575 long downTime = motionEvents.get(motionEvents.size() - 1).getDownTime(); 579 motionEvents.add(obtainMotionEvent(downTime, currentTime, action, 601 long downTime = (action == MotionEvent.ACTION_DOWN) ? currentTime : 604 motionEvents.add(obtainMotionEvent(downTime, currentTime, action, 611 private static MotionEvent obtainMotionEvent(long downTime, long eventTime, int action, 624 return MotionEvent.obtain(downTime, eventTime, action, touchPointsSize,
|