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

1234567891011

/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DScreenMagnifier.java81 * magnification scale which will become the current default magnification
82 * scale. The next time the user magnifies the same magnification scale
90 * fingers to change the magnification scale which will become the current
91 * default magnification scale. The next time the user magnifies the same
92 * magnification scale would be used.
94 * 6. The magnification scale will be persisted in settings and in the cloud.
233 final float scale = spec.scale;
234 final float centerX = (-spec.offsetX + magnifiedFrame.width() / 2) / scale;
858 persistScale(final float scale) argument
1019 setScale(float scale, float pivotX, float pivotY, boolean animate) argument
1050 setScaleAndMagnifiedRegionCenter(float scale, float centerX, float centerY, boolean animate) argument
1076 updateMagnificationSpec(float scale, float magnifiedCenterX, float magnifiedCenterY) argument
[all...]
/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;
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/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...]
H A DResourcesKey.java34 float scale) {
39 mScale = scale;
33 ResourcesKey(String resDir, int displayId, Configuration overrideConfiguration, float scale) argument
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java178 float scale = 512f / max;
179 int w = Math.round(scale * width);
180 int h = Math.round(scale * height);
218 float scale;
220 scale = width / (float) source.getWidth();
222 scale = height / (float) source.getHeight();
225 matrix.setScale(scale, scale);
405 float scale = targetHeight / bitmapHeightF;
406 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/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/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/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/widget/
H A DSeekBar.java89 void onProgressRefresh(float scale, boolean fromUser, int progress) { argument
90 super.onProgressRefresh(scale, fromUser, progress);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
H A DPdfManipulationService.java306 final float scale;
309 scale = Math.min((float) dstWidthPts / srcWidthPts,
311 transform.postScale(scale, scale);
313 scale = Math.min((float) dstWidthPts / srcHeightPts,
315 transform.postScale(scale, scale, mediaBox.left, mediaBox.bottom);
318 scale = 1.0f;
323 cropBox.left = (int) (cropBox.left * scale + 0.5f);
324 cropBox.top = (int) (cropBox.top * scale
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp86 static void scaleDivRange(int32_t* divs, int count, float scale, int maxValue) { argument
88 divs[i] = int32_t(divs[i] * scale + 0.5f);
110 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale, argument
112 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f);
113 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f);
114 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f);
115 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f);
117 scaleDivRange(chunk->getXDivs(), chunk->numXDivs, scale, scaledWidth);
118 scaleDivRange(chunk->getYDivs(), chunk->numYDivs, scale, scaledHeight);
134 ScaleCheckingAllocator(float scale, in argument
209 float scale = 1.0f; local
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DDessertCaseView.java355 int scale = 1;
358 scale = 4;
362 scale = 3;
366 scale = 2;
371 v.setTag(TAG_SPAN, scale);
422 ObjectAnimator.ofFloat(v, View.SCALE_X, (float) scale),
423 ObjectAnimator.ofFloat(v, View.SCALE_Y, (float) scale)
431 ObjectAnimator.ofFloat(v, View.X, i* mCellSize + (scale-1) * mCellSize /2),
432 ObjectAnimator.ofFloat(v, View.Y, j* mCellSize + (scale-1) * mCellSize /2)
442 v.setX(i * mCellSize + (scale
[all...]

Completed in 619 milliseconds

1234567891011