Home
last modified time | relevance | path

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

12345678910>>...13

/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()
41 assertEquals(Config.RGBA_1010102, Config.valueOf("RGBA_1010102")); in testValueOf()
46 Config[] config = Config.values(); in testValues()
49 assertEquals(Config.ALPHA_8, config[0]); in testValues()
50 assertEquals(Config.RGB_565, config[1]); in testValues()
[all …]
DBitmapTest.java36 import android.graphics.Bitmap.Config;
228 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ALPHA_8); in testCompressAlpha8Fails()
247 mBitmap.copy(Config.RGB_565, false); in testCopyRecycled()
252 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCopy()
253 Bitmap bitmap = mBitmap.copy(Config.ARGB_8888, false); in testCopy()
259 Config[] supportedConfigs = new Config[] { in testCopyConfigs()
260 Config.ALPHA_8, Config.RGB_565, Config.ARGB_8888, Config.RGBA_F16, in testCopyConfigs()
262 for (Config src : supportedConfigs) { in testCopyConfigs()
263 for (Config dst : supportedConfigs) { in testCopyConfigs()
269 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()
81 Bitmap.Config.RGBA_1010102, in createWithColorSpace()
84 for (Bitmap.Config config : configs) { in createWithColorSpace()
110 if (config == Bitmap.Config.RGBA_F16) { in createWithColorSpace()
126 if (config == Bitmap.Config.RGBA_F16) { in createWithColorSpace()
137 Bitmap bitmap = Bitmap.createBitmap(32, 32, Bitmap.Config.ALPHA_8); in createAlpha8ColorSpace()
[all …]
DBitmapFactoryTest.java33 import android.graphics.Bitmap.Config;
246 new Object[] {Config.ARGB_8888, 16}, in paramsForWebpDecodeEncode()
247 new Object[] {Config.RGB_565, 49} in paramsForWebpDecodeEncode()
265 public void testWebpStreamDecode(Config config, int tolerance) { in testWebpStreamDecode()
279 public void testWebpStreamEncode(Config config, int tolerance) { in testWebpStreamEncode()
299 options.inPreferredConfig = Config.ARGB_8888; in testDecodeStream5()
306 assertEquals(bPng.getConfig(), Config.ARGB_8888); in testDecodeStream5()
314 assertEquals(bWebP1.getConfig(), Config.ARGB_8888); in testDecodeStream5()
326 assertEquals(bWebP2.getConfig(), Config.ARGB_8888); in testDecodeStream5()
478 options.inPreferredConfig = Bitmap.Config.HARDWARE; in testDecodeReuseHardware()
[all …]
DBitmapShaderTest.java54 Bitmap.Config.ARGB_8888, in testConfigs()
55 Bitmap.Config.RGBA_1010102 in testConfigs()
61 public void testBitmapShader(Bitmap.Config config) { in testBitmapShader()
117 public void testClamp(Bitmap.Config config) { in testClamp()
140 public void testRepeat(Bitmap.Config config) { in testRepeat()
163 public void testMirror(Bitmap.Config config) { in testMirror()
186 public void testFiltering(Bitmap.Config config) { in testFiltering()
230 Bitmap bitmap = Bitmap.createBitmap(2, 2, Bitmap.Config.ARGB_8888); in testAnisotropicFiltering()
252 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); in testRecycledBitmapThrowsISE()
256 Canvas canvas = new Canvas(Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888)); in testRecycledBitmapThrowsISE()
[all …]
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()
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()
DGainmapTest.java74 }, 4, 1, Bitmap.Config.ARGB_8888);
80 }, 4, 1, Bitmap.Config.ALPHA_8))); in sScalingRedA8.setGainmap()
87 }, 4, 1, Bitmap.Config.ARGB_8888);
93 }, 4, 1, Bitmap.Config.ARGB_8888))); in sScalingRed8888.setGainmap()
118 if (bitmap.getConfig() == Bitmap.Config.HARDWARE) { in checkGainmap()
121 assertEquals(Bitmap.Config.ARGB_8888, bitmap.getConfig()); in checkGainmap()
128 if (bitmap.getConfig() == Bitmap.Config.HARDWARE) { in checkGainmap()
131 assertEquals(Bitmap.Config.ARGB_8888, gainmapData.getConfig()); in checkGainmap()
147 if (bitmap.getConfig() == Bitmap.Config.HARDWARE) { in checkFountainGainmap()
150 assertEquals(Bitmap.Config.ARGB_8888, bitmap.getConfig()); in checkFountainGainmap()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/settings/
DSettings_ConfigTest.java115 mInitialSyncDisabledMode = Settings.Config.getSyncDisabledMode(); in setUpContext()
116 Settings.Config.setSyncDisabledMode(SYNC_DISABLED_MODE_NONE); in setUpContext()
126 Settings.Config.setSyncDisabledMode(mInitialSyncDisabledMode); in cleanUp()
136 String result = Settings.Config.getString(KEY1); in testGetString_empty()
146 Map<String, String> result = Settings.Config in testGetStrings_empty()
157 Settings.Config.putString(NAMESPACE1, KEY1, VALUE1, /*makeDefault=*/false); in testSetAndGetString_sameNamespace()
158 String result = Settings.Config.getStrings(NAMESPACE1, Arrays.asList(KEY1)).get(KEY1); in testSetAndGetString_sameNamespace()
169 Settings.Config.putString(NAMESPACE1, KEY1, VALUE1, /*makeDefault=*/false); in testSetAndGetString_differentNamespace()
170 String result = Settings.Config.getStrings(NAMESPACE2, Arrays.asList(KEY1)).get(KEY1); in testSetAndGetString_differentNamespace()
179 Settings.Config.putString(NAMESPACE1, KEY1, VALUE1, /*makeDefault=*/false); in testSetAndGetString_multipleNamespaces()
[all …]
/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);
DGainmapTests.java77 Bitmap base = Bitmap.createBitmap(10, 6, Bitmap.Config.ARGB_8888);
80 Bitmap gainmapImage = Bitmap.createBitmap(5, 3, Bitmap.Config.ARGB_8888);
101 sNoOpGainmap = new Gainmap(Bitmap.createBitmap(1, 1, Bitmap.Config.ALPHA_8));
133 if (result.getConfig() == Bitmap.Config.ARGB_8888) { in toleranceForResult()
185 return Bitmap.wrapHardwareBuffer(buffer, dest).copy(Bitmap.Config.ARGB_8888, false); in renderWithHardware()
200 Bitmap result = Bitmap.createBitmap(10, 6, Bitmap.Config.RGBA_F16, false, BT2020_HLG);
208 Bitmap result = Bitmap.createBitmap(10, 6, Bitmap.Config.RGBA_F16, false, BT2020_PQ);
216 Bitmap result = Bitmap.createBitmap(10, 6, Bitmap.Config.RGBA_F16, false, SRGB);
224 Bitmap result = Bitmap.createBitmap(10, 6, Bitmap.Config.RGBA_F16, false, BT2020_HLG);
232 Bitmap result = Bitmap.createBitmap(10, 6, Bitmap.Config.RGBA_F16, false, BT2020_HLG);
[all …]
/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.java37 import android.graphics.Bitmap.Config;
165 Bitmap dest = Bitmap.createBitmap(5, 5, Config.ARGB_8888); in testRecycledDest()
172 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoSourceData()
179 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectSurface()
185 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectWindow()
191 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testInvalidSourceRectSurface()
197 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testInvalidSourceRectWindow()
203 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoDecorView()
210 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoViewRoot()
220 Bitmap dest = Bitmap.createBitmap(5, 5, Config.ARGB_8888); in testRequestGetters()
[all …]
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DPoc20_06.java42 … TombstoneUtils.Config config = new TombstoneUtils.Config().setProcessPatterns("perfservice"); in testPocCVE_2020_3635()
83 … TombstoneUtils.Config config = new TombstoneUtils.Config().setProcessPatterns("perfservice"); in testPocCVE_2020_3676()
DCVE_2024_0023.java28 import com.android.sts.common.util.TombstoneUtils.Config.BacktraceFilterPattern;
48 TombstoneUtils.Config crashConfig = in testPocCVE_2024_0023()
49 new TombstoneUtils.Config() in testPocCVE_2024_0023()
DCVE_2023_21241.java28 import com.android.sts.common.util.TombstoneUtils.Config.BacktraceFilterPattern;
48 TombstoneUtils.Config crashConfig = in testPocCVE_2023_21241()
49 new TombstoneUtils.Config() in testPocCVE_2023_21241()
DCVE_2022_23852.java28 import com.android.sts.common.util.TombstoneUtils.Config.BacktraceFilterPattern;
47 TombstoneUtils.Config crashConfig = in testPocCVE_2022_23852()
48 new TombstoneUtils.Config() in testPocCVE_2022_23852()
DCVE_2024_0040.java28 import com.android.sts.common.util.TombstoneUtils.Config.BacktraceFilterPattern;
44 TombstoneUtils.Config crashConfig = in testPocCVE_2024_0040()
45 new TombstoneUtils.Config() in testPocCVE_2024_0040()
DCVE_2023_21127.java28 import com.android.sts.common.util.TombstoneUtils.Config.BacktraceFilterPattern;
48 TombstoneUtils.Config crashConfig = in testPocCVE_2023_21127()
49 new TombstoneUtils.Config() in testPocCVE_2023_21127()
DCVE_2023_21118.java28 import com.android.sts.common.util.TombstoneUtils.Config.BacktraceFilterPattern;
45 TombstoneUtils.Config crashConfig = in testPocCVE_2023_21118()
46 new TombstoneUtils.Config() in testPocCVE_2023_21118()
DCVE_2023_21261.java29 import com.android.sts.common.util.TombstoneUtils.Config.BacktraceFilterPattern;
52 TombstoneUtils.Config crashConfig = in testPocCVE_2023_21261()
53 new TombstoneUtils.Config() in testPocCVE_2023_21261()
DCVE_2023_40077.java28 import com.android.sts.common.util.TombstoneUtils.Config.BacktraceFilterPattern;
48 TombstoneUtils.Config crashConfig = in testPocCVE_2023_40077()
49 new TombstoneUtils.Config() in testPocCVE_2023_40077()
DCVE_2023_40114.java28 import com.android.sts.common.util.TombstoneUtils.Config.BacktraceFilterPattern;
62 TombstoneUtils.Config crashConfig = in testPocCVE_2023_40114()
63 new TombstoneUtils.Config() in testPocCVE_2023_40114()

12345678910>>...13