/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | scaling_tab.cpp | 50 const int32 scale[63] = {0, 262145, 131073, 87382, 65537, 52430, 43692, 37450, 32769, 29128, variable
|
H A D | scaling.h | 24 extern const int32 scale[63];
|
/frameworks/base/core/java/android/view/ |
H A D | MagnificationSpec.java | 33 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 D | VelocityControl.cpp | 72 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 D | VelocityControl.h | 30 // 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 D | CropView.java | 100 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 D | DocumentaryFilter.java | 52 "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 D | LomoishFilter.java | 53 "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 D | VignetteFilter.java | 33 @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 D | FisheyeFilter.java | 46 @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 D | StraightenFilter.java | 143 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 D | BitmapUtils.java | 97 // 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 D | ScreenMagnifier.java | 82 * 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 D | TransformTestActivity.java | 78 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 D | BitmapFactory_Delegate.java | 68 // 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 D | TiledImageView.java | 64 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 D | CompatibilityInfo.java | 86 * 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 D | AbsSeekBar.java | 227 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 D | ThumbnailUtils.java | 184 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 D | wbalance.rs | 21 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 D | Fisheye.java | 35 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 D | Vignette.java | 35 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 D | OverlayDisplayWindow.java | 222 // 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 D | ScaledTextActivity.java | 75 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 D | Fisheye.java | 32 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);
|