Home
last modified time | relevance | path

Searched refs:srcBitmap (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/widget/
DRoundedThumbnailView.java654 private void precomputeThumbnailPaint(Bitmap srcBitmap, int rotation) { in precomputeThumbnailPaint() argument
658 if (srcBitmap == null) { in precomputeThumbnailPaint()
662 if (srcBitmap.getWidth() != srcBitmap.getHeight()) { in precomputeThumbnailPaint()
668 srcBitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in precomputeThumbnailPaint()
669 if (srcBitmap.getWidth() != mViewSize) { in precomputeThumbnailPaint()
673 0.0f, 0.0f, srcBitmap.getWidth(), srcBitmap.getHeight()); in precomputeThumbnailPaint()
744 private Bitmap cropCenterBitmap(Bitmap srcBitmap) { in cropCenterBitmap() argument
745 int srcWidth = srcBitmap.getWidth(); in cropCenterBitmap()
746 int srcHeight = srcBitmap.getHeight(); in cropCenterBitmap()
750 srcBitmap, srcWidth / 2 - srcHeight / 2, 0, srcHeight, srcHeight); in cropCenterBitmap()
[all …]
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/
DPreviewActivityTest.java161 Bitmap srcBitmap = ((TestAsset) mMockWallpaper.getAsset(context)).getBitmap(); in testClickSetWallpaper_Success_HomeScreen() local
162 assertTrue(srcBitmap.sameAs(mWallpaperPersister.getCurrentHomeWallpaper())); in testClickSetWallpaper_Success_HomeScreen()
189 Bitmap srcBitmap = ((TestAsset) mMockWallpaper.getAsset(context)).getBitmap(); in testClickSetWallpaper_Success_LockScreen() local
190 assertTrue(srcBitmap.sameAs(mWallpaperPersister.getCurrentLockWallpaper())); in testClickSetWallpaper_Success_LockScreen()
219 Bitmap srcBitmap = ((TestAsset) mMockWallpaper.getAsset(context)).getBitmap(); in testClickSetWallpaper_Success_BothHomeAndLockScreen() local
220 assertTrue(srcBitmap.sameAs(mWallpaperPersister.getCurrentHomeWallpaper())); in testClickSetWallpaper_Success_BothHomeAndLockScreen()
221 assertTrue(srcBitmap.sameAs(mWallpaperPersister.getCurrentLockWallpaper())); in testClickSetWallpaper_Success_BothHomeAndLockScreen()
264 Bitmap srcBitmap = ((TestAsset) mMockWallpaper.getAsset(context)).getBitmap(); in testClickSetWallpaper_Fails_HomeScreen_ShowsErrorDialog() local
265 assertTrue(srcBitmap.sameAs(mWallpaperPersister.getCurrentHomeWallpaper())); in testClickSetWallpaper_Fails_HomeScreen_ShowsErrorDialog()
303 Bitmap srcBitmap = ((TestAsset) mMockWallpaper.getAsset(context)).getBitmap(); in testClickSetWallpaper_Fails_LockScreen_ShowsErrorDialog() local
[all …]