/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | StreamableAsset.java | 76 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() 312 public DecodeBitmapRegionAsyncTask(Rect rect, int targetWidth, int targetHeight, in DecodeBitmapRegionAsyncTask() argument 317 mTargetHeight = targetHeight; in DecodeBitmapRegionAsyncTask()
|
D | BitmapCachingAsset.java | 82 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()
|
D | CurrentWallpaperAssetV16.java | 42 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()
|
D | BuiltInWallpaperAsset.java | 69 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()
|
D | BitmapUtils.java | 45 int srcWidth, int srcHeight, int targetWidth, int targetHeight) { in calculateInSampleSize() argument 52 while (((halfHeight >> shift) >= targetHeight) && ((halfWidth >> shift) >= targetWidth)) { in calculateInSampleSize()
|
D | LiveWallpaperThumbAsset.java | 48 public void decodeBitmap(int targetWidth, int targetHeight, in decodeBitmap() argument 56 public void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
|
D | Asset.java | 77 public abstract void decodeBitmap(int targetWidth, int targetHeight, BitmapReceiver receiver); in decodeBitmap() argument 88 public abstract void decodeBitmapRegion(Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument
|
D | ContentUriAsset.java | 113 public void decodeBitmapRegion(final Rect rect, int targetWidth, int targetHeight, in decodeBitmapRegion() argument 119 super.decodeBitmapRegion(rect, targetWidth, targetHeight, receiver); in decodeBitmapRegion()
|
/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/Dialer/java/com/android/dialer/contactphoto/ |
D | BitmapUtil.java | 101 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/ |
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 | 321 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()
|
D | ChannelBannerView.java | 856 int targetHeight = getMeasuredHeight(); 860 mCurrentHeight = targetHeight; 862 if (targetHeight != layoutParams.height) { 863 layoutParams.height = targetHeight; 866 } else if (mCurrentHeight != targetHeight || needProgramDescriptionFadeAnimation) { 872 createResizeAnimator(targetHeight, needProgramDescriptionFadeAnimation); 877 private Animator createResizeAnimator(int targetHeight, boolean addFadeAnimation) { 878 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/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/ThemePicker/src/com/android/customization/picker/theme/ |
D | ThemeFragment.java | 548 int targetHeight = bottom - top; in onLayoutChange() local 549 if (targetWidth > 0 && targetHeight > 0) { in onLayoutChange() 554 targetWidth, targetHeight, in onLayoutChange() 616 int targetHeight = bottom - top; in onLayoutChange() local 617 if (targetWidth > 0 && targetHeight > 0) { in onLayoutChange() 624 wallpaperAsset.decodeBitmap(targetWidth, targetHeight, bitmap -> {}); in onLayoutChange()
|
D | CustomThemeNameFragment.java | 167 int targetHeight = bottom - top; in onLayoutChange() local 168 if (targetWidth > 0 && targetHeight > 0) { in onLayoutChange() 171 targetWidth, targetHeight, in onLayoutChange()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/anim/ |
D | BenefitsAnimation.java | 158 int targetHeight = layoutParams.height - (contentHeight - viewportHeight); in adjustToScreenSize() local 163 if (targetHeight >= minHeight) { in adjustToScreenSize() 164 layoutParams.height = targetHeight; in adjustToScreenSize()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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() 657 final int targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top 659 mMargins.top = -(mSweepPadding.top + (targetHeight / 2));
|
/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() 657 final int targetHeight = mSweep.getIntrinsicHeight() - mSweepPadding.top 659 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 | 394 final int targetHeight = Math.min(scaledHeight, iconMaxHeight); in decodeStreamForShortcut() local 397 final int targetSize = Math.min(targetWidth, targetHeight); in decodeStreamForShortcut()
|