Searched refs:targetHeight (Results 1 - 10 of 10) sorted by relevance
/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | FilmstripItemUtils.java | 106 int targetHeight = imageHeight; 108 while (targetHeight > heightBound || targetWidth > widthBound || 109 targetHeight > GL11.GL_MAX_TEXTURE_SIZE || targetWidth > GL11.GL_MAX_TEXTURE_SIZE || 110 targetHeight * targetWidth > maximumPixels) { 113 targetHeight = imageWidth / sampleSize; 123 targetWidth * targetHeight < maximumPixels / 4 && sampleSize > 1) {
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | BitmapUtil.java | 121 * @param targetHeight desired output height 126 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) { argument 131 final Bitmap result = Bitmap.createBitmap(targetWidth, targetHeight, 137 final RectF dst = new RectF(0, 0, targetWidth, targetHeight); 150 (float) inputHeight / targetHeight); 153 final int yCropAmountHalved = (int) (scaleBy * targetHeight / 2);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | DecodedImageResource.java | 209 final int targetHeight = (int) (bitmapHeight * targetScale); 211 if (targetScale < 1.0f && targetWidth > 0 && targetHeight > 0 && 212 targetWidth != bitmapWidth && targetHeight != bitmapHeight) { 214 Bitmap.createScaledBitmap(bitmap, targetWidth, targetHeight, false);
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | Util.java | 153 int targetHeight, 157 int deltaY = source.getHeight() - targetHeight; 165 Bitmap b2 = Bitmap.createBitmap(targetWidth, targetHeight, 175 deltaYHalf + Math.min(targetHeight, source.getHeight())); 177 int dstY = (targetHeight - src.height()) / 2; 182 targetHeight - dstY); 193 float viewAspect = (float) targetWidth / targetHeight; 196 float scale = targetHeight / bitmapHeightF; 225 int dy1 = Math.max(0, b1.getHeight() - targetHeight); 232 targetHeight); 150 transform(Matrix scaler, Bitmap source, int targetWidth, int targetHeight, boolean scaleUp, boolean recycle) argument [all...] |
/packages/apps/TV/src/com/android/tv/ui/ |
H A D | KeypadChannelSwitchView.java | 308 int targetHeight = mBaseViewHeight + itemListHeight; 316 mCurrentHeight = targetHeight; 317 setViewHeight(this, targetHeight); 318 } else if (mCurrentHeight != targetHeight){ 319 mResizeAnimator = createResizeAnimator(targetHeight); 324 private Animator createResizeAnimator(int targetHeight) { argument 325 ValueAnimator animator = ValueAnimator.ofInt(mCurrentHeight, targetHeight);
|
H A 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) { argument 762 final ValueAnimator heightAnimator = ValueAnimator.ofInt(mCurrentHeight, targetHeight);
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Util.java | 390 int targetHeight = Math.min(display.getHeight(), display.getWidth()); 392 if (targetHeight <= 0) { 394 targetHeight = display.getHeight(); 401 if (Math.abs(size.height - targetHeight) < minDiff) { 403 minDiff = Math.abs(size.height - targetHeight); 413 if (Math.abs(size.height - targetHeight) < minDiff) { 415 minDiff = Math.abs(size.height - targetHeight);
|
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | CameraUtil.java | 543 int targetHeight = Math.min(defaultDisplaySize.getWidth(), defaultDisplaySize.getHeight()); 552 double heightDiff = Math.abs(size.getHeight() - targetHeight); 559 if (size.getHeight() < targetHeight) { 572 if (Math.abs(size.getHeight() - targetHeight) < minDiff) { 574 minDiff = Math.abs(size.getHeight() - targetHeight); 589 * @param targetHeight the ideal height of the video snapshot 594 int targetHeight) { 608 if (size.height() == targetHeight && size.width() == targetWidth) { 614 final double targetRatio = (double) targetWidth / targetHeight; 592 getOptimalVideoSnapshotPictureSize( List<Size> sizes, int targetWidth, int targetHeight) argument
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | ChartSweepView.java | 183 final float targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top 185 return mSweepPadding.top + (targetHeight / 2) + mSweepOffset.y; 654 final int targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top 656 mMargins.top = -(mSweepPadding.top + (targetHeight / 2));
|
/packages/apps/TV/src/com/android/tv/guide/ |
H A D | ProgramGuide.java | 856 final View target, int initialHeight, int targetHeight) { 857 ValueAnimator animator = ValueAnimator.ofInt(initialHeight, targetHeight); 855 createHeightAnimator( final View target, int initialHeight, int targetHeight) argument
|
Completed in 470 milliseconds