Home
last modified time | relevance | path

Searched defs:ratio (Results 1 – 25 of 43) sorted by relevance

12

/packages/apps/DeskClock/src/com/android/alarmclock/
DWidgetUtils.java49 float ratio = (density * minWidth) / res.getDimension(R.dimen.min_digital_widget_width); in getScaleRatio() local
87 float ratio = density * minHeight / res.getDimension(R.dimen.min_digital_widget_height); in getHeightScaleRatio() local
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DLogoUtils.java86 int ratio = Math.max(streamWidth / maxDesiredWidth, streamHeight / maxDesiredHeight); in getBitmapPartiallyResized() local
106 double ratio = Math.max((double) width / maxWidth, (double) height / maxHeight); in resizeBitmap() local
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DEndPointRatioClassifier.java35 float ratio; in getFalseTouchEvaluation() local
/packages/apps/Dialer/java/com/android/dialer/callcomposer/util/
DBitmapResizer.java54 float ratio = 1; in resizeForEnrichedCalling() local
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyDrawParams.java136 final int dimens, final float ratio, final int defaultDimens) { in selectTextSizeFromDimensionOrRatio()
146 private static int selectTextSize(final int keyHeight, final float ratio, in selectTextSize()
/packages/apps/Camera2/src/com/android/camera/ui/focus/
DFocusRing.java64 public void setRadiusRatio(float ratio); in setRadiusRatio()
DFocusController.java132 public void setFocusRatio(final float ratio) { in setFocusRatio()
DFocusRingView.java153 public void setRadiusRatio(float ratio) { in setRadiusRatio()
/packages/apps/LegacyCamera/src/com/android/camera/
DPreviewFrameLayout.java43 public void setAspectRatio(double ratio) { in setAspectRatio()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cube/
DCubeRenderer.java97 float ratio = (float) width / height; in onSurfaceChanged() local
/packages/apps/Camera2/src/com/android/camera/data/
DGlideFilmstripManager.java202 double ratio = Math.min(Math.sqrt(maxArea / original.area()), 1.0f); in clampSize() local
219 double ratio = widthRatio > heightRatio ? heightRatio : widthRatio; in computeFitWithinSize() local
/packages/apps/Camera2/src/com/android/camera/
DVideoController.java31 public void onZoomChanged(float ratio); in onZoomChanged()
DVideoUI.java151 public void setAspectRatio(float ratio) { in setAspectRatio()
262 public void onZoomValueChanged(float ratio) { in onZoomValueChanged()
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
DViewUtil.java100 float ratio = width / paint.measureText(textView.getText().toString()); in resizeText() local
/packages/apps/TV/src/com/android/tv/util/images/
DBitmapUtils.java73 final double ratio = maxHeight / (double) maxWidth; in calculateNewSize() local
192 int ratio = Math.max(width / reqWidth, height / reqHeight); in calculateInSampleSize() local
DImageCache.java148 double ratio = ((double) hit) / (hit + miss) * 100; in get() local
/packages/apps/Dialer/java/com/android/dialer/util/
DViewUtil.java81 float ratio = width / paint.measureText(textView.getText().toString()); in resizeText() local
/packages/apps/DocumentsUI/src/com/android/documentsui/
DViewAutoScroller.java125 private float smoothOutOfBoundsRatio(float ratio) { in smoothOutOfBoundsRatio()
/packages/apps/Camera2/src/com/android/camera/ui/
DPreviewOverlay.java100 void onZoomValueChanged(float ratio); // only for immediate zoom in onZoomValueChanged()
322 public void setZoom(float ratio) { in setZoom()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java399 double ratio = getRatio(size.width, size.height); in getBestPreviewSize() local
420 double ratio = getRatio(size.width, size.height); in getBestPictureSize() local
/packages/apps/Dialer/java/com/android/incallui/
DContactsAsyncHelper.java194 float ratio = ((float) longerEdge) / iconSize; in getPhotoIconWhenAppropriate() local
/packages/apps/Contacts/src/com/android/contacts/widget/
DProportionalLayout.java143 public void setRatio(float ratio) { in setRatio()
DMultiShrinkScroller.java199 void onTransparentViewHeightChange(float ratio); in onTransparentViewHeightChange()
1077 final float ratio = (toolbarHeight - mMinimumHeaderHeight) in updateHeaderTextSizeAndMargin() local
1183 final float ratio = calculateHeightRatioToBlendingStartHeight(toolbarHeight); in updatePhotoTintAndDropShadow() local
1199 final float ratio = calculateHeightRatioToFullyOpen(toolbarHeight); in updatePhotoTintAndDropShadow() local
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DRotateImageView.java128 float ratio = Math.min((float) width / w, (float) height / h); in onDraw() local
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLCanvas.java112 float ratio, int x, int y, int w, int h); in drawMixed()
119 float ratio, RectF src, RectF target); in drawMixed()

12