/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 | 151 Configuration config = new Configuration(); in testDiff() local 152 config.mcc = 1; in testDiff() 153 doConfigCompare(ActivityInfo.CONFIG_MCC, mConfigDefault, config); in testDiff() 154 config.mnc = 1; in testDiff() 156 | ActivityInfo.CONFIG_MNC, mConfigDefault, config); in testDiff() 157 config.locale = Locale.getDefault(); in testDiff() 158 config.setLayoutDirection(config.locale); in testDiff() 162 | ActivityInfo.CONFIG_LAYOUT_DIRECTION, mConfigDefault, config); in testDiff() 163 config.screenLayout = 1; in testDiff() 168 | ActivityInfo.CONFIG_SCREEN_LAYOUT, mConfigDefault, config); in testDiff() [all …]
|
D | Resources_ThemeTest.java | 109 Configuration config = res.getConfiguration(); in testRebase() local 110 config.setLocale(Locale.ENGLISH); in testRebase() 112 View.LAYOUT_DIRECTION_LTR, config.getLayoutDirection()); in testRebase() 121 config.setLocale(new Locale("iw")); in testRebase() 122 res.updateConfiguration(config, null); in testRebase() 125 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.locale = new Locale(lang); in resourcesForLanguage() 46 return new Resources(mResources.getAssets(), mResources.getDisplayMetrics(), config); in resourcesForLanguage()
|
D | ResourcesTest.java | 116 private Resources getResources(final Configuration config, final int mcc, final int mnc, in getResources() argument 125 config.mcc = mcc; in getResources() 126 config.mnc = mnc; in getResources() 127 config.touchscreen = touchscreen; in getResources() 128 config.keyboard = keyboard; in getResources() 129 config.keyboardHidden = keysHidden; in getResources() 130 config.navigation = navigation; in getResources() 133 return new Resources(assmgr, metrics, config); in getResources() 457 final Configuration config = new Configuration(); in resourcesForLanguage() local 458 config.updateFrom(mResources.getConfiguration()); in resourcesForLanguage() [all …]
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiEnterpriseConfigTest.java | 65 WifiEnterpriseConfig config = new WifiEnterpriseConfig(); in testSettersAndGetters() local 66 assertTrue(config.getEapMethod() == Eap.NONE); in testSettersAndGetters() 67 config.setEapMethod(Eap.PEAP); in testSettersAndGetters() 68 assertTrue(config.getEapMethod() == Eap.PEAP); in testSettersAndGetters() 69 config.setEapMethod(Eap.PWD); in testSettersAndGetters() 70 assertTrue(config.getEapMethod() == Eap.PWD); in testSettersAndGetters() 71 config.setEapMethod(Eap.TLS); in testSettersAndGetters() 72 assertTrue(config.getEapMethod() == Eap.TLS); in testSettersAndGetters() 73 config.setEapMethod(Eap.TTLS); in testSettersAndGetters() 74 assertTrue(config.getEapMethod() == Eap.TTLS); in testSettersAndGetters() [all …]
|
/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/suite/audio_quality/lib/src/audio/ |
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 …]
|
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 …]
|
/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/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() 71 PersistableBundle config = mConfigManager.getConfig(); in testGetConfig() local 72 checkConfig(config); in testGetConfig() 76 PersistableBundle config = in testGetConfigForSubId() local 78 checkConfig(config); in testGetConfigForSubId()
|
/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 assertEquals(4, config.length); 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/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | WifiTest.java | 87 WifiConfiguration config = getNetworkForSsid(NETWORK_SSID); in testRemoveWifiNetworkIfExists() local 89 if (config != null && config.networkId != -1) { in testRemoveWifiNetworkIfExists() 91 intent.putExtra(EXTRA_NETID, config.networkId); in testRemoveWifiNetworkIfExists() 135 for (WifiConfiguration config : mWifiManager.getConfiguredNetworks()) { in getNetworkForSsid() 136 if (ssid.equals(config.SSID)) { in getNetworkForSsid() 137 return config; in getNetworkForSsid()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | ExtendedCameraCharacteristicsTest.java | 143 StreamConfigurationMap config = in testAvailableStreamConfigs() local 146 mIds[counter]), config); in testAvailableStreamConfigs() 147 int[] outputFormats = config.getOutputFormats(); in testAvailableStreamConfigs() 166 Size[] yuvSizes = config.getOutputSizes(ImageFormat.YUV_420_888); in testAvailableStreamConfigs() 167 Size[] jpegSizes = config.getOutputSizes(ImageFormat.JPEG); in testAvailableStreamConfigs() 168 Size[] privateSizes = config.getOutputSizes(ImageFormat.PRIVATE); in testAvailableStreamConfigs() 499 StreamConfigurationMap config = in testStaticBurstCharacteristics() local 502 mIds[counter]), config); in testStaticBurstCharacteristics() 509 config.getOutputSizes(ImageFormat.YUV_420_888)); in testStaticBurstCharacteristics() 512 Size[] slowYuvSizes = config.getHighResolutionOutputSizes(ImageFormat.YUV_420_888); in testStaticBurstCharacteristics() [all …]
|
D | RobustnessTest.java | 234 for (int[] config : LEGACY_COMBINATIONS) { in testMandatoryOutputCombinations() 235 testOutputCombination(id, config, maxSizes); in testMandatoryOutputCombinations() 246 for (int[] config : LIMITED_COMBINATIONS) { in testMandatoryOutputCombinations() 247 testOutputCombination(id, config, maxSizes); in testMandatoryOutputCombinations() 255 for (int[] config : BURST_COMBINATIONS) { in testMandatoryOutputCombinations() 256 testOutputCombination(id, config, maxSizes); in testMandatoryOutputCombinations() 261 for (int[] config : FULL_COMBINATIONS) { in testMandatoryOutputCombinations() 262 testOutputCombination(id, config, maxSizes); in testMandatoryOutputCombinations() 268 for (int[] config : RAW_COMBINATIONS) { in testMandatoryOutputCombinations() 269 testOutputCombination(id, config, maxSizes); in testMandatoryOutputCombinations() [all …]
|
/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/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
D | ConnectReqTestCase.java | 125 WifiP2pConfig config = new WifiP2pConfig(); in connectTest() local 126 config.deviceAddress = dev.deviceAddress; in connectTest() 127 config.wps.setup = wpsConfig; in connectTest() 128 mP2pMgr.connect(mChannel, config, actionListener); in connectTest()
|
/cts/tests/tests/theme/src/android/theme/cts/ |
D | DeviceDefaultTest.java | 148 Configuration config = context.getResources().getConfiguration(); in isLargeScreen() local 149 int size = config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK; in isLargeScreen() 150 return config.isLayoutSizeAtLeast(Configuration.SCREENLAYOUT_SIZE_LARGE); in isLargeScreen()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | FramebufferTest.java | 205 EGLConfig config = getConfig(flags, 3); in EglCore() local 206 if (config != null) { in EglCore() 211 EGLContext context = EGL14.eglCreateContext(mEGLDisplay, config, sharedContext, in EglCore() 216 mEGLConfig = config; in EglCore() 224 EGLConfig config = getConfig(flags, 2); in EglCore() local 225 if (config == null) { in EglCore() 232 EGLContext context = EGL14.eglCreateContext(mEGLDisplay, config, sharedContext, in EglCore() 235 mEGLConfig = config; in EglCore()
|
/cts/build/ |
D | module_test_config.mk | 17 $(CTS_TESTCASES_OUT)/$(LOCAL_MODULE).config)
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | WifiConfigCreator.java | 115 for (WifiConfiguration config : configs) { in updateNetwork() 116 if (config.networkId == netId) { in updateNetwork() 117 wifiConf = config; in updateNetwork()
|
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/command/ |
D | CompatibilityConsole.java | 20 import com.android.tradefed.config.ConfigurationException;
|
/cts/tests/tests/graphics/src/android/opengl/cts/ |
D | EglConfigGLSurfaceView.java | 82 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument 137 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument 244 EGLConfig config) { in printConfig() argument 319 if (egl.eglGetConfigAttrib(display, config, attribute, value)) { in printConfig()
|