Home
last modified time | relevance | path

Searched refs:createBitmap (Results 1 – 25 of 249) sorted by relevance

12345678910

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapTest.java228 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ALPHA_8); in testCompressAlpha8Fails()
252 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCopy()
264 Bitmap srcBitmap = Bitmap.createBitmap(1, 1, src); in testCopyConfigs()
283 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCopyMutableHwBitmap()
321 Bitmap bitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(), in testCopyPixelsToBuffer()
341 Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565); in testCreateBitmap1()
343 Bitmap ret = Bitmap.createBitmap(bitmap); in testCreateBitmap1()
354 Bitmap.createBitmap(mBitmap, -100, 50, 50, 200); in testCreateBitmapNegativeX()
360 mBitmap = Bitmap.createBitmap(new int[100 * 100], 100, 100, Config.ARGB_8888); in testCreateBitmap2()
362 Bitmap ret = Bitmap.createBitmap(mBitmap, 0, 0, 100, 100); in testCreateBitmap2()
[all …]
DBitmap_ConfigTest.java58 assertNotNull(Bitmap.createBitmap(10, 24, Config.ALPHA_8)); in testValues()
59 assertNotNull(Bitmap.createBitmap(10, 24, Config.ARGB_4444)); in testValues()
60 assertNotNull(Bitmap.createBitmap(10, 24, Config.ARGB_8888)); in testValues()
61 assertNotNull(Bitmap.createBitmap(10, 24, Config.RGB_565)); in testValues()
62 assertNotNull(Bitmap.createBitmap(10, 24, Config.RGBA_F16)); in testValues()
63 assertNotNull(Bitmap.createBitmap(10, 24, Config.RGBA_1010102)); in testValues()
DBitmapShaderTest.java62 Bitmap tile = Bitmap.createBitmap(TILE_WIDTH, TILE_HEIGHT, config); in testBitmapShader()
74 Bitmap b = Bitmap.createBitmap(NUM_TILES * TILE_WIDTH - TILE_WIDTH / 2, in testBitmapShader()
118 Bitmap bitmap = Bitmap.createBitmap(2, 1, config); in testClamp()
125 Bitmap dstBitmap = Bitmap.createBitmap(4, 1, config); in testClamp()
141 Bitmap bitmap = Bitmap.createBitmap(2, 1, config); in testRepeat()
148 Bitmap dstBitmap = Bitmap.createBitmap(4, 1, config); in testRepeat()
164 Bitmap bitmap = Bitmap.createBitmap(2, 1, config); in testMirror()
171 Bitmap dstBitmap = Bitmap.createBitmap(4, 1, config); in testMirror()
187 Bitmap bitmap = Bitmap.createBitmap(2, 2, config); in testFiltering()
203 Bitmap dstBitmap = Bitmap.createBitmap(1, 1, config); in testFiltering()
[all …]
DComposeShaderTest.java56 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()
DBitmapRGBAF16Test.java87 Bitmap copy = Bitmap.createBitmap(mOpaqueBitmap); in testCopy()
92 copy = Bitmap.createBitmap(mTransparentBitmap); in testCopy()
100 Bitmap b = Bitmap.createBitmap(64, 64, Config.RGBA_F16, false); in testCreate()
105 b = Bitmap.createBitmap(64, 64, Config.RGBA_F16); in testCreate()
147 Bitmap mask = Bitmap.createBitmap(res.getWidth(), res.getHeight(), in testCopyFromA8()
DPictureTest.java65 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()
DPorterDuffXfermodeTest.java42 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()
DPorterDuffColorFilterTest.java43 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()
DPaintFlagsDrawFilterTest.java66 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()
DComposePathEffectTest.java61 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()
/cts/tests/tests/notificationlegacy/notificationlegacy30/src/android/app/notification/legacy30/cts/
DNotificationTemplateApi30Test.kt41 val icon = createBitmap(200, 100) in <lambda>()
55 val icon = createBitmap(200, 100) in <lambda>()
73 val picture = createBitmap(40, 30) in <lambda>()
74 val icon = createBitmap(200, 100) in <lambda>()
89 val bitmap = createBitmap(200, 100) in <lambda>()
108 val picture = createBitmap(40, 30) in <lambda>()
136 val picture = createBitmap(40, 30) in <lambda>()
137 val icon = createBitmap(80, 65) in <lambda>()
168 val picture = createBitmap(40, 30) in <lambda>()
171 val bigIcon = createBitmap(inputWidth, inputHeight) in <lambda>()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DGainmapTests.java77 Bitmap base = Bitmap.createBitmap(10, 6, Bitmap.Config.ARGB_8888);
80 Bitmap gainmapImage = Bitmap.createBitmap(5, 3, Bitmap.Config.ARGB_8888);
101 sNoOpGainmap = new Gainmap(Bitmap.createBitmap(1, 1, Bitmap.Config.ALPHA_8));
200 Bitmap result = Bitmap.createBitmap(10, 6, Bitmap.Config.RGBA_F16, false, BT2020_HLG);
208 Bitmap result = Bitmap.createBitmap(10, 6, Bitmap.Config.RGBA_F16, false, BT2020_PQ);
216 Bitmap result = Bitmap.createBitmap(10, 6, Bitmap.Config.RGBA_F16, false, SRGB);
224 Bitmap result = Bitmap.createBitmap(10, 6, Bitmap.Config.RGBA_F16, false, BT2020_HLG);
232 Bitmap result = Bitmap.createBitmap(10, 6, Bitmap.Config.RGBA_F16, false, BT2020_HLG);
240 Bitmap result = Bitmap.createBitmap(10, 6, Bitmap.Config.RGBA_F16, false, SRGB);
284 Bitmap result = Bitmap.createBitmap(10, 6, Bitmap.Config.RGBA_F16, false, BT2020_HLG);
[all …]
DShaderTests.java55 … 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()
117 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ALPHA_8); in testComplexShaderUsage()
124 Bitmap shaderBitmap = Bitmap.createBitmap( in testComplexShaderUsage()
192 Bitmap shaderBitmap = Bitmap.createBitmap( in testSinglePixelBitmapShaderWith1010102Config()
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()
DCanvasStateTests.java161 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()
182 Bitmap bitmap = Bitmap.createBitmap(displayMetrics.widthPixels, in testDrawScreenWideBitmap()
202 Bitmap bitmap = Bitmap.createBitmap(bWidth, bHeight, Bitmap.Config.ARGB_8888); in testDrawLargeBitmap()
DHardwareBitmapTests.java98 Bitmap hardwareBitmap = Bitmap.createBitmap(picture); in testCreateFromPicture()
120 Bitmap result = Bitmap.createBitmap(picture, picture.getWidth(), picture.getHeight(), in testReadbackThroughPicture()
141 Bitmap result = Bitmap.createBitmap(picture, picture.getWidth(), picture.getHeight(), in testReadbackThroughPictureNoEndRecording()
160 Bitmap scaled = Bitmap.createBitmap(picture, 24, 24, Bitmap.Config.HARDWARE); in testCreateScaledBitmapFromPicture()
231 Bitmap newBitmap = Bitmap.createBitmap(hardwareBitmap); in testCreateIdentityBitmap()
254 Bitmap cropped = Bitmap.createBitmap(hardwareBitmap, 7, 7, 30, 30); in testCreateSubsetBitmap()
268 Bitmap transformed = Bitmap.createBitmap(hardwareBitmap, 7, 7, 30, 30, matrix, false); in testCreateTransformedBitmap()
295 Bitmap bitmap = Bitmap.createBitmap(50, 50, Bitmap.Config.ARGB_8888); in testHardwareExtractAlpha()
/cts/tests/tests/uirendering/src/android/uirendering/cts/blendmode/
DBitmapBlendModeCanvasClient.java66 Bitmap bitmap = createBitmap(width, height); in draw()
76 private Bitmap createBitmap(int width, int height) { in createBitmap() method in BitmapBlendModeCanvasClient
79 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in createBitmap()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/blendmode/
DBitmapBlendModeCanvasClient.java66 Bitmap bitmap = createBitmap(width, height); in draw()
76 private Bitmap createBitmap(int width, int height) { in createBitmap() method in BitmapBlendModeCanvasClient
79 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in createBitmap()
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/
DGetWalletCardsResponseTest.java63 Icon.createWithBitmap(createBitmap("1")), in testParcel_toParcel()
70 Icon.createWithBitmap(createBitmap("2")), in testParcel_toParcel()
93 private Bitmap createBitmap(String cardNumber) { in createBitmap() method in GetWalletCardsResponseTest
94 Bitmap bitmap = Bitmap.createBitmap(CARD_WIDTH, CARD_HEIGHT, Bitmap.Config.ARGB_8888); in createBitmap()
DWalletCardTest.java62 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/view/src/android/view/cts/
DPixelCopyTest.java165 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 …]
/cts/tests/tests/text/src/android/text/cts/
DControlCharacterGlyphTest.java37 Bitmap bmp = Bitmap.createBitmap(200, 200, Bitmap.Config.ALPHA_8); in testLineBreakDrawsNothing()
41 Bitmap emptyBitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ALPHA_8); in testLineBreakDrawsNothing()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationTemplateTest.kt55 val icon = createBitmap(200, 100) in <lambda>()
71 val icon = createBitmap(40, 30) in <lambda>()
104 val icon = createBitmap(200, 300) in <lambda>()
118 val icon = createBitmap(200, 100) in <lambda>()
134 val icon = createBitmap(40, 30) in <lambda>()
150 val icon = createBitmap(200, 300) in <lambda>()
168 val picture = createBitmap(40, 30) in <lambda>()
169 val icon = createBitmap(200, 100) in <lambda>()
190 val picture = createBitmap(40, 30) in <lambda>()
191 val icon = createBitmap(40, 30) in <lambda>()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DGoldenImageVerifier.java46 bitmap = Bitmap.createBitmap(bitmap, 0, 0, mWidth, mHeight); in verify()
56 mDifferenceBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in verify()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java85 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/
DMediaMetadataTest.java140 Bitmap testBitmap = Bitmap.createBitmap(/*width=*/ 16, /*height=*/16, in builder_putBitmap_throwsIAE_withNonBitmapKey()
179 Bitmap testBitmap = Bitmap.createBitmap(/*width=*/ 16, /*height=*/16, in equalsAndHashCode_ignoreRatingAndBitmap()
194 Bitmap testBitmap = Bitmap.createBitmap(/*width=*/ 16, /*height=*/16, in sizeAndKeySet()
241 Bitmap testIcon = Bitmap.createBitmap(/*width=*/ 16, /*height=*/16, in getDescription()
274 Bitmap testBitmap = Bitmap.createBitmap( in builder_setBitmapDimensionLimit_bitmapsAreScaledDown()
296 Bitmap testBitmap = Bitmap.createBitmap( in builder_setBitmapDimensionLimit_bitmapsAreNotScaledDown()

12345678910