Home
last modified time | relevance | path

Searched refs:targetHeight (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DStreamableAsset.java76 public void decodeBitmap(int targetWidth, int targetHeight, in decodeBitmap() argument
78 DecodeBitmapAsyncTask task = new DecodeBitmapAsyncTask(targetWidth, targetHeight, receiver); in decodeBitmap()
89 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
91 runDecodeBitmapRegionTask(rect, targetWidth, targetHeight, receiver); in decodeBitmapRegion()
143 public AsyncTask runDecodeBitmapRegionTask(Rect rect, int targetWidth, int targetHeight, in runDecodeBitmapRegionTask() argument
146 new DecodeBitmapRegionAsyncTask(rect, targetWidth, targetHeight, receiver); in runDecodeBitmapRegionTask()
246 public DecodeBitmapAsyncTask(int targetWidth, int targetHeight, BitmapReceiver receiver) { in DecodeBitmapAsyncTask() argument
249 mTargetHeight = targetHeight; in DecodeBitmapAsyncTask()
307 public DecodeBitmapRegionAsyncTask(Rect rect, int targetWidth, int targetHeight, in DecodeBitmapRegionAsyncTask() argument
312 mTargetHeight = targetHeight; in DecodeBitmapRegionAsyncTask()
DBitmapCachingAsset.java82 public void decodeBitmap(int targetWidth, int targetHeight, BitmapReceiver receiver) { in decodeBitmap() argument
85 mOriginalAsset.decodeBitmap(targetWidth, targetHeight, receiver::onBitmapDecoded); in decodeBitmap()
88 CacheKey key = new CacheKey(mOriginalAsset, targetWidth, targetHeight); in decodeBitmap()
93 mOriginalAsset.decodeBitmap(targetWidth, targetHeight, bitmap -> { in decodeBitmap()
103 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
105 mOriginalAsset.decodeBitmapRegion(rect, targetWidth, targetHeight, receiver); in decodeBitmapRegion()
DCurrentWallpaperAssetV16.java42 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
48 public void decodeBitmap(int targetWidth, int targetHeight, in decodeBitmap() argument
50 DecodeBitmapAsyncTask task = new DecodeBitmapAsyncTask(receiver, targetWidth, targetHeight); in decodeBitmap()
DBuiltInWallpaperAsset.java69 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
82 public void decodeBitmap(int targetWidth, int targetHeight, in decodeBitmap() argument
84 DecodeBitmapAsyncTask task = new DecodeBitmapAsyncTask(targetWidth, targetHeight, receiver); in decodeBitmap()
DBitmapUtils.java45 int srcWidth, int srcHeight, int targetWidth, int targetHeight) { in calculateInSampleSize() argument
52 while (((halfHeight >> shift) >= targetHeight) && ((halfWidth >> shift) >= targetWidth)) { in calculateInSampleSize()
DLiveWallpaperThumbAsset.java49 public void decodeBitmap(int targetWidth, int targetHeight, in decodeBitmap() argument
57 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
DAsset.java75 public abstract void decodeBitmap(int targetWidth, int targetHeight, BitmapReceiver receiver); in decodeBitmap() argument
86 public abstract void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
/packages/apps/Gallery/src/com/android/camera/
DUtil.java153 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/
DFilmstripItemUtils.java106 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/Dialer/java/com/android/dialer/contactphoto/
DBitmapUtil.java101 public static Bitmap getRoundedBitmap(Bitmap input, int targetWidth, int targetHeight) { in getRoundedBitmap() argument
108 targetWidth, targetHeight, inputConfig != null ? inputConfig : Bitmap.Config.ARGB_8888); in getRoundedBitmap()
113 final RectF dst = new RectF(0, 0, targetWidth, targetHeight); in getRoundedBitmap()
126 Math.min((float) inputWidth / targetWidth, (float) inputHeight / targetHeight); in getRoundedBitmap()
129 final int yCropAmountHalved = (int) (scaleBy * targetHeight / 2); in getRoundedBitmap()
/packages/apps/Contacts/src/com/android/contacts/util/
DBitmapUtil.java126 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/
DKeypadChannelSwitchView.java321 int targetHeight = mBaseViewHeight + itemListHeight; in updateViewHeight() local
329 mCurrentHeight = targetHeight; in updateViewHeight()
330 setViewHeight(this, targetHeight); in updateViewHeight()
331 } else if (mCurrentHeight != targetHeight) { in updateViewHeight()
332 mResizeAnimator = createResizeAnimator(targetHeight); in updateViewHeight()
337 private Animator createResizeAnimator(int targetHeight) { in createResizeAnimator() argument
338 ValueAnimator animator = ValueAnimator.ofInt(mCurrentHeight, targetHeight); in createResizeAnimator()
DChannelBannerView.java880 int targetHeight = getMeasuredHeight();
884 mCurrentHeight = targetHeight;
886 if (targetHeight != layoutParams.height) {
887 layoutParams.height = targetHeight;
890 } else if (mCurrentHeight != targetHeight || needProgramDescriptionFadeAnimation) {
896 createResizeAnimator(targetHeight, needProgramDescriptionFadeAnimation);
901 private Animator createResizeAnimator(int targetHeight, boolean addFadeAnimation) {
902 final ValueAnimator heightAnimator = ValueAnimator.ofInt(mCurrentHeight, targetHeight);
DViewUtils.java59 final View target, int initialHeight, int targetHeight) { in createHeightAnimator() argument
60 ValueAnimator animator = ValueAnimator.ofInt(initialHeight, targetHeight); in createHeightAnimator()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DDecodedImageResource.java209 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/services/BuiltInPrintService/src/com/android/bips/
DImageToPdfTask.java143 float targetHeight = (extent.height() / POINTS_PER_INCH * mDpi); in drawOptimized() local
145 float offsetY = ((targetHeight / scale) - mBitmap.getHeight()) / 2; in drawOptimized()
147 Bitmap targetBitmap = Bitmap.createBitmap((int) targetWidth, (int) targetHeight, in drawOptimized()
153 matrix.postRotate(90, targetWidth / 2, targetHeight / 2); in drawOptimized()
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java390 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/
DCameraUtil.java543 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/ThemePicker/src/com/android/customization/picker/theme/
DThemeFragment.java551 int targetHeight = bottom - top; in onLayoutChange() local
552 if (targetWidth > 0 && targetHeight > 0) { in onLayoutChange()
557 targetWidth, targetHeight, in onLayoutChange()
621 int targetHeight = bottom - top; in onLayoutChange() local
622 if (targetWidth > 0 && targetHeight > 0) { in onLayoutChange()
629 wallpaperAsset.decodeBitmap(targetWidth, targetHeight, bitmap -> {}); in onLayoutChange()
DCustomThemeNameFragment.java167 int targetHeight = bottom - top; in onLayoutChange() local
168 if (targetWidth > 0 && targetHeight > 0) { in onLayoutChange()
171 targetWidth, targetHeight, in onLayoutChange()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestAsset.java59 public void decodeBitmap(int targetWidth, int targetHeight, BitmapReceiver receiver) { in decodeBitmap() argument
64 public void decodeBitmapRegion(Rect unused, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/anim/
DBenefitsAnimation.java158 int targetHeight = layoutParams.height - (contentHeight - viewportHeight); in adjustToScreenSize() local
163 if (targetHeight >= minHeight) { in adjustToScreenSize()
164 layoutParams.height = targetHeight; in adjustToScreenSize()
/packages/apps/ThemePicker/src/com/google/android/apps/wallpaper/asset/
DThemeBundleThumbAsset.java45 public void decodeBitmap(int targetWidth, int targetHeight, BitmapReceiver receiver) { in decodeBitmap() argument
52 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
/packages/apps/Settings/src/com/android/settings/widget/
DChartSweepView.java183 final float targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top in getTargetInset() local
185 return mSweepPadding.top + (targetHeight / 2) + mSweepOffset.y; in getTargetInset()
657 final int targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top
659 mMargins.top = -(mSweepPadding.top + (targetHeight / 2));
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DChartSweepView.java183 final float targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top in getTargetInset() local
185 return mSweepPadding.top + (targetHeight / 2) + mSweepOffset.y; in getTargetInset()
657 final int targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top
659 mMargins.top = -(mSweepPadding.top + (targetHeight / 2));

12