Home
last modified time | relevance | path

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

/aosp12/frameworks/base/core/tests/coretests/src/android/widget/
H A DEditorTouchStateTest.java43 private EditorTouchState mTouchState; field in EditorTouchStateTest
48 mTouchState = new EditorTouchState(); in before()
65 mTouchState.update(event1, mConfig); in testUpdate_singleTap()
71 mTouchState.update(event2, mConfig); in testUpdate_singleTap()
77 mTouchState.update(event3, mConfig); in testUpdate_singleTap()
86 mTouchState.update(event1, mConfig); in testUpdate_doubleTap_sameArea()
92 mTouchState.update(event2, mConfig); in testUpdate_doubleTap_sameArea()
98 mTouchState.update(event3, mConfig); in testUpdate_doubleTap_sameArea()
108 mTouchState.update(event1, mConfig); in testUpdate_doubleTap_notSameArea()
114 mTouchState.update(event2, mConfig); in testUpdate_doubleTap_notSameArea()
[all …]
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
H A DPipTouchStateTest.java47 private PipTouchState mTouchState; field in PipTouchStateTest
61 assertFalse(mTouchState.isDoubleTap()); in setUp()
62 assertFalse(mTouchState.isWaitingForDoubleTap()); in setUp()
72 assertFalse(mTouchState.isDoubleTap()); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting()
84 assertFalse(mTouchState.isDoubleTap()); in testDoubleTapTimeout_timeoutCallbackCalled()
85 assertTrue(mTouchState.isWaitingForDoubleTap()); in testDoubleTapTimeout_timeoutCallbackCalled()
88 mTouchState.scheduleDoubleTapTimeoutCallback(); in testDoubleTapTimeout_timeoutCallbackCalled()
101 assertTrue(mTouchState.isDragging()); in testDoubleTapDrag_doubleTapCanceled()
102 assertFalse(mTouchState.isDoubleTap()); in testDoubleTapDrag_doubleTapCanceled()
117 assertTrue(mTouchState.isDoubleTap()); in testDoubleTap_doubleTapRegistered()
[all …]
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
H A DPipTouchHandler.java118 private final PipTouchState mTouchState; field in PipTouchHandler
276 mTouchState.setAllowTouches(enabled); in setTouchEnabled()
372 mTouchState.reset(); in onMovementBoundsChanged()
537 mTouchState.onTouchEvent(ev); in handleTouchEvent()
538 mTouchState.reset(); in handleTouchEvent()
553 mTouchState.onTouchEvent(ev); in handleTouchEvent()
564 mTouchState.onTouchEvent(ev); in handleTouchEvent()
593 shouldDeliverToMenu = !mTouchState.startedDragging() && !mTouchState.isDragging(); in handleTouchEvent()
594 mTouchState.reset(); in handleTouchEvent()
878 mTouchState.reset(); in onUp()
[all …]
/aosp12/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/
H A DLeanbackKeyboardContainer.java384 private int mTouchState = TOUCH_STATE_NO_TOUCH; field in LeanbackKeyboardContainer
1062 … mMainKeyboardView.setFocus(focus.index, mTouchState == TOUCH_STATE_CLICK, overestimateWidth); in setKbFocus()
1068 prevView.setFocus(-1, mTouchState == TOUCH_STATE_CLICK); in setKbFocus()
1125 return mTouchState; in getTouchState()
1140 if (mTouchState == TOUCH_STATE_TOUCH_MOVE || mTouchState == TOUCH_STATE_CLICK) { in setTouchState()
1146 if (mTouchState == TOUCH_STATE_CLICK) { in setTouchState()
1149 } else if (mTouchState == TOUCH_STATE_TOUCH_MOVE) { in setTouchState()
1155 if (mTouchState == TOUCH_STATE_NO_TOUCH || mTouchState == TOUCH_STATE_TOUCH_SNAP) { in setTouchState()
1161 if (mTouchState == TOUCH_STATE_NO_TOUCH || mTouchState == TOUCH_STATE_TOUCH_SNAP) { in setTouchState()
1435 mTouchState = state; in setTouchStateInternal()
/aosp12/frameworks/base/core/java/android/widget/
H A DEditor.java1411 if (!handled && !isPositionOnText(mTouchState.getLastDownX(), mTouchState.getLastDownY()) in performLongClick()
1414 mTouchState.getLastDownY()); in performLongClick()
1466 return mTouchState.getLastUpX(); in getLastUpPositionX()
1470 return mTouchState.getLastUpY(); in getLastUpPositionY()
1704 mTouchState.update(event, viewConfiguration); in onTouchEvent()
5641 mTouchState.setIsOnHandle(true); in touchThrough()
5655 mTouchState.setIsOnHandle(false); in touchThrough()
6392 || mTouchState.isMultiTap() in show()
6402 && !mTouchState.isMultiTap() in show()
6571 mTouchState.getLastDownY()); in enterDrag()
[all …]