Searched refs:mTouchState (Results 1 – 5 of 5) 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 | 128 private final PipTouchState mTouchState; field in PipTouchHandler 157 mTouchState.removeDoubleTapTimeoutCallback(); in onPipDismiss() 197 mTouchState = new PipTouchState(ViewConfiguration.get(context), in PipTouchHandler() 215 mMotionHelper, mTouchState, pipTaskOrganizer, mPipDismissTargetHandler, in PipTouchHandler() 296 mTouchState.setAllowTouches(enabled); in setTouchEnabled() 301 if (!mTouchState.isUserInteracting()) { in showPictureInPictureMenu() 394 mTouchState.reset(); in onMovementBoundsChanged() 487 if (!isRegistered && mTouchState.isUserInteracting()) { in onRegistrationChanged() 510 if (!mTouchState.getAllowInputEvents()) { in handleTouchEvent() 518 mTouchState.onTouchEvent(ev); in handleTouchEvent() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PipTouchHandler.java | 131 private final PipTouchState mTouchState; field in PipTouchHandler 161 mTouchState.removeDoubleTapTimeoutCallback(); in onPipDismiss() 207 mTouchState = new PipTouchState(ViewConfiguration.get(context), in PipTouchHandler() 224 pipBoundsState, mTouchState, mPipScheduler, mPipTransitionState, in PipTouchHandler() 305 mTouchState.setAllowTouches(enabled); in setTouchEnabled() 310 if (!mTouchState.isUserInteracting()) { in showPictureInPictureMenu() 403 mTouchState.reset(); in onMovementBoundsChanged() 493 if (!isRegistered && mTouchState.isUserInteracting()) { in onRegistrationChanged() 516 if (!mTouchState.getAllowInputEvents()) { in handleTouchEvent() 524 mTouchState.onTouchEvent(ev); in handleTouchEvent() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 404 private final EditorTouchState mTouchState = new EditorTouchState(); field in Editor 1494 if (!handled && !isPositionOnText(mTouchState.getLastDownX(), mTouchState.getLastDownY()) in performLongClick() 1495 && !mTouchState.isOnHandle() && mInsertionControllerEnabled) { in performLongClick() 1496 final int offset = mTextView.getOffsetForPosition(mTouchState.getLastDownX(), in performLongClick() 1497 mTouchState.getLastDownY()); in performLongClick() 1549 return mTouchState.getLastUpX(); in getLastUpPositionX() 1553 return mTouchState.getLastUpY(); in getLastUpPositionY() 1787 mTouchState.update(event, viewConfiguration); in onTouchEvent() 5933 mTouchState.setIsOnHandle(true); in touchThrough() 5947 mTouchState.setIsOnHandle(false); in touchThrough() [all …]
|