/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
H A D | DpiTestActivity.java | 164 private void addBitmapDrawable(LinearLayout layout, int resource, boolean scale) { argument 166 bitmap = loadAndPrintDpi(resource, scale); 171 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics()); 190 private void addCanvasBitmap(LinearLayout layout, int resource, boolean scale) { argument 192 bitmap = loadAndPrintDpi(resource, scale); 214 private Bitmap loadAndPrintDpi(int id, boolean scale) { argument 216 if (scale) {
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
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/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; 72 scale = time % 2.f; 82 center_y, scale); 87 center_y, scale); 92 scale); 97 scale);
|
H A D | Vignette.java | 31 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);
|
/frameworks/rs/java/tests/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 | Vignette.java | 31 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);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ScaleFrameLayout.java | 25 * Subclass of FrameLayout that support scale layout area size for children. 64 public void setChildScale(float scale) { argument 65 if (mChildScale != scale) { 66 mChildScale = scale; 68 getChildAt(i).setScaleX(scale); 69 getChildAt(i).setScaleY(scale); 176 private static int getScaledMeasureSpec(int measureSpec, float scale) { argument 177 return scale == 1f ? measureSpec : MeasureSpec.makeMeasureSpec( 178 (int) (MeasureSpec.getSize(measureSpec) / scale + 0.5f),
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Matrix3f.java | 165 * Makes the upper 2x2 a scale matrix of given dimensions 167 * @param x scale component x 168 * @param y scale component y 177 * Sets current values to be a scale matrix of given dimensions 179 * @param x scale component x 180 * @param y scale component y 181 * @param z scale component z 267 * post-multiplying it with a scale matrix of given dimensions 269 * @param x scale component x 270 * @param y scale componen 272 public void scale(float x, float y) { method in class:Matrix3f 286 public void scale(float x, float y, float z) { method in class:Matrix3f [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/ |
H A D | AAC_E_SAMPLES.c | 115 int scale = 441; local 117 scale = 480; 118 param->bitRate = 640*param->nChannels*param->sampleRate/scale;
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | pitch_f4.c | 173 Word32 corr, exp_corr, norm, exp, scale; local 201 scale = -(exp >> 1); /* (1<<scale) < 1/sqrt(energy rounded) */ 241 L_tmp2 = L_add(exp_corr, exp_norm + scale);
|
/frameworks/av/services/audioflinger/ |
H A D | AudioResamplerFirProcess.h | 422 static const TC scale = 1. / (65536. * 65536.); // scale phase bits to [0.0, 1.0) local 423 TC lerpP = TC(phase << (sizeof(phase)*8 - coefShift)) * scale;
|
/frameworks/base/core/java/android/gesture/ |
H A D | GestureUtils.java | 103 float scale = sx < sy ? sx : sy; 104 sx = scale; 105 sy = scale; 113 float scale = sx < sy ? sx : sy; 114 sx = scale; 115 sy = scale; 118 float scale = sy * NONUNIFORM_SCALE; 119 if (scale < sx) { 120 sx = scale; 123 float scale 585 static float[] scale(float[] points, float sx, float sy) { method in class:GestureUtils [all...] |
/frameworks/base/core/java/android/view/animation/ |
H A D | ScaleAnimation.java | 26 * An animation that controls the scale of an object. You can specify the point 244 float scale = getScaleFactor(); 256 t.getMatrix().setScale(sx, sy, scale * mPivotX, scale * mPivotY); 260 float resolveScale(float scale, int type, int data, int size, int psize) { argument 267 return scale;
|
/frameworks/base/core/java/android/widget/ |
H A D | RatingBar.java | 252 void onProgressRefresh(float scale, boolean fromUser, int progress) { argument 253 super.onProgressRefresh(scale, fromUser, progress);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | StaticLayoutTest.java | 186 fmi.top, fmi.descent + s.scale(fmi.descent - fmi.top), 187 fmi.ascent, fmi.descent + s.scale(fmi.descent - fmi.ascent), 188 fmi.ascent, fmi.bottom + s.scale(fmi.bottom - fmi.ascent)); 208 fmi.top, fmi.descent + s.scale(fmi.descent - fmi.top), 209 fmi.ascent, fmi.descent + s.scale(fmi.descent - fmi.ascent), 210 fmi.ascent, fmi.bottom + s.scale(fmi.bottom - fmi.ascent)); 215 // Models the effect of the scale and add parameters. I think the current 226 public int scale(float height) { method in class:StaticLayoutTest.Scaler 230 Log.i("Scale", "expected scale: " + rndVal + 231 " != returned scale [all...] |
/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);
|
H A D | Rect.java | 638 * Scales up the rect by the given scale. 641 public void scale(float scale) { argument 642 if (scale != 1.0f) { 643 left = (int) (left * scale + 0.5f); 644 top = (int) (top * scale + 0.5f); 645 right = (int) (right * scale + 0.5f); 646 bottom = (int) (bottom * scale + 0.5f);
|
/frameworks/base/libs/hwui/utils/ |
H A D | NinePatchImpl.cpp | 59 int scale = alpha + (alpha >> 7); local 60 int a = SkColorGetA(c) * scale >> 8;
|
/frameworks/base/libs/input/ |
H A D | PointerController.h | 128 float scale; member in struct:android::PointerController::Spot 132 : id(id), sprite(sprite), alpha(1.0f), scale(1.0f),
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
H A D | Utilities.java | 160 public static void scaleRectAboutCenter(RectF r, float scale) { argument 161 if (scale != 1.0f) { 165 r.left *= scale; 166 r.top *= scale; 167 r.right *= scale; 168 r.bottom *= scale;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | KeyguardClockPositionAlgorithm.java | 174 private float getClockAlpha(float scale) { argument 178 float alpha = (scale - fadeEnd) 199 * The scale of the Clock
|
/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/rs/java/android/renderscript/ |
H A D | Matrix4f.java | 190 * Sets current values to be a scale matrix of given dimensions 192 * @param x scale component x 193 * @param y scale component y 194 * @param z scale component z 378 * scale matrix of given dimensions 380 * @param x scale component x 381 * @param y scale component y 382 * @param z scale component z 384 public void scale(float x, float y, float z) { method in class:Matrix4f
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
H A D | Quad.java | 266 public Quad scale(float factor) { method in class:Quad
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Region_Delegate.java | 245 /*package*/ static void scale(Region thisRegion, float scale, Region dst) { argument 261 mtx.scale(scale, scale);
|