/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigTest.java | 197 TotalConfig config = new TotalConfig(); in makeClassicConfig() local 198 config.setProperty(Properties.LANGUAGE, "en"); in makeClassicConfig() 199 config.setProperty(Properties.COUNTRY, "US"); in makeClassicConfig() 200 config.setProperty(Properties.MCC, 310); in makeClassicConfig() 201 config.setProperty(Properties.MNC, 001); // unused in makeClassicConfig() 202 config.setProperty(Properties.TOUCHSCREEN, Configuration.TOUCHSCREEN_FINGER); in makeClassicConfig() 203 config.setProperty(Properties.KEYBOARD, Configuration.KEYBOARD_QWERTY); in makeClassicConfig() 204 config.setProperty(Properties.KEYBOARDHIDDEN, Configuration.KEYBOARDHIDDEN_YES); in makeClassicConfig() 205 config.setProperty(Properties.NAVIGATION, Configuration.NAVIGATION_TRACKBALL); in makeClassicConfig() 206 config.setProperty(Properties.ORIENTATION, Configuration.ORIENTATION_PORTRAIT); in makeClassicConfig() [all …]
|
D | ConfigurationTest.java | 180 Configuration config = new Configuration(); in testDiff() local 181 config.mcc = 1; in testDiff() 182 doConfigCompare(ActivityInfo.CONFIG_MCC, mConfigDefault, config); in testDiff() 183 config.mnc = 1; in testDiff() 185 | ActivityInfo.CONFIG_MNC, mConfigDefault, config); in testDiff() 186 config.locale = Locale.getDefault(); in testDiff() 187 config.setLayoutDirection(config.locale); in testDiff() 191 | ActivityInfo.CONFIG_LAYOUT_DIRECTION, mConfigDefault, config); in testDiff() 192 config.setLocales(LocaleList.forLanguageTags("fr,en")); in testDiff() 196 | ActivityInfo.CONFIG_LAYOUT_DIRECTION, mConfigDefault, config); in testDiff() [all …]
|
D | Resources_ThemeTest.java | 117 Configuration config = res.getConfiguration(); in testRebase() local 118 config.setLocale(Locale.ENGLISH); in testRebase() 119 res.updateConfiguration(config, null); in testRebase() 122 View.LAYOUT_DIRECTION_LTR, config.getLayoutDirection()); in testRebase() 131 config.setLocale(new Locale("iw")); in testRebase() 132 res.updateConfiguration(config, null); in testRebase() 135 View.LAYOUT_DIRECTION_RTL, config.getLayoutDirection()); in testRebase()
|
D | PluralResourcesTest.java | 43 final Configuration config = new Configuration(); in resourcesForLanguage() local 44 config.updateFrom(mResources.getConfiguration()); in resourcesForLanguage() 45 config.setLocale(new Locale(lang)); in resourcesForLanguage() 46 return new Resources(mResources.getAssets(), mResources.getDisplayMetrics(), config); in resourcesForLanguage()
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DRMTest.java | 56 Config config = ConfigFactory.getConfig(plugInName); in setUp() local 57 if (null != config) { in setUp() 58 mConfigs.add(config); in setUp() 63 private void register(Config config) throws Exception { in register() argument 65 config.getInfoOfRegistration(), in register() 66 config.getMimeType()); in register() 67 executeProcessDrmInfo(drmInfo, config); in register() 70 private void acquireRights(Config config) throws Exception { in acquireRights() argument 72 config.getInfoOfRightsAcquisition(), in acquireRights() 73 config.getMimeType()); in acquireRights() [all …]
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiEnterpriseConfigTest.java | 459 WifiEnterpriseConfig config = new WifiEnterpriseConfig(); in testSettersAndGetters() local 460 assertTrue(config.getEapMethod() == Eap.NONE); in testSettersAndGetters() 461 config.setEapMethod(Eap.PEAP); in testSettersAndGetters() 462 assertTrue(config.getEapMethod() == Eap.PEAP); in testSettersAndGetters() 463 config.setEapMethod(Eap.PWD); in testSettersAndGetters() 464 assertTrue(config.getEapMethod() == Eap.PWD); in testSettersAndGetters() 465 config.setEapMethod(Eap.TLS); in testSettersAndGetters() 466 assertTrue(config.getEapMethod() == Eap.TLS); in testSettersAndGetters() 467 config.setEapMethod(Eap.TTLS); in testSettersAndGetters() 468 assertTrue(config.getEapMethod() == Eap.TTLS); in testSettersAndGetters() [all …]
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | CarrierConfigManagerTest.java | 57 private void checkConfig(PersistableBundle config) { in checkConfig() argument 58 if (config == null) { in checkConfig() 62 assertNotNull("CarrierConfigManager should not return null config", config); in checkConfig() 66 config.getBoolean(CarrierConfigManager.KEY_ADDITIONAL_CALL_SETTING_BOOL), true); in checkConfig() 69 config.getString(CarrierConfigManager.KEY_VVM_DESTINATION_NUMBER_STRING), ""); in checkConfig() 71 config.getInt(CarrierConfigManager.KEY_VVM_PORT_NUMBER_INT), 0); in checkConfig() 73 config.getString(CarrierConfigManager.KEY_VVM_TYPE_STRING), ""); in checkConfig() 75 config.getBoolean(CarrierConfigManager.KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL), in checkConfig() 78 config.getBoolean(CarrierConfigManager.KEY_VVM_PREFETCH_BOOL), true); in checkConfig() 80 config.getString(CarrierConfigManager.KEY_CARRIER_VVM_PACKAGE_NAME_STRING), ""); in checkConfig() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | WifiConfigLockdownTest.java | 70 for (WifiConfiguration config : configs) { in tearDown() 71 if (areMatchingSsids(ORIGINAL_DEVICE_OWNER_SSID, config.SSID) || in tearDown() 72 areMatchingSsids(CHANGED_DEVICE_OWNER_SSID, config.SSID) || in tearDown() 73 areMatchingSsids(ORIGINAL_REGULAR_SSID, config.SSID) || in tearDown() 74 areMatchingSsids(CHANGED_REGULAR_SSID, config.SSID)) { in tearDown() 75 mWifiManager.removeNetwork(config.networkId); in tearDown() 84 for (WifiConfiguration config : configs) { in testDeviceOwnerCanUpdateConfig() 85 if (areMatchingSsids(ORIGINAL_DEVICE_OWNER_SSID, config.SSID)) { in testDeviceOwnerCanUpdateConfig() 86 assertFalse(-1 == mConfigCreator.updateNetwork(config, in testDeviceOwnerCanUpdateConfig() 90 if (areMatchingSsids(ORIGINAL_REGULAR_SSID, config.SSID)) { in testDeviceOwnerCanUpdateConfig() [all …]
|
/cts/suite/audio_quality/lib/src/audio/ |
D | AudioRecordingLocal.cpp | 45 struct pcm_config config; in doPrepare() local 47 memset(&config, 0, sizeof(config)); in doPrepare() 48 config.channels = 2; in doPrepare() 49 config.rate = samplingRate; in doPrepare() 50 config.period_size = 1024; in doPrepare() 51 config.period_count = 32; in doPrepare() 52 config.format = PCM_FORMAT_S16_LE; in doPrepare() 53 config.start_threshold = 0; in doPrepare() 54 config.stop_threshold = 0; in doPrepare() 55 config.silence_threshold = 0; in doPrepare() [all …]
|
D | AudioPlaybackLocal.cpp | 58 struct pcm_config config; in doPrepare() local 60 memset(&config, 0, sizeof(config)); in doPrepare() 61 config.channels = 2; in doPrepare() 62 config.rate = samplingRate; in doPrepare() 63 config.period_size = 1024; in doPrepare() 64 config.period_count = 64; in doPrepare() 65 config.format = PCM_FORMAT_S16_LE; in doPrepare() 66 config.start_threshold = 0; in doPrepare() 67 config.stop_threshold = 0; in doPrepare() 68 config.silence_threshold = 0; in doPrepare() [all …]
|
/cts/common/util/tests/src/com/android/compatibility/common/util/ |
D | DynamicConfigTest.java | 82 DynamicConfig config = new DynamicConfig(); in testCorrectConfig() local 84 config.initializeConfig(file); in testCorrectConfig() 86 assertEquals("Wrong Config", config.getValue("test-config-1"), "test config 1"); in testCorrectConfig() 87 assertEquals("Wrong Config", config.getValue("test-config-2"), "testconfig2"); in testCorrectConfig() 88 assertEquals("Wrong Config List", config.getValues("config-list").get(0), "config0"); in testCorrectConfig() 89 assertEquals("Wrong Config List", config.getValues("config-list").get(2), "config2"); in testCorrectConfig() 90 assertEquals("Wrong Config List", config.getValues("config-list-2").get(2), "C"); in testCorrectConfig() 94 DynamicConfig config = new DynamicConfig(); in testConfigWithWrongNodeName() local 98 config.initializeConfig(file); in testConfigWithWrongNodeName()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AutoTextTest.java | 34 Configuration config = getContext().getResources().getConfiguration(); in testGet() local 35 if (!config.locale.equals(Locale.getDefault())) { in testGet() 36 config.locale = Locale.getDefault(); in testGet() 37 getContext().getResources().updateConfiguration(config, null); in testGet() 80 Configuration config = getContext().getResources().getConfiguration(); in testGetSize() local 81 if (!config.locale.equals(Locale.getDefault())) { in testGetSize() 82 config.locale = Locale.getDefault(); in testGetSize() 83 getContext().getResources().updateConfiguration(config, null); in testGetSize()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | Bitmap_ConfigTest.java | 32 Config[] config = Config.values(); in testValues() local 34 assertTrue(config.length >= 4); 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()
|
/cts/tests/vr/src/android/vr/cts/ |
D | OpenGLESActivity.java | 230 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument 236 EGLContext context = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext() 256 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument 262 EGLContext context = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext() 281 EGLConfig config, Object nativeWindow) { in createWindowSurface() argument 287 result = egl.eglCreateWindowSurface(display, config, nativeWindow, attrib_list); in createWindowSurface() 329 EGLConfig config = chooseConfig(egl, display, configs); in chooseConfig() local 330 if (config == null) { in chooseConfig() 333 return config; in chooseConfig() 337 for (EGLConfig config : configs) { in chooseConfig() [all …]
|
/cts/hostsidetests/sustainedperf/shadertoy_android/src/ |
D | GLtestView.java | 186 for(EGLConfig config : configs) { in chooseConfig() 187 int d = findConfigAttrib(egl, display, config, in chooseConfig() 189 int s = findConfigAttrib(egl, display, config, in chooseConfig() 197 int r = findConfigAttrib(egl, display, config, in chooseConfig() 199 int g = findConfigAttrib(egl, display, config, in chooseConfig() 201 int b = findConfigAttrib(egl, display, config, in chooseConfig() 203 int a = findConfigAttrib(egl, display, config, in chooseConfig() 207 return config; in chooseConfig() 213 EGLConfig config, int attribute, int defaultValue) { in findConfigAttrib() argument 215 if (egl.eglGetConfigAttrib(display, config, attribute, mValue)) { in findConfigAttrib() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | WifiTest.java | 105 WifiConfiguration config = getNetworkForSsid(NETWORK_SSID); in testRemoveWifiNetworkIfExists() local 107 if (config != null && config.networkId != -1) { in testRemoveWifiNetworkIfExists() 109 intent.putExtra(EXTRA_NETID, config.networkId); in testRemoveWifiNetworkIfExists() 171 for (WifiConfiguration config : configs) { in getNetworkForSsid() 172 if (ssid.equals(config.SSID)) { in getNetworkForSsid() 173 return config; in getNetworkForSsid()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioRecordingConfigurationTest.java | 240 final AudioRecordingConfiguration config = confIt.next(); in verifyAudioConfig() local 241 if ((config.getClientAudioSource() == source) in verifyAudioConfig() 242 && (config.getClientAudioSessionId() == session) in verifyAudioConfig() 244 && (config.getClientFormat().getEncoding() == format.getEncoding()) in verifyAudioConfig() 245 && (config.getClientFormat().getSampleRate() == format.getSampleRate()) in verifyAudioConfig() 246 && (config.getClientFormat().getChannelMask() == format.getChannelMask()) in verifyAudioConfig() 247 && (config.getClientFormat().getChannelIndexMask() == in verifyAudioConfig() 250 && (config.getFormat().getEncoding() != AudioFormat.ENCODING_INVALID) in verifyAudioConfig() 251 && (config.getFormat().getSampleRate() > 0) in verifyAudioConfig() 253 && ((config.getFormat().getChannelMask() != AudioFormat.CHANNEL_INVALID) in verifyAudioConfig() [all …]
|
/cts/hostsidetests/services/activitymanager/app/src/android/server/app/ |
D | AbstractLifecycleLogActivity.java | 49 protected void dumpDisplaySize(Configuration config) { in dumpDisplaySize() argument 58 " size=" + buildCoordString(config.screenWidthDp, config.screenHeightDp) + in dumpDisplaySize() 61 " smallestScreenWidth=" + config.smallestScreenWidthDp; in dumpDisplaySize()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/assets/ |
D | generate-client-cert-chain.sh | 23 -config ../ca.conf \ 41 -config ca.conf \ 48 -config ca.conf \ 59 -config ca.conf \ 67 -config ca.conf \
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | ExtendedCameraCharacteristicsTest.java | 145 StreamConfigurationMap config = in testAvailableStreamConfigs() local 148 mIds[counter]), config); in testAvailableStreamConfigs() 149 int[] outputFormats = config.getOutputFormats(); in testAvailableStreamConfigs() 168 Size[] yuvSizes = config.getOutputSizes(ImageFormat.YUV_420_888); in testAvailableStreamConfigs() 169 Size[] jpegSizes = config.getOutputSizes(ImageFormat.JPEG); in testAvailableStreamConfigs() 170 Size[] privateSizes = config.getOutputSizes(ImageFormat.PRIVATE); in testAvailableStreamConfigs() 396 StreamConfigurationMap config = in testKeys() local 399 mIds[counter]), config); in testKeys() 400 if (config.isOutputSupportedFor(ImageFormat.RAW_SENSOR) || in testKeys() 401 config.isOutputSupportedFor(ImageFormat.RAW10) || in testKeys() [all …]
|
/cts/tests/tests/app/src/android/app/cts/ |
D | ApplyOverrideConfigurationTest.java | 49 final Configuration config = getActivity().getResources().getConfiguration(); in testOverriddenConfigurationIsPassedIntoCallback() local 50 final int originalOrientation = config.orientation; in testOverriddenConfigurationIsPassedIntoCallback() 52 config.smallestScreenWidthDp); in testOverriddenConfigurationIsPassedIntoCallback()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | TestPackageRepo.java | 20 import com.android.tradefed.config.ConfigurationException; 21 import com.android.tradefed.config.ConfigurationFactory; 22 import com.android.tradefed.config.IConfiguration; 108 IConfiguration config = null; in parseModuleTestConfigs() local 112 config = ConfigurationFactory.getInstance().createConfigurationFromArgs( in parseModuleTestConfigs() 128 if (config != null) { in parseModuleTestConfigs() 129 def.setPackagePreparers(config.getTargetPreparers()); in parseModuleTestConfigs()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | GLSurfaceViewCustom.java | 712 void onSurfaceCreated(GL10 gl, EGLConfig config); in onSurfaceCreated() argument 777 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument 781 return egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext() 807 EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, in createWindowSurface() argument 815 EGLConfig config, Object nativeWindow) { in createWindowSurface() argument 818 result = egl.eglCreateWindowSurface(display, config, nativeWindow, null); in createWindowSurface() 882 EGLConfig config = chooseConfig(egl, display, configs); in chooseConfig() local 883 if (config == null) { in chooseConfig() 886 return config; in chooseConfig() 938 for (EGLConfig config : configs) { in chooseConfig() [all …]
|
/cts/hostsidetests/security/securityPatch/CVE-2017-0403/ |
D | poc.c | 42 __u64 config; member 143 attr.config = 1; in thr() 156 attr.config = 5; in thr()
|
/cts/tests/tests/mediastress/preconditions/app/src/android/mediastress/cts/preconditions/app/ |
D | MediaPreparerAppTest.java | 85 DynamicConfigDeviceSide config = new DynamicConfigDeviceSide(MODULE_NAME); in testGetResolutions() local 86 for (String key : config.keySet()) { in testGetResolutions() 89 for (MediaFormat format : stringsToFormats(config.getValues(key))) { in testGetResolutions() 102 for (MediaFormat format : stringsToFormats(config.getValues(key))) { in testGetResolutions()
|