Home
last modified time | relevance | path

Searched refs:scaleX (Results 1 – 25 of 68) sorted by relevance

123

/aosp14/frameworks/base/libs/hwui/jni/
H A DNinePatchPeeker.cpp75 void NinePatchPeeker::scale(float scaleX, float scaleY, int scaledWidth, int scaledHeight) { in scale() argument
82 if (!SkScalarNearlyEqual(scaleX, 1.0f)) { in scale()
83 mPatch->paddingLeft = int(mPatch->paddingLeft * scaleX + 0.5f); in scale()
84 mPatch->paddingRight = int(mPatch->paddingRight * scaleX + 0.5f); in scale()
85 scaleDivRange(mPatch->getXDivs(), mPatch->numXDivs, scaleX, scaledWidth - 1); in scale()
H A DBitmapRegionDecoder.cpp138 const float scaleX = ((float)mGainmapBRD->width()) / mMainImageBRD->width(); in calculateGainmapRegion() local
140 *inOutWidth *= scaleX; in calculateGainmapRegion()
143 return SkIRect::MakeLTRB(mainImageRegion.left() * scaleX, mainImageRegion.top() * scaleY, in calculateGainmapRegion()
144 mainImageRegion.right() * scaleX, in calculateGainmapRegion()
H A DNinePatchPeeker.h47 void scale(float scaleX, float scaleY, int scaledWidth, int scaledHeight);
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
H A DDebugRoundedCornerDelegate.kt165 val scaleX: Float,
175 scaleX,
189 val scaleX: Float = 1f,
196 if (scaleX != 1f || scaleY != 1f) {
197 canvas.scale(scaleX, scaleY)
H A DScreenDecorCommand.kt133 val scaleX: Float
154 scaleX = scaleX,
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
H A DViewStateTest.kt48 viewState.scaleX = 0.5f
70 viewState.scaleX = Float.POSITIVE_INFINITY + Float.NEGATIVE_INFINITY
72 Assert.assertEquals(viewState.scaleX, 0.5f)
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DScaledPathsActivity.java84 private void drawPath(Canvas canvas, float scaleX, float scaleY) { in drawPath() argument
86 canvas.scale(scaleX, scaleY); in drawPath()
89 canvas.translate(mPathBounds.width() * scaleX, 0.0f); in drawPath()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
H A DUserAspectRatioSettingsLayout.java150 final ObjectAnimator scaleX = in showItem() local
152 scaleX.setDuration(SCALE_ANIMATION_DURATION_MS); in showItem()
153 scaleX.setInterpolator(PATH_INTERPOLATOR); in showItem()
162 animatorSet.playTogether(fadeIn, scaleY, scaleX); in showItem()
/aosp14/frameworks/base/core/java/android/transition/
H A DChangeTransform.java415 float translationZ, float scaleX, float scaleY, float rotationX, in setTransforms() argument
420 view.setScaleX(scaleX); in setTransforms()
431 public final float scaleX; field in ChangeTransform.Transforms
441 scaleX = view.getScaleX(); in Transforms()
449 setTransforms(view, translationX, translationY, translationZ, scaleX, scaleY, in restore()
462 thatTransform.scaleX == scaleX && in equals()
H A DChangeImageTransform.java103 float scaleX = ((float) bounds.width()) / drawableWidth; in captureValues() local
106 matrix.setScale(scaleX, scaleY); in captureValues()
/aosp14/frameworks/base/libs/hwui/
H A DVectorDrawable.h391 float scaleX = 1; member
406 float getScaleX() const { return mPrimitiveFields.scaleX; } in getScaleX()
407 void setScaleX(float scaleX) { VD_SET_PRIMITIVE_FIELD_AND_NOTIFY(scaleX, scaleX); } in setScaleX() argument
418 void updateProperties(float rotate, float pivotX, float pivotY, float scaleX, float scaleY, in updateProperties() argument
423 mPrimitiveFields.scaleX = scaleX; in updateProperties()
439 scaleX, enumerator
H A DVectorDrawable.cpp359 case Property::scaleX: in getPropertyValue()
386 case Property::scaleX: in setPropertyValue()
531 float scaleX = cacheWidth / viewportWidth; in updateBitmapCache() local
533 outCanvas.scale(scaleX, scaleY); in updateBitmapCache()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
H A DAnimatableScaleMatrix.java102 public void setScaleX(float scaleX) { in setScaleX() argument
103 mScaleX = scaleX; in setScaleX()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/back/
H A DBackTransformationTest.kt36 verify(targetView).scaleX = 1f
67 verify(targetView).scaleX = 3f
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
H A DExitDesktopTaskTransitionHandler.java152 final float scaleX = (float) startBounds.width() / screenWidth; in startChangeTransition() local
157 float currentScaleX = scaleX + ((1 - scaleX) * fraction); in startChangeTransition()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
H A DKeyguardQuickAffordanceOnTouchListener.kt62 .scaleX(PRESSED_SCALE)
140 view.animate().scaleX(1f).scaleY(1f)
H A DUdfpsBackgroundViewBinder.kt47 view.scaleX = it.scale
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/qrcode/
H A DQrCamera.java346 float scaleX = 1.0f; in setTransformationMatrix() local
349 scaleY = scaleX / ratioPreview; in setTransformationMatrix()
351 scaleX = scaleY / ratioPreview; in setTransformationMatrix()
356 matrix.setScale(scaleX, scaleY); in setTransformationMatrix()
/aosp14/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
H A DAdaptiveOutlineDrawable.java128 final float scaleX = (bounds.right - bounds.left) / pathSize; in draw() local
132 canvas.scale(scaleX, scaleY); in draw()
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/back/
H A DBackTransformation.kt36 targetView.scaleX = scale
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/
H A DActivityEmbeddingAnimationSpec.java156 float scaleX = ((float) startBounds.width()) / endBounds.width(); in createChangeBoundsChangeAnimations() local
160 float startScaleX = 1.f / scaleX; in createChangeBoundsChangeAnimations()
182 final Animation endScale = new ScaleAnimation(scaleX, 1, scaleY, 1); in createChangeBoundsChangeAnimations()
/aosp14/frameworks/base/core/java/android/window/
H A DSnapshotDrawerUtils.java266 final float scaleX = (float) snapshot.getWidth() / mSnapshot.getTaskSize().x; in calculateSnapshotCrop() local
272 rect.inset((int) (insets.left * scaleX), in calculateSnapshotCrop()
274 (int) (insets.right * scaleX), in calculateSnapshotCrop()
286 final float scaleX = (float) snapshot.getWidth() / mSnapshot.getTaskSize().x; in calculateSnapshotFrame() local
291 (int) (crop.width() / scaleX + 0.5f), in calculateSnapshotFrame()
/aosp14/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
H A DTaskFragmentAnimationSpec.java153 float scaleX = ((float) startBounds.width()) / endBounds.width(); in createChangeBoundsChangeAnimations() local
157 float startScaleX = 1.f / scaleX; in createChangeBoundsChangeAnimations()
179 final Animation endScale = new ScaleAnimation(scaleX, 1, scaleY, 1); in createChangeBoundsChangeAnimations()
/aosp14/frameworks/base/libs/hwui/hwui/
H A DImageDecoder.cpp440 float scaleX = (float) targetWidth / mDecodeSize.width(); in decode() local
442 outputMatrix.preScale(scaleX, scaleY); in decode()
531 float scaleX = (float)mTargetSize.width() / width(); in extractGainmap() local
533 decoder.setTargetSize(decoder.width() * scaleX, decoder.height() * scaleY); in extractGainmap()
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
H A DGhostedViewLaunchAnimatorController.kt163 return radius * ghostedView.scaleX
173 return radius * ghostedView.scaleX
197 ghostedViewLocation[0] + (ghostedView.width * ghostedView.scaleX).roundToInt() -

123