Home
last modified time | relevance | path

Searched refs:testBitmap (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/effect/src/android/effect/cts/
DEffectTest.java119 Bitmap testBitmap = Bitmap.createBitmap(2, 2, Bitmap.Config.ARGB_8888); in createTestBitmap() local
120 testBitmap.setPixel(0, 0, 0xFF000000); in createTestBitmap()
121 testBitmap.setPixel(0, 1, 0xFF0000FF); in createTestBitmap()
122 testBitmap.setPixel(1, 0, 0xFF00FF00); in createTestBitmap()
123 testBitmap.setPixel(1, 1, 0xFFFF0000); in createTestBitmap()
124 return testBitmap; in createTestBitmap()
/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() local
145 () -> builder.putBitmap(MediaMetadata.METADATA_KEY_TITLE, testBitmap)); in builder_putBitmap_throwsIAE_withNonBitmapKey()
179 Bitmap testBitmap = Bitmap.createBitmap(/*width=*/ 16, /*height=*/16, in equalsAndHashCode_ignoreRatingAndBitmap() local
183 .putBitmap(MediaMetadata.METADATA_KEY_ART, testBitmap) in equalsAndHashCode_ignoreRatingAndBitmap()
194 Bitmap testBitmap = Bitmap.createBitmap(/*width=*/ 16, /*height=*/16, in sizeAndKeySet() local
198 .putBitmap(MediaMetadata.METADATA_KEY_ART, testBitmap) in sizeAndKeySet()
274 Bitmap testBitmap = Bitmap.createBitmap( in builder_setBitmapDimensionLimit_bitmapsAreScaledDown() local
280 .putBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART, testBitmap) in builder_setBitmapDimensionLimit_bitmapsAreScaledDown()
296 Bitmap testBitmap = Bitmap.createBitmap( in builder_setBitmapDimensionLimit_bitmapsAreNotScaledDown() local
303 .putBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART, testBitmap) in builder_setBitmapDimensionLimit_bitmapsAreNotScaledDown()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39704/src/android/security/cts/CVE_2021_39704/
DPocService.java95 Bitmap testBitmap = Bitmap.createBitmap( in createNotificationIcon() local
99 final Canvas canvas = new Canvas(testBitmap); in createNotificationIcon()
101 return Icon.createWithBitmap(testBitmap); in createNotificationIcon()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21129/src/android/security/cts/CVE_2023_21129/
DPocService.java127 Bitmap testBitmap = in createNotificationIcon() local
132 final Canvas canvas = new Canvas(testBitmap); in createNotificationIcon()
134 return Icon.createWithBitmap(testBitmap); in createNotificationIcon()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21239/src/android/security/cts/CVE_2023_21239/
DDeviceTest.java116 Bitmap testBitmap = in testCallStyleNotification() local
118 final Canvas canvas = new Canvas(testBitmap); in testCallStyleNotification()
120 Icon notificationIcon = Icon.createWithBitmap(testBitmap); in testCallStyleNotification()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20415/src/android/security/cts/CVE_2022_20415/
DDeviceTest.java53 Bitmap testBitmap = Bitmap.createBitmap(mResources.getInteger(R.integer.width), in createNotificationIcon() local
55 final Canvas canvas = new Canvas(testBitmap); in createNotificationIcon()
57 return Icon.createWithBitmap(testBitmap); in createNotificationIcon()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2023_21139.java81 Bitmap testBitmap = Bitmap.createBitmap(dimension, dimension, Bitmap.Config.ARGB_8888); in testPocCVE_2023_21139() local
89 .setSmallIcon(Icon.createWithBitmap(testBitmap)) in testPocCVE_2023_21139()
/cts/tests/tests/graphics/src/android/graphics/cts/
DYuvImageTest.java528 private void compressRects(Bitmap testBitmap, YuvImage image, in compressRects() argument
538 expected = Bitmap.createBitmap(testBitmap, expectedRect.left, expectedRect.top, in compressRects()
546 private void compressOddRect(Bitmap testBitmap, YuvImage image, in compressOddRect() argument
553 expected = Bitmap.createBitmap(testBitmap, newRect.left, newRect.top, in compressOddRect()
/cts/tests/tests/widget/src/android/widget/cts/
DSimpleAdapterTest.java371 Bitmap testBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( in testSetViewImage() local
373 WidgetTestUtils.assertEquals(testBitmap, actualBitmap); in testSetViewImage()
DSimpleCursorAdapterTest.java248 Bitmap testBitmap = WidgetTestUtils.getUnscaledAndDitheredBitmap( in testSetViewImage() local
250 WidgetTestUtils.assertEquals(testBitmap, actualBitmap); in testSetViewImage()
/cts/tests/autofillservice/src/android/autofillservice/cts/saveui/
DSimpleSaveActivityTest.java1638 final boolean testBitmap = false; in explicitlySaveButtonTest()
1665 final Bitmap screenshotBefore = testBitmap ? mActivity.takeScreenshot(mActivity.mCommit) in explicitlySaveButtonTest()
1676 final Bitmap screenshotAfter = testBitmap ? mActivity.takeScreenshot(mActivity.mCommit) in explicitlySaveButtonTest()
1683 if (testBitmap) { in explicitlySaveButtonTest()