Home
last modified time | relevance | path

Searched refs:mScaleGestureDetector (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DScaleGestureDetectorTest.java50 private ScaleGestureDetector mScaleGestureDetector; field in ScaleGestureDetectorTest
69 mScaleGestureDetector = mActivity.getScaleGestureDetector(); in setup()
87 assertTrue(mScaleGestureDetector.isStylusScaleEnabled()); in testAccessStylusScaleEnabled()
88 mScaleGestureDetector.setStylusScaleEnabled(true); in testAccessStylusScaleEnabled()
90 mScaleGestureDetector.setStylusScaleEnabled(false); in testAccessStylusScaleEnabled()
91 assertFalse(mScaleGestureDetector.isStylusScaleEnabled()); in testAccessStylusScaleEnabled()
97 mScaleGestureDetector = new ScaleGestureDetector(mActivity, in testGetScaleFactor_whenGestureCrossesBackInsideSlopRadius_returns1()
102 Assert.assertEquals(1.f, mScaleGestureDetector.getScaleFactor(), in testGetScaleFactor_whenGestureCrossesBackInsideSlopRadius_returns1()
131 mScaleGestureDetector.onTouchEvent(MotionEvent.obtain(0L, mFakeUptimeMs, action, x, y, 0)); in performTouch()
DScaleGestureDetectorCtsActivity.java27 private ScaleGestureDetector mScaleGestureDetector; field in ScaleGestureDetectorCtsActivity
33 mScaleGestureDetector = new ScaleGestureDetector(this, new SimpleOnScaleGestureListener(), in onCreate()
38 return mScaleGestureDetector; in getScaleGestureDetector()
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DMainActivity.java50 protected ScaleGestureDetector mScaleGestureDetector = null; field in MainActivity
138 if (mScaleGestureDetector != null) { in dispatchTouchEvent()
139 mScaleGestureDetector.onTouchEvent(event); in dispatchTouchEvent()
DPinchToZoomTestPlayerListener.java77 mActivity.mScaleGestureDetector = new ScaleGestureDetector(mActivity, in onEventsPlaybackStateChanged()