Home
last modified time | relevance | path

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

123

/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/devicepolicy/src/android/devicepolicy/cts/
DWallpaperTest.java61 private static final Bitmap sOriginalWallpaper = TestApis.wallpaper().getBitmap();
77 Poll.forValue("wallpaper bitmap", () -> TestApis.wallpaper().getBitmap()) in setBitmap_viaDpc_disallowed_canSet()
95 Poll.forValue("wallpaper bitmap", () -> TestApis.wallpaper().getBitmap()) in setBitmap_viaDpc_disallowed_cannotSet()
113 Poll.forValue("wallpaper bitmap", () -> TestApis.wallpaper().getBitmap()) in setBitmap_allowed_canSet()
131 Poll.forValue("wallpaper bitmap", () -> TestApis.wallpaper().getBitmap()) in setBitmap_disallowed_cannotSet()
146 Poll.forValue("wallpaper bitmap", () -> TestApis.wallpaper().getBitmap()) in setStream_allowed_canSet()
160 Poll.forValue("wallpaper bitmap", () -> TestApis.wallpaper().getBitmap()) in setStream_disallowed_cannotSet()
/cts/tests/tests/widget/src/android/widget/cts/
DImageSwitcherTest.java110 WidgetTestUtils.assertEquals(sceneryBitmap.getBitmap(), currViewBitmap.getBitmap()); in testSetImageResource()
118 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), currViewBitmap.getBitmap()); in testSetImageResource()
148 currViewBitmap.getBitmap().getConfig()); in testSetImageURI()
149 WidgetTestUtils.assertEquals(testImageBitmap, currViewBitmap.getBitmap()); in testSetImageURI()
157 currViewBitmap.getBitmap().getConfig()); in testSetImageURI()
160 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()
DSimpleCursorTreeAdapterTest.java156 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage()
157 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage()
182 Bitmap actualBitmap = ((BitmapDrawable) view.getDrawable()).getBitmap(); in testSetViewImage()
DImageViewTest.java283 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageIcon()
299 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageResource()
321 Bitmap.Config viewConfig = imageViewBitmap.getBitmap().getConfig(); in testSetImageURI()
325 WidgetTestUtils.assertEquals(testimageBitmap, imageViewBitmap.getBitmap()); in testSetImageURI()
343 WidgetTestUtils.assertEquals(testimageBitmap.getBitmap(), imageViewBitmap.getBitmap()); in testSetImageDrawable()
375 WidgetTestUtils.assertEquals(bitmap, imageViewBitmap.getBitmap()); in testSetImageBitmap()
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/util/
DWallpaperTestUtils.java34 public static Bitmap getBitmap(Drawable drawable) { in getBitmap() method in WallpaperTestUtils
37 return ((BitmapDrawable) drawable).getBitmap(); in getBitmap()
108 return isSimilar(getBitmap(drawable1), getBitmap(drawable2), requireSameDimensions); in isSimilar()
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DCommonRendererTest.java95 getBitmap(RenderParams.RENDER_MODE_FOR_DISPLAY, false, false)); in renderNoTransformationAndComparePointsForScreen()
100 getBitmap(RenderParams.RENDER_MODE_FOR_DISPLAY, false, true)); in renderNoTransformationAndComparePointsForScreen()
105 getBitmap(RenderParams.RENDER_MODE_FOR_DISPLAY, true, true)); in renderNoTransformationAndComparePointsForScreen()
112 getBitmap(RenderParams.RENDER_MODE_FOR_PRINT, false, false)); in renderNoTransformationAndComparePointsForPrint()
117 getBitmap(RenderParams.RENDER_MODE_FOR_PRINT, false, true)); in renderNoTransformationAndComparePointsForPrint()
122 getBitmap(RenderParams.RENDER_MODE_FOR_PRINT, true, true)); in renderNoTransformationAndComparePointsForPrint()
278 private Bitmap getBitmap(int renderMode, boolean isPreV, boolean useNewConstructor) in getBitmap() method in CommonRendererTest
/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/wallpapereffectsgeneration/src/android/wallpapereffectsgeneration/cts/
DCinematicEffectRequestTest.java50 assertThat(request.getBitmap()).isEqualTo(bmp); in testCreateCinematicEffectRequest()
60 assertThat(copy.getBitmap().sameAs(bmp)).isTrue(); in testCreateCinematicEffectRequest()
DTexturedMeshTest.java57 assertThat(texturedMesh.getBitmap()).isEqualTo(bmp); in testCreateTexturedMeshRequest()
71 assertThat(copy.getBitmap().sameAs(bmp)).isTrue(); in testCreateTexturedMeshRequest()
DCinematicEffectResponseTest.java119 assertThat(mesh.getBitmap()).isEqualTo(bmp); in testCreateCinematicEffectResponse()
162 assertThat(meshCopy.getBitmap().sameAs(bmp)).isTrue(); in testCreateCinematicEffectResponse()
/cts/tests/app/WallpaperTest/testsdk33/src/android/app/cts/wallpapers/
DWallpaperManagerSdk33Test.java23 import static android.app.cts.wallpapers.util.WallpaperTestUtils.getBitmap;
102 () -> sWallpaperManager.getBitmap(), READ_WALLPAPER_INTERNAL); in setUpClass()
235 .that(drawable == null || isSimilar(getBitmap(drawable), sDefaultBitmap, false)) in assertReturnsDefault()
244 .that(isSimilar(getBitmap(drawable), sRedBitmap, true)).isTrue(); in assertReturnsCurrent()
/cts/tests/tests/security/src/android/security/cts/
DBitmapService.java30 return wrapper.getBitmap().getAllocationByteCount();
DBitmapTest.java127 final int expectedAllocationSize = wrapper.getBitmap().getAllocationByteCount(); in test_inplace_213169612()
171 final int expectedAllocationSize = wrapper.getBitmap().getAllocationByteCount(); in test_ashmem_213169612()
DBitmapWrapper.java46 public Bitmap getBitmap() { in getBitmap() method in BitmapWrapper
/cts/tests/tests/text/src/android/text/style/cts/
DImageSpanTest.java122 WidgetTestUtils.assertEquals(bitmapDrawable.getBitmap(), resultDrawable.getBitmap()); in testGetDrawable()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/wallpaper/
DWallpaper.kt38 fun getBitmap(): Bitmap? { in getBitmap() method
/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()
/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()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewSnapshotTestActivity.java84 Bitmap bitmap = mTexView.getBitmap(); in onSurfaceTextureUpdated()
DTextureViewCameraActivity.java101 Bitmap bitmap = mTextureView.getBitmap(); in onSurfaceTextureUpdated()
/cts/tests/tests/transition/src/android/transition/cts/
DSharedElementCallbackTest.java71 Bitmap finalBitmap = bitmapDrawable.getBitmap(); in testSnapshot()
/cts/tests/tests/graphics/src/android/graphics/cts/
DHardwareRendererTest.java73 Bitmap bitmap = result.getBitmap(); in lockHardwareCanvasSingleBuffer()

123