Searched refs:mTouchState (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/pip/phone/ |
D | PipTouchStateTest.java | 50 private PipTouchState mTouchState; field in PipTouchStateTest 56 mTouchState = new PipTouchState(ViewConfiguration.get(getContext()), in setUp() 60 assertFalse(mTouchState.isDoubleTap()); in setUp() 61 assertFalse(mTouchState.isWaitingForDoubleTap()); in setUp() 68 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 69 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 71 assertFalse(mTouchState.isDoubleTap()); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 72 assertFalse(mTouchState.isWaitingForDoubleTap()); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 73 assertTrue(mTouchState.getDoubleTapTimeoutCallbackDelay() == -1); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 80 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 | 135 private final PipTouchState mTouchState; field in PipTouchHandler 199 mTouchState = new PipTouchState(mViewConfig, mHandler, in PipTouchHandler() 217 mTouchState.setAllowTouches(enabled); in setTouchEnabled() 222 if (!mTouchState.isUserInteracting()) { in showPictureInPictureMenu() 296 if (mTouchState.isUserInteracting()) { in onMovementBoundsChanged() 340 if (!isRegistered && mTouchState.isUserInteracting()) { 364 mTouchState.onTouchEvent(ev); 373 gesture.onDown(mTouchState); 379 if (gesture.onMove(mTouchState)) { 384 shouldDeliverToMenu = !mTouchState.isDragging(); [all …]
|