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/packages/SystemUI/tests/src/com/android/systemui/pip/phone/ |
D | PipTouchStateTest.java | 51 private PipTouchState mTouchState; field in PipTouchStateTest 59 mTouchState = new PipTouchState(ViewConfiguration.get(getContext()), in setUp() 65 assertFalse(mTouchState.isDoubleTap()); in setUp() 66 assertFalse(mTouchState.isWaitingForDoubleTap()); in setUp() 73 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 74 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 76 assertFalse(mTouchState.isDoubleTap()); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 77 assertFalse(mTouchState.isWaitingForDoubleTap()); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 78 assertTrue(mTouchState.getDoubleTapTimeoutCallbackDelay() == -1); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 85 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapTimeout_timeoutCallbackCalled() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipTouchHandler.java | 177 private final PipTouchState mTouchState; field in PipTouchHandler 206 mTouchState.removeDoubleTapTimeoutCallback(); in onPipDismiss() 242 mTouchState = new PipTouchState(ViewConfiguration.get(context), mHandler, in PipTouchHandler() 355 mTouchState.setAllowTouches(enabled); in setTouchEnabled() 360 if (!mTouchState.isUserInteracting()) { in showPictureInPictureMenu() 438 mTouchState.reset(); in onMovementBoundsChanged() 477 if (mTouchState.isUserInteracting()) { in onMovementBoundsChanged() 623 if (!isRegistered && mTouchState.isUserInteracting()) { in onRegistrationChanged() 651 mTouchState.onTouchEvent(ev); in handleTouchEvent() 652 mTouchState.reset(); in handleTouchEvent() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 349 private final EditorTouchState mTouchState = new EditorTouchState(); field in Editor 1338 if (!handled && !isPositionOnText(mTouchState.getLastDownX(), mTouchState.getLastDownY()) in performLongClick() 1339 && !mTouchState.isOnHandle() && mInsertionControllerEnabled) { in performLongClick() 1340 final int offset = mTextView.getOffsetForPosition(mTouchState.getLastDownX(), in performLongClick() 1341 mTouchState.getLastDownY()); in performLongClick() 1393 return mTouchState.getLastUpX(); in getLastUpPositionX() 1397 return mTouchState.getLastUpY(); in getLastUpPositionY() 1631 mTouchState.update(event, viewConfiguration); in onTouchEvent() 5506 mTouchState.setIsOnHandle(true); in touchThrough() 5520 mTouchState.setIsOnHandle(false); in touchThrough() [all …]
|