Searched refs:scale (Results 201 - 225 of 272) sorted by relevance

1234567891011

/frameworks/base/core/java/android/app/
H A DActivityManager.java1747 float scale;
1750 scale = (float) size.x / (float) th;
1751 dx = (size.y - tw * scale) * 0.5f;
1753 scale = (float) size.y / (float) tw;
1754 dy = (size.x - th * scale) * 0.5f;
1757 matrix.setScale(scale, scale);
H A DUiAutomation.java1089 float scale, float centerX, float centerY) {
/frameworks/base/core/java/android/view/
H A DMotionEvent.java561 * although it is not a linear scale. This value is of limited use.
1492 private static native void nativeScale(long nativePtr, float scale); argument
1788 * Applies a scale factor to all points within this event.
1793 * are also affected by the scale factor.
1795 * @param scale The scale factor to apply.
1798 public final void scale(float scale) { argument
1799 if (scale != 1.0f) {
1800 nativeScale(mNativePtr, scale);
[all...]
H A DWindowManagerGlobal.java189 public void onAnimatorScaleChanged(float scale) {
190 ValueAnimator.setDurationScale(scale);
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java364 * Subsequent calls to translate,scale,rotate,skew,concat or clipRect,
382 * Subsequent calls to translate,scale,rotate,skew,concat or clipRect,
562 * Preconcat the current matrix with the specified scale.
564 * @param sx The amount to scale in X
565 * @param sy The amount to scale in Y
567 public void scale(float sx, float sy) { method in class:Canvas
572 * Preconcat the current matrix with the specified scale.
574 * @param sx The amount to scale in X
575 * @param sy The amount to scale in Y
576 * @param px The x-coord for the pivot point (unchanged by the scale)
579 public final void scale(float sx, float sy, float px, float py) { method in class:Canvas
[all...]
/frameworks/av/media/libstagefright/webm/
H A DWebmElement.cpp297 sp<WebmElement> WebmElement::SegmentInfo(uint64_t scale, double dur) { argument
301 segmentInfo.push_back(new WebmUnsigned(kMkvTimecodeScale, scale));
/frameworks/base/libs/input/
H A DPointerController.cpp720 sprite->setTransformationMatrix(SpriteTransformationMatrix(scale, 0.0f, 0.0f, scale));
/frameworks/base/services/core/java/com/android/server/wallpaper/
H A DWallpaperManagerService.java361 // scale if the crop height winds up not matching the recommended metrics
368 Slog.v(TAG, "crop?=" + needCrop + " scale?=" + needScale);
383 // Fancy case: crop and scale. First, we decode and scale down if appropriate.
397 int scale = 1;
398 while (2*scale < actualScale) {
399 scale *= 2;
401 if (scale > 1) {
403 scaler.inSampleSize = scale;
405 Slog.v(TAG, "Downsampling cropped rect with scale "
[all...]
/frameworks/native/include/ui/
H A Dmat4.h145 static tmat44 scale(const tvec4<A>& s);
284 tmat44<T> tmat44<T>::scale(const tvec4<A>& s) { function in class:android::tmat44
/frameworks/native/opengl/libagl/
H A Dcontext.h403 void scale(GLfloat x, GLfloat y, GLfloat z);
463 void scale(GLfloat x, GLfloat y, GLfloat z);
H A Dmatrix.cpp323 void matrixf_t::scale(GLfloat x, GLfloat y, GLfloat z) { function in class:android::matrixf_t
431 void matrix_stack_t::scale(GLfloat x, GLfloat y, GLfloat z) function in class:android::matrix_stack_t
433 stack[depth].scale(x,y,z);
1055 c->transforms.current->scale(x, y, z);
1062 c->transforms.current->scale(
/frameworks/base/libs/hwui/tests/unit/
H A DBakedOpDispatcherTests.cpp104 expectedModelView.scale(10 + 2 * expectedOffset, 10 + 2 * expectedOffset, 1);
106 << "X and Y offsets, and scale both applied to model view";
/frameworks/base/services/core/java/com/android/server/wm/
H A DAccessibilityController.java470 mMagnificationSpec.initialize(spec.scale, spec.offsetX, spec.offsetY);
618 rect.scale(1.0f / spec.scale);
622 return mMagnificationSpec.scale > 1.0f;
H A DWindowState.java179 * the application's coordinate space (without compatibility scale applied).
204 * in the screen's coordinate space (WITH the compatibility scale applied).
210 * coordinate space (without compatibility scale applied).
219 * coordinate space (without compatibility scale applied).
227 * application's coordinate space (without compatibility scale applied).
235 * application's coordinate space (without compatibility scale applied).
908 // If there is a size compatibility scale being applied to the
911 mOverscanInsets.scale(mInvGlobalScale);
912 mContentInsets.scale(mInvGlobalScale);
913 mVisibleInsets.scale(mInvGlobalScal
[all...]
H A DWindowManagerService.java341 // Enums for animation scale update types.
1011 // Get persisted window scale setting
2635 w.mGivenContentInsets.scale(w.mGlobalScale);
2636 w.mGivenVisibleInsets.scale(w.mGlobalScale);
2637 w.mGivenTouchableRegion.scale(w.mGlobalScale);
3689 // disregarding font scale, which should remain set to
5499 static float fixScale(float scale) { argument
5500 if (scale < 0) scale = 0;
5501 else if (scale > 2
5506 setAnimationScale(int which, float scale) argument
5547 setAnimatorDurationScale(float scale) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
H A DQuad.java266 public Quad scale(float factor) { method in class:Quad
/frameworks/support/v4/java/android/support/v4/app/
H A DActionBarDrawerToggle.java553 canvas.scale(-1, 1);
/frameworks/av/media/libstagefright/
H A DMediaCodecList.cpp925 || !strcmp(attrs[i], "scale")
943 // quality: range + default + [scale]
972 AString range, scale = "linear", def, in_; local
981 if (name != "quality" && msg->findString("scale", &scale)) {
982 return limitFoundMissingAttr(name, "scale");
998 mCurrentInfo->addDetail("quality-scale", scale);
1024 } else if (msg->contains("scale")) {
1025 return limitFoundMissingAttr(name, "scale");
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_MotionEvent.cpp688 jlong nativePtr, jfloat scale) {
690 event->scale(scale);
687 android_view_MotionEvent_nativeScale(JNIEnv* env, jclass clazz, jlong nativePtr, jfloat scale) argument
/frameworks/base/libs/hwui/
H A DDisplayListCanvas.cpp157 void DisplayListCanvas::scale(float sx, float sy) { function in class:android::uirenderer::DisplayListCanvas
161 mState.scale(sx, sy);
286 // Apply the scale transform on the canvas, so that the shader
291 scale(scaleX, scaleY);
H A DSkiaCanvas.cpp99 virtual void scale(float sx, float sy) override;
441 void SkiaCanvas::scale(float sx, float sy) { function in class:android::SkiaCanvas
442 mCanvas->scale(sx, sy);
H A DDisplayListCanvas.h148 virtual void scale(float sx, float sy) override;
/frameworks/native/libs/input/
H A DVelocityTracker.cpp904 float scale = 1000000000.0f / duration; // one over time delta in seconds local
905 float vx = (position.x - oldestPosition.x) * scale;
906 float vy = (position.y - oldestPosition.y) * scale;
/frameworks/native/opengl/tests/angeles/
H A Ddemo.c347 const int scale = 4; local
387 FIXED(xm * scale + m);
389 FIXED(ym * scale + m);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Ddcac_prediction.cpp197 q_block[0] += (int16)((DC_pred + (QP_tmp >> 1)) * scale[QP_tmp] >> 18);

Completed in 334 milliseconds

1234567891011