Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 868) sorted by relevance

12345678910>>...35

/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiConfigurationTest.java88 WifiConfiguration config = new WifiConfiguration(); in testWifiConfigurationParcel() local
89 config.setPasspointManagementObjectTree(cookie); in testWifiConfigurationParcel()
90 config.trusted = false; in testWifiConfigurationParcel()
91 config.oemPaid = true; in testWifiConfigurationParcel()
92 config.oemPrivate = true; in testWifiConfigurationParcel()
93 config.carrierMerged = true; in testWifiConfigurationParcel()
94 config.updateIdentifier = "1234"; in testWifiConfigurationParcel()
95 config.fromWifiNetworkSpecifier = true; in testWifiConfigurationParcel()
96 config.fromWifiNetworkSuggestion = true; in testWifiConfigurationParcel()
97 config.setRandomizedMacAddress(MacAddressUtils.createRandomUnicastAddress()); in testWifiConfigurationParcel()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java113 default void onNetworkAdded(@NonNull WifiConfiguration config) { }; in onNetworkAdded() argument
117 default void onNetworkEnabled(@NonNull WifiConfiguration config) { }; in onNetworkEnabled() argument
121 default void onNetworkPermanentlyDisabled(@NonNull WifiConfiguration config, in onNetworkPermanentlyDisabled() argument
126 default void onNetworkRemoved(@NonNull WifiConfiguration config) { }; in onNetworkRemoved() argument
130 default void onNetworkTemporarilyDisabled(@NonNull WifiConfiguration config, in onNetworkTemporarilyDisabled() argument
428 public boolean shouldUseEnhancedRandomization(WifiConfiguration config) { in shouldUseEnhancedRandomization() argument
430 || config.macRandomizationSetting == WifiConfiguration.RANDOMIZATION_NONE) { in shouldUseEnhancedRandomization()
441 if (config.macRandomizationSetting == WifiConfiguration.RANDOMIZATION_NON_PERSISTENT) { in shouldUseEnhancedRandomization()
444 if (config.macRandomizationSetting == WifiConfiguration.RANDOMIZATION_PERSISTENT) { in shouldUseEnhancedRandomization()
449 if (config.getIpConfiguration().getIpAssignment() == IpConfiguration.IpAssignment.STATIC) { in shouldUseEnhancedRandomization()
[all …]
DWifiConfigurationUtil.java105 public static boolean isConfigForPskNetwork(WifiConfiguration config) { in isConfigForPskNetwork() argument
106 return config.isSecurityType(WifiConfiguration.SECURITY_TYPE_PSK); in isConfigForPskNetwork()
112 public static boolean isConfigForWapiPskNetwork(WifiConfiguration config) { in isConfigForWapiPskNetwork() argument
113 return config.isSecurityType(WifiConfiguration.SECURITY_TYPE_WAPI_PSK); in isConfigForWapiPskNetwork()
119 public static boolean isConfigForWapiCertNetwork(WifiConfiguration config) { in isConfigForWapiCertNetwork() argument
120 return config.isSecurityType(WifiConfiguration.SECURITY_TYPE_WAPI_CERT); in isConfigForWapiCertNetwork()
126 public static boolean isConfigForSaeNetwork(WifiConfiguration config) { in isConfigForSaeNetwork() argument
127 return config.isSecurityType(WifiConfiguration.SECURITY_TYPE_SAE); in isConfigForSaeNetwork()
133 public static boolean isConfigForOweNetwork(WifiConfiguration config) { in isConfigForOweNetwork() argument
134 return config.isSecurityType(WifiConfiguration.SECURITY_TYPE_OWE); in isConfigForOweNetwork()
[all …]
DNetworkSuggestionNominator.java122 WifiConfiguration config = ewns.createInternalWifiConfiguration(mWifiCarrierInfoManager); in addOrUpdateSuggestionToWifiConfigManger() local
124 mWifiConfigManager.getConfiguredNetwork(config.getProfileKey()); in addOrUpdateSuggestionToWifiConfigManger()
126 config, ewns.perAppInfo.uid, ewns.perAppInfo.packageName); in addOrUpdateSuggestionToWifiConfigManger()
131 mLocalLog.log(config.getProfileKey() in addOrUpdateSuggestionToWifiConfigManger()
133 mWifiConfigManager.allowAutojoin(result.getNetworkId(), config.allowAutojoin); in addOrUpdateSuggestionToWifiConfigManger()
153 WifiConfiguration config, boolean untrustedNetworkAllowed, in shouldIgnoreBasedOnChecksForTrustedOrOemPaidOrOemPrivate() argument
156 if (!untrustedNetworkAllowed && !config.trusted) { in shouldIgnoreBasedOnChecksForTrustedOrOemPaidOrOemPrivate()
163 if (config.oemPaid && config.oemPrivate) { in shouldIgnoreBasedOnChecksForTrustedOrOemPaidOrOemPrivate()
168 config.oemPrivate = false; // only oemPaid set. in shouldIgnoreBasedOnChecksForTrustedOrOemPaidOrOemPrivate()
170 config.oemPaid = false; // only oemPrivate set. in shouldIgnoreBasedOnChecksForTrustedOrOemPaidOrOemPrivate()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DConfigurationMapTest.java141 for (WifiConfiguration config : mConfigs.valuesForCurrentUser()) { in getEnabledNetworksForCurrentUser()
142 if (config.status != WifiConfiguration.Status.DISABLED) { in getEnabledNetworksForCurrentUser()
143 list.add(config); in getEnabledNetworksForCurrentUser()
150 for (WifiConfiguration config : mConfigs.valuesForCurrentUser()) { in getEphemeralForCurrentUser()
151 if (ssid.equals(config.SSID) && config.ephemeral) { in getEphemeralForCurrentUser()
152 return config; in getEphemeralForCurrentUser()
159 for (WifiConfiguration config : configs) { in addNetworks()
160 assertNull(mConfigs.put(config)); in addNetworks()
172 for (WifiConfiguration config : configs) { in verifyGetters()
174 final UserHandle creatorUser = UserHandle.getUserHandleForUid(config.creatorUid); in verifyGetters()
[all …]
DWifiConfigurationUtilTest.java227 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testValidatePositiveCases_HexSsidString() local
228 config.SSID = "abcd1234555a"; in testValidatePositiveCases_HexSsidString()
229 config.preSharedKey = "abcd123455151234556788990034556667332345667322344556676743233445"; in testValidatePositiveCases_HexSsidString()
230 assertTrue(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD)); in testValidatePositiveCases_HexSsidString()
238 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testValidatePositiveCases_AnyBssidString() local
239 config.BSSID = "any"; in testValidatePositiveCases_AnyBssidString()
240 assertTrue(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD)); in testValidatePositiveCases_AnyBssidString()
242 config, WifiConfigurationUtil.VALIDATE_FOR_UPDATE)); in testValidatePositiveCases_AnyBssidString()
251 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testValidatePositiveCases_MaskedPskString() local
252 assertTrue(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD)); in testValidatePositiveCases_MaskedPskString()
[all …]
DSupplicantStaNetworkHalTest.java202 WifiConfiguration config = WifiConfigurationTestUtil.createOweNetwork(); in testOweNetworkWifiConfigurationSaveLoad() local
203 config.updateIdentifier = "46"; in testOweNetworkWifiConfigurationSaveLoad()
204 testWifiConfigurationSaveLoad(config); in testOweNetworkWifiConfigurationSaveLoad()
212 WifiConfiguration config = WifiConfigurationTestUtil.createOpenHiddenNetwork(); in testOpenNetworkWifiConfigurationSaveLoad() local
213 config.updateIdentifier = "45"; in testOpenNetworkWifiConfigurationSaveLoad()
214 testWifiConfigurationSaveLoad(config); in testOpenNetworkWifiConfigurationSaveLoad()
225 WifiConfiguration config = WifiConfigurationTestUtil.createSaeNetwork(); in testSaePasswordNetworkWifiConfigurationSaveLoad() local
226 testWifiConfigurationSaveLoad(config); in testSaePasswordNetworkWifiConfigurationSaveLoad()
243 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testPskPassphraseNetworkWifiConfigurationSaveLoad() local
246 testWifiConfigurationSaveLoad(config); in testPskPassphraseNetworkWifiConfigurationSaveLoad()
[all …]
DSoftApBackupRestoreTest.java154 SoftApConfiguration config = configBuilder.build(); in testSoftApConfigBackupAndRestoreWithWpa2Config() local
156 byte[] data = mSoftApBackupRestore.retrieveBackupDataFromSoftApConfiguration(config); in testSoftApConfigBackupAndRestoreWithWpa2Config()
160 assertThat(config).isEqualTo(restoredConfig); in testSoftApConfigBackupAndRestoreWithWpa2Config()
172 SoftApConfiguration config = configBuilder.build(); in testSoftApConfigBackupAndRestoreWithOpenSecurityConfig() local
174 byte[] data = mSoftApBackupRestore.retrieveBackupDataFromSoftApConfiguration(config); in testSoftApConfigBackupAndRestoreWithOpenSecurityConfig()
178 assertThat(config).isEqualTo(restoredConfig); in testSoftApConfigBackupAndRestoreWithOpenSecurityConfig()
213 SoftApConfiguration config = configBuilder.build(); in testSoftApConfigBackupAndRestoreWithWpa3SaeConfig() local
215 byte[] data = mSoftApBackupRestore.retrieveBackupDataFromSoftApConfiguration(config); in testSoftApConfigBackupAndRestoreWithWpa3SaeConfig()
219 assertThat(config).isEqualTo(restoredConfig); in testSoftApConfigBackupAndRestoreWithWpa3SaeConfig()
235 SoftApConfiguration config = configBuilder.build(); in testSoftApConfigBackupAndRestoreWithWpa3SaeTransitionConfig() local
[all …]
DWifiApConfigStoreTest.java193 private void verifyDefaultApConfig(SoftApConfiguration config, String expectedSsid, in verifyDefaultApConfig() argument
195 verifyDefaultApConfig(config, expectedSsid, isSaeSupport, true, false); in verifyDefaultApConfig()
199 private void verifyDefaultApConfig(SoftApConfiguration config, String expectedSsid, in verifyDefaultApConfig() argument
201 String[] splitSsid = config.getSsid().split("_"); in verifyDefaultApConfig()
204 assertEquals(SoftApConfiguration.BAND_2GHZ, config.getBand()); in verifyDefaultApConfig()
205 assertFalse(config.isHiddenSsid()); in verifyDefaultApConfig()
209 assertEquals(SECURITY_TYPE_WPA3_SAE_TRANSITION, config.getSecurityType()); in verifyDefaultApConfig()
211 assertEquals(SECURITY_TYPE_WPA2_PSK, config.getSecurityType()); in verifyDefaultApConfig()
213 assertEquals(15, config.getPassphrase().length()); in verifyDefaultApConfig()
215 assertEquals(config.getMacRandomizationSettingInternal(), in verifyDefaultApConfig()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/
DPasspointConfigurationTest.java103 PasspointConfiguration config = PasspointTestUtils.createConfig(); in verifyParcelWithoutServiceNames() local
104 config.setServiceFriendlyNames(null); in verifyParcelWithoutServiceNames()
105 verifyParcel(config); in verifyParcelWithoutServiceNames()
115 PasspointConfiguration config = PasspointTestUtils.createConfig(); in verifyParcelWithoutHomeSP() local
116 config.setHomeSp(null); in verifyParcelWithoutHomeSP()
117 verifyParcel(config); in verifyParcelWithoutHomeSP()
127 PasspointConfiguration config = PasspointTestUtils.createConfig(); in verifyParcelWithoutCredential() local
128 config.setCredential(null); in verifyParcelWithoutCredential()
129 verifyParcel(config); in verifyParcelWithoutCredential()
139 PasspointConfiguration config = PasspointTestUtils.createConfig(); in verifyParcelWithoutPolicy() local
[all …]
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp111 bool initConfig(const StatsdConfig& config) { in initConfig() argument
113 key, config, uidMap, pullerManager, anomalyAlarmMonitor, periodicAlarmMonitor, in initConfig()
124 StatsdConfig config; in TEST_F() local
127 *config.add_atom_matcher() = matcher; in TEST_F()
130 EXPECT_TRUE(initConfig(config)); in TEST_F()
136 EXPECT_TRUE(determineMatcherUpdateStatus(config, 0, oldAtomMatchingTrackerMap, in TEST_F()
143 StatsdConfig config; in TEST_F() local
145 *config.add_atom_matcher() = matcher; in TEST_F()
147 EXPECT_TRUE(initConfig(config)); in TEST_F()
167 StatsdConfig config; in TEST_F() local
[all …]
Dmetrics_manager_util_test.cpp59 StatsdConfig config; in buildGoodConfig() local
60 config.set_id(12345); in buildGoodConfig()
62 AtomMatcher* eventMatcher = config.add_atom_matcher(); in buildGoodConfig()
72 eventMatcher = config.add_atom_matcher(); in buildGoodConfig()
82 eventMatcher = config.add_atom_matcher(); in buildGoodConfig()
90 CountMetric* metric = config.add_count_metric(); in buildGoodConfig()
97 config.add_no_report_metric(3); in buildGoodConfig()
99 auto alert = config.add_alert(); in buildGoodConfig()
105 return config; in buildGoodConfig()
109 StatsdConfig config; in buildCircleMatchers() local
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProviderTest.java178 private PasspointProvider createProvider(PasspointConfiguration config) { in createProvider() argument
179 return new PasspointProvider(config, mKeyStore, mWifiCarrierInfoManager, PROVIDER_ID, in createProvider()
264 PasspointConfiguration config = new PasspointConfiguration(); in generateTestPasspointConfiguration() local
266 config.setUpdateIdentifier(TEST_UPDATE_IDENTIFIER); in generateTestPasspointConfiguration()
267 config.setUsageLimitDataLimit(TEST_USAGE_LIMIT_DATA_LIMIT); in generateTestPasspointConfiguration()
273 config.setHomeSp(homeSp); in generateTestPasspointConfiguration()
310 config.setCredential(credential); in generateTestPasspointConfiguration()
312 return config; in generateTestPasspointConfiguration()
471 PasspointConfiguration config = generateTestPasspointConfiguration( in verifyModifyOriginalConfig() local
473 mProvider = createProvider(config); in verifyModifyOriginalConfig()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttNative.java391 RttConfig config = new RttConfig(); in convertRangingRequestToRttConfigs() local
393 System.arraycopy(responder.macAddress.toByteArray(), 0, config.addr, 0, in convertRangingRequestToRttConfigs()
394 config.addr.length); in convertRangingRequestToRttConfigs()
397 config.type = responder.supports80211mc ? RttType.TWO_SIDED : RttType.ONE_SIDED; in convertRangingRequestToRttConfigs()
398 if (config.type == RttType.ONE_SIDED && cap != null && !cap.oneSidedRttSupported) { in convertRangingRequestToRttConfigs()
403 config.peer = halRttPeerTypeFromResponderType(responder.responderType); in convertRangingRequestToRttConfigs()
404 config.channel.width = halChannelWidthFromResponderChannelWidth( in convertRangingRequestToRttConfigs()
406 config.channel.centerFreq = responder.frequency; in convertRangingRequestToRttConfigs()
407 config.channel.centerFreq0 = responder.centerFreq0; in convertRangingRequestToRttConfigs()
408 config.channel.centerFreq1 = responder.centerFreq1; in convertRangingRequestToRttConfigs()
[all …]
/packages/modules/StatsD/statsd/tests/e2e/
DConfigUpdate_e2e_ab_test.cpp40 StatsdConfig config; in CreateSimpleConfig() local
41 config.add_allowed_log_source("AID_STATSD"); in CreateSimpleConfig()
42 config.set_hash_strings_in_metric_report(false); in CreateSimpleConfig()
44 *config.add_atom_matcher() = CreateBatteryStateUsbMatcher(); in CreateSimpleConfig()
46 CountMetric* countMetric1 = config.add_count_metric(); in CreateSimpleConfig()
48 countMetric1->set_what(config.atom_matcher(0).id()); in CreateSimpleConfig()
50 return config; in CreateSimpleConfig()
69 StatsdConfig config = CreateSimpleConfig(); in TEST_P() local
70 config.set_version_strings_in_metric_report(true); in TEST_P()
71 config.set_installer_in_metric_report(false); in TEST_P()
[all …]
DValueMetric_pull_e2e_test.cpp37 StatsdConfig config; in CreateStatsdConfig() local
38 config.add_allowed_log_source("AID_ROOT"); // LogEvent defaults to UID of root. in CreateStatsdConfig()
39 config.add_default_pull_packages("AID_ROOT"); // Fake puller is registered with root. in CreateStatsdConfig()
42 *config.add_atom_matcher() = pulledAtomMatcher; in CreateStatsdConfig()
43 *config.add_atom_matcher() = CreateScreenTurnedOnAtomMatcher(); in CreateStatsdConfig()
44 *config.add_atom_matcher() = CreateScreenTurnedOffAtomMatcher(); in CreateStatsdConfig()
47 *config.add_predicate() = screenIsOffPredicate; in CreateStatsdConfig()
49 auto valueMetric = config.add_value_metric(); in CreateStatsdConfig()
63 return config; in CreateStatsdConfig()
67 StatsdConfig config; in CreateStatsdConfigWithStates() local
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DEntitlementManager.java149 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in isCellularUpstreamPermitted() local
151 return isCellularUpstreamPermitted(config); in isCellularUpstreamPermitted()
154 private boolean isCellularUpstreamPermitted(final TetheringConfiguration config) { in isCellularUpstreamPermitted() argument
155 if (!isTetherProvisioningRequired(config)) return true; in isCellularUpstreamPermitted()
195 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in startProvisioningIfNeeded() local
196 if (!isTetherProvisioningRequired(config)) return; in startProvisioningIfNeeded()
202 runUiTetherProvisioning(downstreamType, config); in startProvisioningIfNeeded()
204 runSilentTetherProvisioning(downstreamType, config); in startProvisioningIfNeeded()
242 final TetheringConfiguration config = mFetcher.fetchTetheringConfiguration(); in notifyUpstream() local
243 maybeRunProvisioning(config); in notifyUpstream()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DDndConditionalCardControllerTest.java94 final ZenModeConfig config = new ZenModeConfig(); in getCustomConfig() local
96 config.allowAlarms = true; in getCustomConfig()
97 config.allowMedia = false; in getCustomConfig()
98 config.allowSystem = false; in getCustomConfig()
99 config.allowCalls = true; in getCustomConfig()
100 config.allowRepeatCallers = true; in getCustomConfig()
101 config.allowMessages = false; in getCustomConfig()
102 config.allowReminders = false; in getCustomConfig()
103 config.allowEvents = false; in getCustomConfig()
104 config.areChannelsBypassingDnd = false; in getCustomConfig()
[all …]
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dconfig_update_utils.cpp35 bool determineMatcherUpdateStatus(const StatsdConfig& config, const int matcherIdx, in determineMatcherUpdateStatus() argument
46 const AtomMatcher& matcher = config.atom_matcher(matcherIdx); in determineMatcherUpdateStatus()
88 config, childIdx, oldAtomMatchingTrackerMap, oldAtomMatchingTrackers, in determineMatcherUpdateStatus()
110 bool updateAtomMatchingTrackers(const StatsdConfig& config, const sp<UidMap>& uidMap, in updateAtomMatchingTrackers() argument
117 const int atomMatcherCount = config.atom_matcher_size(); in updateAtomMatchingTrackers()
124 const AtomMatcher& matcher = config.atom_matcher(i); in updateAtomMatchingTrackers()
137 if (!determineMatcherUpdateStatus(config, i, oldAtomMatchingTrackerMap, in updateAtomMatchingTrackers()
145 const AtomMatcher& matcher = config.atom_matcher(i); in updateAtomMatchingTrackers()
200 bool determineConditionUpdateStatus(const StatsdConfig& config, const int conditionIdx, in determineConditionUpdateStatus() argument
212 const Predicate& predicate = config.predicate(conditionIdx); in determineConditionUpdateStatus()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java77 public static void setConfigSsid(WifiConfiguration config, String ssid) { in setConfigSsid() argument
78 config.SSID = AccessPoint.convertToQuotedString(ssid); in setConfigSsid()
85 WifiConfiguration config, int security) { in setConfigKeyManagementBySecurity() argument
86 config.allowedKeyManagement.clear(); in setConfigKeyManagementBySecurity()
87 config.allowedAuthAlgorithms.clear(); in setConfigKeyManagementBySecurity()
90 config.allowedKeyManagement.set(KeyMgmt.NONE); in setConfigKeyManagementBySecurity()
93 config.allowedKeyManagement.set(KeyMgmt.NONE); in setConfigKeyManagementBySecurity()
94 config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN); in setConfigKeyManagementBySecurity()
95 config.allowedAuthAlgorithms.set(AuthAlgorithm.SHARED); in setConfigKeyManagementBySecurity()
98 config.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in setConfigKeyManagementBySecurity()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/
DQuickstepAtomicAnimationFactory.java86 StateAnimationConfig config) { in prepareForAtomicAnimation() argument
89 config.setInterpolator(ANIM_OVERVIEW_ACTIONS_FADE, clampToProgress(LINEAR, 0, 0.25f)); in prepareForAtomicAnimation()
90 config.setInterpolator(ANIM_SCRIM_FADE, LINEAR); in prepareForAtomicAnimation()
91 config.setInterpolator(ANIM_WORKSPACE_SCALE, DEACCEL); in prepareForAtomicAnimation()
92 config.setInterpolator(ANIM_WORKSPACE_FADE, ACCEL); in prepareForAtomicAnimation()
97 config.setInterpolator(ANIM_OVERVIEW_SCALE, FINAL_FRAME); in prepareForAtomicAnimation()
98 config.setInterpolator(ANIM_OVERVIEW_FADE, FINAL_FRAME); in prepareForAtomicAnimation()
99 config.setInterpolator(ANIM_OVERVIEW_TRANSLATE_X, in prepareForAtomicAnimation()
101 config.setInterpolator(ANIM_OVERVIEW_TRANSLATE_Y, FINAL_FRAME); in prepareForAtomicAnimation()
103 config.setInterpolator(ANIM_OVERVIEW_TRANSLATE_X, ACCEL_DEACCEL); in prepareForAtomicAnimation()
[all …]
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DSessionConfigurationTest.java107 final IkeSessionConfiguration config = builder.build(); in testIkeSessionConfiguration() local
109 assertEquals(connectionInfo, config.getIkeSessionConnectionInfo()); in testIkeSessionConfiguration()
110 assertTrue(config.isIkeExtensionEnabled(EXTENSION_TYPE_FRAGMENTATION)); in testIkeSessionConfiguration()
111 assertTrue(config.isIkeExtensionEnabled(EXTENSION_TYPE_MOBIKE)); in testIkeSessionConfiguration()
114 config.getPcscfServers()); in testIkeSessionConfiguration()
117 config.getRemoteVendorIds()); in testIkeSessionConfiguration()
118 assertEquals(REMOTE_APP_VERSION, config.getRemoteApplicationVersion()); in testIkeSessionConfiguration()
129 final IkeSessionConfiguration config = in testIkeSessionConfigurationClearMethods() local
136 assertEquals(connectionInfo, config.getIkeSessionConnectionInfo()); in testIkeSessionConfigurationClearMethods()
137 assertFalse(config.isIkeExtensionEnabled(EXTENSION_TYPE_FRAGMENTATION)); in testIkeSessionConfigurationClearMethods()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java100 WifiConfiguration config; in testNetworkCreationFromScanResult() local
103 config = ScanResultUtil.createNetworkFromScanResult(scanResult); in testNetworkCreationFromScanResult()
104 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
106 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
109 config = ScanResultUtil.createNetworkFromScanResult(scanResult); in testNetworkCreationFromScanResult()
110 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
112 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
115 config = ScanResultUtil.createNetworkFromScanResult(scanResult); in testNetworkCreationFromScanResult()
116 assertEquals(config.SSID, ScanResultUtil.createQuotedSSID(ssid)); in testNetworkCreationFromScanResult()
118 config.getDefaultSecurityParams().getSecurityType()); in testNetworkCreationFromScanResult()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java250 PositionConfiguration config = new PositionConfiguration(); in getPositionConfiguration() local
252 config.mPreviewRect.set(0, 0, width, height); in getPositionConfiguration()
253 config.mBottomBarOverlay = true; in getPositionConfiguration()
255 config.mBottomBarRect.set(width - mBottomBarOptimalHeight, 0, width, height); in getPositionConfiguration()
257 config.mBottomBarRect.set(0, height - mBottomBarOptimalHeight, width, height); in getPositionConfiguration()
279 config.mBottomBarOverlay = true; in getPositionConfiguration()
282config.mPreviewRect.set(0, height / 2 - previewShorterEdge / 2, previewLongerEdge, in getPositionConfiguration()
284 config.mBottomBarRect.set(width - barSize, height / 2 - previewShorterEdge / 2, in getPositionConfiguration()
287 config.mPreviewRect.set(width / 2 - previewShorterEdge / 2, 0, in getPositionConfiguration()
289 config.mBottomBarRect.set(width / 2 - previewShorterEdge / 2, height - barSize, in getPositionConfiguration()
[all …]
/packages/modules/StatsD/statsd/tests/
DMetricsManager_test.cpp56 StatsdConfig config; in buildGoodConfig() local
57 config.set_id(12345); in buildGoodConfig()
59 AtomMatcher* eventMatcher = config.add_atom_matcher(); in buildGoodConfig()
69 eventMatcher = config.add_atom_matcher(); in buildGoodConfig()
79 eventMatcher = config.add_atom_matcher(); in buildGoodConfig()
87 CountMetric* metric = config.add_count_metric(); in buildGoodConfig()
93 return config; in buildGoodConfig()
136 StatsdConfig config; in TEST() local
137 config.add_allowed_log_source("AID_SYSTEM"); in TEST()
138 config.add_allowed_log_source(app1); in TEST()
[all …]

12345678910>>...35