Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/pip/phone/
DPipTouchStateTest.java49 private PipTouchState mTouchState; field in PipTouchStateTest
55 mTouchState = new PipTouchState(ViewConfiguration.get(getContext()), in setUp()
59 assertFalse(mTouchState.isDoubleTap()); in setUp()
60 assertFalse(mTouchState.isWaitingForDoubleTap()); in setUp()
67 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting()
68 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting()
70 assertFalse(mTouchState.isDoubleTap()); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting()
71 assertFalse(mTouchState.isWaitingForDoubleTap()); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting()
72 assertTrue(mTouchState.getDoubleTapTimeoutCallbackDelay() == -1); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting()
79 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapTimeout_timeoutCallbackCalled()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchHandler.java131 private final PipTouchState mTouchState; field in PipTouchHandler
194 mTouchState = new PipTouchState(mViewConfig, mHandler, in PipTouchHandler()
210 mTouchState.setAllowTouches(enabled); in setTouchEnabled()
215 if (!mTouchState.isUserInteracting()) { in showPictureInPictureMenu()
283 if (mTouchState.isUserInteracting()) { in onMovementBoundsChanged()
355 if (!isRegistered && mTouchState.isUserInteracting()) { in onRegistrationChanged()
374 mTouchState.onTouchEvent(ev); in handleTouchEvent()
381 gesture.onDown(mTouchState); in handleTouchEvent()
387 if (gesture.onMove(mTouchState)) { in handleTouchEvent()
399 if (gesture.onUp(mTouchState)) { in handleTouchEvent()
[all …]
DPipMenuActivity.java131 private PipTouchState mTouchState; field in PipMenuActivity
188 mTouchState = new PipTouchState(mViewConfig, mHandler, () -> { in onCreate()
207 mTouchState.onTouchEvent(event); in onCreate()
210 if (mTouchState.isDoubleTap() || mMenuState == MENU_STATE_FULL) { in onCreate()
213 } else if (!mTouchState.isWaitingForDoubleTap()) { in onCreate()
223 mTouchState.scheduleDoubleTapTimeoutCallback(); in onCreate()