Home
last modified time | relevance | path

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

/packages/apps/LegacyCamera/src/com/android/camera/
DPreviewFrameLayout.java43 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()
DUtil.java399 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()
DCamera.java1009 int ratio = (int) Math.ceil((double) width / previewWidth); in storeImage() local
1010 int inSampleSize = Integer.highestOneBit(ratio); in storeImage()
DVideoCamera.java2417 int ratio = (int) Math.ceil((double) mParameters.getPictureSize().width in storeImage() local
2419 int inSampleSize = Integer.highestOneBit(ratio); in storeImage()
/packages/apps/Camera/src/com/android/camera/
DPreviewFrameLayout.java48 public void setAspectRatio(double ratio) { in setAspectRatio() argument
49 if (ratio <= 0.0) throw new IllegalArgumentException(); in setAspectRatio()
53 ratio = 1 / ratio; in setAspectRatio()
56 if (mAspectRatio != ratio) { in setAspectRatio()
57 mAspectRatio = ratio; in setAspectRatio()
DUtil.java381 double ratio = (double) size.width / size.height; in getOptimalPreviewSize() local
382 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize()
415 double ratio = (double) size.width / size.height; in getOptimalVideoSnapshotPictureSize() local
416 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalVideoSnapshotPictureSize()
DPanoramaActivity.java822 int ratio = (int) Math.ceil( in saveHighResMosaic()
825 int inSampleSize = Integer.highestOneBit(ratio); in saveHighResMosaic()
DCamera.java1029 int ratio = (int) Math.ceil((double) width / thumbnailWidth); in storeImage() local
1030 int inSampleSize = Integer.highestOneBit(ratio); in storeImage()
DVideoCamera.java2424 int ratio = (int) Math.ceil((double) mParameters.getPictureSize().width in storeImage() local
2426 int inSampleSize = Integer.highestOneBit(ratio); in storeImage()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
DGLCanvasStub.java63 float ratio, int x, int y, int w, int h) {} in drawMixed() argument
65 float ratio, int x, int y, int w, int h) {} in drawMixed() argument
67 float ratio, int x, int y, int width, int height, float alpha) {} in drawMixed() argument
DGLCanvasMock.java64 float ratio, int x, int y, int w, int h) { in drawMixed() argument
66 mDrawMixedRatio = ratio; in drawMixed()
/packages/apps/Camera/src/com/android/camera/ui/
DRotateImageView.java130 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/LegacyCamera/src/com/android/camera/ui/
DRotateImageView.java128 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/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
DHoloSpiralView.java130 float ratio = realPosition / (mWallpaperWidth * 4); in onTouchEvent() local
131 mWallpaperRS.setOffset(ratio, 0, 0, 0); in onTouchEvent()
/packages/apps/Phone/src/com/android/phone/
DContactsAsyncHelper.java266 float ratio = ((float) longerEdge) / iconSize; in getPhotoIconWhenAppropriate() local
267 int newWidth = (int) (orgWidth / ratio); in getPhotoIconWhenAppropriate()
268 int newHeight = (int) (orgHeight / ratio); in getPhotoIconWhenAppropriate()
/packages/apps/Contacts/src/com/android/contacts/widget/
DProportionalLayout.java143 public void setRatio(float ratio) { in setRatio() argument
144 mRatio = ratio; in setRatio()
/packages/apps/Launcher2/src/com/android/launcher2/
DUtilities.java122 final float ratio = (float) sourceWidth / sourceHeight; in createIconBitmap() local
124 height = (int) (width / ratio); in createIconBitmap()
126 width = (int) (height * ratio); in createIconBitmap()
/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowPresenter.java82 float ratio = mWidthTransformRatio > mHeightTransformRatio ?
84 mWidthTransformRatio = ratio;
85 mHeightTransformRatio = ratio;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLCanvasImpl.java431 int toColor, float ratio, int x, int y, int w, int h) { in drawMixed() argument
432 drawMixed(from, toColor, ratio, x, y, w, h, mAlpha); in drawMixed()
452 float ratio, int x, int y, int width, int height, float alpha) { in drawMixed() argument
454 if (ratio <= 0.01f) { in drawMixed()
457 } else if (ratio >= 1) { in drawMixed()
478 float combo = alpha * (1 - ratio); in drawMixed()
479 float scale = alpha * ratio / (1 - combo); in drawMixed()
DGLCanvas.java99 float ratio, int x, int y, int w, int h); in drawMixed() argument
DPositionController.java315 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()
DPhotoView.java1706 private static float interpolate(float ratio, float from, float to) { in interpolate() argument
1707 return from + (to - from) * ratio * ratio; in interpolate()
DCropView.java128 public void setAspectRatio(float ratio) { in setAspectRatio() argument
129 mAspectRatio = ratio; in setAspectRatio()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java375 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail() local
378 height = (int) (width / ratio); in createIconThumbnail()
380 width = (int) (height * ratio); in createIconThumbnail()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageSummary.java469 double ratio = (double) cpuSpeedStepTimes[step] / totalTimeAtSpeeds; in processAppUsage() local
470 processPower += ratio * tmpCpuTime * powerCpuNormal[step]; in processAppUsage()