/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 | WidgetUtils.java | 60 float ratio = (density * minWidth) / res.getDimension(R.dimen.min_digital_widget_width); 65 ratio = Math.min(ratio, getHeightScaleRatio(context, options, id)); 67 return (ratio > 1) ? 1 : ratio; 92 // Ensure divisor for ratio is positive number 94 float ratio = ((density * minHeight) - lblBox) 96 return (ratio > 1) ? 1 : ratio;
|
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/Camera2/src/com/android/camera/ |
H A D | VideoController.java | 31 public void onZoomChanged(float ratio); argument
|
H A D | VideoUI.java | 171 public void setAspectRatio(float ratio) { argument 172 if (ratio <= 0) { 175 float aspectRatio = ratio > 1 ? ratio : 1 / ratio; 278 public void onZoomValueChanged(float ratio) { argument 279 mController.onZoomChanged(ratio); 313 // recalculate aspect ratio when restarting.
|
H A D | CaptureModuleUI.java | 73 public void onZoomValueChanged(float ratio) { 74 mModule.setZoom(ratio);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyDrawParams.java | 131 final int dimens, final float ratio, final int defaultDimens) { 135 if (ResourceUtils.isValidFraction(ratio)) { 136 return (int)(keyHeight * ratio); 141 private static int selectTextSize(final int keyHeight, final float ratio, argument 143 if (ResourceUtils.isValidFraction(ratio)) { 144 return (int)(keyHeight * ratio); 130 selectTextSizeFromDimensionOrRatio(final int keyHeight, final int dimens, final float ratio, final int defaultDimens) argument
|
/packages/apps/PhoneCommon/src/com/android/phone/common/util/ |
H A D | ViewUtil.java | 100 float ratio = width / paint.measureText(textView.getText().toString()); 101 if (ratio <= 1.0f) { 103 Math.max(minTextSize, originalTextSize * ratio));
|
/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/Camera/src/com/android/camera/ui/ |
H A D | RotateImageView.java | 130 float ratio = Math.min((float) width / w, (float) height / h); 131 canvas.scale(ratio, ratio, width / 2.0f, height / 2.0f);
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | RotateImageView.java | 132 float ratio = Math.min((float) width / w, (float) height / h); 133 canvas.scale(ratio, ratio, width / 2.0f, height / 2.0f);
|
H A D | PreviewOverlay.java | 82 * @param ratio zoom ratio, [1.0f,maximum] 84 void onZoomValueChanged(float ratio); // only for immediate zoom argument 103 * @param zoomMaxRatio max zoom ratio, [1.0f,+Inf) 104 * @param zoom current zoom ratio, [1.0f,zoomMaxRatio] 251 // Set maximum zoom ratio from Module. 256 // Set current zoom ratio from Module. 257 public void setZoom(float ratio) { argument 258 mCurrentRatio = ratio;
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | RotateImageView.java | 128 float ratio = Math.min((float) width / w, (float) height / h); 129 canvas.scale(ratio, ratio, width / 2.0f, height / 2.0f);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | ContactsAsyncHelper.java | 180 float ratio = ((float) longerEdge) / iconSize; 181 int newWidth = (int) (orgWidth / ratio); 182 int newHeight = (int) (orgHeight / ratio); 190 // It is sure ratio >= 1.0f in any case and thus the newly created Bitmap
|
/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/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 | 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...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 107 // from * (1 - ratio) + to * ratio 110 float ratio, int x, int y, int w, int h); 113 // rectangle. The actual color used is from * (1 - ratio) + to * ratio. 117 float ratio, RectF src, RectF target); 109 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int w, int h) argument 116 drawMixed(BasicTexture from, int toColor, float ratio, RectF src, RectF target) argument
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoSource.java | 180 float ratio = (outsideRatio / insideRatio < mMaxCropRatio ? 183 while (ratio < 0.5) { 185 ratio *= 2; 203 ratio = Math.max((float) longSide / (float) rawLongSide, 206 if (Math.abs(ratio - 1.0f) > 0.001) { 207 log(TAG, "still too big, scaling down by " + ratio); 208 options.outWidth = (int) (ratio * options.outWidth); 209 options.outHeight = (int) (ratio * options.outHeight);
|
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/ |
H A D | HoloSpiralView.java | 130 float ratio = realPosition / (mWallpaperWidth * 4); 131 mWallpaperRS.setOffset(ratio, 0, 0, 0);
|
/packages/apps/InCallUI/src/com/android/incallui/ |
H A D | ContactsAsyncHelper.java | 180 float ratio = ((float) longerEdge) / iconSize; 181 int newWidth = (int) (orgWidth / ratio); 182 int newHeight = (int) (orgHeight / ratio); 190 // It is sure ratio >= 1.0f in any case and thus the newly created Bitmap
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | Utilities.java | 121 final float ratio = (float) sourceWidth / sourceHeight; 123 height = (int) (width / ratio); 125 width = (int) (height * ratio);
|
/packages/apps/Mms/src/com/android/mms/ui/ |
H A D | SlideshowPresenter.java | 78 // The ratio indicates how to reduce the source to match the View, 80 float ratio = mWidthTransformRatio > mHeightTransformRatio ? 82 mWidthTransformRatio = ratio; 83 mHeightTransformRatio = ratio;
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | MultiShrinkScroller.java | 78 * In portrait mode, the height:width ratio of the photo's starting height. 84 * to this ratio of its full height. 193 void onTransparentViewHeightChange(float ratio); argument 620 * Return ratio of non-transparent:viewgroup-height for this viewgroup at the starting position. 1013 final float ratio = (toolbarHeight - mMinimumHeaderHeight) 1016 float bezierOutput = mTextSizePathInterpolator.getInterpolation(ratio); 1112 // 3) The function should have a derivative of 0 at ratio = 1 to avoid discontinuities. 1114 final float ratio = calculateHeightRatioToBlendingStartHeight(toolbarHeight); 1115 final float alpha = 1.0f - (float) Math.min(Math.pow(ratio, 1.5f) * 2f, 1f); 1116 final float tint = (float) Math.min(Math.pow(ratio, 1. [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | AttachmentTile.java | 188 // ratio of the image 189 final float ratio = Math.min((float) width / height, (float) height / width); 195 ratio < skinnyThresholdRatio &&
|