Searched refs:mTouchState (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | EditorTouchStateTest.java | 43 private EditorTouchState mTouchState; field in EditorTouchStateTest 48 mTouchState = new EditorTouchState(); in before() 65 mTouchState.update(event1, mConfig); in testUpdate_singleTap() 66 assertSingleTap(mTouchState, 20f, 30f, 0, 0); in testUpdate_singleTap() 71 mTouchState.update(event2, mConfig); in testUpdate_singleTap() 72 assertSingleTap(mTouchState, 20f, 30f, 20f, 30f); in testUpdate_singleTap() 77 mTouchState.update(event3, mConfig); in testUpdate_singleTap() 78 assertSingleTap(mTouchState, 22f, 33f, 20f, 30f); in testUpdate_singleTap() 86 mTouchState.update(event1, mConfig); in testUpdate_doubleTap_sameArea() 87 assertSingleTap(mTouchState, 20f, 30f, 0, 0); in testUpdate_doubleTap_sameArea() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
D | PipTouchStateTest.java | 47 private PipTouchState mTouchState; field in PipTouchStateTest 57 mTouchState = new PipTouchState(ViewConfiguration.get(getContext()), in setUp() 61 assertFalse(mTouchState.isDoubleTap()); in setUp() 62 assertFalse(mTouchState.isWaitingForDoubleTap()); in setUp() 69 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 70 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 72 assertFalse(mTouchState.isDoubleTap()); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 73 assertFalse(mTouchState.isWaitingForDoubleTap()); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 74 assertTrue(mTouchState.getDoubleTapTimeoutCallbackDelay() == -1); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 81 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapTimeout_timeoutCallbackCalled() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipTouchHandler.java | 120 private final PipTouchState mTouchState; field in PipTouchHandler 150 mTouchState.removeDoubleTapTimeoutCallback(); in onPipDismiss() 191 mTouchState = new PipTouchState(ViewConfiguration.get(context), in PipTouchHandler() 268 mTouchState.setAllowTouches(enabled); in setTouchEnabled() 273 if (!mTouchState.isUserInteracting()) { in showPictureInPictureMenu() 372 mTouchState.reset(); in onMovementBoundsChanged() 417 if (mTouchState.isUserInteracting()) { in onMovementBoundsChanged() 511 if (!isRegistered && mTouchState.isUserInteracting()) { in onRegistrationChanged() 537 mTouchState.onTouchEvent(ev); in handleTouchEvent() 538 mTouchState.reset(); in handleTouchEvent() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 379 private final EditorTouchState mTouchState = new EditorTouchState(); field in Editor 1411 if (!handled && !isPositionOnText(mTouchState.getLastDownX(), mTouchState.getLastDownY()) in performLongClick() 1412 && !mTouchState.isOnHandle() && mInsertionControllerEnabled) { in performLongClick() 1413 final int offset = mTextView.getOffsetForPosition(mTouchState.getLastDownX(), 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() [all …]
|