Home
last modified time | relevance | path

Searched refs:targetScale (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DPanningScalingHandler.java122 final float targetScale = initialScale * detector.getScaleFactor(); in onScale() local
124 if (targetScale > mMaxScale && targetScale > initialScale) { in onScale()
127 } else if (targetScale < mMinScale && targetScale < initialScale) { in onScale()
134 scale = targetScale; in onScale()
DFullScreenMagnificationGestureHandler.java374 final float targetScale = initialScale * detector.getScaleFactor(); in onScale() local
379 if (targetScale > MAX_SCALE && targetScale > initialScale) { in onScale()
382 } else if (targetScale < MIN_SCALE && targetScale < initialScale) { in onScale()
389 scale = targetScale; in onScale()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DWindowMagnificationAnimationControllerTest.java151 final float targetScale = DEFAULT_SCALE + 1.0f; in enableWindowMagnification_enabling_expectedValuesAndInvokeCallback() local
157 mWindowMagnificationAnimationController.enableWindowMagnification(targetScale, in enableWindowMagnification_enabling_expectedValuesAndInvokeCallback()
171 verifyFinalSpec(targetScale, targetCenterX, targetCenterY); in enableWindowMagnification_enabling_expectedValuesAndInvokeCallback()
201 final float targetScale = DEFAULT_SCALE + 1.0f; in enableWindowMagnification_disabling_expectedValuesAndInvokeCallback() local
208 mWindowMagnificationAnimationController.enableWindowMagnification(targetScale, in enableWindowMagnification_disabling_expectedValuesAndInvokeCallback()
224 assertEquals(targetScale, mScaleCaptor.getValue(), 0f); in enableWindowMagnification_disabling_expectedValuesAndInvokeCallback()
229 verifyFinalSpec(targetScale, targetCenterX, targetCenterY); in enableWindowMagnification_disabling_expectedValuesAndInvokeCallback()
259 final float targetScale = DEFAULT_SCALE + 1.0f; in enableWindowMagnification_enabled_expectedValuesAndInvokeCallback() local
265 mWindowMagnificationAnimationController.enableWindowMagnification(targetScale, in enableWindowMagnification_enabled_expectedValuesAndInvokeCallback()
279 verifyFinalSpec(targetScale, targetCenterX, targetCenterY); in enableWindowMagnification_enabled_expectedValuesAndInvokeCallback()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBadgedImageView.java197 final float targetScale = shouldDrawDot() ? 1f : 0f; in updateDotVisibility() local
200 animateDotScale(targetScale, null /* after */); in updateDotVisibility()
202 mDotScale = targetScale; in updateDotVisibility()
203 mAnimatingToDotScale = targetScale; in updateDotVisibility()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java278 float targetScale; in scale() local
283 targetScale = mMinScale; in scale()
284 float relativeScale = targetScale / currentScale; in scale()
291 targetScale = currentScale * DOUBLE_TAP_SCALE_FACTOR; in scale()
293 targetScale = Math.max(mMinScale, targetScale); in scale()
294 targetScale = Math.min(mMaxScale, targetScale); in scale()
295 float relativeScale = targetScale / currentScale; in scale()
313 mScaleRunnable.start(currentScale, targetScale, centerX, centerY); in scale()
1184 public boolean start(float startScale, float targetScale, float centerX, float centerY) { in start() argument
1193 mTargetScale = targetScale; in start()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DFullScreenMagnificationControllerTest.java385 final float targetScale = 2.0f;
387 targetScale, center.x, center.y, false, SERVICE_ID_1));
391 targetScale, center.x, center.y, mAnimationCallback, SERVICE_ID_1));