/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | Bitmap_ConfigTest.java | 23 import android.graphics.Bitmap.Config; 36 assertEquals(Config.ALPHA_8, Config.valueOf("ALPHA_8")); in testValueOf() 37 assertEquals(Config.RGB_565, Config.valueOf("RGB_565")); in testValueOf() 38 assertEquals(Config.ARGB_4444, Config.valueOf("ARGB_4444")); in testValueOf() 39 assertEquals(Config.ARGB_8888, Config.valueOf("ARGB_8888")); in testValueOf() 40 assertEquals(Config.RGBA_F16, Config.valueOf("RGBA_F16")); in testValueOf() 45 Config[] config = Config.values(); in testValues() 48 assertEquals(Config.ALPHA_8, config[0]); in testValues() 49 assertEquals(Config.RGB_565, config[1]); in testValues() 50 assertEquals(Config.ARGB_4444, config[2]); in testValues() [all …]
|
D | BitmapTest.java | 30 import android.graphics.Bitmap.Config; 225 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ALPHA_8); in testCompressAlpha8Fails() 244 mBitmap.copy(Config.RGB_565, false); in testCopyRecycled() 249 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCopy() 250 Bitmap bitmap = mBitmap.copy(Config.ARGB_8888, false); in testCopy() 256 Config[] supportedConfigs = new Config[] { in testCopyConfigs() 257 Config.ALPHA_8, Config.RGB_565, Config.ARGB_8888, Config.RGBA_F16, in testCopyConfigs() 259 for (Config src : supportedConfigs) { in testCopyConfigs() 260 for (Config dst : supportedConfigs) { in testCopyConfigs() 266 if (Config.ALPHA_8 == dst || Config.ALPHA_8 == src) { in testCopyConfigs() [all …]
|
D | BitmapRGBAF16Test.java | 25 import android.graphics.Bitmap.Config; 62 assertEquals(Config.RGBA_F16, mOpaqueBitmap.getConfig()); in testDecode() 66 assertEquals(Config.RGBA_F16, mTransparentBitmap.getConfig()); in testDecode() 75 assertEquals(Config.RGBA_F16, scaled.getConfig()); in testScaling() 81 assertEquals(Config.RGBA_F16, scaled.getConfig()); in testScaling() 89 assertEquals(Config.RGBA_F16, copy.getConfig()); in testCopy() 94 assertEquals(Config.RGBA_F16, copy.getConfig()); in testCopy() 100 Bitmap b = Bitmap.createBitmap(64, 64, Config.RGBA_F16, false); in testCreate() 102 assertEquals(Config.RGBA_F16, b.getConfig()); in testCreate() 105 b = Bitmap.createBitmap(64, 64, Config.RGBA_F16); in testCreate() [all …]
|
D | BitmapShaderTest.java | 21 import android.graphics.Bitmap.Config; 47 Bitmap tile = Bitmap.createBitmap(TILE_WIDTH, TILE_HEIGHT, Config.ARGB_8888); in testBitmapShader() 60 NUM_TILES * TILE_HEIGHT - TILE_HEIGHT / 2, Config.ARGB_8888); 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()
|
D | BitmapFactory_OptionsTest.java | 78 assertEquals(Bitmap.Config.RGBA_F16, options.outConfig); in testExtractMetaData() 83 assertEquals(Bitmap.Config.ARGB_8888, options.outConfig); in testExtractMetaData() 86 options.inPreferredConfig = Bitmap.Config.RGB_565; in testExtractMetaData() 89 assertEquals(Bitmap.Config.RGB_565, options.outConfig); in testExtractMetaData() 107 assertEquals(Bitmap.Config.ARGB_8888, options.outConfig); in testExtractMetaData()
|
D | ComposeShaderTest.java | 21 import android.graphics.Bitmap.Config; 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 | BitmapFactoryTest.java | 32 import android.graphics.Bitmap.Config; 229 new Object[] {Config.ARGB_8888, 16}, in paramsForWebpDecodeEncode() 230 new Object[] {Config.RGB_565, 49} in paramsForWebpDecodeEncode() 248 public void testWebpStreamDecode(Config config, int tolerance) { in testWebpStreamDecode() 262 public void testWebpStreamEncode(Config config, int tolerance) { in testWebpStreamEncode() 282 options.inPreferredConfig = Config.ARGB_8888; in testDecodeStream5() 289 assertEquals(bPng.getConfig(), Config.ARGB_8888); in testDecodeStream5() 297 assertEquals(bWebP1.getConfig(), Config.ARGB_8888); in testDecodeStream5() 309 assertEquals(bWebP2.getConfig(), Config.ARGB_8888); in testDecodeStream5() 461 options.inPreferredConfig = Bitmap.Config.HARDWARE; in testDecodeReuseHardware() [all …]
|
D | PorterDuffXfermodeTest.java | 21 import android.graphics.Bitmap.Config; 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 | 21 import android.graphics.Bitmap.Config; 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 | ComposePathEffectTest.java | 21 import android.graphics.Bitmap.Config; 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 | BitmapRegionDecoderTest.java | 29 import android.graphics.Bitmap.Config; 120 private static final Config[] COLOR_CONFIGS = new Config[] {Config.ARGB_8888, 121 Config.RGB_565}; 222 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionInputStream() 254 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionInputStreamInBitmap() 282 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionByteArray() 307 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionStringAndFileDescriptor() 316 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionStringAndFileDescriptor() 384 Config config = COLOR_CONFIGS[k]; in testInBitmapReuse() 438 options.inPreferredConfig = Bitmap.Config.HARDWARE; in testDecodeHardwareBitmap() [all …]
|
D | SumPathEffectTest.java | 23 import android.graphics.Bitmap.Config; 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 | PathDashPathEffectTest.java | 22 import android.graphics.Bitmap.Config; 47 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPathDashPathEffect() 57 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPathDashPathEffect()
|
D | PaintFlagsDrawFilterTest.java | 23 import android.graphics.Bitmap.Config; 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()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareBitmapTests.java | 67 options.inPreferredConfig = Bitmap.Config.HARDWARE; in createHardwareOptions() 101 assertEquals(Bitmap.Config.HARDWARE, hardwareBitmap.getConfig()); in testCreateFromPicture() 111 assertEquals(Bitmap.Config.HARDWARE, hardwareBitmap.getConfig()); in testReadbackThroughPicture() 121 Bitmap.Config.ARGB_8888); in testReadbackThroughPicture() 131 assertEquals(Bitmap.Config.HARDWARE, hardwareBitmap.getConfig()); in testReadbackThroughPictureNoEndRecording() 142 Bitmap.Config.ARGB_8888); in testReadbackThroughPictureNoEndRecording() 160 Bitmap scaled = Bitmap.createBitmap(picture, 24, 24, Bitmap.Config.HARDWARE); in testCreateScaledBitmapFromPicture() 162 assertEquals(Bitmap.Config.HARDWARE, scaled.getConfig()); in testCreateScaledBitmapFromPicture() 182 testBitmapCopy(R.drawable.robot, Bitmap.Config.RGB_565, Bitmap.Config.HARDWARE); in testBitmapConfigFromRGB565() 187 testBitmapCopy(R.drawable.robot, Bitmap.Config.ARGB_8888, Bitmap.Config.HARDWARE); in testBitmapConfigFromARGB8888() [all …]
|
D | XfermodeTest.java | 60 public static class Config { class in XfermodeTest 65 Config(boolean hardwareAccelerated, Object[] modeAndExpectedColors) { in Config() method in XfermodeTest.Config 77 public static List<XfermodeTest.Config> configs(Object[][] modesAndExpectedColors) { in configs() 78 List<XfermodeTest.Config> configs = new ArrayList<>(); in configs() 81 configs.add(new XfermodeTest.Config(hardwareAccelerated, modeAndExpectedColors)); in configs() 138 public static List<Config> configs() { in configs() 142 private final Config mConfig; 144 public XfermodeTest(Config config) { in XfermodeTest() 179 Bitmap srcB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); 188 Bitmap dstB = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888);
|
D | ColorFilterAlphaTest.java | 98 public static List<XfermodeTest.Config> configs() { in configs() 102 private final XfermodeTest.Config mConfig; 104 public ColorFilterAlphaTest(XfermodeTest.Config config) { in ColorFilterAlphaTest() 117 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in createMultiRectBitmap()
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DRMTest.java | 65 private ArrayList<Config> mConfigs = new ArrayList<Config>(); 77 Config config = ConfigFactory.getConfig(plugInName); in setUp() 84 private void register(Config config) throws Exception { in register() 91 private void acquireRights(Config config) throws Exception { in acquireRights() 98 private void deregister(Config config) throws Exception { in deregister() 110 for (Config config : mConfigs) { in testRegisterAndDeregister() 117 for (Config config : mConfigs) { in testAcquireRights() 125 for (Config config : mConfigs) { in testGetConstraints() 142 for (Config config : mConfigs) { in testCanHandle() 149 for (Config config : mConfigs) { in testGetOriginalMimeType() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyTest.java | 30 import android.graphics.Bitmap.Config; 132 Bitmap dest = Bitmap.createBitmap(5, 5, Config.ARGB_8888); in testRecycledDest() 139 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoSourceData() 146 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectSurface() 152 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectWindow() 158 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testInvalidSourceRectSurface() 164 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testInvalidSourceRectWindow() 170 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoDecorView() 177 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoViewRoot() 204 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testGlProducerFullsize() [all …]
|
D | TextureViewTest.java | 122 final Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888); in testScaling() 138 final Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888); in testRotateScale() 161 Bitmap screenshot = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testRotateScale() 180 final Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888); in testTransformScale() 204 Bitmap.Config.ARGB_8888); in testTransformScale() 284 false, false, new SRGBCompare(Bitmap.Config.RGB_565)); in testGet565Bitmap_SRGB() 290 false, false, new SRGBCompare(Bitmap.Config.ARGB_8888)); in testGetBitmap_SRGB() 296 false, true, new SRGBCompare(Bitmap.Config.ARGB_8888)); in testGetBitmap_SRGBLinear() 360 Bitmap.Config.ARGB_8888); in testSamplingWithTransform() 412 Bitmap.Config getConfig(); in getConfig() [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | StagefrightTest.java | 161 doStagefrightTest(R.raw.cve_2016_3829, new CrashUtils.Config().checkMinAddress(false)); in testStagefright_cve_2016_3829() 167 doStagefrightTest(R.raw.cve_2017_0643, new CrashUtils.Config().checkMinAddress(false)); in testStagefright_cve_2017_0643() 173 doStagefrightTest(R.raw.cve_2017_0728, new CrashUtils.Config().checkMinAddress(false)); in testStagefright_cve_2017_0728() 221 doStagefrightTest(R.raw.bug_35763994, new CrashUtils.Config().checkMinAddress(false)); in testStagefright_bug_35763994() 233 doStagefrightTest(R.raw.cve_2016_2507, new CrashUtils.Config().checkMinAddress(false)); in testStagefright_cve_2016_2507() 342 new CrashUtils.Config().checkMinAddress(false)); in testStagefright_cve_2016_2429_b_27211885() 348 doStagefrightTest(R.raw.bug_34031018_32bit, new CrashUtils.Config().checkMinAddress(false)); in testStagefright_bug_34031018() 349 doStagefrightTest(R.raw.bug_34031018_64bit, new CrashUtils.Config().checkMinAddress(false)); in testStagefright_bug_34031018() 379 new CrashUtils.Config().checkMinAddress(false)); in testStagefright_cve_2017_0852_b_62815506() 409 doStagefrightTest(R.raw.cve_2016_3920, new CrashUtils.Config().checkMinAddress(false)); in testStagefright_cve_2016_3920() [all …]
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | TestMedia.java | 131 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2020_0409() 146 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2020_0421() 276 testConfig.config = new CrashUtils.Config().setProcessPatterns("audioserver"); in testPocCVE_2017_0837() 293 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2018_9466_CVE_2017_9047() 307 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2018_9466_CVE_2017_9048() 322 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2018_9466_CVE_2017_9049() 340 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2018_9466_CVE_2017_9050() 359 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2015_3873() 504 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2020_0451() 555 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2019_9362() [all …]
|
/cts/tests/tests/drm/src/android/drm/cts/configs/ |
D | FwdLockConfig.java | 21 import android.drm.cts.Config; 23 public class FwdLockConfig implements Config {
|
D | PassthruConfig.java | 21 import android.drm.cts.Config; 23 public class PassthruConfig implements Config {
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | SharedElementCallbackTest.java | 50 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Bitmap.Config.ARGB_8888, true, cs); in testSnapshot() 52 bitmap = bitmap.copy(Bitmap.Config.HARDWARE, false); in testSnapshot() 74 assertSame(Bitmap.Config.HARDWARE, finalBitmap.getConfig()); in testSnapshot()
|