Home
last modified time | relevance | path

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

12345678

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapTest.java225 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ALPHA_8); in testCompressAlpha8Fails()
249 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCopy()
261 Bitmap srcBitmap = Bitmap.createBitmap(1, 1, src); in testCopyConfigs()
280 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCopyMutableHwBitmap()
318 Bitmap bitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(), in testCopyPixelsToBuffer()
338 Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565); in testCreateBitmap1()
340 Bitmap ret = Bitmap.createBitmap(bitmap); in testCreateBitmap1()
351 Bitmap.createBitmap(mBitmap, -100, 50, 50, 200); in testCreateBitmapNegativeX()
357 mBitmap = Bitmap.createBitmap(new int[100 * 100], 100, 100, Config.ARGB_8888); in testCreateBitmap2()
359 Bitmap ret = Bitmap.createBitmap(mBitmap, 0, 0, 100, 100); in testCreateBitmap2()
[all …]
DBitmap_ConfigTest.java56 assertNotNull(Bitmap.createBitmap(10, 24, Config.ALPHA_8)); in testValues()
57 assertNotNull(Bitmap.createBitmap(10, 24, Config.ARGB_4444)); in testValues()
58 assertNotNull(Bitmap.createBitmap(10, 24, Config.ARGB_8888)); in testValues()
59 assertNotNull(Bitmap.createBitmap(10, 24, Config.RGB_565)); in testValues()
60 assertNotNull(Bitmap.createBitmap(10, 24, Config.RGBA_F16)); in testValues()
DBitmapShaderTest.java47 Bitmap tile = Bitmap.createBitmap(TILE_WIDTH, TILE_HEIGHT, Config.ARGB_8888); in testBitmapShader()
59 Bitmap b = Bitmap.createBitmap(NUM_TILES * TILE_WIDTH - TILE_WIDTH / 2, in testBitmapShader()
102 Bitmap bitmap = Bitmap.createBitmap(2, 1, Config.ARGB_8888); in testClamp()
109 Bitmap dstBitmap = Bitmap.createBitmap(4, 1, Config.ARGB_8888); in testClamp()
124 Bitmap bitmap = Bitmap.createBitmap(2, 1, Config.ARGB_8888); in testRepeat()
131 Bitmap dstBitmap = Bitmap.createBitmap(4, 1, Config.ARGB_8888); in testRepeat()
146 Bitmap bitmap = Bitmap.createBitmap(2, 1, Config.ARGB_8888); in testMirror()
153 Bitmap dstBitmap = Bitmap.createBitmap(4, 1, Config.ARGB_8888); in testMirror()
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()
DBitmapColorSpaceTest.java93 Bitmap b = Bitmap.createBitmap(32, 32, config, false, requested); in createWithColorSpace()
106 Bitmap b = Bitmap.createBitmap(32, 32, config, false, requested); in createWithColorSpace()
122 Bitmap b = Bitmap.createBitmap(32, 32, config, false, requested); in createWithColorSpace()
136 Bitmap bitmap = Bitmap.createBitmap(32, 32, Bitmap.Config.ALPHA_8); in createAlpha8ColorSpace()
140 bitmap = Bitmap.createBitmap(32, 32, Bitmap.Config.ALPHA_8, true, cs); in createAlpha8ColorSpace()
152 Bitmap bitmap = Bitmap.createBitmap(32, 32, config, true); in createDefaultColorSpace()
159 Bitmap.createBitmap(32, 32, Bitmap.Config.ARGB_8888, true, null); in createWithoutColorSpace()
164 Bitmap.createBitmap(32, 32, Bitmap.Config.ARGB_8888, true, in createWithNonRgbColorSpace()
170 Bitmap.createBitmap(32, 32, Bitmap.Config.ARGB_8888, true, in createWithNoTransferParameters()
189 Bitmap orig = Bitmap.createBitmap(32, 32, config, false, rgb); in createFromSourceWithColorSpace()
[all …]
DNinePatchTest.java107 Bitmap bitmap = Bitmap.createBitmap(COLOR, 10, 10, Bitmap.Config.ARGB_4444); in testIsNinePatchChunk()
116 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
124 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
131 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
141 bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight(), in testDraw()
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/view/src/android/view/cts/
DPixelCopyTest.java131 Bitmap dest = Bitmap.createBitmap(5, 5, Config.ARGB_8888); in testRecycledDest()
138 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoSourceData()
145 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectSurface()
151 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectWindow()
157 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testInvalidSourceRectSurface()
163 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testInvalidSourceRectWindow()
169 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoDecorView()
176 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoViewRoot()
203 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testGlProducerFullsize()
216 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testGlProducerCropTopLeft()
[all …]
/cts/tests/tests/notificationlegacy/notificationlegacy30/src/android/app/notification/legacy30/cts/
DNotificationTemplateApi30Test.kt33 val icon = createBitmap(200, 100) in <lambda>()
46 val icon = createBitmap(200, 100) in <lambda>()
59 val picture = createBitmap(40, 30) in <lambda>()
60 val icon = createBitmap(200, 100) in <lambda>()
74 val bitmap = createBitmap(200, 100) in <lambda>()
88 val picture = createBitmap(40, 30) in <lambda>()
112 val picture = createBitmap(40, 30) in <lambda>()
113 val icon = createBitmap(80, 65) in <lambda>()
141 val picture = createBitmap(40, 30) in <lambda>()
142 val bigIcon = createBitmap(80, 75) in <lambda>()
/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/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/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()
/cts/tests/app/src/android/app/cts/
DNotificationTemplateTest.kt41 val icon = createBitmap(200, 100) in <lambda>()
56 val icon = createBitmap(400, 300) in <lambda>()
87 val icon = createBitmap(200, 300) in <lambda>()
100 val icon = createBitmap(200, 100) in <lambda>()
115 val icon = createBitmap(400, 300) in <lambda>()
130 val icon = createBitmap(200, 300) in <lambda>()
143 val picture = createBitmap(40, 30) in <lambda>()
144 val icon = createBitmap(200, 100) in <lambda>()
160 val picture = createBitmap(40, 30) in <lambda>()
161 val icon = createBitmap(400, 300) in <lambda>()
[all …]
DWallpaperManagerTest.java113 Bitmap tmpWallpaper = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in setBitmapTest()
147 Bitmap tmpWallpaper = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in wallpaperChangedBroadcastTest()
266 Bitmap tmpWallpaper = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in wallpaperColors_primary()
294 Bitmap tmpWallpaper = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in wallpaperColors_secondary()
321 Bitmap highRatioWallpaper = Bitmap.createBitmap(8000, 800, Bitmap.Config.ARGB_8888); in highRatioWallpaper_largeWidth()
335 Bitmap highRatioWallpaper = Bitmap.createBitmap(800, 8000, Bitmap.Config.ARGB_8888); in highRatioWallpaper_largeHeight()
349 Bitmap highResolutionWallpaper = Bitmap.createBitmap(10000, 10000, Bitmap.Config.ARGB_8888); in highResolutionWallpaper()
366 final Bitmap srgbBitmap = Bitmap.createBitmap(100, 100, config); in testWideGamutWallpaper()
367 final Bitmap p3Bitmap = Bitmap.createBitmap(100, 100, config, false, p3); in testWideGamutWallpaper()
390 final Bitmap srgbBitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testWallpaperSupportsWcg()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java76 Icon.createWithBitmap(Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888))); in testBitmapIcon()
82 Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888))); in testAdaptiveBitmapIcon()
135 mIcon = Icon.createWithBitmap(Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888)); in testLoadDrawableAsync()
148 mIcon = Icon.createWithBitmap(Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888)); in testLoadDrawableAsyncWithMessage()
162 Icon icon = Icon.createWithBitmap(Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888)); in testBitmapIcon_getType()
169 Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888)); in testAdaptiveBitmapIcon_getType()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
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()
192 Bitmap b = Bitmap.createBitmap(32, 32, Bitmap.Config.ALPHA_8); in testBitmapConfigFromA8()
238 Bitmap newBitmap = Bitmap.createBitmap(hardwareBitmap); in testCreateIdentityBitmap()
261 Bitmap cropped = Bitmap.createBitmap(hardwareBitmap, 7, 7, 30, 30); in testCreateSubsetBitmap()
275 Bitmap transformed = Bitmap.createBitmap(hardwareBitmap, 7, 7, 30, 30, matrix, false); in testCreateTransformedBitmap()
302 Bitmap bitmap = Bitmap.createBitmap(50, 50, Bitmap.Config.ARGB_8888); in testHardwareExtractAlpha()
DShaderTests.java51 … Bitmap shaderBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); in testSinglePixelBitmapShader()
72 … Bitmap shaderBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); in testSinglePixelComposeShader()
113 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ALPHA_8); in testComplexShaderUsage()
120 Bitmap shaderBitmap = Bitmap.createBitmap( in testComplexShaderUsage()
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()
/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/pdf/src/android/graphics/pdf/cts/
DUtils.java123 Bitmap bm = Bitmap.createBitmap(bmWidth, bmHeight, Bitmap.Config.ARGB_8888); in renderWithTransform()
157 renderedBm = Bitmap.createBitmap(page.getWidth(), page.getHeight(), in renderAndThenTransform()
180 Bitmap transformedBm = Bitmap.createBitmap(bmWidth, bmHeight, Bitmap.Config.ARGB_8888); in renderAndThenTransform()
186 clippedBm = Bitmap.createBitmap(bmWidth, bmHeight, Bitmap.Config.ARGB_8888); in renderAndThenTransform()

12345678