Searched refs:scale (Results 76 - 100 of 272) sorted by relevance

1234567891011

/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A DDpiTestActivity.java164 private void addBitmapDrawable(LinearLayout layout, int resource, boolean scale) { argument
166 bitmap = loadAndPrintDpi(resource, scale);
171 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics());
190 private void addCanvasBitmap(LinearLayout layout, int resource, boolean scale) { argument
192 bitmap = loadAndPrintDpi(resource, scale);
214 private Bitmap loadAndPrintDpi(int id, boolean scale) { argument
216 if (scale) {
/frameworks/base/core/java/android/gesture/
H A DGestureUtils.java103 float scale = sx < sy ? sx : sy;
104 sx = scale;
105 sy = scale;
113 float scale = sx < sy ? sx : sy;
114 sx = scale;
115 sy = scale;
118 float scale = sy * NONUNIFORM_SCALE;
119 if (scale < sx) {
120 sx = scale;
123 float scale
585 static float[] scale(float[] points, float sx, float sy) { method in class:GestureUtils
[all...]
H A DGestureStroke.java168 float scale = sx > sy ? sy : sx;
169 GestureUtils.scale(pts, scale, scale);
/frameworks/base/core/java/android/widget/
H A DAbsSeekBar.java538 void onVisualProgressChanged(int id, float scale) { argument
539 super.onVisualProgressChanged(id, scale);
544 setThumbPos(getWidth(), thumb, scale, Integer.MIN_VALUE);
604 * @param scale Current progress between 0 and 1
608 private void setThumbPos(int w, Drawable thumb, float scale, int offset) { argument
617 final int thumbPos = (int) (scale * available + 0.5f);
824 final float scale;
828 scale = 0.0f;
830 scale = 1.0f;
832 scale
[all...]
/frameworks/support/v4/kitkat/android/support/v4/print/
H A DPrintHelperKitkat.java130 * Returns the scale mode with which the image will fill the paper.
132 * @return The scale Mode: {@link #SCALE_MODE_FIT} or
294 // Compute and apply scale to fill the page.
295 float scale = content.width() / imageWidth;
297 scale = Math.max(scale, content.height() / imageHeight);
299 scale = Math.min(scale, content.height() / imageHeight);
301 matrix.postScale(scale, scale);
[all...]
/frameworks/base/core/java/android/view/animation/
H A DScaleAnimation.java26 * An animation that controls the scale of an object. You can specify the point
244 float scale = getScaleFactor();
256 t.getMatrix().setScale(sx, sy, scale * mPivotX, scale * mPivotY);
260 float resolveScale(float scale, int type, int data, int size, int psize) { argument
267 return scale;
/frameworks/av/media/libstagefright/
H A DVBRISeeker.cpp79 size_t scale = U16_AT(&vbriHeader[20]); local
81 ALOGV("%zu entries, scale=%zu, size_per_entry=%zu",
83 scale,
121 numBytes *= scale;
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/
H A DAAC_E_SAMPLES.c115 int scale = 441; local
117 scale = 480;
118 param->bitRate = 640*param->nChannels*param->sampleRate/scale;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/animations/
H A DViewFocusAnimator.java95 float scale = mUnselectedScale + (level * mSelectedScaleDelta);
99 mTargetView.setScaleX(scale);
100 mTargetView.setScaleY(scale);
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DMagnificationGestureHandler.java62 * magnification scale which will become the current default magnification
63 * scale. The next time the user magnifies the same magnification scale
71 * fingers to change the magnification scale which will become the current
72 * default magnification scale. The next time the user magnifies the same
73 * magnification scale would be used.
75 * 6. The magnification scale will be persisted in settings and in the cloud.
241 final float scale = mMagnificationController.getScale();
250 coords[i].x = (coords[i].x - scaledOffsetX) / scale;
251 coords[i].y = (coords[i].y - scaledOffsetY) / scale;
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DBackgroundDexOptService.java106 int scale = intent.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
108 if (level < 0 || scale <= 0) {
113 return (100 * level / scale);
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DCircularBitmapDrawable.java142 float scale = Math.max((float) dst.width() / src.width(),
144 mMatrix.postScale(scale, scale);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DDetailsOverviewLogoPresenter.java161 float scale = Math.min(maxScaleWidth, maxScaleHeight);
162 lp.width = (int) (lp.width * scale);
163 lp.height = (int) (lp.height * scale);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DUtilities.java160 public static void scaleRectAboutCenter(RectF r, float scale) { argument
161 if (scale != 1.0f) {
165 r.left *= scale;
166 r.top *= scale;
167 r.right *= scale;
168 r.bottom *= scale;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DLines2Activity.java106 canvas.scale(2, 2);
115 canvas.scale(2, 2);
124 canvas.scale(2, 2);
134 canvas.scale(2, 2);
143 canvas.scale(2, 2);
152 canvas.scale(2, 2);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DBlackWhiteFilter.java52 "uniform float scale;\n" +
79 " vec3 xform = clamp((color.rgb - black) * scale, 0.0, 1.0);\n" +
80 " vec3 temp = clamp((color.rgb + stepsize - black) * scale, 0.0, 1.0);\n" +
118 float scale = (mBlack != mWhite) ? 1.0f / (mWhite - mBlack) : 2000f;
121 mProgram.setHostValue("scale", scale);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/views/
H A DTaskCardView.java170 float scale = hasFocus ? out.getFloat() : 1;
173 int widthDelta = (int) (width * scale - width);
175 int heightDelta = (int) (height * scale - height);
180 int headerHeightDelta = (int) (headerHeight * scale - headerHeight);
188 int dismissAreaHeightDelta = (int) (dismissAreaHeight * scale - dismissAreaHeight);
199 topMargin - totalHeightDelta / 2 + (int) (headerHeight * scale),
201 topMargin - totalHeightDelta / 2 + (int) (headerHeight * scale) +
202 (int) (height * scale));
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
H A DMainActivity.java126 float scale = mZoom * Math.min(sw / (float) iw, sh / (float) ih);
127 mXOffset = mDownXOffset + 2 * (dx / (sw - scale * iw));
128 mYOffset = mDownYOffset + 2 * (dy / (sh - scale * ih));
203 float scale = mZoom * Math.min(sw / (float) iw, sh / (float) ih);
204 mMatrix.postTranslate((1 + mXOffset) * (sw - iw * scale) / 2,
205 (1 + mYOffset) * (sh - ih * scale) / 2);
206 mMatrix.preScale(scale, scale);
/frameworks/base/media/mca/filterpacks/native/base/
H A Dvec_types.h99 Vec<T, dim> operator * (const Vec<T,dim> &x, T scale) { argument
102 out.data[i] = x.data[i] * scale;
107 Vec<T, dim> operator / (const Vec<T,dim> &x, T scale) { argument
110 out.data[i] = x.data[i] / scale;
/frameworks/rs/
H A DrsMatrix4x4.h69 void scale(float x, float y, float z) { function in struct:android::renderscript::Matrix4x4
/frameworks/rs/scriptc/
H A Drs_quaternion.rsh292 float scale, invScale;
297 scale = sin(theta * (1.0f - t)) * invSinTheta;
300 scale = 1.0f - t;
305 scale = sin(M_PI * (0.5f - t));
309 rsQuaternionSet(q, tempq0.w*scale + tempq1.w*invScale, tempq0.x*scale + tempq1.x*invScale,
310 tempq0.y*scale + tempq1.y*invScale, tempq0.z*scale + tempq1.z*invScale);
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java186 fmi.top, fmi.descent + s.scale(fmi.descent - fmi.top),
187 fmi.ascent, fmi.descent + s.scale(fmi.descent - fmi.ascent),
188 fmi.ascent, fmi.bottom + s.scale(fmi.bottom - fmi.ascent));
208 fmi.top, fmi.descent + s.scale(fmi.descent - fmi.top),
209 fmi.ascent, fmi.descent + s.scale(fmi.descent - fmi.ascent),
210 fmi.ascent, fmi.bottom + s.scale(fmi.bottom - fmi.ascent));
215 // Models the effect of the scale and add parameters. I think the current
226 public int scale(float height) { method in class:StaticLayoutTest.Scaler
230 Log.i("Scale", "expected scale: " + rndVal +
231 " != returned scale
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DRect.java638 * Scales up the rect by the given scale.
641 public void scale(float scale) { argument
642 if (scale != 1.0f) {
643 left = (int) (left * scale + 0.5f);
644 top = (int) (top * scale + 0.5f);
645 right = (int) (right * scale + 0.5f);
646 bottom = (int) (bottom * scale + 0.5f);
/frameworks/base/libs/hwui/
H A DMatrix.cpp227 double scale = 1.0 / local
236 v.data[kTranslateY] * v.data[kPerspective1]) * scale;
238 v.data[kSkewX] * v.data[kPerspective2]) * scale;
240 v.data[kTranslateX] * v.data[kScaleY]) * scale;
243 v.data[kSkewY] * v.data[kPerspective2]) * scale;
245 v.data[kTranslateX] * v.data[kPerspective0]) * scale;
247 v.data[kScaleX] * v.data[kTranslateY]) * scale;
250 v.data[kScaleY] * v.data[kPerspective0]) * scale;
252 v.data[kScaleX] * v.data[kPerspective1]) * scale;
254 v.data[kSkewX] * v.data[kSkewY]) * scale;
[all...]
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
H A DImageUtils.java64 double scale = THUMBNAIL_SIZE / (double)maxDimension;
65 BufferedImage thumbnail = scale(image, scale, scale);
201 * @param xScale x scale
202 * @param yScale y scale
206 public static BufferedImage scale(@NonNull BufferedImage source, double xScale, double yScale) { method in class:ImageUtils

Completed in 5965 milliseconds

1234567891011