/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | PreviewFrameLayout.java | 28 * A layout which handles the preview aspect ratio. 43 public void setAspectRatio(double ratio) { argument 44 if (ratio <= 0.0) throw new IllegalArgumentException(); 48 ratio = 1 / ratio; 51 if (mAspectRatio != ratio) { 52 mAspectRatio = ratio; 71 // Resize the preview frame with correct aspect ratio.
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
H A D | DigitalAppWidgetProvider.java | 52 float ratio = WidgetUtils.getScaleRatio(ctxt, null, appWidgetId); 53 updateClock(ctxt, appWidgetManager, appWidgetId, ratio); 63 float ratio = WidgetUtils.getScaleRatio(context, newOptions, appWidgetId); 65 updateClock(context, widgetManager, appWidgetId, ratio); 73 Context c, AppWidgetManager appWidgetManager, int appWidgetId, float ratio) { 78 WidgetUtils.setClockSize(c, widget, ratio); 72 updateClock( Context c, AppWidgetManager appWidgetManager, int appWidgetId, float ratio) argument
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | PreviewFrameLayout.java | 31 * A layout which handles the preview aspect ratio. 67 public void setAspectRatio(double ratio) { argument 68 if (ratio <= 0.0) throw new IllegalArgumentException(); 72 ratio = 1 / ratio; 75 if (mAspectRatio != ratio) { 76 mAspectRatio = ratio; 98 // Resize the preview frame with correct aspect ratio.
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | ProportionalLayout.java | 143 public void setRatio(float ratio) { argument 144 mRatio = ratio;
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
H A D | GLCanvasMock.java | 64 float ratio, int x, int y, int w, int h) { 66 mDrawMixedRatio = ratio; 63 drawMixed(BasicTexture from, BasicTexture to, float ratio, int x, int y, int w, int h) argument
|
H A D | GLCanvasStub.java | 64 float ratio, int x, int y, int w, int h) {} 66 float ratio, int x, int y, int w, int h) {} 68 float ratio, int x, int y, int width, int height, float alpha) {} 87 float ratio, RectF src, RectF target) {} 63 drawMixed(BasicTexture from, BasicTexture to, float ratio, int x, int y, int w, int h) argument 65 drawMixed(BasicTexture from, int to, float ratio, int x, int y, int w, int h) argument 67 drawMixed(BasicTexture from, BasicTexture to, float ratio, int x, int y, int width, int height, float alpha) argument 86 drawMixed(BasicTexture from, int toColor, float ratio, RectF src, RectF target) argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyDrawParams.java | 116 final int dimens, final float ratio, final int defaultDimens) { 120 if (ResourceUtils.isValidFraction(ratio)) { 121 return (int)(keyHeight * ratio); 126 private static final int selectTextSize(final int keyHeight, final float ratio, argument 128 if (ResourceUtils.isValidFraction(ratio)) { 129 return (int)(keyHeight * ratio); 115 selectTextSizeFromDimensionOrRatio(final int keyHeight, final int dimens, final float ratio, final int defaultDimens) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | GLCanvas.java | 97 // from * (1 - ratio) + to * ratio 100 float ratio, int x, int y, int w, int h); 103 // rectangle. The actual color used is from * (1 - ratio) + to * ratio. 107 float ratio, RectF src, RectF target); 99 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int w, int h) argument 106 drawMixed(BasicTexture from, int toColor, float ratio, RectF src, RectF target) argument
|
H A D | TiledTexture.java | 267 // a rectangle. The used color is: from * (1 - ratio) + to * ratio. 268 public void drawMixed(GLCanvas canvas, int color, float ratio, argument 281 canvas.drawMixed(t, color, ratio, mSrcRect, mDestRect);
|
H A D | CropView.java | 129 public void setAspectRatio(float ratio) { argument 130 mAspectRatio = ratio;
|
H A D | GLCanvasImpl.java | 448 int toColor, float ratio, int x, int y, int w, int h) { 449 drawMixed(from, toColor, ratio, x, y, w, h, mAlpha); 468 private void setMixedColor(int toColor, float ratio, float alpha) { argument 471 // alpha * ((1 - ratio) * from + ratio * to) 476 // So, we have combo = alpha * (1 - ratio) 477 // and scale = alpha * ratio / (1 - combo) 479 float combo = alpha * (1 - ratio); 480 float scale = alpha * ratio / (1 - combo); 510 public void drawMixed(BasicTexture from, int toColor, float ratio, argument 447 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int w, int h) argument 544 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int width, int height, float alpha) argument [all...] |
H A D | PhotoView.java | 1766 // When ratio = 0, the result is from. 1767 // When ratio = 1, the result is to. 1768 private static float interpolate(float ratio, float from, float to) { argument 1769 return from + (to - from) * ratio * ratio;
|