/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 | IWindowSessionCallback.aidl | 26 void onAnimatorScaleChanged(float scale);
|
H A D | MagnificationSpec.java | 34 public float scale = 1.0f; field in class:MagnificationSpec 52 public void initialize(float scale, float offsetX, float offsetY) { argument 53 if (scale < 1) { 56 this.scale = scale; 62 return scale == 1.0f && offsetX == 0 && offsetY == 0; 67 info.scale = other.scale; 84 scale = 1.0f; 90 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 | 99 final float scale = mRenderer.scale; 101 * scale + width / 2f; 103 * scale + height / 2f; 104 float leftEdge = centerX - imageWidth / 2f * scale; 105 float rightEdge = centerX + imageWidth / 2f * scale; 106 float topEdge = centerY - imageHeight / 2f * scale; 107 float bottomEdge = centerY + imageHeight / 2f * scale; 122 final float scale = mRenderer.scale; 151 setScale(float scale) argument [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | DocumentaryFilter.java | 49 "uniform vec2 scale;\n" + 74 " float dist = length(coord * scale);\n" + 144 float scale[] = new float[2]; 146 scale[0] = 1f; 147 scale[1] = ((float) mHeight) / mWidth; 149 scale[0] = ((float) mWidth) / mHeight; 150 scale[1] = 1f; 152 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[ [all...] |
H A D | FisheyeFilter.java | 40 @GenerateFieldPort(name = "scale", hasDefault = true) 55 "uniform vec2 scale;\n" + 63 " float dist = length(coord * scale);\n" + 145 float scale[] = new float[2]; 147 scale[0] = 1f; 148 scale[1] = ((float) mHeight) / mWidth; 150 scale[0] = ((float) mWidth) / mHeight; 151 scale[1] = 1f; 154 float bound2 = 0.25f * (scale[0] * scale[ [all...] |
H A D | LomoishFilter.java | 50 "uniform vec2 scale;\n" + 115 " float dist = length(coord * scale);\n" + 153 float scale[] = new float[2]; 155 scale[0] = 1f; 156 scale[1] = ((float) mHeight) / mWidth; 158 scale[0] = ((float) mWidth) / mHeight; 159 scale[1] = 1f; 161 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[ [all...] |
H A D | VignetteFilter.java | 30 @GenerateFieldPort(name = "scale", hasDefault = true) 51 "uniform vec2 scale;\n" + 56 " float dist = length(coord * scale);\n" + 94 float scale[] = new float[2]; 96 scale[0] = 1f; 97 scale[1] = ((float) mHeight) / mWidth; 99 scale[0] = ((float) mWidth) / mHeight; 100 scale[1] = 1f; 102 float max_dist = ((float) Math.sqrt(scale[0] * scale[ [all...] |
H A D | StraightenFilter.java | 138 float scale = 0.5f * Math.min( mWidth / maxWidth, 141 p0.set(scale * p0.x / mWidth + 0.5f, scale * p0.y / mHeight + 0.5f); 142 p1.set(scale * p1.x / mWidth + 0.5f, scale * p1.y / mHeight + 0.5f); 143 p2.set(scale * p2.x / mWidth + 0.5f, scale * p2.y / mHeight + 0.5f); 144 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 | 96 // Find the min x that 1 / x >= scale 97 public static int computeSampleSizeLarger(float scale) { argument 98 int initialSize = (int) Math.floor(1 / scale); 106 // Find the max x that 1 / x <= scale. 107 public static int computeSampleSize(float scale) { argument 108 Utils.assertTrue(scale > 0); 109 int initialSize = Math.max(1, (int) Math.ceil(1 / scale)); 116 Bitmap bitmap, float scale, boolean recycle) { 117 int width = Math.round(bitmap.getWidth() * scale); 118 int height = Math.round(bitmap.getHeight() * scale); 115 resizeBitmapByScale( Bitmap bitmap, float scale, boolean recycle) argument [all...] |
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
H A D | Resize.java | 35 float scale = 1.f / 32.f; 38 tb.setX((int)(mWidth * scale)); 39 tb.setY((int)(mHeight * scale)); 48 mScript.set_scale(1.f / scale); 55 mScript.set_scale(scale);
|
H A D | Fisheye.java | 32 private float scale = 0.5f; field in class:Fisheye 59 scale = progress / 50.0f; 72 scale = time % 2.f; 82 center_y, scale); 87 center_y, scale); 92 scale); 97 scale);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | ThumbnailData.java | 33 public float scale; field in class:ThumbnailData 41 out.scale = snapshot.getScale();
|
/frameworks/base/libs/hwui/utils/ |
H A D | MathUtils.h | 55 * Clamps positive tessellation scale values 57 inline static float clampTessellationScale(float scale) { argument 60 if (scale < MIN_SCALE) { 62 } else if (scale > MAX_SCALE) { 65 return scale;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 21 * Essentially, it allows the creation of custom graphics that will scale the 48 opticalRect.scale(decodeScale); 63 * Scales up the rect by the given scale, ceiling values, so actual outline Rect 66 public static Rect scaleInsets(int left, int top, int right, int bottom, float scale) { argument 67 if (scale == 1.0f) { 72 result.left = (int) Math.ceil(left * scale); 73 result.top = (int) Math.ceil(top * scale); 74 result.right = (int) Math.ceil(right * scale); 75 result.bottom = (int) Math.ceil(bottom * scale);
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | BitmapUtils.java | 73 final float scale = Math.min(sampleSize, regularScale); 75 final int srcCroppedW = Math.round(dstW * scale); 76 final int srcCroppedH = Math.round(dstH * scale); 77 final int srcCroppedSliceH = Math.round(dstSliceH * scale); 118 final float scale = Math.min(sampleSize, regularScale); 120 final int srcCroppedW = Math.round(dstW * scale); 121 final int srcCroppedH = Math.round(dstH * scale);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | Fisheye.java | 35 private float scale = 0.5f; field in class:Fisheye 62 scale = progress / 50.0f; 75 scale = time % 2.f; 85 center_y, scale); 90 center_y, scale); 95 scale); 100 scale);
|
H A D | Resize.java | 47 float scale = 1.f / 32.f; 50 (int)(mWidth * scale), (int)(mHeight * scale)); 58 mScript.set_scale(1.f / scale); 65 mScript.set_scale(scale);
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
H A D | Resize.java | 47 float scale = 1.f / 32.f; 50 (int)(mWidth * scale), (int)(mHeight * scale)); 58 mScript.set_scale(1.f / scale); 65 mScript.set_scale(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);
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | MagnificationController.java | 222 * @return {@code true} if magnification is active, e.g. the scale 226 return mCurrentMagnificationSpec.scale > 1.0f; 297 * Returns the magnification scale. If an animation is in progress, 300 * @return the scale 303 return mCurrentMagnificationSpec.scale; 354 * Returns the scale currently used by the window manager. If an 358 * @return the scale currently used by the window manager 361 return mSpecAnimationBridge.mSentMagnificationSpec.scale; 387 * Resets the magnification scale and center, optionally animating the 421 * @param scale th 430 setScale(float scale, float pivotX, float pivotY, boolean animate, int id) argument 494 setScaleAndCenter( float scale, float centerX, float centerY, boolean animate, int id) argument 504 setScaleAndCenterLocked(float scale, float centerX, float centerY, boolean animate, int id) argument 595 updateMagnificationSpecLocked(float scale, float centerX, float centerY) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | MagnificationControllerTest.java | 197 final float scale = 2.0f; 199 final PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, center, scale); 201 .setScale(scale, center.x, center.y, false, SERVICE_ID_1)); 203 final MagnificationSpec expectedSpec = getMagnificationSpec(scale, offsets); 215 float scale = 2.0f; 218 .setScale(scale, pivotPoint.x, pivotPoint.y, true, SERVICE_ID_1)); 223 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale); 224 MagnificationSpec endSpec = getMagnificationSpec(scale, offsets); 255 float scale = 2.0f; 256 assertTrue(mMagnificationController.setScale(scale, 764 computeOffsets(Rect magnifiedBounds, PointF center, float scale) argument 779 getMagnificationSpec(float scale, PointF offsets) argument 783 getMagnificationSpec(float scale, float offsetX, float offsetY) argument [all...] |