/packages/apps/Gallery/src/com/android/camera/ |
D | Util.java | 153 int targetHeight, in transform() argument 157 int deltaY = source.getHeight() - targetHeight; in transform() 165 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, in transform() 175 deltaYHalf + Math.min(targetHeight, source.getHeight())); in transform() 177 int dstY = (targetHeight - src.height()) / 2; in transform() 182 targetHeight - dstY); in transform() 193 float viewAspect = (float) targetWidth / targetHeight; in transform() 196 float scale = targetHeight / bitmapHeightF; in transform() 225 int dy1 = Math.max(0, b1.getHeight() - targetHeight); in transform() 232 targetHeight); in transform()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | BitmapUtil.java | 126 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) { in getRoundedBitmap() argument 131 final Bitmap result = Bitmap.createBitmap(targetWidth, targetHeight, in getRoundedBitmap() 137 canvas.drawOval(0, 0, targetWidth, targetHeight, paint); in getRoundedBitmap() 149 (float) inputHeight / targetHeight); in getRoundedBitmap() 152 final int yCropAmountHalved = (int) (scaleBy * targetHeight / 2); in getRoundedBitmap() 160 final RectF dst = new RectF(0, 0, targetWidth, targetHeight); in getRoundedBitmap()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | FilmstripItemUtils.java | 106 int targetHeight = imageHeight; in loadImageThumbnailFromStream() local 108 while (targetHeight > heightBound || targetWidth > widthBound || in loadImageThumbnailFromStream() 109 targetHeight > GL11.GL_MAX_TEXTURE_SIZE || targetWidth > GL11.GL_MAX_TEXTURE_SIZE || in loadImageThumbnailFromStream() 110 targetHeight * targetWidth > maximumPixels) { in loadImageThumbnailFromStream() 113 targetHeight = imageWidth / sampleSize; in loadImageThumbnailFromStream() 123 targetWidth * targetHeight < maximumPixels / 4 && sampleSize > 1) { in loadImageThumbnailFromStream()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 390 int targetHeight = Math.min(display.getHeight(), display.getWidth()); in getOptimalPreviewSize() local 392 if (targetHeight <= 0) { in getOptimalPreviewSize() 394 targetHeight = display.getHeight(); in getOptimalPreviewSize() 401 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize() 403 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize() 413 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize() 415 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 543 int targetHeight = Math.min(defaultDisplaySize.getWidth(), defaultDisplaySize.getHeight()); in getOptimalPreviewSizeIndex() local 552 double heightDiff = Math.abs(size.getHeight() - targetHeight); in getOptimalPreviewSizeIndex() 559 if (size.getHeight() < targetHeight) { in getOptimalPreviewSizeIndex() 572 if (Math.abs(size.getHeight() - targetHeight) < minDiff) { in getOptimalPreviewSizeIndex() 574 minDiff = Math.abs(size.getHeight() - targetHeight); in getOptimalPreviewSizeIndex() 594 int targetHeight) { in getOptimalVideoSnapshotPictureSize() argument 608 if (size.height() == targetHeight && size.width() == targetWidth) { in getOptimalVideoSnapshotPictureSize() 614 final double targetRatio = (double) targetWidth / targetHeight; in getOptimalVideoSnapshotPictureSize()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | DecodedImageResource.java | 209 final int targetHeight = (int) (bitmapHeight * targetScale); in loadMediaBlocking() local 211 if (targetScale < 1.0f && targetWidth > 0 && targetHeight > 0 && in loadMediaBlocking() 212 targetWidth != bitmapWidth && targetHeight != bitmapHeight) { in loadMediaBlocking() 214 Bitmap.createScaledBitmap(bitmap, targetWidth, targetHeight, false); in loadMediaBlocking()
|
/packages/apps/Camera/src/com/android/camera/ |
D | Util.java | 451 int targetHeight = Math.min(point.x, point.y); in getOptimalPreviewSize() local 456 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize() 458 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize() 467 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize() 469 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | ChartSweepView.java | 184 final float targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top in getTargetInset() local 186 return mSweepPadding.top + (targetHeight / 2) + mSweepOffset.y; in getTargetInset() 655 final int targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top 657 mMargins.top = -(mSweepPadding.top + (targetHeight / 2));
|
/packages/apps/FMRadio/src/com/android/fmradio/views/ |
D | FmScroller.java | 1399 int targetHeight = mFullHeight - (mFullHeight - mTargetHeight) / 2; in handleScrollLandscapeMode() local 1400 if (currentHeight <= targetHeight) { in handleScrollLandscapeMode() 1565 private float getNewSize(int currentHeight, int targetHeight, in getNewSize() argument 1567 if (currentHeight == targetHeight) { in getNewSize() 1570 return targetSize + (currentHeight - targetHeight) * rate; in getNewSize()
|