Home
last modified time | relevance | path

Searched refs:mScaleToRecoverAfterDraggingEnd (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationGestureHandler.java719 if (mScaleToRecoverAfterDraggingEnd >= 1.0f) { in onMotionEvent()
720 zoomToScale(mScaleToRecoverAfterDraggingEnd, event.getX(), in onMotionEvent()
726 mScaleToRecoverAfterDraggingEnd = Float.NaN; in onMotionEvent()
756 @VisibleForTesting protected float mScaleToRecoverAfterDraggingEnd = Float.NaN; field in FullScreenMagnificationGestureHandler.ViewportDraggingState
794 if (mScaleToRecoverAfterDraggingEnd >= 1.0f) { in onMotionEvent()
795 zoomToScale(mScaleToRecoverAfterDraggingEnd, event.getX(), in onMotionEvent()
801 mScaleToRecoverAfterDraggingEnd = Float.NaN; in onMotionEvent()
836 mScaleToRecoverAfterDraggingEnd = shouldRecoverAfterDraggingEnd in prepareForZoomInTemporary()
841 final float scaleToRecovery = mScaleToRecoverAfterDraggingEnd; in clearAndTransitToPanningScalingState()
843 mScaleToRecoverAfterDraggingEnd = scaleToRecovery; in clearAndTransitToPanningScalingState()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DFullScreenMagnificationGestureHandlerTest.java1458 check(Float.isNaN(mMgh.mViewportDraggingState.mScaleToRecoverAfterDraggingEnd), in assertIn()
1466 check(mMgh.mViewportDraggingState.mScaleToRecoverAfterDraggingEnd >= 1.0f, in assertIn()
1475 check(mMgh.mViewportDraggingState.mScaleToRecoverAfterDraggingEnd >= 1.0f, in assertIn()
1478 check(Float.isNaN(mMgh.mViewportDraggingState.mScaleToRecoverAfterDraggingEnd), in assertIn()