Searched refs:scale (Results 1 - 25 of 194) sorted by relevance

12345678

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dscaling_tab.cpp50 const int32 scale[63] = {0, 262145, 131073, 87382, 65537, 52430, 43692, 37450, 32769, 29128, variable
H A Dscaling.h24 extern const int32 scale[63];
/frameworks/base/core/java/android/view/
H A DMagnificationSpec.java33 public float scale = 1.0f; field in class:MagnificationSpec
41 public void initialize(float scale, float offsetX, float offsetY) { argument
42 if (scale < 1) {
45 this.scale = scale;
51 return scale == 1.0f && offsetX == 0 && offsetY == 0;
56 info.scale = other.scale;
73 scale = 1.0f;
85 parcel.writeFloat(scale);
[all...]
/frameworks/native/libs/input/
H A DVelocityControl.cpp72 float scale = mParameters.scale; local
74 float speed = hypotf(vx, vy) * scale;
77 scale *= mParameters.acceleration;
81 scale *= 1 + (speed - mParameters.lowThreshold)
89 mParameters.scale, mParameters.lowThreshold, mParameters.highThreshold,
91 vx, vy, speed, scale / mParameters.scale);
96 mParameters.scale, mParameters.lowThreshold, mParameters.highThreshold,
102 *deltaX *= scale;
[all...]
/frameworks/native/include/input/
H A DVelocityControl.h30 // A scale factor that is multiplied with the raw velocity deltas
31 // prior to applying any other velocity control factors. The scale
37 float scale; member in struct:android::VelocityControlParameters
65 scale(1.0f), lowThreshold(0.0f), highThreshold(0.0f), acceleration(1.0f) {
68 VelocityControlParameters(float scale, float lowThreshold, argument
70 scale(scale), lowThreshold(lowThreshold),
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DCropView.java100 final float scale = mRenderer.scale;
102 * scale + width / 2f;
104 * scale + height / 2f;
105 float leftEdge = centerX - imageWidth / 2f * scale;
106 float rightEdge = centerX + imageWidth / 2f * scale;
107 float topEdge = centerY - imageHeight / 2f * scale;
108 float bottomEdge = centerY + imageHeight / 2f * scale;
123 final float scale = mRenderer.scale;
152 setScale(float scale) argument
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DDocumentaryFilter.java52 "uniform vec2 scale;\n" +
77 " float dist = length(coord * scale);\n" +
147 float scale[] = new float[2];
149 scale[0] = 1f;
150 scale[1] = ((float) mHeight) / mWidth;
152 scale[0] = ((float) mWidth) / mHeight;
153 scale[1] = 1f;
155 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[
[all...]
H A DLomoishFilter.java53 "uniform vec2 scale;\n" +
118 " float dist = length(coord * scale);\n" +
156 float scale[] = new float[2];
158 scale[0] = 1f;
159 scale[1] = ((float) mHeight) / mWidth;
161 scale[0] = ((float) mWidth) / mHeight;
162 scale[1] = 1f;
164 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[
[all...]
H A DVignetteFilter.java33 @GenerateFieldPort(name = "scale", hasDefault = true)
54 "uniform vec2 scale;\n" +
59 " float dist = length(coord * scale);\n" +
97 float scale[] = new float[2];
99 scale[0] = 1f;
100 scale[1] = ((float) mHeight) / mWidth;
102 scale[0] = ((float) mWidth) / mHeight;
103 scale[1] = 1f;
105 float max_dist = ((float) Math.sqrt(scale[0] * scale[
[all...]
H A DFisheyeFilter.java46 @GenerateFieldPort(name = "scale", hasDefault = true)
61 "uniform vec2 scale;\n" +
69 " float dist = length(coord * scale);\n" +
151 float scale[] = new float[2];
153 scale[0] = 1f;
154 scale[1] = ((float) mHeight) / mWidth;
156 scale[0] = ((float) mWidth) / mHeight;
157 scale[1] = 1f;
160 float bound2 = 0.25f * (scale[0] * scale[
[all...]
H A DStraightenFilter.java143 float scale = 0.5f * Math.min( mWidth / maxWidth,
146 p0.set(scale * p0.x / mWidth + 0.5f, scale * p0.y / mHeight + 0.5f);
147 p1.set(scale * p1.x / mWidth + 0.5f, scale * p1.y / mHeight + 0.5f);
148 p2.set(scale * p2.x / mWidth + 0.5f, scale * p2.y / mHeight + 0.5f);
149 p3.set(scale * p3.x / mWidth + 0.5f, scale * p3.y / mHeight + 0.5f);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java97 // Find the min x that 1 / x >= scale
98 public static int computeSampleSizeLarger(float scale) { argument
99 int initialSize = (int) FloatMath.floor(1f / scale);
107 // Find the max x that 1 / x <= scale.
108 public static int computeSampleSize(float scale) { argument
109 Utils.assertTrue(scale > 0);
110 int initialSize = Math.max(1, (int) FloatMath.ceil(1 / scale));
117 Bitmap bitmap, float scale, boolean recycle) {
118 int width = Math.round(bitmap.getWidth() * scale);
119 int height = Math.round(bitmap.getHeight() * scale);
116 resizeBitmapByScale( Bitmap bitmap, float scale, boolean recycle) argument
[all...]
/frameworks/base/services/java/com/android/server/accessibility/
H A DScreenMagnifier.java82 * magnification scale which will become the current default magnification
83 * scale. The next time the user magnifies the same magnification scale
91 * fingers to change the magnification scale which will become the current
92 * default magnification scale. The next time the user magnifies the same
93 * magnification scale would be used.
95 * 6. The magnification scale will be persisted in settings and in the cloud.
238 final float scale = spec.scale;
239 final float centerX = (-spec.offsetX + magnifiedFrame.width() / 2) / scale;
862 persistScale(final float scale) argument
1023 setScale(float scale, float pivotX, float pivotY, boolean animate) argument
1054 setScaleAndMagnifiedRegionCenter(float scale, float centerX, float centerY, boolean animate) argument
1080 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/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java68 // DELEGATE CHANGE: never scale 9-patch
70 float scale = targetDensity / (float)density;
73 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f),
74 (int) (bm.getHeight() * scale + 0.5f), true);
78 np = nativeScaleNinePatch(np, scale, outPadding);
98 Rect padding, Options opts, boolean applyScale, float scale) {
161 boolean applyScale, float scale) {
174 /*package*/ static byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad) { argument
175 // don't scale for now. This should not be called anyway since we re-implement
97 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts, boolean applyScale, float scale) argument
160 nativeDecodeAsset(int asset, Rect padding, Options opts, boolean applyScale, float scale) argument
/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/core/java/android/widget/
H A DAbsSeekBar.java227 void onProgressRefresh(float scale, boolean fromUser) { argument
228 super.onProgressRefresh(scale, fromUser);
231 setThumbPos(getWidth(), thumb, scale, Integer.MIN_VALUE);
257 float scale = max > 0 ? (float) getProgress() / (float) max : 0;
261 setThumbPos(w, thumb, scale, 0);
278 setThumbPos(w, thumb, scale, gap);
286 private void setThumbPos(int w, Drawable thumb, float scale, int gap) { argument
295 int thumbPos = (int) (scale * available);
427 float scale;
431 scale
[all...]
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java184 float scale = 512f / max;
185 int w = Math.round(scale * width);
186 int h = Math.round(scale * height);
224 float scale;
226 scale = width / (float) source.getWidth();
228 scale = height / (float) source.getHeight();
231 matrix.setScale(scale, scale);
411 float scale = targetHeight / bitmapHeightF;
412 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 DFisheye.java35 private float scale = 0.5f; field in class:Fisheye
62 scale = progress / 50.0f;
80 center_y, scale);
85 center_y, scale);
90 scale);
95 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);
/frameworks/base/services/java/com/android/server/display/
H A DOverlayDisplayWindow.java222 // Set the initial position and scale.
223 // The position and scale will be clamped when the display is first shown.
232 float scale = mWindowScale * mLiveScale;
233 scale = Math.min(scale, (float)mDefaultDisplayInfo.logicalWidth / mWidth);
234 scale = Math.min(scale, (float)mDefaultDisplayInfo.logicalHeight / mHeight);
235 scale = Math.max(MIN_SCALE, Math.min(MAX_SCALE, scale));
237 float offsetScale = (scale / mWindowScal
[all...]
/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/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DFisheye.java32 private float scale = 0.5f; field in class:Fisheye
59 scale = progress / 50.0f;
77 center_y, scale);
82 center_y, scale);
87 scale);
92 scale);

Completed in 773 milliseconds

12345678