Home
last modified time | relevance | path

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

123456789

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmap_ConfigTest.java23 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 …]
DBitmapTest.java30 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 …]
DBitmapRGBAF16Test.java25 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 …]
DBitmapColorSpaceTest.java76 Bitmap.Config[] configs = new Bitmap.Config[] { in createWithColorSpace()
77 Bitmap.Config.ARGB_8888, in createWithColorSpace()
78 Bitmap.Config.RGB_565, in createWithColorSpace()
79 Bitmap.Config.ARGB_4444, in createWithColorSpace()
80 Bitmap.Config.RGBA_F16, in createWithColorSpace()
83 for (Bitmap.Config config : configs) { in createWithColorSpace()
109 if (config == Bitmap.Config.RGBA_F16) { in createWithColorSpace()
125 if (config == Bitmap.Config.RGBA_F16) { in createWithColorSpace()
136 Bitmap bitmap = Bitmap.createBitmap(32, 32, Bitmap.Config.ALPHA_8); in createAlpha8ColorSpace()
140 bitmap = Bitmap.createBitmap(32, 32, Bitmap.Config.ALPHA_8, true, cs); in createAlpha8ColorSpace()
[all …]
DBitmapShaderTest.java21 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()
DBitmapFactoryTest.java32 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 …]
DComposeShaderTest.java21 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()
DBitmapFactory_OptionsTest.java78 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()
DBitmapRegionDecoderTest.java29 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 …]
DPorterDuffXfermodeTest.java21 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()
DPorterDuffColorFilterTest.java21 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()
DComposePathEffectTest.java21 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()
DPaintFlagsDrawFilterTest.java23 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/
DHardwareBitmapTests.java67 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 …]
DXfermodeTest.java60 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);
DColorFilterAlphaTest.java98 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()
DCanvasTests.java72 return Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Bitmap.Config.ARGB_8888); in getMutableBitmap()
212 Bitmap hwBitmap = getImmutableBitmap().copy(Bitmap.Config.HARDWARE, false); in testDrawHwBitmap_inSwCanvas()
219 Bitmap hwBitmap = getImmutableBitmap().copy(Bitmap.Config.HARDWARE, false); in testDrawHwBitmap_inPictureCanvas_inSwCanvas()
229 Bitmap hwBitmap = getImmutableBitmap().copy(Bitmap.Config.HARDWARE, false); in testDrawHwBitmap_inPictureCanvas_inPictureCanvas_inSwCanvas()
243 Bitmap hwBitmap = getImmutableBitmap().copy(Bitmap.Config.HARDWARE, false); in testHwBitmapShaderInSwCanvas1()
256 Bitmap hwBitmap = getImmutableBitmap().copy(Bitmap.Config.HARDWARE, false); in testHwBitmapShaderInSwCanvas2()
361 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapAtPointRecycled()
370 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapSrcDstFloatRecycled()
379 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapSrcDstIntRecycled()
462 final Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, 29, Bitmap.Config.ARGB_8888); in testDrawBitmapMeshNegativeWidth()
[all …]
DColorSpaceTests.java19 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/
DDRMTest.java65 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/
DPixelCopyTest.java30 import android.graphics.Bitmap.Config;
131 Bitmap dest = Bitmap.createBitmap(5, 5, Config.ARGB_8888); in testRecycledDest()
138 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoSourceData()
145 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectSurface()
151 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectWindow()
157 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testInvalidSourceRectSurface()
163 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testInvalidSourceRectWindow()
169 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoDecorView()
176 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoViewRoot()
203 Bitmap bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testGlProducerFullsize()
[all …]
DTextureViewTest.java122 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/
DStagefrightTest.java161 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/
DTestMedia.java131 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2020_0409()
146 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2020_0421()
265 testConfig.config = new CrashUtils.Config().setProcessPatterns("audioserver"); in testPocCVE_2017_0837()
282 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2018_9466_CVE_2017_9047()
296 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2018_9466_CVE_2017_9048()
311 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2018_9466_CVE_2017_9049()
329 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2018_9466_CVE_2017_9050()
348 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2015_3873()
493 testConfig.config = new CrashUtils.Config().setProcessPatterns(binaryName); in testPocCVE_2020_0451()
514 testConfig.config = new CrashUtils.Config() in testPocCVE_2018_9537()
[all …]
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java113 Bitmap tmpWallpaper = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in setBitmapTest()
147 Bitmap tmpWallpaper = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in wallpaperChangedBroadcastTest()
266 Bitmap tmpWallpaper = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in wallpaperColors_primary()
294 Bitmap tmpWallpaper = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in wallpaperColors_secondary()
321 Bitmap highRatioWallpaper = Bitmap.createBitmap(8000, 800, Bitmap.Config.ARGB_8888); in highRatioWallpaper_largeWidth()
335 Bitmap highRatioWallpaper = Bitmap.createBitmap(800, 8000, Bitmap.Config.ARGB_8888); in highRatioWallpaper_largeHeight()
349 Bitmap highResolutionWallpaper = Bitmap.createBitmap(10000, 10000, Bitmap.Config.ARGB_8888); in highResolutionWallpaper()
365 final Bitmap.Config config = Bitmap.Config.ARGB_8888; in testWideGamutWallpaper()
390 final Bitmap srgbBitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testWallpaperSupportsWcg()
391 final Bitmap p3Bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888, false, in testWallpaperSupportsWcg()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DSharedElementCallbackTest.java50 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()

123456789