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

1234567

/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/libs/androidfw/
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/base/include/androidfw/
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/tests/TileBenchmark/src/com/test/tilebenchmark/
H A DRunData.java34 public float scale; field in class:RunData.TileData
37 boolean isReady, int level, float scale) {
44 this.scale = scale;
50 + (isReady ? "ready" : "NOTready") + " at scale " + scale;
36 TileData(int left, int top, int right, int bottom, boolean isReady, int level, float scale) argument
/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/services/java/com/android/server/wm/
H A DMagnificationSpec.java24 public void initialize(float scale, float offsetX, float offsetY) { argument
25 mScale = scale;
37 builder.append("<scale:");
/frameworks/base/core/java/android/webkit/
H A DZoomManager.java39 * length animation where the final zoom scale is known at startup. This type of
40 * animation notifies webkit of the final scale BEFORE it animates. The animation
43 * (2) The second method is triggered by a multi-touch pinch and the new scale
45 * only notifies webkit of new scale AFTER the gesture is complete. The animation
47 * to the new scale in response to events related to the user's gesture.
61 * The scale factors that determine the upper and lower bounds for the
62 * default zoom scale.
67 // The default scale limits, which are dependent on the display density.
71 // The actual scale limits, which can be set through a webpage's viewport
82 * the overview scale i
324 computeReadingLevelScale(float scale) argument
362 computeScaleWithLimits(float scale) argument
371 isScaleOverLimits(float scale) argument
383 willScaleTriggerZoom(float scale) argument
422 startZoomAnimation(float scale, boolean reflowText) argument
545 setZoomScale(float scale, boolean reflowText) argument
549 setZoomScale(float scale, boolean reflowText, boolean force) argument
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DProcessList.java189 float scale = scaleMem > scaleDisp ? scaleMem : scaleDisp;
190 if (scale < 0) scale = 0;
191 else if (scale > 1) scale = 1;
195 mOomMinFree[i] = (long)(low + ((high-low)*scale));
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java141 * {@link #inScaled} to determine if and how to scale the bitmap before
333 * resources, which we pass to be able to scale the bitmap accordingly.
492 float scale = 1.0f;
498 scale = targetDensity / (float) density;
502 bm = nativeDecodeAsset(asset, outPadding, opts, true, scale);
519 float scale = 1.0f;
525 scale = targetDensity / (float) density;
529 bm = nativeDecodeStream(is, tempStorage, outPadding, opts, true, scale);
564 float scale = targetDensity / (float) density;
565 if (scale !
651 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts, boolean applyScale, float scale) argument
656 nativeDecodeAsset(int asset, Rect padding, Options opts, boolean applyScale, float scale) argument
660 nativeScaleNinePatch(byte[] chunk, float scale, Rect pad) 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.java65 // DELEGATE CHANGE: never scale 9-patch
67 float scale = targetDensity / (float)density;
70 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f),
71 (int) (bm.getHeight() * scale + 0.5f), true);
75 np = nativeScaleNinePatch(np, scale, outPadding);
95 Rect padding, Options opts, boolean applyScale, float scale) {
154 boolean applyScale, float scale) {
167 /*package*/ static byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad) { argument
168 // don't scale for now. This should not be called anyway since we re-implement
94 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts, boolean applyScale, float scale) argument
153 nativeDecodeAsset(int asset, Rect padding, Options opts, boolean applyScale, float scale) argument
/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/base/services/java/com/android/server/display/
H A DOverlayDisplayWindow.java212 // Set the initial position and scale.
213 // The position and scale will be clamped when the display is first shown.
222 float scale = mWindowScale * mLiveScale;
223 scale = Math.min(scale, (float)mDefaultDisplayInfo.logicalWidth / mWidth);
224 scale = Math.min(scale, (float)mDefaultDisplayInfo.logicalHeight / mHeight);
225 scale = Math.max(MIN_SCALE, Math.min(MAX_SCALE, scale));
227 float offsetScale = (scale / mWindowScal
[all...]
/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/
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/tests/RenderScriptTests/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);
H A DVignette.java32 private float scale = 0.5f; field in class:Vignette
73 scale = progress / 50.0f;
99 center_y, scale, shade, slope);
104 center_y, scale, shade, slope);
109 scale, shade, slope);
114 scale, shade, slope);
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Da_refl.cpp143 Word16 scale;
168 scale = sub(15, normShift);
182 L_temp = L_shr_r(L_temp, scale);
243 Word16 scale; local
272 scale = sub(15, normShift, pOverflow);
286 L_temp = L_shr_r(L_temp, scale, pOverflow);

Completed in 305 milliseconds

1234567