Home
last modified time | relevance | path

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

/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationGestureHandler.java560 final float persistedScale = in checkShouldDetectPassPersistedScale() local
564 (abs(currentScale - persistedScale) / persistedScale) in checkShouldDetectPassPersistedScale()
582 final float persistedScale = in setScaleAndClearIfNeeded() local
587 if (abs(scale - persistedScale) / persistedScale in setScaleAndClearIfNeeded()
589 scale = persistedScale; in setScaleAndClearIfNeeded()
1587 final float persistedScale = MathUtils.constrain( in zoomInTemporary() local
1598 final float scale = zoomInWithPersistedScale ? persistedScale : (currentScale + 1.0f); in zoomInTemporary()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DFullScreenMagnificationGestureHandlerTest.java1259 final float persistedScale = (1.0f + threshold) * scale + 1.0f; in testTransitToPanningState_scaleDifferenceOverThreshold_startDetecting() local
1261 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE, persistedScale, in testTransitToPanningState_scaleDifferenceOverThreshold_startDetecting() local
1280 final float persistedScale = (1.0f + threshold) * scale - 0.1f; in testTransitToPanningState_scaleDifferenceLessThanThreshold_doNotDetect() local
1282 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE, persistedScale, in testTransitToPanningState_scaleDifferenceLessThanThreshold_doNotDetect() local
1303 final float persistedScale = in testPanningScaleToPersistedScale_detecting_vibrateAndClear() local
1307 mMgh.mPanningScalingState.setScaleAndClearIfNeeded(persistedScale, DEFAULT_X, DEFAULT_Y); in testPanningScaleToPersistedScale_detecting_vibrateAndClear()
1318 final float persistedScale = in testPanningScaleOverThreshold_notDetecting_startDetecting() local
1321 mFullScreenMagnificationController.setScale(DISPLAY_0, persistedScale, DEFAULT_X, in testPanningScaleOverThreshold_notDetecting_startDetecting()
1328 final float scale = (1.0f + threshold) * persistedScale + 1.0f; in testPanningScaleOverThreshold_notDetecting_startDetecting()
DMagnificationConnectionManagerTest.java277 final float persistedScale = in persistScale_setValueWhenScaleIsOne_nothingChanged() local
285 CURRENT_USER_ID), persistedScale); in persistScale_setValueWhenScaleIsOne_nothingChanged() local
DFullScreenMagnificationControllerTest.java1419 final float persistedScale =
1428 persistedScale);