/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | Bitmap_ConfigTest.java | 20 import android.graphics.Bitmap.Config; 25 assertEquals(Config.ALPHA_8, Config.valueOf("ALPHA_8")); in testValueOf() 26 assertEquals(Config.RGB_565, Config.valueOf("RGB_565")); in testValueOf() 27 assertEquals(Config.ARGB_4444, Config.valueOf("ARGB_4444")); in testValueOf() 28 assertEquals(Config.ARGB_8888, Config.valueOf("ARGB_8888")); in testValueOf() 32 Config[] config = Config.values(); in testValues() 35 assertEquals(Config.ALPHA_8, config[0]); in testValues() 36 assertEquals(Config.RGB_565, config[1]); in testValues() 37 assertEquals(Config.ARGB_4444, config[2]); in testValues() 38 assertEquals(Config.ARGB_8888, config[3]); in testValues() [all …]
|
D | BitmapTest.java | 30 import android.graphics.Bitmap.Config; 103 mBitmap.copy(Config.RGB_565, false); in testCopy() 109 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCopy() 110 Bitmap bitmap = mBitmap.copy(Config.ARGB_8888, false); in testCopy() 183 Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565); in testCreateBitmap1() 188 assertEquals(Config.RGB_565, ret.getConfig()); in testCreateBitmap1() 200 mBitmap = Bitmap.createBitmap(new int[100 * 100], 100, 100, Config.ARGB_8888); in testCreateBitmap2() 206 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCreateBitmap2() 213 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCreateBitmap3() 244 mBitmap = Bitmap.createBitmap(new int[100 * 100], 100, 100, Config.ARGB_8888); in testCreateBitmap3() [all …]
|
D | PixelXorXfermodeTest.java | 24 import android.graphics.Bitmap.Config; 32 Bitmap b1 = Bitmap.createBitmap(width / 2, height, Config.ARGB_8888); in testPixelXorXfermode() 34 Bitmap b2 = Bitmap.createBitmap(width, height / 2, Config.ARGB_8888); in testPixelXorXfermode() 37 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888); in testPixelXorXfermode()
|
D | ComposeShaderTest.java | 30 import android.graphics.Bitmap.Config; 48 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); in testPorterDuff() 74 Bitmap greenBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); in testXfermode() 76 Bitmap cyanBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); in testXfermode() 86 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); in testXfermode()
|
D | PorterDuffXfermodeTest.java | 25 import android.graphics.Bitmap.Config; 35 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode() 37 Bitmap b1 = Bitmap.createBitmap(WIDTH / 2, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode() 39 Bitmap b2 = Bitmap.createBitmap(WIDTH, HEIGHT / 2, Config.ARGB_8888); in testPorterDuffXfermode()
|
D | PorterDuffColorFilterTest.java | 24 import android.graphics.Bitmap.Config; 34 Bitmap b1 = Bitmap.createBitmap(width / 2, height, Config.ARGB_8888); in testPorterDuffColorFilter() 36 Bitmap b2 = Bitmap.createBitmap(width, height / 2, Config.ARGB_8888); in testPorterDuffColorFilter() 39 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888); in testPorterDuffColorFilter()
|
D | ComposePathEffectTest.java | 27 import android.graphics.Bitmap.Config; 53 Bitmap actual = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testComposePathEffect() 59 Bitmap expected = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testComposePathEffect()
|
D | SumPathEffectTest.java | 29 import android.graphics.Bitmap.Config; 40 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testSumPathEffect() 42 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testSumPathEffect()
|
D | Bitmap_CompressFormatTest.java | 22 import android.graphics.Bitmap.Config; 42 Bitmap b = Bitmap.createBitmap(10, 24, Config.ARGB_8888); in testValues()
|
D | BitmapShaderTest.java | 25 import android.graphics.Bitmap.Config; 39 Bitmap tile = Bitmap.createBitmap(TILE_WIDTH, TILE_HEIGHT, Config.ARGB_8888); in testBitmapShader() 52 NUM_TILES * TILE_HEIGHT - TILE_HEIGHT / 2, Config.ARGB_8888); in testBitmapShader()
|
D | PathDashPathEffectTest.java | 27 import android.graphics.Bitmap.Config; 40 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPathDashPathEffect() 50 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPathDashPathEffect()
|
D | PictureTest.java | 71 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testSaveRestoreBalance() 88 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in checkBalance() 119 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture() 129 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture() 136 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); in testPicture()
|
D | PaintFlagsDrawFilterTest.java | 26 import android.graphics.Bitmap.Config; 62 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in drawText() 71 Bitmap combinedBitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in delta() 118 Bitmap grid = Bitmap.createBitmap(kWidth, kHeight, Config.ARGB_8888); in testPaintFlagsDrawFilter2() 130 Bitmap dst = Bitmap.createBitmap(kWidth * kScale, kHeight * kScale, Config.ARGB_8888); in testPaintFlagsDrawFilter2()
|
D | Canvas_VertexModeTest.java | 21 import android.graphics.Bitmap.Config; 45 Bitmap bitmap = Bitmap.createBitmap(10, 27, Config.RGB_565); in testValues()
|
D | BitmapFactoryTest.java | 28 import android.graphics.Bitmap.Config; 67 private static Config[] COLOR_CONFIGS = new Config[] {Config.ARGB_8888, Config.RGB_565, 68 Config.ARGB_4444}; 71 private static Config[] COLOR_CONFIGS_RGBA = new Config[] {Config.ARGB_8888, 72 Config.ARGB_4444}; 372 Bitmap bitmap = Bitmap.createBitmap(pixelCount, 1, Config.ARGB_8888); in createBitmapForReuse() 403 bitmap.reconfigure(bitmapSize, bitmapSize, Config.ARGB_8888); in testDecodeReuseHasAlpha() 408 bitmap.reconfigure(bitmapSize, bitmapSize, Config.ARGB_8888); in testDecodeReuseHasAlpha() 415 Bitmap reuseBuffer = Bitmap.createBitmap(1000000, 1, Bitmap.Config.ALPHA_8); in testDecodeReuseFormats() 510 assertEquals(premul.getConfig(), Bitmap.Config.ARGB_8888); in testDecodePremultipliedData() [all …]
|
D | BitmapRegionDecoderTest.java | 21 import android.graphics.Bitmap.Config; 77 private static Config[] COLOR_CONFIGS = new Config[] {Config.ARGB_8888, 78 Config.RGB_565}; 177 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionInputStream() 207 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionInputStreamInBitmap() 233 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionByteArray() 257 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionStringAndFileDescriptor() 269 if (RES_IDS[i] == R.drawable.webp_test && COLOR_CONFIGS[k] == Config.RGB_565) { in testDecodeRegionStringAndFileDescriptor()
|
D | AvoidXfermodeTest.java | 23 import android.graphics.Bitmap.Config; 53 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); in testAvoidXfermode()
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DRMTest.java | 44 private ArrayList<Config> mConfigs = new ArrayList<Config>(); 56 Config config = ConfigFactory.getConfig(plugInName); in setUp() 63 private void register(Config config) throws Exception { in register() 70 private void acquireRights(Config config) throws Exception { in acquireRights() 77 private void deregister(Config config) throws Exception { in deregister() 89 for (Config config : mConfigs) { in testRegisterAndDeregister() 96 for (Config config : mConfigs) { in testAcquireRights() 104 for (Config config : mConfigs) { in testGetConstraints() 116 for (Config config : mConfigs) { in testCanHandle() 123 for (Config config : mConfigs) { in testGetOriginalMimeType() [all …]
|
/cts/tests/tests/app/src/android/app/cts/ |
D | ActivityManagerRunningTaskInfoTest.java | 63 Bitmap.Config.RGB_565); in testWriteToParcel() 72 assertEquals(Bitmap.Config.RGB_565, values.thumbnail.getConfig()); in testWriteToParcel() 91 Bitmap.Config.RGB_565); in testReadFromParcel() 99 assertEquals(Bitmap.Config.RGB_565, values.thumbnail.getConfig()); in testReadFromParcel()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableTestingUtils.java | 21 import android.graphics.Bitmap.Config; 28 final Bitmap b = Bitmap.createBitmap(w, h, Config.ARGB_8888); in getPixel()
|
/cts/tests/tests/drm/src/android/drm/cts/configs/ |
D | PassthruConfig.java | 21 import android.drm.cts.Config; 23 public class PassthruConfig implements Config {
|
D | FwdLockConfig.java | 21 import android.drm.cts.Config; 23 public class FwdLockConfig implements Config {
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ShaderTests.java | 44 … Bitmap shaderBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); in testSinglePixelBitmapShader() 65 … Bitmap shaderBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); in testSinglePixelComposeShader() 106 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ALPHA_8); in testComplexShaderUsage() 114 width, height, Bitmap.Config.ALPHA_8); in testComplexShaderUsage()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | ArcShapeTest.java | 23 import android.graphics.Bitmap.Config; 49 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw()
|
D | OvalShapeTest.java | 23 import android.graphics.Bitmap.Config; 44 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw()
|