Home
last modified time | relevance | path

Searched refs:Config (Results 1 – 25 of 92) sorted by relevance

1234

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmap_ConfigTest.java20 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 …]
DBitmapTest.java30 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 …]
DPixelXorXfermodeTest.java24 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()
DComposeShaderTest.java30 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()
DPorterDuffXfermodeTest.java25 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()
DPorterDuffColorFilterTest.java24 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()
DComposePathEffectTest.java27 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()
DSumPathEffectTest.java29 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()
DBitmap_CompressFormatTest.java22 import android.graphics.Bitmap.Config;
42 Bitmap b = Bitmap.createBitmap(10, 24, Config.ARGB_8888); in testValues()
DBitmapShaderTest.java25 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()
DPathDashPathEffectTest.java27 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()
DPictureTest.java71 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()
DPaintFlagsDrawFilterTest.java26 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()
DCanvas_VertexModeTest.java21 import android.graphics.Bitmap.Config;
45 Bitmap bitmap = Bitmap.createBitmap(10, 27, Config.RGB_565); in testValues()
DBitmapFactoryTest.java28 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 …]
DBitmapRegionDecoderTest.java21 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()
DAvoidXfermodeTest.java23 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/
DDRMTest.java44 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/
DActivityManagerRunningTaskInfoTest.java63 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/
DDrawableTestingUtils.java21 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/
DPassthruConfig.java21 import android.drm.cts.Config;
23 public class PassthruConfig implements Config {
DFwdLockConfig.java21 import android.drm.cts.Config;
23 public class FwdLockConfig implements Config {
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DShaderTests.java44 … 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/
DArcShapeTest.java23 import android.graphics.Bitmap.Config;
49 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw()
DOvalShapeTest.java23 import android.graphics.Bitmap.Config;
44 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); in testDraw()

1234