/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigTest.java | 220 TotalConfig config = new TotalConfig(); in makeClassicConfig() local 221 config.setProperty(Properties.LANGUAGE, "en"); in makeClassicConfig() 222 config.setProperty(Properties.COUNTRY, "US"); in makeClassicConfig() 223 config.setProperty(Properties.MCC, 310); in makeClassicConfig() 224 config.setProperty(Properties.MNC, 001); // unused in makeClassicConfig() 225 config.setProperty(Properties.TOUCHSCREEN, Configuration.TOUCHSCREEN_FINGER); in makeClassicConfig() 226 config.setProperty(Properties.KEYBOARD, Configuration.KEYBOARD_QWERTY); in makeClassicConfig() 227 config.setProperty(Properties.KEYBOARDHIDDEN, Configuration.KEYBOARDHIDDEN_YES); in makeClassicConfig() 228 config.setProperty(Properties.NAVIGATION, Configuration.NAVIGATION_TRACKBALL); in makeClassicConfig() 229 config.setProperty(Properties.ORIENTATION, Configuration.ORIENTATION_PORTRAIT); in makeClassicConfig() [all …]
|
D | ConfigurationTest.java | 188 Configuration config = new Configuration(); in testDiff() local 189 config.mcc = 1; in testDiff() 190 doConfigCompare(ActivityInfo.CONFIG_MCC, mConfigDefault, config); in testDiff() 191 config.mnc = 1; in testDiff() 193 | ActivityInfo.CONFIG_MNC, mConfigDefault, config); in testDiff() 194 config.locale = Locale.getDefault(); in testDiff() 195 config.setLayoutDirection(config.locale); in testDiff() 199 | ActivityInfo.CONFIG_LAYOUT_DIRECTION, mConfigDefault, config); in testDiff() 200 config.setLocales(LocaleList.forLanguageTags("fr,en")); in testDiff() 204 | ActivityInfo.CONFIG_LAYOUT_DIRECTION, mConfigDefault, config); in testDiff() [all …]
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiEnterpriseConfigTest.java | 708 WifiEnterpriseConfig config = new WifiEnterpriseConfig(); in testSettersAndGetters() local 709 assertTrue(config.getEapMethod() == Eap.NONE); in testSettersAndGetters() 710 config.setEapMethod(Eap.PEAP); in testSettersAndGetters() 711 assertTrue(config.getEapMethod() == Eap.PEAP); in testSettersAndGetters() 712 config.setEapMethod(Eap.PWD); in testSettersAndGetters() 713 assertTrue(config.getEapMethod() == Eap.PWD); in testSettersAndGetters() 714 config.setEapMethod(Eap.TLS); in testSettersAndGetters() 715 assertTrue(config.getEapMethod() == Eap.TLS); in testSettersAndGetters() 716 config.setEapMethod(Eap.TTLS); in testSettersAndGetters() 717 assertTrue(config.getEapMethod() == Eap.TTLS); in testSettersAndGetters() [all …]
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DRMTest.java | 77 Config config = ConfigFactory.getConfig(plugInName); in setUp() local 78 if (null != config) { in setUp() 79 mConfigs.add(config); in setUp() 84 private void register(Config config) throws Exception { in register() argument 86 config.getInfoOfRegistration(), in register() 87 config.getMimeType()); in register() 88 executeProcessDrmInfo(drmInfo, config); in register() 91 private void acquireRights(Config config) throws Exception { in acquireRights() argument 93 config.getInfoOfRightsAcquisition(), in acquireRights() 94 config.getMimeType()); in acquireRights() [all …]
|
/cts/tests/tests/keystore/src/android/server/am/ |
D | ProtoExtractors.java | 35 final Configuration config = new Configuration(); in extract() local 37 return config; in extract() 39 config.windowConfiguration.setTo(extract(proto.windowConfiguration)); in extract() 40 config.densityDpi = proto.densityDpi; in extract() 41 config.orientation = proto.orientation; in extract() 42 config.screenHeightDp = proto.screenHeightDp; in extract() 43 config.screenWidthDp = proto.screenWidthDp; in extract() 44 config.smallestScreenWidthDp = proto.smallestScreenWidthDp; in extract() 45 config.screenLayout = proto.screenLayout; in extract() 46 config.uiMode = proto.uiMode; in extract() [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ProtoExtractors.java | 35 final Configuration config = new Configuration(); in extract() local 37 return config; in extract() 39 config.windowConfiguration.setTo(extract(proto.windowConfiguration)); in extract() 40 config.densityDpi = proto.densityDpi; in extract() 41 config.orientation = proto.orientation; in extract() 42 config.screenHeightDp = proto.screenHeightDp; in extract() 43 config.screenWidthDp = proto.screenWidthDp; in extract() 44 config.smallestScreenWidthDp = proto.smallestScreenWidthDp; in extract() 45 config.screenLayout = proto.screenLayout; in extract() 46 config.uiMode = proto.uiMode; in extract() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | CarrierConfigManagerTest.java | 116 private void checkConfig(PersistableBundle config) { in checkConfig() argument 117 if (config == null) { in checkConfig() 121 assertNotNull("CarrierConfigManager should not return null config", config); in checkConfig() 125 config.getBoolean(CarrierConfigManager.KEY_ADDITIONAL_CALL_SETTING_BOOL), true); in checkConfig() 128 config.getString(CarrierConfigManager.KEY_VVM_DESTINATION_NUMBER_STRING), ""); in checkConfig() 130 config.getInt(CarrierConfigManager.KEY_VVM_PORT_NUMBER_INT), 0); in checkConfig() 132 config.getString(CarrierConfigManager.KEY_VVM_TYPE_STRING), ""); in checkConfig() 134 config.getBoolean(CarrierConfigManager.KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL), in checkConfig() 137 config.getBoolean(CarrierConfigManager.KEY_VVM_PREFETCH_BOOL), true); in checkConfig() 139 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/tests/tests/wifi/src/android/net/wifi/p2p/cts/ |
D | WifiP2pConfigTest.java | 38 WifiP2pConfig config = builder.build(); in testWifiP2pConfigBuilderForPersist() local 40 assertTrue(config.deviceAddress.equals(TEST_DEVICE_ADDRESS)); in testWifiP2pConfigBuilderForPersist() 41 assertTrue(config.networkName.equals(TEST_NETWORK_NAME)); in testWifiP2pConfigBuilderForPersist() 42 assertTrue(config.passphrase.equals(TEST_PASSPHRASE)); in testWifiP2pConfigBuilderForPersist() 43 assertEquals(config.groupOwnerBand, TEST_OWNER_BAND); in testWifiP2pConfigBuilderForPersist() 44 assertEquals(config.netId, WifiP2pGroup.PERSISTENT_NET_ID); in testWifiP2pConfigBuilderForPersist() 54 WifiP2pConfig config = builder.build(); in testWifiP2pConfigBuilderForNonPersist() local 56 assertTrue(config.deviceAddress.equals(TEST_DEVICE_ADDRESS)); in testWifiP2pConfigBuilderForNonPersist() 57 assertTrue(config.networkName.equals(TEST_NETWORK_NAME)); in testWifiP2pConfigBuilderForNonPersist() 58 assertTrue(config.passphrase.equals(TEST_PASSPHRASE)); in testWifiP2pConfigBuilderForNonPersist() [all …]
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | Egl10Utils.java | 46 EGLConfig config = chooseConfig(egl, display, configs, configSpec); in chooseConfig() local 47 if (config == null) { in chooseConfig() 50 return config; in chooseConfig() 83 for (EGLConfig config : configs) { in chooseConfig() 84 int d = findConfigAttrib(egl, display, config, EGL10.EGL_DEPTH_SIZE); in chooseConfig() 85 int s = findConfigAttrib(egl, display, config, EGL10.EGL_STENCIL_SIZE); in chooseConfig() 87 int r = findConfigAttrib(egl, display, config, EGL10.EGL_RED_SIZE); in chooseConfig() 88 int g = findConfigAttrib(egl, display, config, EGL10.EGL_GREEN_SIZE); in chooseConfig() 89 int b = findConfigAttrib(egl, display, config, EGL10.EGL_BLUE_SIZE); in chooseConfig() 90 int a = findConfigAttrib(egl, display, config, EGL10.EGL_ALPHA_SIZE); in chooseConfig() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | DynamicsProcessingTest.java | 527 DynamicsProcessing.Config config = getBuilderWithValues().build(); in test2_0ConfigBasic() local 530 config.getVariant()); in test2_0ConfigBasic() 532 config.isPreEqInUse()); in test2_0ConfigBasic() 534 config.getPreEqBandCount()); in test2_0ConfigBasic() 536 config.isMbcInUse()); in test2_0ConfigBasic() 538 config.getMbcBandCount()); in test2_0ConfigBasic() 540 config.isPostEqInUse()); in test2_0ConfigBasic() 542 config.getPostEqBandCount()); in test2_0ConfigBasic() 544 config.isLimiterInUse()); in test2_0ConfigBasic() 546 config.getPreferredFrameDuration()); in test2_0ConfigBasic() [all …]
|
D | AudioRecordingConfigurationTest.java | 302 final AudioRecordingConfiguration config = confIt.next(); in verifyAudioConfig() local 303 final AudioDeviceInfo configDevice = config.getAudioDevice(); in verifyAudioConfig() 305 if ((config.getClientAudioSource() == source) in verifyAudioConfig() 306 && (config.getClientAudioSessionId() == session) in verifyAudioConfig() 308 && (config.getClientFormat().getEncoding() == format.getEncoding()) in verifyAudioConfig() 309 && (config.getClientFormat().getSampleRate() == format.getSampleRate()) in verifyAudioConfig() 310 && (config.getClientFormat().getChannelMask() == format.getChannelMask()) in verifyAudioConfig() 311 && (config.getClientFormat().getChannelIndexMask() == in verifyAudioConfig() 314 && (config.getFormat().getEncoding() != AudioFormat.ENCODING_INVALID) in verifyAudioConfig() 315 && (config.getFormat().getSampleRate() > 0) in verifyAudioConfig() [all …]
|
D | HeifWriterTest.java | 430 private void doTest(final TestConfig config) throws Exception { in doTest() argument 431 final int width = config.mWidth; in doTest() 432 final int height = config.mHeight; in doTest() 433 final int actualNumImages = config.mActualNumImages; in doTest() 440 if (DEBUG) Log.d(TAG, "started: " + config); in doTest() 443 config.mOutputPath, width, height, config.mInputMode) in doTest() 444 .setRotation(config.mRotation) in doTest() 445 .setGridEnabled(config.mUseGrid) in doTest() 446 .setMaxImages(config.mMaxNumImages) in doTest() 447 .setQuality(config.mQuality) in doTest() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | ActivityManagerGetConfigTests.java | 113 EGLConfig config, in addExtensionsForConfig() argument 119 egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, contextAttribs); in addExtensionsForConfig() 126 EGLSurface surface = egl.eglCreatePbufferSurface(display, config, surfaceSize); in addExtensionsForConfig() 227 private void checkResourceConfig(Configuration config, DisplayMetrics metrics, in checkResourceConfig() argument 248 config.fontScale, resConfig.configuration.fontScale, Float.MIN_VALUE*5); in checkResourceConfig() 250 config.mcc, resConfig.configuration.mcc); in checkResourceConfig() 252 config.mnc, resConfig.configuration.mnc); in checkResourceConfig() 253 LocaleList llist = config.getLocales(); in checkResourceConfig() 261 config.screenLayout, resConfig.configuration.screenLayout); in checkResourceConfig() 263 config.colorMode, resConfig.configuration.colorMode); in checkResourceConfig() [all …]
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ExternalStorageHostTest.java | 485 private void doMediaSandboxed(Config config, boolean sandboxed) throws Exception { in doMediaSandboxed() argument 486 installPackage(config.apk); in doMediaSandboxed() 489 updatePermissions(config.pkg, user, new String[] { in doMediaSandboxed() 503 runDeviceTests(config.pkg, config.clazz, "testSandboxed", user); in doMediaSandboxed() 505 runDeviceTests(config.pkg, config.clazz, "testNotSandboxed", user); in doMediaSandboxed() 525 private void doMediaNone(Config config) throws Exception { in doMediaNone() argument 526 installPackage(config.apk); in doMediaNone() 528 updatePermissions(config.pkg, user, new String[] { in doMediaNone() 533 runDeviceTests(config.pkg, config.clazz, "testMediaNone", user); in doMediaNone() 550 private void doMediaRead(Config config) throws Exception { in doMediaRead() argument [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | Bitmap_ConfigTest.java | 45 Config[] config = Config.values(); in testValues() local 47 assertTrue(config.length >= 6); 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() 51 assertEquals(Config.ARGB_8888, config[3]); in testValues() 52 assertEquals(Config.RGBA_F16, config[4]); in testValues() 53 assertEquals(Config.HARDWARE, config[5]); in testValues()
|
/cts/tests/vr/src/android/vr/cts/ |
D | OpenGLESActivity.java | 234 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument 240 EGLContext context = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext() 260 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument 266 EGLContext context = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext() 285 EGLConfig config, Object nativeWindow) { in createWindowSurface() argument 291 result = egl.eglCreateWindowSurface(display, config, nativeWindow, attrib_list); in createWindowSurface() 333 EGLConfig config = chooseConfig(egl, display, configs); in chooseConfig() local 334 if (config == null) { in chooseConfig() 337 return config; in chooseConfig() 341 for (EGLConfig config : configs) { in chooseConfig() [all …]
|
/cts/tests/jdwp/runner/device-side/src/com/android/compatibility/dalvik/ |
D | DalvikTestRunner.java | 62 Config config; in main() local 64 config = createConfig(args); in main() 73 run(config); in main() 78 Config config = new Config(); in createConfig() local 85 config.includes.add(include); in createConfig() 89 config.excludes.add(exclude); in createConfig() 92 loadFilters(arg.substring(INCLUDE_FILE.length()), config.includes); in createConfig() 94 loadFilters(arg.substring(EXCLUDE_FILE.length()), config.excludes); in createConfig() 96 config.collectTestsOnly = true; in createConfig() 102 config.suite = new FilterableTestSuite(classes, config.includes, config.excludes); in createConfig() [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/statsd/src/android/cts/statsd/atom/ |
D | HostAtomTests.java | 341 StatsdConfig.Builder config = getPulledConfig(); in testRemainingBatteryCapacity() 342 addGaugeAtomWithDimensions(config, Atom.REMAINING_BATTERY_CAPACITY_FIELD_NUMBER, null); in testRemainingBatteryCapacity() 344 uploadConfig(config); in testRemainingBatteryCapacity() 367 StatsdConfig.Builder config = getPulledConfig(); in testFullBatteryCapacity() 368 addGaugeAtomWithDimensions(config, Atom.FULL_BATTERY_CAPACITY_FIELD_NUMBER, null); in testFullBatteryCapacity() 370 uploadConfig(config); in testFullBatteryCapacity() 391 StatsdConfig.Builder config = getPulledConfig(); in testBatteryVoltage() 392 addGaugeAtomWithDimensions(config, Atom.BATTERY_VOLTAGE_FIELD_NUMBER, null); in testBatteryVoltage() 394 uploadConfig(config); in testBatteryVoltage() 416 StatsdConfig.Builder config = getPulledConfig(); in testBatteryLevel() [all …]
|
/cts/tests/tests/media/libmediandkjni/ |
D | native_media_utils.cpp | 143 Status Validator::checkOverallBitrate(const Stats &stats, const RunConfig& config) { in checkOverallBitrate() argument 147 if (config.dynamicParamsOfKind(TBD_AMEDIACODEC_PARAMETER_KEY_VIDEO_BITRATE, tmp) > 0) { in checkOverallBitrate() 153 if (!AMediaFormat_getInt32(config.format(), AMEDIAFORMAT_KEY_BIT_RATE, &bitrate)) { in checkOverallBitrate() 160 int32_t avgBitrate = stats.getBitrateAverage(0, config.frameCount() - 1); in checkOverallBitrate() 181 Status Validator::checkIntraPeriod(const Stats& stats, const RunConfig& config) { in checkIntraPeriod() argument 183 if (!AMediaFormat_getFloat(config.format(), AMEDIAFORMAT_KEY_FRAME_RATE, &framerate)) { in checkIntraPeriod() 186 AMediaFormat_toString(config.format())); in checkIntraPeriod() 191 if (!AMediaFormat_getInt32(config.format(), AMEDIAFORMAT_KEY_I_FRAME_INTERVAL, &intraPeriod)) { in checkIntraPeriod() 239 Status Validator::checkDynamicKeyFrames(const Stats& stats, const RunConfig& config) { in checkDynamicKeyFrames() argument 242 …if (config.dynamicParamsOfKind(TBD_AMEDIACODEC_PARAMETER_KEY_REQUEST_SYNC_FRAME, keyRequests) <= 0… in checkDynamicKeyFrames() [all …]
|
D | native_media_encoder_jni.cpp | 56 Status prepare(std::unique_ptr<RunConfig> config, std::shared_ptr<ANativeWindow> anw = nullptr); 115 AMediaFormat *config = mRunConfig->format(); in prepare() local 116 ALOGI("Encoder format: %s", AMediaFormat_toString(config)); in prepare() 119 AMediaFormat_getString(config, AMEDIAFORMAT_KEY_MIME, &mime); in prepare() 125 mEnc.get(), config, NULL, NULL /* crypto */, AMEDIACODEC_CONFIGURE_FLAG_ENCODE); in prepare() 266 std::shared_ptr<AMediaFormat> config(AMediaFormat_new(), deleter_AMediaFormat); in createMediaFormat() local 268 AMediaFormat_setString(config.get(), AMEDIAFORMAT_KEY_MIME, mime.c_str()); in createMediaFormat() 269 AMediaFormat_setInt32(config.get(), AMEDIAFORMAT_KEY_WIDTH, w); in createMediaFormat() 270 AMediaFormat_setInt32(config.get(), AMEDIAFORMAT_KEY_HEIGHT, h); in createMediaFormat() 271 AMediaFormat_setFloat(config.get(), AMEDIAFORMAT_KEY_FRAME_RATE, framerate); in createMediaFormat() [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() 108 mWifiConfigCreator.removeNetwork(config.networkId); in testRemoveWifiNetworkIfExists() 178 for (WifiConfiguration config : configs) { in getNetworkForSsid() 179 if (ssid.equals(config.SSID)) { in getNetworkForSsid() 180 return config; in getNetworkForSsid()
|