Home
last modified time | relevance | path

Searched refs:getScaleFactor (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/util/
DMediaDataUtilsTest.kt36 val scale = MediaDataUtils.getScaleFactor(input, target) in testScaleFactor_zeroInput_returnsZero()
45 val scale = MediaDataUtils.getScaleFactor(input, target) in testScaleFactor_tooWide_scaleDown()
54 val scale = MediaDataUtils.getScaleFactor(input, target) in testScaleFactor_tooTall_scaleDown()
63 val scale = MediaDataUtils.getScaleFactor(input, target) in testScaleFactor_lessWide_scaleUp()
72 val scale = MediaDataUtils.getScaleFactor(input, target) in testScaleFactor_lessTall_scaleUp()
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarDisplayCompatConfigTest.java94 assertThat(mConfig.getScaleFactor(key, NO_SCALE)).isEqualTo(0.7f); in populate_readsDisplay()
105 assertThat(mConfig.getScaleFactor(key, NO_SCALE)).isEqualTo(0.7f); in populate_readsUserId()
118 assertThat(mConfig.getScaleFactor(key, NO_SCALE)).isEqualTo(0.7f); in populate_readsPackageName()
130 assertThat(mConfig.getScaleFactor(key, NO_SCALE)).isEqualTo(0.7f); in populate_readsAllAttributes()
DCarDisplayCompatScaleProviderUpdatableTest.java534 assertThat(mConfig.getScaleFactor(key, NO_SCALE)).isEqualTo(0.5f); in updatingSettings_updatesConfigForUser()
553 assertThat(mConfig.getScaleFactor(key, NO_SCALE)).isEqualTo(0.7f); in switchingUser_updatesConfigForUser()
561 assertThat(mConfig.getScaleFactor(key, NO_SCALE)).isEqualTo(OPT_OUT); in packageOptOut_withoutScaling()
/frameworks/base/core/tests/coretests/src/android/view/
DScaleGesture.java36 public float getScaleFactor() { in getScaleFactor() method in ScaleGesture
49 mFactor *= detector.getScaleFactor(); in onScale()
DScaleGestureDetectorTest.java55 assertEquals(initialScaleFactor, mScaleGestureActivity.getScaleFactor(), 0f); in testScaleGestureDetector()
81 assertTrue(mScaleGestureActivity.getScaleFactor() > initialScaleFactor); in testScaleGestureDetector()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DPanningScalingHandler.java119 mInitialScaleFactor = detector.getScaleFactor(); in onScale()
122 final float deltaScale = detector.getScaleFactor() - mInitialScaleFactor; in onScale()
131 final float targetScale = initialScale * detector.getScaleFactor(); in onScale()
DFullScreenMagnificationGestureHandler.java629 mInitialScaleFactor = detector.getScaleFactor(); in onScale()
632 final float deltaScale = detector.getScaleFactor() - mInitialScaleFactor; in onScale()
637 final float targetScale = initialScale * detector.getScaleFactor(); in onScale()
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/
DUdfpsUtils.java43 public float getScaleFactor(DisplayInfo displayInfo) { in getScaleFactor() method in UdfpsUtils
92 float scale = udfpsOverlayParams.getScaleFactor(); in getTouchInNativeCoordinates()
162 float scale = udfpsOverlayParams.getScaleFactor(); in onTouchOutsideOfSensorArea()
/frameworks/opt/car/services/builtInServices/src/android/content/res/
DCompatScaleWrapper.java38 public float getScaleFactor() { in getScaleFactor() method in CompatScaleWrapper
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/
DCarDisplayCompatScaleProviderUpdatableImpl.java438 float scaleFactor = mConfig.getScaleFactor(key, NO_SCALE); in updateStateOfPackageForUserLocked()
442 scaleFactor = mConfig.getScaleFactor(key, NO_SCALE); in updateStateOfPackageForUserLocked()
622 float scaleFactor = mConfig.getScaleFactor(key, NO_SCALE); in getCompatScaleForPackageAsUserLocked()
628 scaleFactor = mConfig.getScaleFactor(key, NO_SCALE); in getCompatScaleForPackageAsUserLocked()
635 scaleFactor = mConfig.getScaleFactor(key, NO_SCALE); in getCompatScaleForPackageAsUserLocked()
642 scaleFactor = mConfig.getScaleFactor(key, NO_SCALE); in getCompatScaleForPackageAsUserLocked()
DCarDisplayCompatConfig.java84 public float getScaleFactor(@NonNull Key key, float defaultValue) { in getScaleFactor() method in CarDisplayCompatConfig
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/util/
DMediaDataUtils.java99 public static float getScaleFactor(Pair<Integer, Integer> input, in getScaleFactor() method in MediaDataUtils
/frameworks/base/core/java/android/view/animation/
DRotateAnimation.java168 float scale = getScaleFactor(); in applyTransformation()
DScaleAnimation.java244 float scale = getScaleFactor(); in applyTransformation()
DAnimationSet.java404 more = a.getTransformation(currentTime, temp, getScaleFactor()) || more; in getTransformation()
DAnimation.java666 protected float getScaleFactor() { in getScaleFactor() method in Animation
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java78 float scale = detector.getScaleFactor(); in onScale()
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DCarDisplayCompatScaleProvider.java107 return wrapper == null ? null : new CompatScale(wrapper.getScaleFactor(), in getCompatScale()
/frameworks/base/core/java/android/view/
DScaleGestureDetector.java569 public float getScaleFactor() { in getScaleFactor() method in ScaleGestureDetector
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DLegacyLockIconViewControllerTest.java80 when(mAuthController.getScaleFactor()).thenReturn(5f); in testUpdatePaddingBasedOnResolutionScale()
DLegacyLockIconViewControllerBaseTest.java145 when(mAuthController.getScaleFactor()).thenReturn(1f); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthController.java602 public float getScaleFactor() { in getScaleFactor() method in AuthController
612 mScaleFactor = mUdfpsUtils.getScaleFactor(mCachedDisplayInfo); in updateSensorLocations()
1324 config.mScaleProvider = this::getScaleFactor; in buildDialog()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java182 mRenderer.scale *= detector.getScaleFactor(); in onScale()
/frameworks/base/services/core/java/com/android/server/display/
DOverlayDisplayWindow.java385 mLiveScale *= detector.getScaleFactor();
/frameworks/opt/car/services/builtInServices/api/
Dmodule-lib-current.txt7 method public float getScaleFactor();

12