Searched refs:scale (Results 26 - 50 of 272) sorted by relevance

1234567891011

/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
H A DTransformTestActivity.java78 float scale = detector.getScaleFactor();
80 Log.d("ttest", "Scale: " + scale);
82 // Limit the scale so our object doesn't get too big or disappear
83 if (mScale * scale > 0.1f) {
84 if (mScale * scale < 10.f) {
85 mScale *= scale;
101 diffX = diffX*scale - diffX;
102 diffY = diffY*scale - diffY;
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DVignette.java31 private float scale = 0.5f; field in class:Vignette
73 scale = progress / 50.0f;
94 scale = time % 2.f;
104 center_y, scale, shade, slope);
109 center_y, scale, shade, slope);
114 scale, shade, slope);
119 scale, shade, slope);
H A Dwbalance.rs21 static float3 scale;
99 scale.r = avg / estimation.r;
100 scale.g = avg / estimation.g;
101 scale.b = avg / estimation.b;
106 t *= scale;
H A Dresize.rs23 float scale;
27 float xf = clamp(x * scale, 0.f, (float)gWidthIn - 1.f);
28 float yf = clamp(y * scale, 0.f, (float)gHeightIn - 1.f);
44 float xf = (x + 0.5f) * scale - 0.5f;
45 float yf = (y + 0.5f) * scale - 0.5f;
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A DVignette.java31 private float scale = 0.5f; field in class:Vignette
73 scale = progress / 50.0f;
94 scale = time % 2.f;
104 center_y, scale, shade, slope);
109 center_y, scale, shade, slope);
114 scale, shade, slope);
119 scale, shade, slope);
H A Dwbalance.rs21 static float3 scale;
99 scale.r = avg / estimation.r;
100 scale.g = avg / estimation.g;
101 scale.b = avg / estimation.b;
106 t *= scale;
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageView.java64 public float scale; field in class:TiledImageView.ImageRendererWrapper
162 mRenderer.scale = 0;
182 || renderer.scale > 0 || getWidth() == 0) {
185 renderer.scale = Math.min(
261 float scale = mValues[Matrix.MSCALE_X];
262 int xoffset = Math.round((getWidth() - mTempRectF.width()) / 2 / scale);
263 int yoffset = Math.round((getHeight() - mTempRectF.height()) / 2 / scale);
265 cx += (mTempRectF.left / scale) - xoffset;
267 cx -= (mTempRectF.left / scale) - xoffset;
270 cy += (mTempRectF.top / scale)
[all...]
/frameworks/base/core/java/android/content/res/
H A DCompatibilityInfo.java86 * Application's scale.
91 * Application's inverted scale.
245 int dens, float scale, float invertedScale) {
248 applicationScale = scale;
311 rect.scale(applicationInvertedScale);
318 transparentRegion.scale(applicationScale);
326 /* When we scale for compatibility, we can put our stretched
344 canvas.scale(applicationScale, applicationScale);
351 event.scale(applicationInvertedScale);
359 params.scale(applicationScal
244 CompatibilityInfo(int compFlags, int dens, float scale, float invertedScale) argument
[all...]
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java179 float scale = 512f / max;
180 int w = Math.round(scale * width);
181 int h = Math.round(scale * height);
219 float scale;
221 scale = width / (float) source.getWidth();
223 scale = height / (float) source.getHeight();
226 matrix.setScale(scale, scale);
406 float scale = targetHeight / bitmapHeightF;
407 if (scale <
[all...]
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A Dwbalance.rs21 static float3 scale;
99 scale.r = avg / estimation.r;
100 scale.g = avg / estimation.g;
101 scale.b = avg / estimation.b;
106 t *= scale;
H A DVignette.java35 private float scale = 0.5f; field in class:Vignette
76 scale = progress / 50.0f;
102 center_y, scale, shade, slope);
107 center_y, scale, shade, slope);
112 scale, shade, slope);
117 scale, shade, slope);
H A Dresize.rs23 float scale;
27 float xf = clamp(x * scale, 0.f, (float)gWidthIn - 1.f);
28 float yf = clamp(y * scale, 0.f, (float)gHeightIn - 1.f);
44 float xf = (x + 0.5f) * scale - 0.5f;
45 float yf = (y + 0.5f) * scale - 0.5f;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DScaledTextActivity.java75 public void setTextScale(float scale) { argument
76 mScale = scale;
105 canvas.scale(3.0f, 3.0f);
120 canvas.scale(mScale, mScale);
126 canvas.scale(3.0f, 3.0f);
136 canvas.scale(3.0f, 3.0f);
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Da_refl.cpp145 Word16 scale;
170 scale = sub(15, normShift);
184 L_temp = L_shr_r(L_temp, scale);
245 Word16 scale; local
274 scale = sub(15, normShift, pOverflow);
288 L_temp = L_shr_r(L_temp, scale, pOverflow);
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DVolumeControlAction.java52 * Scale a custom volume value to cec volume scale.
54 * @param volume volume value in custom scale
55 * @param scale scale of volume (max volume)
58 public static int scaleToCecVolume(int volume, int scale) { argument
59 return (volume * MAX_VOLUME) / scale;
65 * @param cecVolume volume value in cec volume scale. It should be in a range of [0-100]
66 * @param scale scale of custom volume (max volume)
69 public static int scaleToCustomVolume(int cecVolume, int scale) { argument
[all...]
/frameworks/base/core/java/android/transition/
H A DTransitionUtils.java122 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (width * height));
123 if (drawable instanceof BitmapDrawable && scale == 1f) {
124 // return same bitmap if scale down not needed
127 int bitmapWidth = (int) (width * scale);
128 int bitmapHeight = (int) (height * scale);
160 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
161 bitmapWidth *= scale;
162 bitmapHeight *= scale;
164 matrix.postScale(scale, scale);
[all...]
/frameworks/support/v4/java/android/support/v4/app/
H A DSharedElementCallback.java65 * return transitions. For example, rotation or scale will not be affected by layout and
95 * during layout should be corrected in onSharedElementEnd. For example, rotation or scale
194 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
195 bitmapWidth *= scale;
196 bitmapHeight *= scale;
202 mTempMatrix.postScale(scale, scale);
220 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (width * height));
221 if (drawable instanceof BitmapDrawable && scale == 1f) {
222 // return same bitmap if scale dow
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DRoundRectangle.java89 double scale = Math.min(1.0, width / topCornerWidth);
90 scale = Math.min(scale, width / bottomCornerWidth);
91 scale = Math.min(scale, height / leftCornerHeight);
92 scale = Math.min(scale, height / rightCornerHeight);
94 this.ulWidth = dimensions[0] * scale;
95 this.ulHeight = dimensions[1] * scale;
96 this.urWidth = dimensions[2] * scale;
[all...]
/frameworks/av/cmds/screenrecord/
H A DTextRenderer.h58 void setScale(float scale) { mScale = scale; } argument
106 // current scale factor.
124 // Value will be adjusted by the current scale factor.
/frameworks/base/core/java/android/accessibilityservice/
H A DIAccessibilityServiceClient.aidl44 void onMagnificationChanged(in Region region, float scale, float centerX, float centerY);
/frameworks/base/core/java/android/widget/
H A DSeekBar.java89 void onProgressRefresh(float scale, boolean fromUser, int progress) { argument
90 super.onProgressRefresh(scale, fromUser, progress);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockscreenWallpaper.java242 float scale;
246 scale = (float) vheight / (float) dheight;
248 scale = (float) vwidth / (float) dwidth;
251 if (scale <= 1f) {
252 scale = 1f;
254 dy = (vheight - dheight * scale) * 0.5f;
259 bounds.left + Math.round(dwidth * scale),
260 bounds.top + Math.round(dheight * scale + dy));
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DScaleFrameLayout.java25 * Subclass of FrameLayout that support scale layout area size for children.
64 public void setChildScale(float scale) { argument
65 if (mChildScale != scale) {
66 mChildScale = scale;
68 getChildAt(i).setScaleX(scale);
69 getChildAt(i).setScaleY(scale);
176 private static int getScaledMeasureSpec(int measureSpec, float scale) { argument
177 return scale == 1f ? measureSpec : MeasureSpec.makeMeasureSpec(
178 (int) (MeasureSpec.getSize(measureSpec) / scale + 0.5f),
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp93 static void scaleDivRange(int32_t* divs, int count, float scale, int maxValue) { argument
95 divs[i] = int32_t(divs[i] * scale + 0.5f);
117 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale, argument
119 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f);
120 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f);
121 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f);
122 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f);
124 scaleDivRange(chunk->getXDivs(), chunk->numXDivs, scale, scaledWidth);
125 scaleDivRange(chunk->getYDivs(), chunk->numYDivs, scale, scaledHeight);
141 ScaleCheckingAllocator(float scale, in argument
239 float scale = 1.0f; local
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
H A DPdfManipulationService.java308 final float scale;
310 scale = Math.min((float) dstWidthPts / srcWidthPts,
312 transform.postScale(scale, scale);
314 scale = 1.0f;
319 cropBox.left = (int) (cropBox.left * scale + 0.5f);
320 cropBox.top = (int) (cropBox.top * scale + 0.5f);
321 cropBox.right = (int) (cropBox.right * scale + 0.5f);
322 cropBox.bottom = (int) (cropBox.bottom * scale + 0.5f);
329 final float dx = dstWidthPts - (int) (srcWidthPts * scale
[all...]

Completed in 624 milliseconds

1234567891011