/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; 140 mBitmap.copy(Config.RGB_565, false); in testCopyRecycled() 145 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCopy() 146 Bitmap bitmap = mBitmap.copy(Config.ARGB_8888, false); in testCopy() 152 Config[] supportedConfigs = new Config[] { in testCopyConfigs() 153 Config.ALPHA_8, Config.RGB_565, Config.ARGB_8888, Config.RGBA_F16, in testCopyConfigs() 155 for (Config src : supportedConfigs) { in testCopyConfigs() 156 for (Config dst : supportedConfigs) { in testCopyConfigs() 162 if (Config.ALPHA_8 == dst || Config.ALPHA_8 == src) { in testCopyConfigs() 176 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCopyMutableHwBitmap() [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 | BitmapColorSpaceTest.java | 74 Bitmap.Config[] configs = new Bitmap.Config[] { in createWithColorSpace() 75 Bitmap.Config.ARGB_8888, in createWithColorSpace() 76 Bitmap.Config.RGB_565, in createWithColorSpace() 77 Bitmap.Config.ARGB_4444, in createWithColorSpace() 78 Bitmap.Config.RGBA_F16, in createWithColorSpace() 81 for (Bitmap.Config config : configs) { in createWithColorSpace() 107 if (config == Bitmap.Config.RGBA_F16) { in createWithColorSpace() 123 if (config == Bitmap.Config.RGBA_F16) { in createWithColorSpace() 134 Bitmap bitmap = Bitmap.createBitmap(32, 32, Bitmap.Config.ALPHA_8); in createAlpha8ColorSpace() 138 bitmap = Bitmap.createBitmap(32, 32, Bitmap.Config.ALPHA_8, true, cs); in createAlpha8ColorSpace() [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 | BitmapFactoryTest.java | 32 import android.graphics.Bitmap.Config; 82 private static final Config[] COLOR_CONFIGS = new Config[] {Config.ARGB_8888, Config.RGB_565}; 85 private static final Config[] COLOR_CONFIGS_RGBA = new Config[] {Config.ARGB_8888}; 438 options.inPreferredConfig = Bitmap.Config.HARDWARE; in testDecodeReuseHardware() 454 Bitmap bitmap = Bitmap.createBitmap(pixelCount, 1, Config.ARGB_8888); in createBitmapForReuse() 486 bitmap.reconfigure(bitmapSize, bitmapSize, Config.ARGB_8888); in testDecodeReuseHasAlpha() 491 bitmap.reconfigure(bitmapSize, bitmapSize, Config.ARGB_8888); in testDecodeReuseHasAlpha() 499 Bitmap reuseBuffer = Bitmap.createBitmap(1000000, 1, Bitmap.Config.ALPHA_8); in testDecodeReuseFormats() 600 assertEquals(premul.getConfig(), Bitmap.Config.ARGB_8888); in testDecodePremultipliedData() 601 assertEquals(unpremul.getConfig(), Bitmap.Config.ARGB_8888); in testDecodePremultipliedData() [all …]
|
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 | 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 | BitmapRegionDecoderTest.java | 29 import android.graphics.Bitmap.Config; 115 private static final Config[] COLOR_CONFIGS = new Config[] {Config.ARGB_8888, 116 Config.RGB_565}; 221 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionInputStream() 253 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionInputStreamInBitmap() 281 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() 319 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionStringAndFileDescriptor() 387 Config config = COLOR_CONFIGS[k]; in testInBitmapReuse() 440 options.inPreferredConfig = Bitmap.Config.HARDWARE; in testDecodeHardwareBitmap() [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 | 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()
|
D | LinearGradientTest.java | 23 import android.graphics.Bitmap.Config; 53 b = drawLinearGradient(lg, Config.ARGB_8888); in testLinearGradient() 69 b = drawLinearGradient(lg, Config.ARGB_8888); in testLinearGradient() 90 Bitmap b = drawLinearGradient(lg, Config.RGBA_F16); 119 b = drawLinearGradient(lg, Config.RGBA_F16); 137 private Bitmap drawLinearGradient(LinearGradient lg, Config c) { 154 Bitmap bitmap = drawLinearGradient(gradient, Config.ARGB_8888);
|
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()
|
/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 | CanvasTests.java | 71 return Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Bitmap.Config.ARGB_8888); in getMutableBitmap() 171 Bitmap hwBitmap = getImmutableBitmap().copy(Bitmap.Config.HARDWARE, false); in testDrawHwBitmap_inSwCanvas() 178 Bitmap hwBitmap = getImmutableBitmap().copy(Bitmap.Config.HARDWARE, false); in testDrawHwBitmap_inPictureCanvas_inSwCanvas() 188 Bitmap hwBitmap = getImmutableBitmap().copy(Bitmap.Config.HARDWARE, false); in testDrawHwBitmap_inPictureCanvas_inPictureCanvas_inSwCanvas() 202 Bitmap hwBitmap = getImmutableBitmap().copy(Bitmap.Config.HARDWARE, false); in testHwBitmapShaderInSwCanvas1() 215 Bitmap hwBitmap = getImmutableBitmap().copy(Bitmap.Config.HARDWARE, false); in testHwBitmapShaderInSwCanvas2() 320 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapAtPointRecycled() 329 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapSrcDstFloatRecycled() 338 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapSrcDstIntRecycled() 421 final Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapMeshNegativeWidth() [all …]
|
D | ColorFilterAlphaTest.java | 96 public static List<XfermodeTest.Config> configs() { in configs() 100 private final XfermodeTest.Config mConfig; 102 public ColorFilterAlphaTest(XfermodeTest.Config config) { in ColorFilterAlphaTest() 115 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in createMultiRectBitmap()
|
D | ColorSpaceTests.java | 19 import static android.graphics.Bitmap.Config.ARGB_8888; 20 import static android.graphics.Bitmap.Config.HARDWARE; 21 import static android.graphics.Bitmap.Config.RGB_565; 55 mMask = Bitmap.createBitmap(res.getWidth(), res.getHeight(), Bitmap.Config.ALPHA_8); in loadMask() 170 private Bitmap loadAsset(@NonNull String assetName, @NonNull Bitmap.Config config) { in loadAsset()
|
/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 | 31 import android.graphics.Bitmap.Config; 114 Bitmap dest = Bitmap.createBitmap(5, 5, Config.ARGB_8888); in testRecycledDest() 121 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoSourceData() 128 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectSurface() 134 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectWindow() 140 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testInvalidSourceRectSurface() 146 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testInvalidSourceRectWindow() 152 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoDecorView() 159 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoViewRoot() 186 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testGlProducerFullsize() [all …]
|
D | TextureViewTest.java | 118 final Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888); in testScaling() 134 final Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888); in testRotateScale() 157 Bitmap screenshot = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testRotateScale() 176 final Bitmap bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888); in testTransformScale() 200 Bitmap.Config.ARGB_8888); in testTransformScale() 280 false, false, new SRGBCompare(Bitmap.Config.RGB_565)); in testGet565Bitmap_SRGB() 286 false, false, new SRGBCompare(Bitmap.Config.ARGB_8888)); in testGetBitmap_SRGB() 292 false, true, new SRGBCompare(Bitmap.Config.ARGB_8888)); in testGetBitmap_SRGBLinear() 341 Bitmap.Config.ARGB_8888); in testSamplingWithTransform() 387 Bitmap.Config getConfig(); in getConfig() [all …]
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ExternalStorageHostTest.java | 50 private static class Config { class in ExternalStorageHostTest 55 public Config(String apk, String pkg, String clazz) { in Config() method in ExternalStorageHostTest.Config 82 private static final Config MEDIA = new Config("CtsMediaStorageApp.apk", 84 private static final Config MEDIA_28 = new Config("CtsMediaStorageApp28.apk", 86 private static final Config MEDIA_FULL = new Config("CtsMediaStorageAppFull.apk", 485 private void doMediaSandboxed(Config config, boolean sandboxed) throws Exception { in doMediaSandboxed() 525 private void doMediaNone(Config config) throws Exception { in doMediaNone() 550 private void doMediaRead(Config config) throws Exception { in doMediaRead() 577 private void doMediaWrite(Config config) throws Exception { in doMediaWrite() 602 private void doMediaEscalation(Config config) throws Exception { in doMediaEscalation()
|
/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()
|