/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 | 96 float ratio = WidgetUtils.getScaleRatio(context, null, appWidgetId); 98 WidgetUtils.setClockSize(context, widget, ratio); 140 float ratio = WidgetUtils.getScaleRatio(context, null, appWidgetId); 141 updateClock(context, appWidgetManager, appWidgetId, ratio); 151 float ratio = WidgetUtils.getScaleRatio(context, newOptions, appWidgetId); 153 updateClock(context, widgetManager, appWidgetId, ratio); 157 Context context, AppWidgetManager appWidgetManager, int appWidgetId, float ratio) { 172 WidgetUtils.setClockSize(context, widget, ratio); 156 updateClock( Context context, 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(); 70 if (mAspectRatio != ratio) { 71 mAspectRatio = ratio; 94 // Resize the preview frame with correct aspect ratio.
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/widget/ |
H A D | ProportionalLayout.java | 143 public void setRatio(float ratio) { argument 144 mRatio = ratio;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyDrawParams.java | 117 final int dimens, final float ratio, final int defaultDimens) { 121 if (ResourceUtils.isValidFraction(ratio)) { 122 return (int)(keyHeight * ratio); 127 private static final int selectTextSize(final int keyHeight, final float ratio, argument 129 if (ResourceUtils.isValidFraction(ratio)) { 130 return (int)(keyHeight * ratio); 116 selectTextSizeFromDimensionOrRatio(final int keyHeight, final int dimens, final float ratio, final int defaultDimens) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 109 // from * (1 - ratio) + to * ratio 112 float ratio, int x, int y, int w, int h); 115 // rectangle. The actual color used is from * (1 - ratio) + to * ratio. 119 float ratio, RectF src, RectF target); 111 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int w, int h) argument 118 drawMixed(BasicTexture from, int toColor, float ratio, RectF src, RectF target) argument
|
H A D | TiledTexture.java | 275 // a rectangle. The used color is: from * (1 - ratio) + to * ratio. 276 public void drawMixed(GLCanvas canvas, int color, float ratio, argument 289 canvas.drawMixed(t, color, ratio, mSrcRect, mDestRect);
|
H A D | GLES11Canvas.java | 451 int toColor, float ratio, int x, int y, int w, int h) { 452 drawMixed(from, toColor, ratio, x, y, w, h, mAlpha); 471 private void setMixedColor(int toColor, float ratio, float alpha) { argument 474 // alpha * ((1 - ratio) * from + ratio * to) 479 // So, we have combo = alpha * (1 - ratio) 480 // and scale = alpha * ratio / (1 - combo) 482 float combo = alpha * (1 - ratio); 483 float scale = alpha * ratio / (1 - combo); 513 public void drawMixed(BasicTexture from, int toColor, float ratio, argument 450 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int w, int h) argument 547 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int width, int height, float alpha) argument [all...] |
H A D | GLES20Canvas.java | 758 public void drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) { argument 761 drawMixed(texture, toColor, ratio, mTempSourceRect, mTempTargetRect); 765 public void drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) { argument 772 float cappedRatio = Math.min(1f, Math.max(0f, ratio));
|
/packages/apps/Launcher3/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 109 // from * (1 - ratio) + to * ratio 112 float ratio, int x, int y, int w, int h); 115 // rectangle. The actual color used is from * (1 - ratio) + to * ratio. 119 float ratio, RectF src, RectF target); 111 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int w, int h) argument 118 drawMixed(BasicTexture from, int toColor, float ratio, RectF src, RectF target) argument
|
H A D | GLES20Canvas.java | 758 public void drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) { argument 761 drawMixed(texture, toColor, ratio, mTempSourceRect, mTempTargetRect); 765 public void drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) { argument 772 float cappedRatio = Math.min(1f, Math.max(0f, ratio));
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | VideoUI.java | 491 public void setAspectRatio(double ratio) { argument 492 // mPreviewFrameLayout.setAspectRatio(ratio);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | PhotoView.java | 1791 // When ratio = 0, the result is from. 1792 // When ratio = 1, the result is to. 1793 private static float interpolate(float ratio, float from, float to) { argument 1794 return from + (to - from) * ratio * ratio;
|