Home
last modified time | relevance | path

Searched refs:newBitmap (Results 1 – 5 of 5) sorted by relevance

/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/
DLogoUtilsTest.java46 Bitmap newBitmap = LogoUtils.getBitmapPartiallyResized(tempFile.getPath(), 10, 15); in testPartiallyResizedBitmap() local
48 assertEquals(10, newBitmap.getWidth()); in testPartiallyResizedBitmap()
49 assertEquals(15, newBitmap.getHeight()); in testPartiallyResizedBitmap()
50 assertEquals(SAMPLE_COLOR, newBitmap.getPixel(5, 5)); in testPartiallyResizedBitmap()
60 Bitmap newBitmap = LogoUtils.getBitmapPartiallyResized(tempFile.getPath(), 8, 8); in testPartiallyResizedElongatedBitmap() local
62 assertEquals(2, newBitmap.getWidth()); in testPartiallyResizedElongatedBitmap()
63 assertEquals(8, newBitmap.getHeight()); in testPartiallyResizedElongatedBitmap()
64 assertEquals(SAMPLE_COLOR, newBitmap.getPixel(1, 1)); in testPartiallyResizedElongatedBitmap()
72 Bitmap newBitmap = LogoUtils.resizeBitmap(bitmap, 8, 8); in testResizeBitmapKeepRatio() local
74 assertEquals(4, newBitmap.getWidth()); in testResizeBitmapKeepRatio()
[all …]
/packages/apps/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java214 Bitmap newBitmap = bitmap.copy(Config.ARGB_8888, false); in ensureGLCompatibleBitmap() local
216 return newBitmap; in ensureGLCompatibleBitmap()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java127 Bitmap newBitmap = Bitmap.createBitmap( in decodeRegion() local
131 mTempCanvas.setBitmap(newBitmap); in decodeRegion()
137 return newBitmap; in decodeRegion()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDecodeUtils.java193 Bitmap newBitmap = bitmap.copy(Config.ARGB_8888, false); in ensureGLCompatibleBitmap()
195 return newBitmap; in ensureGLCompatibleBitmap()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DBitmapWorkerTask.java189 Bitmap newBitmap = Bitmap.createScaledBitmap(bitmap, width, height, true); in scaleBitmapIfNecessary()
191 return newBitmap; in scaleBitmapIfNecessary()