/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | MagnificationGestureDetectorTest.java | 82 final long downTime = SystemClock.uptimeMillis(); in onActionDown_invokeDownCallback() local 83 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in onActionDown_invokeDownCallback() 93 final long downTime = SystemClock.uptimeMillis(); in performSingleTap_invokeCallbacksInOrder() local 94 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTap_invokeCallbacksInOrder() 96 final MotionEvent upEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTap_invokeCallbacksInOrder() 111 final long downTime = SystemClock.uptimeMillis(); in performSingleTapWithActionCancel_notInvokeOnSingleTapCallback() local 112 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTapWithActionCancel_notInvokeOnSingleTapCallback() 114 final MotionEvent cancelEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTapWithActionCancel_notInvokeOnSingleTapCallback() 125 final long downTime = SystemClock.uptimeMillis(); in performSingleTapWithTwoPointers_notInvokeSingleTapCallback() local 126 final MotionEvent downEvent = mMotionEventHelper.obtainMotionEvent(downTime, downTime, in performSingleTapWithTwoPointers_notInvokeSingleTapCallback() [all …]
|
D | MagnificationModeSwitchTest.java | 275 final long downTime = SystemClock.uptimeMillis(); in onDraggingGestureFinish_buttonIsShowing_stickToRightEdge() local 277 downTime, 0, ACTION_DOWN, 100, 100)); in onDraggingGestureFinish_buttonIsShowing_stickToRightEdge() 279 obtainMotionEvent(downTime, downTime, ACTION_MOVE, windowHalfWidth - offset, 100)); in onDraggingGestureFinish_buttonIsShowing_stickToRightEdge() 282 downTime, downTime, ACTION_UP, windowHalfWidth - offset, 100)); in onDraggingGestureFinish_buttonIsShowing_stickToRightEdge() 293 final long downTime = SystemClock.uptimeMillis(); in performSingleTap_fullscreenMode_callbackTriggered() local 295 obtainMotionEvent(downTime, 0, ACTION_DOWN, 100, 100)); in performSingleTap_fullscreenMode_callbackTriggered() 298 obtainMotionEvent(downTime, downTime, ACTION_UP, 100, 100)); in performSingleTap_fullscreenMode_callbackTriggered() 308 final long downTime = SystemClock.uptimeMillis(); in sendDownEvent_fullscreenMode_fadeOutAnimationIsNull() local 310 obtainMotionEvent(downTime, 0, ACTION_DOWN, 100, 100)); in sendDownEvent_fullscreenMode_fadeOutAnimationIsNull() 321 final long downTime = SystemClock.uptimeMillis(); in sendDownEvent_fullscreenModeAndFadingOut_cancelAnimation() local [all …]
|
D | MotionEventHelper.java | 39 public MotionEvent obtainMotionEvent(long downTime, long eventTime, int action, float x, in obtainMotionEvent() argument 41 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in obtainMotionEvent()
|
/frameworks/native/services/inputflinger/tests/ |
D | UnwantedInteractionBlocker_test.cpp | 69 static NotifyMotionArgs generateMotionArgs(nsecs_t downTime, nsecs_t eventTime, int32_t action, in generateMotionArgs() argument 98 AMOTION_EVENT_INVALID_CURSOR_POSITION, downTime, /* videoFrames */ {}); in generateMotionArgs() 723 constexpr nsecs_t downTime = 0; in TEST_F() local 725 generateMotionArgs(downTime, /*eventTime=*/2, MOVE, {{1406.0, 650.0, 52.0}}); in TEST_F() 735 const nsecs_t downTime = toNs(0ms); in TEST_F() local 738 generateMotionArgs(downTime, downTime, DOWN, {{1342.0, 613.0, 79.0}})); in TEST_F() 740 generateMotionArgs(downTime, toNs(8ms), MOVE, {{1406.0, 650.0, 52.0}})); in TEST_F() 742 generateMotionArgs(downTime, toNs(16ms), MOVE, {{1429.0, 672.0, 46.0}})); in TEST_F() 744 generateMotionArgs(downTime, toNs(24ms), MOVE, {{1417.0, 685.0, 41.0}})); in TEST_F() 746 generateMotionArgs(downTime, toNs(32ms), POINTER_1_DOWN, in TEST_F() [all …]
|
D | NotifyArgs_test.cpp | 34 nsecs_t downTime = systemTime(); in TEST() local 35 nsecs_t eventTime = downTime++; in TEST() 36 nsecs_t readTime = downTime++; in TEST() 76 xPrecision, yPrecision, xCursorPosition, yCursorPosition, downTime, in TEST()
|
D | InputProcessorConverter_test.cpp | 40 static constexpr nsecs_t downTime = 2; in generateBasicMotionArgs() local 41 NotifyMotionArgs motionArgs(/*sequenceNum=*/1, /*eventTime=*/downTime, /*readTime=*/2, in generateBasicMotionArgs() 48 AMOTION_EVENT_INVALID_CURSOR_POSITION, downTime, in generateBasicMotionArgs()
|
D | TestInputListenerMatchers.h | 215 MATCHER_P(WithDownTime, downTime, "InputEvent with specified downTime") { 216 *result_listener << "expected down time " << downTime << ", but got " << arg.downTime; 217 return arg.downTime == downTime;
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/ |
D | GestureHelper.java | 110 long downTime = SystemClock.uptimeMillis(); in dragWithoutRelease() local 112 if (!primaryPointerDown(ptrProp, ptrCoord, downTime)) { in dragWithoutRelease() 119 mPrimaryPtrDownTime = downTime; in dragWithoutRelease() 121 return movePointers(ptrProps, ptrCoords, new Tuple[] { endPoint }, downTime, steps); in dragWithoutRelease() 163 long downTime = SystemClock.uptimeMillis(); in pinch() local 165 if (!primaryPointerDown(ptrProp1, ptrCoord1, downTime)) { in pinch() 169 if (!nonPrimaryPointerDown(ptrProps, ptrCoords, downTime, 1)) { in pinch() 174 downTime, steps)) { in pinch() 178 if (!nonPrimaryPointerUp(ptrProps, ptrCoords, downTime, 1)) { in pinch() 182 return primaryPointerUp(ptrProp1, ptrCoord1, downTime); in pinch() [all …]
|
/frameworks/base/services/tests/servicestests/res/raw/ |
D | a11y_three_finger_swipe_down_gesture.log | 2 …s=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=5273700, downTime=5273700, deviceId… 3 …s=0x0, edgeFlags=0x0, pointerCount=2, historySize=0, eventTime=5273700, downTime=5273700, deviceId… 4 …s=0x0, edgeFlags=0x0, pointerCount=2, historySize=0, eventTime=5273709, downTime=5273700, deviceId… 5 …s=0x0, edgeFlags=0x0, pointerCount=3, historySize=0, eventTime=5273709, downTime=5273700, deviceId… 6 …s=0x0, edgeFlags=0x0, pointerCount=3, historySize=0, eventTime=5273715, downTime=5273700, deviceId… 7 …s=0x0, edgeFlags=0x0, pointerCount=3, historySize=0, eventTime=5273725, downTime=5273700, deviceId… 8 …s=0x0, edgeFlags=0x0, pointerCount=3, historySize=0, eventTime=5273734, downTime=5273700, deviceId… 9 …s=0x0, edgeFlags=0x0, pointerCount=3, historySize=0, eventTime=5273741, downTime=5273700, deviceId… 10 …s=0x0, edgeFlags=0x0, pointerCount=3, historySize=0, eventTime=5273750, downTime=5273700, deviceId… 11 …s=0x0, edgeFlags=0x0, pointerCount=3, historySize=0, eventTime=5273758, downTime=5273700, deviceId… [all …]
|
D | a11y_touch_explore_gesture.log | 2 …s=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=5258108, downTime=5258108, deviceId… 3 …s=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=5258133, downTime=5258108, deviceId… 4 …s=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=5258141, downTime=5258108, deviceId…
|
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | ShortcutKeyTestBase.java | 96 final long downTime = SystemClock.uptimeMillis(); in sendKeyCombination() local 102 final KeyEvent event = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, in sendKeyCombination() 124 final KeyEvent upEvent = new KeyEvent(downTime, eventTime, KeyEvent.ACTION_UP, keyCode, in sendKeyCombination() 137 final long downTime = SystemClock.uptimeMillis(); in sendKey() local 138 final KeyEvent event = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, in sendKey() 145 final long nextDownTime = downTime + ViewConfiguration.getLongPressTimeout(); in sendKey() 146 final KeyEvent nextDownevent = new KeyEvent(downTime, nextDownTime, in sendKey() 156 final KeyEvent upEvent = new KeyEvent(downTime, eventTime, KeyEvent.ACTION_UP, keyCode, in sendKey()
|
D | SingleKeyGestureTests.java | 102 public void onPress(long downTime) { in initSingleKeyGestureRules() 110 void onLongPress(long downTime) { in initSingleKeyGestureRules() 118 void onVeryLongPress(long downTime) { in initSingleKeyGestureRules() 123 void onMultiPress(long downTime, int count) { in initSingleKeyGestureRules() 143 public void onPress(long downTime) { in initSingleKeyGestureRules() 151 void onMultiPress(long downTime, int count) { in initSingleKeyGestureRules() 161 void onLongPress(long downTime) { in initSingleKeyGestureRules() 306 void onPress(long downTime) { in testAddRemove()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 276 long downTime = SystemClock.uptimeMillis(); in tapView() local 279 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in tapView() 286 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in tapView() 292 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in tapView() 316 long downTime = SystemClock.uptimeMillis(); in touchAndCancelView() local 319 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in touchAndCancelView() 326 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, in touchAndCancelView() 351 long downTime = SystemClock.uptimeMillis(); in clickView() local 354 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in clickView() 362 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in clickView() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/ |
D | NoteTaskInitializerTest.kt | 95 downTime: Long = 0L, in createUnderTest() 98 ): KeyEvent = KeyEvent(downTime, eventTime, action, code, 0 /*repeat*/, metaState) in createUnderTest() 228 createKeyEvent(ACTION_DOWN, KEYCODE_STYLUS_BUTTON_TAIL, downTime = 0, eventTime = 0) in tailButtonGestureDetection_singlePress_shouldShowNoteTaskOnUp() 233 createKeyEvent(ACTION_UP, KEYCODE_STYLUS_BUTTON_TAIL, downTime = 0, eventTime = 50) in tailButtonGestureDetection_singlePress_shouldShowNoteTaskOnUp() 246 createKeyEvent(ACTION_DOWN, KEYCODE_STYLUS_BUTTON_TAIL, downTime = 0, eventTime = 0) in tailButtonGestureDetection_doublePress_shouldNotShowNoteTaskTwice() 249 createKeyEvent(ACTION_UP, KEYCODE_STYLUS_BUTTON_TAIL, downTime = 0, eventTime = 50) in tailButtonGestureDetection_doublePress_shouldNotShowNoteTaskTwice() 252 createKeyEvent(ACTION_DOWN, KEYCODE_STYLUS_BUTTON_TAIL, downTime = 99, eventTime = 99) in tailButtonGestureDetection_doublePress_shouldNotShowNoteTaskTwice() 255 createKeyEvent(ACTION_UP, KEYCODE_STYLUS_BUTTON_TAIL, downTime = 99, eventTime = 150) in tailButtonGestureDetection_doublePress_shouldNotShowNoteTaskTwice() 268 createKeyEvent(ACTION_DOWN, KEYCODE_STYLUS_BUTTON_TAIL, downTime = 0, eventTime = 0) in tailButtonGestureDetection_longPress_shouldNotShowNoteTask() 271 createKeyEvent(ACTION_UP, KEYCODE_STYLUS_BUTTON_TAIL, downTime = 0, eventTime = 1000) in tailButtonGestureDetection_longPress_shouldNotShowNoteTask()
|
/frameworks/native/services/inputflinger/include/ |
D | NotifyArgsBuilders.h | 45 MotionArgsBuilder& downTime(nsecs_t downTime) { in downTime() argument 46 mDownTime = downTime; in downTime() 176 KeyArgsBuilder& downTime(nsecs_t downTime) { in downTime() function 177 mDownTime = downTime; in downTime()
|
/frameworks/native/services/inputflinger/ |
D | NotifyArgs.cpp | 48 int32_t metaState, nsecs_t downTime) in NotifyKeyArgs() argument 60 downTime(downTime), in NotifyKeyArgs() 71 float xCursorPosition, float yCursorPosition, nsecs_t downTime, in NotifyMotionArgs() argument 90 downTime(downTime), in NotifyMotionArgs() 114 downTime == rhs.downTime && videoFrames == rhs.videoFrames; in operator ==()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MotionEventInjectorTest.java | 434 long downTime = events.get(0).getDownTime(); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() local 436 hasEventTime(downTime))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 437 assertThat(events, everyItem(hasDownTime(downTime))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 439 hasEventTime(downTime + CONTINUED_LINE_INTERVAL))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 474 long downTime = events.get(0).getDownTime(); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() local 477 IS_ACTION_DOWN, hasEventTime(downTime))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() 478 assertThat(events, everyItem(hasDownTime(downTime))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() 480 IS_ACTION_POINTER_DOWN, hasEventTime(downTime))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() 482 IS_ACTION_MOVE, hasEventTime(downTime + CONTINUED_LINE_INTERVAL))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() 484 IS_ACTION_MOVE, hasEventTime(downTime + CONTINUED_LINE_INTERVAL * 2))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | EditorCursorDragTest.java | 654 long downTime = sTicker.addAndGet(10_000); in tapAtPoint() local 655 dispatchTouchEvent(tv, downEvent(tv, downTime, downTime, x, y)); in tapAtPoint() 656 dispatchTouchEvent(tv, upEvent(tv, downTime, downTime + 1, x, y)); in tapAtPoint() 665 long downTime = sTicker.addAndGet(10_000); in dragDownUntilLineChange() local 666 long eventTime = downTime; in dragDownUntilLineChange() 668 dispatchTouchEvent(view, downEvent(view, downTime, eventTime++, startX, startY)); in dragDownUntilLineChange() 669 dispatchTouchEvent(view, moveEvent(view, downTime, eventTime++, startX + 50, startY)); in dragDownUntilLineChange() 670 dispatchTouchEvent(view, moveEvent(view, downTime, eventTime++, startX, startY)); in dragDownUntilLineChange() 673 MotionEvent ev = moveEvent(view, downTime, eventTime++, startX, startY + i * 5); in dragDownUntilLineChange() 683 dispatchTouchEvent(view, upEvent(view, downTime, eventTime, startX, startY)); in dragDownUntilLineChange() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/ |
D | SplitScreenUtils.kt | 199 val downTime = SystemClock.uptimeMillis() in <lambda>() constant 201 touch(instrumentation, MotionEvent.ACTION_DOWN, downTime, downTime, TIMEOUT_MS, dragStart) in <lambda>() 205 downTime, in <lambda>() 213 downTime, in <lambda>() 224 downTime, in <lambda>() 235 downTime: Long, in <lambda>() 241 MotionEvent.obtain(downTime, eventTime, action, point.x.toFloat(), point.y.toFloat(), 0) in <lambda>() 250 downTime: Long, in <lambda>() 266 downTime, in <lambda>()
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | InputClassifierFuzzer.cpp | 38 const nsecs_t downTime = 2; in generateFuzzedMotionArgs() local 39 const nsecs_t readTime = downTime + fdp.ConsumeIntegralInRange<nsecs_t>(0, 1E8); in generateFuzzedMotionArgs() 41 /*eventTime=*/downTime, readTime, in generateFuzzedMotionArgs() 54 AMOTION_EVENT_INVALID_CURSOR_POSITION, downTime, in generateFuzzedMotionArgs()
|
/frameworks/base/tests/Input/src/com/android/test/input/ |
D | PointerEventDispatcherTest.kt | 78 val downTime = 0L in testSendMotionToCrashingListenerDoesNotCrash() constant 79 val motionEvent = MotionEvent.obtain(downTime, downTime, in testSendMotionToCrashingListenerDoesNotCrash()
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | Entry.cpp | 37 entry.downTime, in verifiedKeyEventFromKeyEntry() 55 entry.downTime, in verifiedMotionEventFromMotionEntry() 157 nsecs_t downTime) in KeyEntry() argument 168 downTime(downTime), in KeyEntry() 217 float xCursorPosition, float yCursorPosition, nsecs_t downTime, in MotionEntry() argument 235 downTime(downTime), in MotionEntry()
|
/frameworks/base/core/java/android/view/ |
D | KeyEvent.java | 1502 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1504 this(downTime, eventTime, action, code, repeat, /* metaState= */ 0, in KeyEvent() 1523 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1525 this(downTime, eventTime, action, code, repeat, metaState, KeyCharacterMap.VIRTUAL_KEYBOARD, in KeyEvent() 1545 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1548 this(downTime, eventTime, action, code, repeat, metaState, deviceId, scancode, in KeyEvent() 1569 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1572 this(downTime, eventTime, action, code, repeat, metaState, deviceId, scancode, flags, in KeyEvent() 1594 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1597 this(downTime, eventTime, action, code, repeat, metaState, deviceId, scancode, flags, in KeyEvent() [all …]
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | KeyboardInputMapper.cpp | 216 nsecs_t downTime = when; in processKey() local 228 downTime = mKeyDowns[*keyDownIndex].downTime; in processKey() 242 keyDown.downTime = when; in processKey() 251 downTime = mKeyDowns[*keyDownIndex].downTime; in processKey() 287 downTime)); in processKey() 416 mKeyDowns[i].downTime)); in cancelAllDownKeys()
|
/frameworks/native/include/input/ |
D | InputEventBuilders.h | 76 MotionEventBuilder& downTime(nsecs_t downTime) { in downTime() argument 77 mDownTime = downTime; in downTime()
|