Home
last modified time | relevance | path

Searched refs:getBitmap (Results 1 – 25 of 33) sorted by relevance

12

/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java423 public static Bitmap getBitmap(Context context, @DrawableRes int resid) {
424 return ((BitmapDrawable) getDrawable(context, resid)).getBitmap();
435 WidgetTestUtils.assertEquals(getBitmap(context, expectedLeftDrawableId),
436 ((BitmapDrawable) compoundDrawables[0]).getBitmap());
441 WidgetTestUtils.assertEquals(getBitmap(context, expectedTopDrawableId),
442 ((BitmapDrawable) compoundDrawables[1]).getBitmap());
447 WidgetTestUtils.assertEquals(getBitmap(context, expectedRightDrawableId),
448 ((BitmapDrawable) compoundDrawables[2]).getBitmap());
453 WidgetTestUtils.assertEquals(getBitmap(context, expectedBottomDrawableId),
454 ((BitmapDrawable) compoundDrawables[3]).getBitmap());
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DImageSwitcherTest.java102 WidgetTestUtils.assertEquals(sceneryBitmap.getBitmap(), currViewBitmap.getBitmap()); in testSetImageResource()
110 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), currViewBitmap.getBitmap()); in testSetImageResource()
140 currViewBitmap.getBitmap().getConfig()); in testSetImageURI()
141 WidgetTestUtils.assertEquals(testImageBitmap, currViewBitmap.getBitmap()); in testSetImageURI()
149 currViewBitmap.getBitmap().getConfig()); in testSetImageURI()
152 WidgetTestUtils.assertEquals(sceneryImageBitmap, currViewBitmap.getBitmap()); in testSetImageURI()
DSimpleAdapterTest.java330 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
331 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage()
354 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
355 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage()
370 Bitmap actualBitmap = ((BitmapDrawable) view.getDrawable()).getBitmap(); in testSetViewImage()
DImageViewTest.java275 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageIcon()
291 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageResource()
313 Bitmap.Config viewConfig = imageViewBitmap.getBitmap().getConfig(); in testSetImageURI()
317 WidgetTestUtils.assertEquals(testimageBitmap, imageViewBitmap.getBitmap()); in testSetImageURI()
333 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageDrawable()
350 WidgetTestUtils.assertEquals(bitmap, imageViewBitmap.getBitmap()); in testSetImageBitmap()
DSimpleCursorTreeAdapterTest.java156 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
157 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage()
182 Bitmap actualBitmap = ((BitmapDrawable) view.getDrawable()).getBitmap(); in testSetViewImage()
DSimpleCursorAdapterTest.java219 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
220 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage()
247 Bitmap actualBitmap = ((BitmapDrawable) view.getDrawable()).getBitmap(); in testSetViewImage()
DRemoteViewsTest.java274 WidgetTestUtils.assertEquals(dBlack.getBitmap(), in testSetIcon()
275 ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetIcon()
288 WidgetTestUtils.assertEquals(dLight.getBitmap(), in testSetIcon_nightMode()
289 ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetIcon_nightMode()
294 WidgetTestUtils.assertEquals(dDark.getBitmap(), in testSetIcon_nightMode()
295 ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetIcon_nightMode()
309 WidgetTestUtils.assertEquals(dBlue.getBitmap(), in testSetImageViewIcon()
310 ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetImageViewIcon()
323 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetImageViewResource()
324 ((BitmapDrawable) image.getDrawable()).getBitmap()); in testSetImageViewResource()
[all …]
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/
DTestUtils.java41 Bitmap bitmap1 = ((BitmapDrawable) drawable1).getBitmap(); in compareIcons()
42 Bitmap bitmap2 = ((BitmapDrawable) drawable2).getBitmap(); in compareIcons()
/cts/tests/tests/media/src/android/media/cts/
DMediaMetadataTest.java63 Bitmap scaledDownBitmap = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART); in builder_setBitmapDimensionLimit_bitmapsAreScaledDown()
86 Bitmap notScaledDownBitmap = metadata.getBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART); in builder_setBitmapDimensionLimit_bitmapsAreNotScaledDown()
DMediaRouterTest.java215 assertTrue(getBitmap(mTestIconDrawable).sameAs(getBitmap(userRoute.getIconDrawable()))); in testUserRouteInfo()
306 assertTrue(getBitmap(mTestIconDrawable).sameAs(getBitmap(routeGroup.getIconDrawable()))); in testRouteGroup()
571 private Bitmap getBitmap(Drawable drawable) { in getBitmap() method in MediaRouterTest
DDecodeAccuracyTestBase.java660 return snapshot.getBitmap(); in generateBitmapFromVideoViewSnapshot()
1310 public abstract Bitmap getBitmap(); in getBitmap() method in VideoViewSnapshot
1334 bitmap = tv.getBitmap(); in run()
1341 public Bitmap getBitmap() { in getBitmap() method in TextureViewSnapshot
1408 public Bitmap getBitmap() { in getBitmap() method in SurfaceViewSnapshot
1524 public Bitmap getBitmap() { in getBitmap() method in GLSurfaceViewSnapshot
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java94 assertNull(bitmapDrawable.getBitmap()); in testConstructor()
101 assertEquals(bitmap, bitmapDrawable.getBitmap()); in testConstructor()
394 bitmapDrawable.setTargetDensity(bitmapDrawable.getBitmap().getDensity()); in testGetIntrinsicSize()
441 bitmap = bitmapDrawable.getBitmap(); in testSetTargetDensity()
568 assertSame(source, bitmapDrawable.getBitmap()); in testSetBitmap()
572 assertSame(bm, bitmapDrawable.getBitmap()); in testSetBitmap()
575 assertNull(bitmapDrawable.getBitmap()); in testSetBitmap()
DThemedDrawableTest.java84 assertNotNull(d.getBitmap()); in verifyBitmapDrawable()
/cts/tests/tests/text/src/android/text/style/cts/
DImageSpanTest.java122 WidgetTestUtils.assertEquals(bitmapDrawable.getBitmap(), resultDrawable.getBitmap()); in testGetDrawable()
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java327 assertBitmapDimensions(mWallpaperManager.getBitmap()); in highRatioWallpaper_largeWidth()
341 assertBitmapDimensions(mWallpaperManager.getBitmap()); in highRatioWallpaper_largeHeight()
355 assertBitmapDimensions(mWallpaperManager.getBitmap()); in highResolutionWallpaper()
372 assertThat(mWallpaperManager.getBitmap().getColorSpace()).isEqualTo(srgb); in testWideGamutWallpaper()
377 final boolean isDisplayP3 = mWallpaperManager.getBitmap().getColorSpace().equals(p3); in testWideGamutWallpaper()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/
DBitmapView.java49 public Bitmap getBitmap() { in getBitmap() method in BitmapView
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRenderScriptTask.java138 rgbdImage = options.rgbz.getBitmap(); in prepareRefocusFilter()
DRGBZ.java94 public Bitmap getBitmap() { in getBitmap() method in RGBZ
/cts/tests/tests/view/src/android/view/cts/
DTextureViewSnapshotTestActivity.java84 Bitmap bitmap = mTexView.getBitmap(); in onSurfaceTextureUpdated()
DTextureViewCameraActivity.java101 Bitmap bitmap = mTextureView.getBitmap(); in onSurfaceTextureUpdated()
DTextureViewTest.java124 activity.getTextureView().getBitmap(bitmap); in testScaling()
140 activity.getTextureView().getBitmap(bitmap); in testRotateScale()
182 activity.getTextureView().getBitmap(bitmap); in testTransformScale()
/cts/tests/tests/transition/src/android/transition/cts/
DSharedElementCallbackTest.java71 Bitmap finalBitmap = bitmapDrawable.getBitmap(); in testSnapshot()
DFadeTest.java151 Bitmap bitmap = bitmapDrawable.getBitmap(); in testFadeOutTransition()
/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java83 assertEquals(mBitmap, mNinePatch.getBitmap()); in testConstructor()
87 assertEquals(mBitmap, mNinePatch.getBitmap()); in testConstructor()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DHandleSplashScreenExitActivity.java74 Bitmap bitmap = ((BitmapDrawable) background).getBitmap();

12