Home
last modified time | relevance | path

Searched refs:BitmapUtils (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/TV/tests/unit/src/com/android/tv/util/images/
DScaledBitmapInfoTest.java23 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo;
36 ScaledBitmapInfo actual = BitmapUtils.createScaledBitmapInfo("B80x100", B80x100, 50, 50); in testSize_B100x100to50x50()
42 ScaledBitmapInfo actual = BitmapUtils.createScaledBitmapInfo("B80x100", B80x100, 50, 50); in testNeedsToReload_B100x100to50x50()
54 BitmapUtils.createScaledBitmapInfo("B960x1440", B960x1440, 284, 160); in testBug20488453()
DImageCacheTest.java19 import static com.android.tv.util.images.BitmapUtils.createScaledBitmapInfo;
25 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo;
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DImageCacheRequest.java23 import com.android.gallery3d.common.BitmapUtils;
88 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, mTargetSize, true); in run()
90 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, mTargetSize, true); in run()
94 byte[] array = BitmapUtils.compressToBytes(bitmap); in run()
DDecodeUtils.java28 import com.android.gallery3d.common.BitmapUtils;
130 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in decodeThumbnail()
136 options.inSampleSize = BitmapUtils.computeSampleSize( in decodeThumbnail()
142 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in decodeThumbnail()
157 if (scale <= 0.5) result = BitmapUtils.resizeBitmapByScale(result, scale, true); in decodeThumbnail()
179 options.inSampleSize = BitmapUtils.computeSampleSizeLarger( in decodeIfBigEnough()
DActionImage.java25 import com.android.gallery3d.common.BitmapUtils;
66 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true); in run()
68 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true); in run()
DUriImage.java29 import com.android.gallery3d.common.BitmapUtils;
204 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true); in run()
206 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true); in run()
216 if (BitmapUtils.isSupportedByRegionDecoder(mContentType)) { in getSupportedOperations()
DLocalImage.java36 import com.android.gallery3d.common.BitmapUtils;
241 if (BitmapUtils.isSupportedByRegionDecoder(mimeType)) { in getSupportedOperations()
245 if (BitmapUtils.isRotationSupported(mimeType)) { in getSupportedOperations()
DLocalVideo.java28 import com.android.gallery3d.common.BitmapUtils;
171 Bitmap bitmap = BitmapUtils.createVideoThumbnail(mLocalFilePath); in onDecodeOriginal()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DBitmapTileProvider.java23 import com.android.gallery3d.common.BitmapUtils;
44 bitmap = BitmapUtils.resizeBitmapByScale(bitmap, 0.5f, false); in BitmapTileProvider()
97 BitmapUtils.recycleSilently(bitmap); in recycle()
/packages/apps/TV/src/com/android/tv/util/images/
DImageLoader.java37 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo;
397 return BitmapUtils.decodeSampledBitmapFromUriString( in doGetBitmapInBackground()
425 : BitmapUtils.drawableToBitmap(drawable); in doGetBitmapInBackground()
428 : BitmapUtils.createScaledBitmapInfo(getKey(), bm, mMaxWidth, mMaxHeight); in doGetBitmapInBackground()
454 BitmapUtils.decodeSampledBitmapFromUriString( in getAspectRatioFromPosterArtUri()
DBitmapUtils.java44 public final class BitmapUtils { class
56 private BitmapUtils() { in BitmapUtils() method in BitmapUtils
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/backup/
DMissingHashCodeGeneratorJobService.java33 import com.android.wallpaper.asset.BitmapUtils;
107 long homeBitmapHash = BitmapUtils.generateHashCode(bitmap); in onStartJob()
147 … wallpaperPreferences.setLockWallpaperHashCode(BitmapUtils.generateHashCode(lockBitmap)); in onStartJob()
/packages/apps/TV/src/com/android/tv/data/
DChannelLogoFetcher.java34 import com.android.tv.util.images.BitmapUtils;
35 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo;
137 BitmapUtils.decodeSampledBitmapFromUriString( in doInBackground()
/packages/apps/TV/src/com/android/tv/recommendation/
DNotificationService.java54 import com.android.tv.util.images.BitmapUtils;
55 import com.android.tv.util.images.BitmapUtils.ScaledBitmapInfo;
398 BitmapUtils.decodeSampledBitmapFromUriString( in sendNotification()
492 BitmapUtils.getScaledMutableBitmap(background, Integer.MAX_VALUE, mCardImageHeight);
494 BitmapUtils.scaleBitmap(logo, mChannelLogoMaxWidth, mChannelLogoMaxHeight);
/packages/apps/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java31 import com.android.gallery3d.common.BitmapUtils;
192 mOptions.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in decodePreview()
205 result = BitmapUtils.resizeBitmapByScale(result, scale, true); in decodePreview()
/packages/apps/TV/src/com/android/tv/menu/
DAppLinkCardView.java40 import com.android.tv.util.images.BitmapUtils;
165 BitmapUtils.setColorFilterToDrawable(mIconColorFilter, appIcon); in onBind()
185 BitmapUtils.setColorFilterToDrawable(mIconColorFilter, appIcon); in onBind()
293 BitmapUtils.setColorFilterToDrawable(mIconColorFilter, drawable);
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaSource.java39 import com.android.car.apps.common.BitmapUtils;
153 return BitmapUtils.maybeFlagDrawable(context, appIcon); in extractIcon()
192 return getRoundCroppedBitmap(BitmapUtils.fromDrawable(mIcon, null)); in getRoundPackageIcon()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperRefresher.java29 import com.android.wallpaper.asset.BitmapUtils;
218 mCurrentHomeWallpaperHashCode = BitmapUtils.generateHashCode(wallpaperBitmap); in getCurrentHomeWallpaperHashCode()
231 mCurrentLockWallpaperHashCode = BitmapUtils.generateHashCode(wallpaperBitmap); in getCurrentLockWallpaperHashCode()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBitmapUtils.java25 public class BitmapUtils { class
29 private BitmapUtils() { in BitmapUtils() method in BitmapUtils
DBuiltInWallpaperAsset.java182 float horizontalCenter = BitmapUtils.calculateHorizontalAlignment(dimensions, mRect); in doInBackground()
183 float verticalCenter = BitmapUtils.calculateVerticalAlignment(dimensions, mRect); in doInBackground()
DStreamableAsset.java270 options.inSampleSize = BitmapUtils.calculateInSampleSize( in doInBackground()
331 options.inSampleSize = BitmapUtils.calculateInSampleSize( in doInBackground()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapUtils.java35 public class BitmapUtils { class
131 drawable = new BitmapDrawable(res, BitmapUtils.createTintedBitmap(bitmap, tint)); in maybeFlagDrawable()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DPlaybackFragment.java41 import com.android.car.apps.common.BitmapUtils;
102 ? BitmapUtils.fromDrawable(drawable, maxArtSize) : null; in onCreateView()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSinglePhotoDataAdapter.java26 import com.android.gallery3d.common.BitmapUtils;
96 options.inSampleSize = BitmapUtils.computeSampleSize(
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBitmapUtils.java32 public class BitmapUtils { class
37 private BitmapUtils(){} in BitmapUtils() method in BitmapUtils

12