/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 423 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/ |
D | WallpaperTest.java | 61 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/ |
D | ImageSwitcherTest.java | 110 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()
|
D | SimpleAdapterTest.java | 330 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()
|
D | SimpleCursorTreeAdapterTest.java | 156 WidgetTestUtils.assertEquals(d.getBitmap(), in testSetViewImage() 157 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage() 182 Bitmap actualBitmap = ((BitmapDrawable) view.getDrawable()).getBitmap(); in testSetViewImage()
|
D | ImageViewTest.java | 283 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/ |
D | WallpaperTestUtils.java | 34 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/ |
D | CommonRendererTest.java | 95 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/ |
D | TestUtils.java | 41 Bitmap bitmap1 = ((BitmapDrawable) drawable1).getBitmap(); in compareIcons() 42 Bitmap bitmap2 = ((BitmapDrawable) drawable2).getBitmap(); in compareIcons()
|
/cts/tests/wallpapereffectsgeneration/src/android/wallpapereffectsgeneration/cts/ |
D | CinematicEffectRequestTest.java | 50 assertThat(request.getBitmap()).isEqualTo(bmp); in testCreateCinematicEffectRequest() 60 assertThat(copy.getBitmap().sameAs(bmp)).isTrue(); in testCreateCinematicEffectRequest()
|
D | TexturedMeshTest.java | 57 assertThat(texturedMesh.getBitmap()).isEqualTo(bmp); in testCreateTexturedMeshRequest() 71 assertThat(copy.getBitmap().sameAs(bmp)).isTrue(); in testCreateTexturedMeshRequest()
|
D | CinematicEffectResponseTest.java | 119 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/ |
D | WallpaperManagerSdk33Test.java | 23 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/ |
D | BitmapService.java | 30 return wrapper.getBitmap().getAllocationByteCount();
|
D | BitmapTest.java | 127 final int expectedAllocationSize = wrapper.getBitmap().getAllocationByteCount(); in test_inplace_213169612() 171 final int expectedAllocationSize = wrapper.getBitmap().getAllocationByteCount(); in test_ashmem_213169612()
|
D | BitmapWrapper.java | 46 public Bitmap getBitmap() { in getBitmap() method in BitmapWrapper
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | ImageSpanTest.java | 122 WidgetTestUtils.assertEquals(bitmapDrawable.getBitmap(), resultDrawable.getBitmap()); in testGetDrawable()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/wallpaper/ |
D | Wallpaper.kt | 38 fun getBitmap(): Bitmap? { in getBitmap() method
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | BitmapDrawableTest.java | 94 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/ |
D | BitmapView.java | 49 public Bitmap getBitmap() { in getBitmap() method in BitmapView
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | RenderScriptTask.java | 138 rgbdImage = options.rgbz.getBitmap(); in prepareRefocusFilter()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewSnapshotTestActivity.java | 84 Bitmap bitmap = mTexView.getBitmap(); in onSurfaceTextureUpdated()
|
D | TextureViewCameraActivity.java | 101 Bitmap bitmap = mTextureView.getBitmap(); in onSurfaceTextureUpdated()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | SharedElementCallbackTest.java | 71 Bitmap finalBitmap = bitmapDrawable.getBitmap(); in testSnapshot()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | HardwareRendererTest.java | 73 Bitmap bitmap = result.getBitmap(); in lockHardwareCanvasSingleBuffer()
|