/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | GLES11Canvas.java | 451 int toColor, float ratio, int x, int y, int w, int h) { in drawMixed() argument 452 drawMixed(from, toColor, ratio, x, y, w, h, mAlpha); in drawMixed() 471 private void setMixedColor(int toColor, float ratio, float alpha) { in setMixedColor() argument 482 float combo = alpha * (1 - ratio); in setMixedColor() 483 float scale = alpha * ratio / (1 - combo); in setMixedColor() 513 public void drawMixed(BasicTexture from, int toColor, float ratio, in drawMixed() argument 517 if (ratio <= 0.01f) { in drawMixed() 520 } else if (ratio >= 1) { in drawMixed() 540 setMixedColor(toColor, ratio, alpha); in drawMixed() 548 float ratio, int x, int y, int width, int height, float alpha) { in drawMixed() argument [all …]
|
D | GLES20Canvas.java | 758 …public void drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) { in drawMixed() argument 761 drawMixed(texture, toColor, ratio, mTempSourceRect, mTempTargetRect); in drawMixed() 765 …public void drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) { in drawMixed() argument 772 float cappedRatio = Math.min(1f, Math.max(0f, ratio)); in drawMixed()
|
D | GLCanvas.java | 112 float ratio, int x, int y, int w, int h); in drawMixed() argument 119 float ratio, RectF src, RectF target); in drawMixed() argument
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoSource.java | 178 float ratio = (outsideRatio / insideRatio < mMaxCropRatio ? in load() local 181 while (ratio < 0.5) { in load() 183 ratio *= 2; in load() 193 ratio = Math.max((float) longSide / (float) rawLongSide, in load() 196 if (Math.abs(ratio - 1.0f) > 0.001) { in load() 197 log(TAG, "still too big, scaling down by " + ratio); in load() 198 options.outWidth = (int) (ratio * options.outWidth); in load() 199 options.outHeight = (int) (ratio * options.outHeight); in load()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | PreviewFrameLayout.java | 43 public void setAspectRatio(double ratio) { in setAspectRatio() argument 44 if (ratio <= 0.0) throw new IllegalArgumentException(); in setAspectRatio() 48 ratio = 1 / ratio; in setAspectRatio() 51 if (mAspectRatio != ratio) { in setAspectRatio() 52 mAspectRatio = ratio; in setAspectRatio()
|
D | Util.java | 399 double ratio = (double) size.width / size.height; in getOptimalPreviewSize() local 400 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize() 433 double ratio = (double) size.width / size.height; in getOptimalVideoSnapshotPictureSize() local 434 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalVideoSnapshotPictureSize()
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | WidgetUtils.java | 53 float ratio = minWidth / res.getDimension(R.dimen.def_digital_widget_width); in getScaleRatio() local 54 return (ratio > 1) ? 1 : ratio; in getScaleRatio() 72 float ratio = minHeight / res.getDimension(R.dimen.def_digital_widget_height); in getHeightScaleRatio() local 73 return (ratio > 1) ? 1 : ratio; in getHeightScaleRatio()
|
D | DigitalAppWidgetProvider.java | 54 float ratio = WidgetUtils.getScaleRatio(ctxt, null, appWidgetId); in onUpdate() local 55 updateClock(ctxt, appWidgetManager, appWidgetId, ratio); in onUpdate() 65 float ratio = WidgetUtils.getScaleRatio(context, newOptions, appWidgetId); in onAppWidgetOptionsChanged() local 67 updateClock(context, widgetManager, appWidgetId, ratio); in onAppWidgetOptionsChanged() 75 Context c, AppWidgetManager appWidgetManager, int appWidgetId, float ratio) { in updateClock() argument 86 WidgetUtils.setClockSize(c, widget, ratio); in updateClock()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyDrawParams.java | 116 final int dimens, final float ratio, final int defaultDimens) { in selectTextSizeFromDimensionOrRatio() argument 120 if (ResourceUtils.isValidFraction(ratio)) { in selectTextSizeFromDimensionOrRatio() 121 return (int)(keyHeight * ratio); in selectTextSizeFromDimensionOrRatio() 126 private static final int selectTextSize(final int keyHeight, final float ratio, in selectTextSize() argument 128 if (ResourceUtils.isValidFraction(ratio)) { in selectTextSize() 129 return (int)(keyHeight * ratio); in selectTextSize()
|
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
D | SmartDialTextView.java | 62 float ratio = width / paint.measureText(getText().toString()); in rescaleText() local 64 if (ratio < 1.0f) { in rescaleText() 65 if (ratio < 0.8f) { in rescaleText() 71 setTextScaleX(ratio); in rescaleText()
|
/packages/apps/Gallery2/src/com/android/camera/ |
D | PreviewFrameLayout.java | 59 public void setAspectRatio(double ratio) { in setAspectRatio() argument 60 if (ratio <= 0.0) throw new IllegalArgumentException(); in setAspectRatio() 62 if (mAspectRatio != ratio) { in setAspectRatio() 63 mAspectRatio = ratio; in setAspectRatio()
|
D | Util.java | 456 double ratio = (double) size.width / size.height; in getOptimalPreviewSize() local 457 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize() 489 double ratio = (double) size.width / size.height; in getOptimalVideoSnapshotPictureSize() local 490 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalVideoSnapshotPictureSize()
|
/packages/apps/Camera/src/com/android/camera/ |
D | PreviewFrameLayout.java | 67 public void setAspectRatio(double ratio) { in setAspectRatio() argument 68 if (ratio <= 0.0) throw new IllegalArgumentException(); in setAspectRatio() 70 if (mAspectRatio != ratio) { in setAspectRatio() 71 mAspectRatio = ratio; in setAspectRatio()
|
D | Util.java | 455 double ratio = (double) size.width / size.height; in getOptimalPreviewSize() local 456 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize() 488 double ratio = (double) size.width / size.height; in getOptimalVideoSnapshotPictureSize() local 489 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalVideoSnapshotPictureSize()
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
D | GLCanvasStub.java | 95 float ratio, int x, int y, int w, int h) {} in drawMixed() argument 98 float ratio, int x, int y, int w, int h) {} in drawMixed() argument 100 float ratio, int x, int y, int width, int height, float alpha) {} in drawMixed() argument 127 float ratio, RectF src, RectF target) {} in drawMixed() argument
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | RotateImageView.java | 128 float ratio = Math.min((float) width / w, (float) height / h); in onDraw() local 129 canvas.scale(ratio, ratio, width / 2.0f, height / 2.0f); in onDraw()
|
/packages/apps/Gallery2/src/com/android/camera/ui/ |
D | RotateImageView.java | 130 float ratio = Math.min((float) width / w, (float) height / h); in onDraw() local 131 canvas.scale(ratio, ratio, width / 2.0f, height / 2.0f); in onDraw()
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | RotateImageView.java | 130 float ratio = Math.min((float) width / w, (float) height / h); in onDraw() local 131 canvas.scale(ratio, ratio, width / 2.0f, height / 2.0f); in onDraw()
|
/packages/apps/Phone/src/com/android/phone/ |
D | ContactsAsyncHelper.java | 282 float ratio = ((float) longerEdge) / iconSize; in getPhotoIconWhenAppropriate() local 283 int newWidth = (int) (orgWidth / ratio); in getPhotoIconWhenAppropriate() 284 int newHeight = (int) (orgHeight / ratio); in getPhotoIconWhenAppropriate()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Utilities.java | 121 final float ratio = (float) sourceWidth / sourceHeight; in createIconBitmap() local 123 height = (int) (width / ratio); in createIconBitmap() 125 width = (int) (height * ratio); in createIconBitmap()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | SlideshowPresenter.java | 79 float ratio = mWidthTransformRatio > mHeightTransformRatio ? 81 mWidthTransformRatio = ratio; 82 mHeightTransformRatio = ratio;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PositionController.java | 315 float ratio = (width > height) in setBoxSize() local 329 b.mCurrentScale *= ratio; in setBoxSize() 330 b.mFromScale *= ratio; in setBoxSize() 331 b.mToScale *= ratio; in setBoxSize() 335 mFocusX /= ratio; in setBoxSize() 336 mFocusY /= ratio; in setBoxSize()
|
/packages/apps/Settings/src/com/android/settings/ |
D | ActivityPicker.java | 379 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail() local 382 height = (int) (width / ratio); in createIconThumbnail() 384 width = (int) (height * ratio); in createIconThumbnail()
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/glrenderer/ |
D | GLCanvasMock.java | 67 float ratio, int x, int y, int w, int h) { in drawMixed() argument 69 mDrawMixedRatio = ratio; in drawMixed()
|
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/ |
D | HoloSpiralView.java | 130 float ratio = realPosition / (mWallpaperWidth * 4); in onTouchEvent() local 131 mWallpaperRS.setOffset(ratio, 0, 0, 0); in onTouchEvent()
|