Searched defs:scaleX (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/base/core/jni/android/graphics/
H A DNinePatchPeeker.cpp75 void NinePatchPeeker::scale(float scaleX, float scaleY, int scaledWidth, int scaledHeight) { argument
82 if (!SkScalarNearlyEqual(scaleX, 1.0f)) {
83 mPatch->paddingLeft = int(mPatch->paddingLeft * scaleX + 0.5f);
84 mPatch->paddingRight = int(mPatch->paddingRight * scaleX + 0.5f);
85 scaleDivRange(mPatch->getXDivs(), mPatch->numXDivs, scaleX, scaledWidth - 1);
H A DImageDecoder.cpp394 float scaleX = (float) desiredWidth / decodeInfo.width(); local
396 canvas.scale(scaleX, scaleY);
H A DBitmapFactory.cpp405 const float scaleX = scaledWidth / float(decodingBitmap.width()); local
411 peeker.scale(scaleX, scaleY, scaledWidth, scaledHeight);
471 canvas.scale(scaleX, scaleY);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DScaledPathsActivity.java84 private void drawPath(Canvas canvas, float scaleX, float scaleY) { argument
86 canvas.scale(scaleX, scaleY);
89 canvas.translate(mPathBounds.width() * scaleX, 0.0f);
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DScaleFrameLayout.java55 public void setLayoutScaleX(float scaleX) { argument
56 if (scaleX != mLayoutScaleX) {
57 mLayoutScaleX = scaleX;
/frameworks/base/libs/hwui/
H A DTessellationCache.h61 float scaleX; member in struct:android::uirenderer::TessellationCache::Description
H A DTextDropShadowCache.h44 , scaleX(0)
57 , scaleX(paint->getTextScaleX())
87 float scaleX; member in struct:android::uirenderer::ShadowText
H A DVectorDrawable.cpp291 ALOGD("Group translateX, Y : %f, %f, scaleX, Y: %f, %f", mProperties.getTranslateX(),
353 case Property::scaleX:
380 case Property::scaleX:
592 float scaleX = cacheWidth / viewportWidth; local
594 outCanvas.scale(scaleX, scaleY);
H A DPathTessellator.cpp66 void PathTessellator::extractTessellationScales(const Matrix4& transform, float* scaleX, argument
69 *scaleX = 1.0f;
76 *scaleX = MathUtils::clampTessellationScale(sqrt(m00 * m00 + m01 * m01));
111 float scaleX, scaleY; local
112 PathTessellator::extractTessellationScales(transform, &scaleX, &scaleY);
113 inverseScaleX = 1.0f / scaleX;
H A DRenderProperties.h295 bool setScaleX(float scaleX) { return RP_SET_AND_DIRTY(mPrimitiveFields.mScaleX, scaleX); } argument
H A DVectorDrawable.h392 float scaleX = 1; member in struct:android::uirenderer::VectorDrawable::Group::GroupProperties::PrimitiveFields
407 float getScaleX() const { return mPrimitiveFields.scaleX; }
408 void setScaleX(float scaleX) { VD_SET_PRIMITIVE_FIELD_AND_NOTIFY(scaleX, scaleX); } argument
419 void updateProperties(float rotate, float pivotX, float pivotY, float scaleX, float scaleY, argument
424 mPrimitiveFields.scaleX = scaleX;
440 scaleX, member in class:android::uirenderer::VectorDrawable::Group::GroupProperties::Property
/frameworks/layoutlib/bridge/src/android/view/
H A DRenderNode_Delegate.java180 float scaleX = renderNode.getScaleX();
185 outMatrix.preScale(scaleX, scaleY, pivotX, pivotY);
299 /*package*/ static boolean nSetScaleX(long renderNode, float scaleX) { argument
301 if (delegate != null && delegate.mScaleX != scaleX) {
302 delegate.mScaleX = scaleX;
/frameworks/minikin/include/minikin/
H A DMinikinFont.h38 scaleX(0),
51 float scaleX; member in struct:minikin::MinikinPaint
68 return size == paint.size && scaleX == paint.scaleX && skewX == paint.skewX &&
/frameworks/native/cmds/flatland/
H A DGLHelper.cpp238 float scaleX = float(info.w) / float(w); local
240 *scale = scaleX < scaleY ? scaleX : scaleY;
/frameworks/support/compat/src/main/java/androidx/core/view/
H A DViewPropertyAnimatorCompat.java399 * This method will cause the View's <code>scaleX</code> property to be animated to the
405 public ViewPropertyAnimatorCompat scaleX(float value) { method in class:ViewPropertyAnimatorCompat
408 view.animate().scaleX(value);
414 * This method will cause the View's <code>scaleX</code> property to be animated by the
/frameworks/base/core/java/android/transition/
H A DChangeTransform.java414 float translationZ, float scaleX, float scaleY, float rotationX,
419 view.setScaleX(scaleX);
430 public final float scaleX; field in class:ChangeTransform.Transforms
440 scaleX = view.getScaleX();
448 setTransforms(view, translationX, translationY, translationZ, scaleX, scaleY,
461 thatTransform.scaleX == scaleX &&
413 setTransforms(View view, float translationX, float translationY, float translationZ, float scaleX, float scaleY, float rotationX, float rotationY, float rotationZ) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DViewState.java120 public float scaleX = 1.0f; field in class:ViewState
130 scaleX = viewState.scaleX;
141 scaleX = view.getScaleX();
178 // apply scaleX
181 updateAnimation(view, SCALE_X_PROPERTY, scaleX);
182 } else if (view.getScaleX() != scaleX) {
183 view.setScaleX(scaleX);
297 // start scaleX animation
298 if (child.getScaleX() != scaleX) {
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicResize.cpp39 float scaleX; member in class:android::renderscript::RsdCpuScriptIntrinsicResize
339 if (gArchUseSIMD && x2 > x1 && cp->scaleX < 4.0f) {
340 float xf = (x1 + 0.5f) * cp->scaleX - 0.5f;
342 uint32_t xinc16 = rint(cp->scaleX * 0x10000);
366 float xf = (x1 + 0.5f) * cp->scaleX - 0.5f;
406 if (gArchUseSIMD && x2 > x1 && cp->scaleX < 4.0f) {
407 float xf = (x1 + 0.5f) * cp->scaleX - 0.5f;
409 uint32_t xinc16 = rint(cp->scaleX * 0x10000);
433 float xf = (x1 + 0.5f) * cp->scaleX - 0.5f;
473 if (gArchUseSIMD && x2 > x1 && cp->scaleX < 4.
[all...]
/frameworks/support/transition/src/main/java/androidx/transition/
H A DChangeTransform.java440 float translationZ, float scaleX, float scaleY, float rotationX,
445 view.setScaleX(scaleX);
439 setTransforms(View view, float translationX, float translationY, float translationZ, float scaleX, float scaleY, float rotationX, float rotationY, float rotationZ) argument
/frameworks/base/core/java/android/view/
H A DViewPropertyAnimator.java676 * This method will cause the View's <code>scaleX</code> property to be animated to the
683 public ViewPropertyAnimator scaleX(float value) { method in class:ViewPropertyAnimator
689 * This method will cause the View's <code>scaleX</code> property to be animated by the
H A DRenderNode.java605 * @param scaleX The scale value of the display list
610 public boolean setScaleX(float scaleX) { argument
611 return nSetScaleX(mNativeRenderNode, scaleX);
972 private static native boolean nSetScaleX(long renderNode, float scaleX); argument
/frameworks/base/core/jni/
H A Dandroid_graphics_drawable_VectorDrawable.cpp177 jfloat pivotY, jfloat scaleX, jfloat scaleY, jfloat translateX, jfloat translateY) {
179 group->mutateStagingProperties()->updateProperties(rotate, pivotX, pivotY, scaleX, scaleY,
236 static void setScaleX(JNIEnv*, jobject, jlong groupPtr, jfloat scaleX) { argument
238 group->mutateStagingProperties()->setScaleX(scaleX);
176 updateGroupProperties(JNIEnv*, jobject, jlong groupPtr, jfloat rotate, jfloat pivotX, jfloat pivotY, jfloat scaleX, jfloat scaleY, jfloat translateX, jfloat translateY) argument
/frameworks/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java536 /*package*/ static void nSetTextScaleX(long nativePaint, float scaleX) { argument
543 if (delegate.mTextScaleX != scaleX) {
544 delegate.mTextScaleX = scaleX;
/frameworks/minikin/libs/minikin/
H A DLayout.cpp602 double scaleX = paint.scaleX; local
627 hb_font_set_ppem(hbFont.get(), size * scaleX, size);
628 hb_font_set_scale(hbFont.get(), HBFloatToFixed(size * scaleX), HBFloatToFixed(size));
655 letterSpace = paint.letterSpacing * size * scaleX;
/frameworks/support/graphics/drawable/static/src/main/java/androidx/vectordrawable/graphics/drawable/
H A DVectorDrawableCompat.java128 * <dt><code>android:scaleX</code></dt>
538 float scaleX = viewportWidth / intrinsicWidth;
540 return Math.min(scaleX, scaleY);
1163 final float scaleX = w / mViewportWidth;
1165 final float minScale = Math.min(scaleX, scaleY);
1169 mFinalPathMatrix.postScale(scaleX, scaleY);
1268 float scaleX = (float) Math.hypot(unitVectors[0], unitVectors[1]);
1272 float maxScale = Math.max(scaleX, scaleY);
1279 Log.d(LOGTAG, "Scale x " + scaleX + " y " + scaleY + " final " + matrixScale);
1382 mScaleX = TypedArrayUtils.getNamedFloat(a, parser, "scaleX",
1459 setScaleX(float scaleX) argument
[all...]

Completed in 547 milliseconds

12