/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/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/TV/src/com/android/tv/ui/ |
D | KeypadChannelSwitchView.java | 308 int targetHeight = mBaseViewHeight + itemListHeight; in updateViewHeight() local 316 mCurrentHeight = targetHeight; in updateViewHeight() 317 setViewHeight(this, targetHeight); in updateViewHeight() 318 } else if (mCurrentHeight != targetHeight){ in updateViewHeight() 319 mResizeAnimator = createResizeAnimator(targetHeight); in updateViewHeight() 324 private Animator createResizeAnimator(int targetHeight) { in createResizeAnimator() argument 325 ValueAnimator animator = ValueAnimator.ofInt(mCurrentHeight, targetHeight); in createResizeAnimator()
|
D | ChannelBannerView.java | 778 int targetHeight = getMeasuredHeight(); 782 mCurrentHeight = targetHeight; 784 if (targetHeight != layoutParams.height) { 785 layoutParams.height = targetHeight; 788 } else if (mCurrentHeight != targetHeight || needFadeAnimation) { 793 mResizeAnimator = createResizeAnimator(targetHeight, needFadeAnimation); 798 private Animator createResizeAnimator(int targetHeight, boolean addFadeAnimation) { 799 final ValueAnimator heightAnimator = ValueAnimator.ofInt(mCurrentHeight, targetHeight);
|
D | ViewUtils.java | 54 final View target, int initialHeight, int targetHeight) { in createHeightAnimator() argument 55 ValueAnimator animator = ValueAnimator.ofInt(initialHeight, targetHeight); in createHeightAnimator()
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | BitmapUtil.java | 127 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) { in getRoundedBitmap() argument 134 targetWidth, targetHeight, inputConfig != null ? inputConfig : Bitmap.Config.ARGB_8888); in getRoundedBitmap() 139 final RectF dst = new RectF(0, 0, targetWidth, targetHeight); in getRoundedBitmap() 152 Math.min((float) inputWidth / targetWidth, (float) inputHeight / targetHeight); in getRoundedBitmap() 155 final int yCropAmountHalved = (int) (scaleBy * targetHeight / 2); in getRoundedBitmap()
|
/packages/apps/Contacts/src/com/android/contacts/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 final RectF dst = new RectF(0, 0, targetWidth, targetHeight); in getRoundedBitmap() 150 (float) inputHeight / targetHeight); in getRoundedBitmap() 153 final int yCropAmountHalved = (int) (scaleBy * targetHeight / 2); in getRoundedBitmap()
|
/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/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/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/Settings/src/com/android/settings/widget/ |
D | ChartSweepView.java | 183 final float targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top in getTargetInset() local 185 return mSweepPadding.top + (targetHeight / 2) + mSweepOffset.y; in getTargetInset() 654 final int targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top 656 mMargins.top = -(mSweepPadding.top + (targetHeight / 2));
|
/packages/services/BuiltInPrintService/jni/plugins/ |
D | wprint_image.c | 309 float targetHeight, targetWidth; in wprint_image_set_output_properties() local 318 targetHeight = image_info->printable_height * 1.0f; in wprint_image_set_output_properties() 322 rw = (targetHeight * sourceWidth) / sourceHeight; in wprint_image_set_output_properties() 332 image_info->scaled_height = (int) floorf(targetHeight); in wprint_image_set_output_properties()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | DynamicShortcuts.java | 387 final int targetHeight = Math.min(scaledHeight, iconMaxHeight); in decodeStreamForShortcut() local 390 final int targetSize = Math.min(targetWidth, targetHeight); in decodeStreamForShortcut()
|