/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapTest.java | 252 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCopy() 253 Bitmap bitmap = mBitmap.copy(Config.ARGB_8888, false); in testCopy() 260 Config.ALPHA_8, Config.RGB_565, Config.ARGB_8888, Config.RGBA_F16, in testCopyConfigs() 283 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCopyMutableHwBitmap() 360 mBitmap = Bitmap.createBitmap(new int[100 * 100], 100, 100, Config.ARGB_8888); in testCreateBitmap2() 368 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCreateBitmap2() 377 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCreateBitmapNegativeXY() 385 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCreateBitmapNegativeWidthHeight() 393 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCreateBitmapXRegionTooWide() 401 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCreateBitmapYRegionTooTall() [all …]
|
D | ComposeShaderTest.java | 56 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); in testPorterDuff() 89 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); in testBlendMode() 116 Bitmap redBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); in testXfermode() 118 Bitmap cyanBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); in testXfermode() 128 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); in testXfermode() 147 Bitmap redBitmap = Bitmap.createBitmap(3, 3, Config.ARGB_8888); in testChildLocalMatrix() 151 Bitmap cyanBitmap = Bitmap.createBitmap(3, 3, Config.ARGB_8888); in testChildLocalMatrix() 157 Bitmap bitmap = Bitmap.createBitmap(10, 10, Config.ARGB_8888); in testChildLocalMatrix()
|
D | Bitmap_ConfigTest.java | 39 assertEquals(Config.ARGB_8888, Config.valueOf("ARGB_8888")); in testValueOf() 52 assertEquals(Config.ARGB_8888, config[3]); in testValues() 60 assertNotNull(Bitmap.createBitmap(10, 24, Config.ARGB_8888)); in testValues()
|
D | PictureTest.java | 65 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testSaveRestoreBalance() 82 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in verifyBalance() 113 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture() 120 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture()
|
D | PorterDuffXfermodeTest.java | 42 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode() 44 Bitmap b1 = Bitmap.createBitmap(WIDTH / 2, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode() 46 Bitmap b2 = Bitmap.createBitmap(WIDTH, HEIGHT / 2, Config.ARGB_8888); in testPorterDuffXfermode()
|
D | PorterDuffColorFilterTest.java | 43 Bitmap b1 = Bitmap.createBitmap(width / 2, height, Config.ARGB_8888); in testPorterDuffColorFilter() 45 Bitmap b2 = Bitmap.createBitmap(width, height / 2, Config.ARGB_8888); in testPorterDuffColorFilter() 48 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888); in testPorterDuffColorFilter()
|
D | BitmapFactoryTest.java | 246 new Object[] {Config.ARGB_8888, 16}, in paramsForWebpDecodeEncode() 299 options.inPreferredConfig = Config.ARGB_8888; in testDecodeStream5() 306 assertEquals(bPng.getConfig(), Config.ARGB_8888); in testDecodeStream5() 314 assertEquals(bWebP1.getConfig(), Config.ARGB_8888); in testDecodeStream5() 326 assertEquals(bWebP2.getConfig(), Config.ARGB_8888); in testDecodeStream5() 494 Bitmap bitmap = Bitmap.createBitmap(pixelCount, 1, Config.ARGB_8888); in createBitmapForReuse() 526 bitmap.reconfigure(bitmapSize, bitmapSize, Config.ARGB_8888); in testDecodeReuseHasAlpha() 531 bitmap.reconfigure(bitmapSize, bitmapSize, Config.ARGB_8888); in testDecodeReuseHasAlpha() 639 assertEquals(premul.getConfig(), Bitmap.Config.ARGB_8888); in testDecodePremultipliedData() 640 assertEquals(unpremul.getConfig(), Bitmap.Config.ARGB_8888); in testDecodePremultipliedData() [all …]
|
D | PaintFlagsDrawFilterTest.java | 66 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in drawText() 75 Bitmap combinedBitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in delta() 123 Bitmap grid = Bitmap.createBitmap(kWidth, kHeight, Config.ARGB_8888); in testPaintFlagsDrawFilter2() 135 Bitmap dst = Bitmap.createBitmap(kWidth * kScale, kHeight * kScale, Config.ARGB_8888); in testPaintFlagsDrawFilter2()
|
D | ComposePathEffectTest.java | 61 Bitmap actual = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testComposePathEffect() 67 Bitmap expected = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testComposePathEffect()
|
D | SumPathEffectTest.java | 48 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testSumPathEffect() 50 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testSumPathEffect()
|
D | BitmapShaderTest.java | 54 Bitmap.Config.ARGB_8888, in testConfigs() 230 Bitmap bitmap = Bitmap.createBitmap(2, 2, Bitmap.Config.ARGB_8888); in testAnisotropicFiltering() 252 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); in testRecycledBitmapThrowsISE() 256 Canvas canvas = new Canvas(Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888)); in testRecycledBitmapThrowsISE() 269 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); in testBitmapShaderAppliesGainmapHLG() 271 Bitmap gainmapBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); in testBitmapShaderAppliesGainmapHLG()
|
D | PathDashPathEffectTest.java | 47 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPathDashPathEffect() 57 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPathDashPathEffect()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyTest.java | 165 Bitmap dest = Bitmap.createBitmap(5, 5, Config.ARGB_8888); in testRecycledDest() 172 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoSourceData() 179 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectSurface() 185 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectWindow() 191 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testInvalidSourceRectSurface() 197 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testInvalidSourceRectWindow() 203 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoDecorView() 210 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoViewRoot() 220 Bitmap dest = Bitmap.createBitmap(5, 5, Config.ARGB_8888); in testRequestGetters() 240 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testGlProducerFullsize() [all …]
|
D | TextureViewTest.java | 172 final Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888); in testScaling() 188 final Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888); in testRotateScale() 211 Bitmap screenshot = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testRotateScale() 230 final Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888); in testTransformScale() 254 Bitmap.Config.ARGB_8888); in testTransformScale() 332 Bitmap.Config.ARGB_8888, true, in testSDRFromSurfaceViewAndTextureView() 381 Bitmap.Config.ARGB_8888, true, ColorSpace.getFromDataSpace(dataSpace)); in testSDRFromSurfaceViewAndTextureView() 388 Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in testSDRFromSurfaceViewAndTextureView() 462 Bitmap.Config.ARGB_8888); in testCropRect() 489 Bitmap.Config.ARGB_8888); in testCropRect() [all …]
|
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/ |
D | WalletCardTest.java | 62 Bitmap bitmap = Bitmap.createBitmap(70, 44, Bitmap.Config.ARGB_8888); in testParcel_toParcel() 63 Bitmap bitmapSecondary = Bitmap.createBitmap(50, 30, Bitmap.Config.ARGB_8888); in testParcel_toParcel() 107 Bitmap bitmap = Bitmap.createBitmap(70, 44, Bitmap.Config.ARGB_8888); in testParcel_noIconOrLabel_toParcel() 135 Bitmap bitmap = Bitmap.createBitmap(70, 44, Bitmap.Config.ARGB_8888); in testBuilder_defaultsToUnknownCardType() 151 Bitmap bitmap = Bitmap.createBitmap(70, 44, Bitmap.Config.ARGB_8888); in testSetNonPaymentCardSecondaryImage_throwsException() 168 Bitmap bitmap = Bitmap.createBitmap(70, 44, Bitmap.Config.ARGB_8888); in testSetCardLocationsNull_throwsException()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | CanvasStateTests.java | 161 Bitmap recycledBitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testFailureOnDrawRecycledBitmap() 168 Bitmap nonPremultipliedBitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testFailureOnNonPremultipliedBitmap() 183 displayMetrics.heightPixels, Bitmap.Config.ARGB_8888); in testDrawScreenWideBitmap() 202 Bitmap bitmap = Bitmap.createBitmap(bWidth, bHeight, Bitmap.Config.ARGB_8888); in testDrawLargeBitmap()
|
D | ShaderTests.java | 55 … Bitmap shaderBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); in testSinglePixelBitmapShader() 76 … Bitmap shaderBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); in testSinglePixelComposeShader() 206 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testAnisotropicFilteredBitmapShader() 244 Bitmap bitmap = Bitmap.createBitmap(120, 120, Bitmap.Config.ARGB_8888); in testLocalMatrixOrder() 262 Bitmap whiteBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); in testLocalMatrixOrder()
|
D | ColorSpaceTests.java | 19 import static android.graphics.Bitmap.Config.ARGB_8888; 76 Bitmap bitmap8888 = loadAsset("green-p3.png", ARGB_8888); in testDrawDisplayP3() 108 Bitmap bitmap8888 = loadAsset("orange-prophotorgb.png", ARGB_8888); in testDrawProPhotoRGB() 141 Bitmap bitmap8888 = loadAsset("red-adobergb.png", ARGB_8888); in testDrawTranslucentAdobeRGB() 212 .copy(Bitmap.Config.ARGB_8888, false); in testEmojiRespectsColorSpace() 287 .copy(Bitmap.Config.ARGB_8888, false); in testMultiAtlasGlyphsWithColorSpace()
|
D | CanvasTests.java | 90 return getMutableBitmap(Bitmap.Config.ARGB_8888); in getMutableBitmap() 250 Bitmap.Config.ARGB_8888, in testConfigs() 430 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapAtPointRecycled() 439 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapSrcDstFloatRecycled() 448 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapSrcDstIntRecycled() 531 final Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapMeshNegativeWidth() 540 final Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapMeshNegativeHeight() 549 final Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapMeshNegativeVertOffset() 558 final Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapMeshNegativeColorOffset() 567 final Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapMeshTooFewVerts() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | IconTest.java | 85 Icon.createWithBitmap(Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888))); in testBitmapIcon() 91 Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888))); in testAdaptiveBitmapIcon() 144 mIcon = Icon.createWithBitmap(Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888)); in testLoadDrawableAsync() 157 mIcon = Icon.createWithBitmap(Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888)); in testLoadDrawableAsyncWithMessage() 171 Icon icon = Icon.createWithBitmap(Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888)); in testBitmapIcon_getType() 178 Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888)); in testAdaptiveBitmapIcon_getType()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaMetadataTest.java | 141 Bitmap.Config.ARGB_8888); in builder_putBitmap_throwsIAE_withNonBitmapKey() 180 Bitmap.Config.ARGB_8888); in equalsAndHashCode_ignoreRatingAndBitmap() 195 Bitmap.Config.ARGB_8888); in sizeAndKeySet() 242 Bitmap.Config.ARGB_8888); in getDescription() 275 originalWidth, originalHeight, Bitmap.Config.ARGB_8888); in builder_setBitmapDimensionLimit_bitmapsAreScaledDown() 297 originalWidth, originalHeight, Bitmap.Config.ARGB_8888); in builder_setBitmapDimensionLimit_bitmapsAreNotScaledDown()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutMultilineBidiTest.kt | 64 val actualBitmap = Bitmap.createBitmap(width, actualLayout.height, Bitmap.Config.ARGB_8888) in testConsistentBidiDraw() 69 val expectBitmap = Bitmap.createBitmap(width, actualLayout.height, Bitmap.Config.ARGB_8888) in testConsistentBidiDraw()
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | DrawingUtils.java | 46 final Bitmap bitmap = Bitmap.createBitmap(viewWidth, viewHeight, Bitmap.Config.ARGB_8888); in assertAllPixelsOfColor() 54 Bitmap.Config.ARGB_8888); in assertAllPixelsOfColor()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SpaceTest.java | 87 Bitmap bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888); in testDrawNothing() 89 Bitmap expected = bitmap.copy(Bitmap.Config.ARGB_8888, false); in testDrawNothing()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | BitmapTest.java | 117 Bitmap.createBitmap(65535, 65535, Bitmap.Config.ARGB_8888); in test_33846679() 126 Bitmap.createBitmap(2, 4, Bitmap.Config.ARGB_8888)); in test_inplace_213169612() 169 Bitmap.createBitmap(1000, 1000, Bitmap.Config.ARGB_8888) in test_ashmem_213169612()
|