Home
last modified time | relevance | path

Searched refs:touchSlop (Results 1 – 5 of 5) sorted by relevance

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsTouchUtils.java109 final int touchSlop = ViewConfiguration.get(anchorView.getContext()).getScaledTouchSlop(); in emulateTapOnView() local
119 injectMoveEventForTap(instrumentation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateTapOnView()
156 final int touchSlop = ViewConfiguration.get(anchorView.getContext()).getScaledTouchSlop(); in emulateDoubleTapOnView() local
165 injectMoveEventForTap(instrumentation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateDoubleTapOnView()
168 injectMoveEventForTap(instrumentation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateDoubleTapOnView()
279 final int touchSlop = ViewConfiguration.get( in emulateDragGesture() local
282 final int maxDragDurationMs = getMaxDragDuration(touchSlop, longPressTimeoutMs, coordinates, in emulateDragGesture()
301 private int getMaxDragDuration(int touchSlop, long longPressTimeoutMs, in getMaxDragDuration() argument
315 final double neededMoveEventsToExceedTouchSlop = touchSlop / moveEventDistance + 1; in getMaxDragDuration()
396 int touchSlop, int xOnScreen, int yOnScreen) { in injectMoveEventForTap() argument
[all …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DStylusHandwritingTest.java521 final int touchSlop = getTouchSlop(); in testHandwritingStylusEvents() local
524 final int endX = startX + 2 * touchSlop; in testHandwritingStylusEvents()
673 final int touchSlop = getTouchSlop(); in testHandwritingInitMultipleTimes() local
676 final int endX = startX + 2 * touchSlop; in testHandwritingInitMultipleTimes()
915 final int touchSlop = getTouchSlop(); in testHandwriting_unfocusedEditText() local
917 final int startY = 2 * touchSlop; in testHandwriting_unfocusedEditText()
921 final int endY = unfocusedEditText.getHeight() + 2 * touchSlop; in testHandwriting_unfocusedEditText()
976 final int touchSlop = getTouchSlop(); in testHandwriting_unfocusedEditText_password() local
978 final int startY = 2 * touchSlop; in testHandwriting_unfocusedEditText_password()
982 final int endY = unfocusedEditText.getHeight() + 2 * touchSlop; in testHandwriting_unfocusedEditText_password()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java129 int touchSlop = ViewConfiguration.get(mActivity).getScaledTouchSlop(); in testOnTouchEvent() local
133 while (textWidth < rootViewWidth + touchSlop) { in testOnTouchEvent()
141 assertTrue(dragAmount > touchSlop); in testOnTouchEvent()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTouchHelper.java70 final int touchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in touchAndCancelOnDisplayCenterSync() local
71 final int tapX = x + Math.round(touchSlop / 2.0f); in touchAndCancelOnDisplayCenterSync()
72 final int tapY = y + Math.round(touchSlop / 2.0f); in touchAndCancelOnDisplayCenterSync()
/cts/tests/app/src/android/app/cts/
DDialogTest.java469 final int touchSlop = ViewConfiguration.get(mActivity).getScaledWindowTouchSlop(); in testTouchEvent() local
471 final int y = dialogLocation[1] - (touchSlop + 1); in testTouchEvent()