Home
last modified time | relevance | path

Searched refs:reqWidth (Results 1 – 3 of 3) sorted by relevance

/packages/apps/TV/src/com/android/tv/util/images/
DBitmapUtils.java109 Context context, String uriString, int reqWidth, int reqHeight) { in decodeSampledBitmapFromUriString() argument
156 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromUriString()
185 BitmapFactory.Options options, int reqWidth, int reqHeight) { in calculateInSampleSize() argument
186 return calculateInSampleSize(options.outWidth, options.outHeight, reqWidth, reqHeight); in calculateInSampleSize()
189 private static int calculateInSampleSize(int width, int height, int reqWidth, int reqHeight) { in calculateInSampleSize() argument
192 int ratio = Math.max(width / reqWidth, height / reqHeight); in calculateInSampleSize()
252 public boolean needToReload(int reqWidth, int reqHeight) { in needToReload() argument
257 Rect size = calculateNewSize(this.bitmap, reqWidth, reqHeight); in needToReload()
264 + reqWidth in needToReload()
/packages/apps/TV/tests/unit/src/com/android/tv/util/images/
DScaledBitmapInfoTest.java60 boolean expected, ScaledBitmapInfo scaledBitmap, int reqWidth, int reqHeight) { in assertNeedsToReload() argument
61 assertWithMessage(scaledBitmap.id + " needToReload(" + reqWidth + "," + reqHeight + ")") in assertNeedsToReload()
62 .that(scaledBitmap.needToReload(reqWidth, reqHeight)) in assertNeedsToReload()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java193 final BitmapFactory.Options options, final int reqWidth, final int reqHeight) { in calculateInSampleSize() argument
200 final boolean checkWidth = reqWidth != ImageRequest.UNSPECIFIED_SIZE; in calculateInSampleSize()
202 (checkWidth && width > reqWidth)) { in calculateInSampleSize()
210 && (!checkWidth || (halfWidth / inSampleSize) > reqWidth)) { in calculateInSampleSize()