/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()
|
D | Camera.java | 1009 int ratio = (int) Math.ceil((double) width / previewWidth); in storeImage() local 1010 int inSampleSize = Integer.highestOneBit(ratio); in storeImage()
|
D | VideoCamera.java | 2417 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/ |
D | PreviewFrameLayout.java | 48 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()
|
D | Util.java | 381 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()
|
D | PanoramaActivity.java | 822 int ratio = (int) Math.ceil( in saveHighResMosaic() 825 int inSampleSize = Integer.highestOneBit(ratio); in saveHighResMosaic()
|
D | Camera.java | 1029 int ratio = (int) Math.ceil((double) width / thumbnailWidth); in storeImage() local 1030 int inSampleSize = Integer.highestOneBit(ratio); in storeImage()
|
D | VideoCamera.java | 2424 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/ |
D | GLCanvasStub.java | 63 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
|
D | GLCanvasMock.java | 64 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/ |
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/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/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()
|
/packages/apps/Phone/src/com/android/phone/ |
D | ContactsAsyncHelper.java | 266 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/ |
D | ProportionalLayout.java | 143 public void setRatio(float ratio) { in setRatio() argument 144 mRatio = ratio; in setRatio()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Utilities.java | 122 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/ |
D | SlideshowPresenter.java | 82 float ratio = mWidthTransformRatio > mHeightTransformRatio ? 84 mWidthTransformRatio = ratio; 85 mHeightTransformRatio = ratio;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLCanvasImpl.java | 431 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()
|
D | GLCanvas.java | 99 float ratio, int x, int y, int w, int h); in drawMixed() argument
|
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()
|
D | PhotoView.java | 1706 private static float interpolate(float ratio, float from, float to) { in interpolate() argument 1707 return from + (to - from) * ratio * ratio; in interpolate()
|
D | CropView.java | 128 public void setAspectRatio(float ratio) { in setAspectRatio() argument 129 mAspectRatio = ratio; in setAspectRatio()
|
/packages/apps/Settings/src/com/android/settings/ |
D | ActivityPicker.java | 375 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/ |
D | PowerUsageSummary.java | 469 double ratio = (double) cpuSpeedStepTimes[step] / totalTimeAtSpeeds; in processAppUsage() local 470 processPower += ratio * tmpCpuTime * powerCpuNormal[step]; in processAppUsage()
|