/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | VolumeControlAction.java | 52 * Scale a custom volume value to cec volume scale. 54 * @param volume volume value in custom scale 55 * @param scale scale of volume (max volume) 58 public static int scaleToCecVolume(int volume, int scale) { argument 59 return (volume * MAX_VOLUME) / scale; 65 * @param cecVolume volume value in cec volume scale. It should be in a range of [0-100] 66 * @param scale scale of custom volume (max volume) 69 public static int scaleToCustomVolume(int cecVolume, int scale) { argument [all...] |
/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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/shadowutil/ |
H A D | ShadowBuffer.java | 40 public void generateTriangles(@NonNull float[] strip, float scale) { argument 44 float fz3 = scale * strip[i + 2]; 48 float fz2 = scale * strip[i + 5]; 52 float fz1 = scale * strip[i + 8];
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | GlifPatternDrawable.java | 57 // X coordinate of scale focus, as a fraction of of the width. (Range is 0 - 1) 59 // Y coordinate of scale focus, as a fraction of of the height. (Range is 0 - 1) 68 // and it won't crash due to a very large scale. 162 float scale = Math.max(scaleX, scaleY); 163 scale = Math.min(MAX_CACHED_BITMAP_SCALE, scale); 166 int scaledWidth = (int) (VIEWBOX_WIDTH * scale); 167 int scaledHeight = (int) (VIEWBOX_HEIGHT * scale); 175 renderOnCanvas(bitmapCanvas, scale); 179 private void renderOnCanvas(Canvas canvas, float scale) { argument [all...] |
/frameworks/rs/support/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/rs/tests/java_api/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/tests/java_api/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/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 | 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 | 28 * Subclass of FrameLayout that support scale layout area size for children. 68 public void setChildScale(float scale) { argument 69 if (mChildScale != scale) { 70 mChildScale = scale; 72 getChildAt(i).setScaleX(scale); 73 getChildAt(i).setScaleY(scale); 180 private static int getScaledMeasureSpec(int measureSpec, float scale) { argument 181 return scale == 1f ? measureSpec : MeasureSpec.makeMeasureSpec( 182 (int) (MeasureSpec.getSize(measureSpec) / scale + 0.5f),
|
/frameworks/av/media/libaudioprocessing/ |
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/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/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 | 257 void onProgressRefresh(float scale, boolean fromUser, int progress) { argument 258 super.onProgressRefresh(scale, fromUser, progress);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | StaticLayoutTest.java | 181 fmi.top, fmi.descent + s.scale(fmi.descent - fmi.top), 182 fmi.ascent, fmi.descent + s.scale(fmi.descent - fmi.ascent), 203 fmi.top, fmi.descent + s.scale(fmi.descent - fmi.top), 204 fmi.ascent, fmi.descent + s.scale(fmi.descent - fmi.ascent), 210 // Models the effect of the scale and add parameters. I think the current 221 public int scale(float height) { method in class:StaticLayoutTest.Scaler 225 Log.i("Scale", "expected scale: " + rndVal + 226 " != returned scale: " + altVal);
|
/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 | 643 * Scales up the rect by the given scale. 646 public void scale(float scale) { argument 647 if (scale != 1.0f) { 648 left = (int) (left * scale + 0.5f); 649 top = (int) (top * scale + 0.5f); 650 right = (int) (right * scale + 0.5f); 651 bottom = (int) (bottom * scale + 0.5f);
|
H A D | RectF.java | 588 * Scales up the rect by the given scale. 591 public void scale(float scale) { argument 592 if (scale != 1.0f) { 593 left = left * scale; 594 top = top * scale ; 595 right = right * scale; 596 bottom = bottom * scale;
|
/frameworks/base/libs/hwui/ |
H A D | CanvasState.cpp | 176 void CanvasState::scale(float sx, float sy) { function in class:android::uirenderer::CanvasState 177 mSnapshot->transform->scale(sx, sy, 1.0f);
|
/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/recents/views/ |
H A D | RecentsTransitionHelper.java | 355 float scale = transform.scale; 356 int fromWidth = (int) (transform.rect.width() * scale); 357 int fromHeight = (int) (transform.rect.height() * scale); 367 return drawViewIntoGraphicBuffer(fromWidth, fromHeight, taskView, scale, 0); 374 float scale = transform.scale; 376 int headerHeight = (int) (taskView.mHeaderView.getMeasuredHeight() * scale); 385 scale, 0); 390 View view, float scale, in 389 drawViewIntoGraphicBuffer(int bufferWidth, int bufferHeight, View view, float scale, int eraseColor) argument [all...] |