/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterDownsample.java | 69 int newHeight = orig_h * p / 100; in apply() local 72 if (newWidth <= 0 || newHeight <= 0 || newWidth >= w || newHeight >= h) { in apply() 75 Bitmap ret = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true); in apply()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | ContactsAsyncHelper.java | 196 int newHeight = (int) (orgHeight / ratio); in getPhotoIconWhenAppropriate() local 199 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate() 208 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true); in getPhotoIconWhenAppropriate()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoProcessor.java | 219 final int newHeight = (int) (cropHeight * scaleFactor); in getNormalizedBitmap() local 220 if (newWidth <= 0 || newHeight <= 0) { in getNormalizedBitmap() 223 final Bitmap scaledBitmap = Bitmap.createBitmap(newWidth, newHeight, in getNormalizedBitmap()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | ContactsAsyncHelper.java | 181 int newHeight = (int) (orgHeight / ratio); in getPhotoIconWhenAppropriate() local 184 if (newWidth <= 0 || newHeight <= 0) { in getPhotoIconWhenAppropriate() 191 return Bitmap.createScaledBitmap(orgBitmap, newWidth, newHeight, true); in getPhotoIconWhenAppropriate()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AppWidgetResizeFrame.java | 497 int newHeight = sTmpRect.height(); in snapToWidget() local 510 if (newY + newHeight > mDragLayer.getHeight()) { in snapToWidget() 512 mBottomTouchRegionAdjustment = -(newY + newHeight - mDragLayer.getHeight()); in snapToWidget() 520 lp.height = newHeight; in snapToWidget() 530 PropertyValuesHolder.ofInt(LAYOUT_HEIGHT, lp.height, newHeight), in snapToWidget()
|
D | CellLayout.java | 875 int newHeight = childHeightSize; in onMeasure() local 878 newHeight = mFixedHeight; in onMeasure() 885 MeasureSpec.makeMeasureSpec(newHeight, MeasureSpec.EXACTLY)); in onMeasure()
|
/packages/apps/Dialer/java/com/android/dialer/animation/ |
D | AnimUtils.java | 218 public static void changeDimensions(final View view, final int newWidth, final int newHeight) { in changeDimensions() argument 224 final int deltaHeight = newHeight - oldHeight; in changeDimensions()
|
/packages/apps/PhoneCommon/src/com/android/phone/common/animation/ |
D | AnimUtils.java | 199 public static void changeDimensions(final View view, final int newWidth, final int newHeight) { in changeDimensions() argument 205 final int deltaHeight = newHeight - oldHeight; in changeDimensions()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ImageUtils.java | 829 final int newHeight) { in scaleCenterCrop() argument 837 final float yScale = (float) newHeight / sourceHeight; in scaleCenterCrop() 847 final float top = (newHeight - scaledHeight) / 2; in scaleCenterCrop() 855 final Bitmap dest = Bitmap.createBitmap(newWidth, newHeight, source.getConfig()); in scaleCenterCrop()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GeometryMathUtils.java | 204 public static float scale(float oldWidth, float oldHeight, float newWidth, float newHeight) { in scale() argument 205 if (oldHeight == 0 || oldWidth == 0 || (oldWidth == newWidth && oldHeight == newHeight)) { in scale() 208 return Math.min(newWidth / oldWidth, newHeight / oldHeight); in scale()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | BoundedRect.java | 304 float newHeight = Math.abs(fixed_y - p[1]); in fixedAspectResizeInner() local 305 newWidth = Math.max(newWidth, aspRatio * newHeight); in fixedAspectResizeInner()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | PhotoModule.java | 830 int newHeight; in cropJpegDataToAspectRatio() local 833 newHeight = (int) (originalWidth / targetAspectRatio); in cropJpegDataToAspectRatio() 837 newHeight = originalHeight; in cropJpegDataToAspectRatio() 840 int yOffset = (originalHeight - newHeight)/2; in cropJpegDataToAspectRatio() 846 Bitmap resized = Bitmap.createBitmap(original,xOffset,yOffset,newWidth, newHeight); in cropJpegDataToAspectRatio() 848 exif.setTagValue(ExifInterface.TAG_PIXEL_Y_DIMENSION, new Integer(newHeight)); in cropJpegDataToAspectRatio()
|