/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/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 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/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 | 741 int targetHeight = getMeasuredHeight(); 745 mCurrentHeight = targetHeight; 747 if (targetHeight != layoutParams.height) { 748 layoutParams.height = targetHeight; 751 } else if (mCurrentHeight != targetHeight || needFadeAnimation) { 756 mResizeAnimator = createResizeAnimator(targetHeight, needFadeAnimation); 761 private Animator createResizeAnimator(int targetHeight, boolean addFadeAnimation) { 762 final ValueAnimator heightAnimator = ValueAnimator.ofInt(mCurrentHeight, targetHeight);
|
/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/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/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/apps/TV/src/com/android/tv/guide/ |
D | ProgramGuide.java | 856 final View target, int initialHeight, int targetHeight) { 857 ValueAnimator animator = ValueAnimator.ofInt(initialHeight, targetHeight);
|