Home
last modified time | relevance | path

Searched refs:configuration (Results 1 – 25 of 386) sorted by relevance

12345678910>>...16

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java326 WifiConfiguration configuration = createOpenNetwork(); in createEphemeralNetwork() local
327 configuration.ephemeral = true; in createEphemeralNetwork()
328 return configuration; in createEphemeralNetwork()
332 WifiConfiguration configuration = createOpenNetwork(); in createOpenHiddenNetwork() local
333 configuration.hiddenSSID = true; in createOpenHiddenNetwork()
334 return configuration; in createOpenHiddenNetwork()
346 WifiConfiguration configuration = in createPskNetwork() local
349 configuration.preSharedKey = TEST_PSK; in createPskNetwork()
350 return configuration; in createPskNetwork()
358 WifiConfiguration configuration = in createPskSaeNetwork() local
[all …]
DNetworkSuggestionNominatorTest.java145 (ScanDetail scanDetail, WifiConfiguration configuration) -> { in testSelectNetworkSuggestionForNoMatch()
146 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForNoMatch()
189 (ScanDetail scanDetail, WifiConfiguration configuration) -> { in testSelectNetworkSuggestionForOneMatch()
190 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForOneMatch()
232 (ScanDetail scanDetail, WifiConfiguration configuration) -> { in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion()
233 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion()
278 (ScanDetail scanDetail, WifiConfiguration configuration) -> { in testSelectNetworkSuggestionForMultipleMatch()
279 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForMultipleMatch()
324 (ScanDetail scanDetail, WifiConfiguration configuration) -> { in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
325 connectableNetworks.add(Pair.create(scanDetail, configuration)); in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
[all …]
DWifiBackupRestoreTest.java600 WifiConfiguration configuration = WifiConfigurationTestUtil.createWepNetworkWithSingleKey(); in testSingleEphemeralNetworkNotBackupRestore() local
601 configuration.ephemeral = true; in testSingleEphemeralNetworkNotBackupRestore()
602 configurations.add(configuration); in testSingleEphemeralNetworkNotBackupRestore()
1314 for (WifiConfiguration configuration : configurations) { in createWpaSupplicantConfBackupData()
1315 writeConfigurationToWpaSupplicantConf(out, configuration); in createWpaSupplicantConfBackupData()
1330 OutputStreamWriter out, WifiConfiguration configuration) in writeConfigurationToWpaSupplicantConf() argument
1333 out.write(" " + "ssid=" + configuration.SSID + "\n"); in writeConfigurationToWpaSupplicantConf()
1334 if (configuration.hiddenSSID) { in writeConfigurationToWpaSupplicantConf()
1338 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)) { in writeConfigurationToWpaSupplicantConf()
1341 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in writeConfigurationToWpaSupplicantConf()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java493 XmlSerializer out, WifiConfiguration configuration) in writeSecurityParamsListToXml() argument
496 for (SecurityParams params: configuration.getSecurityParamsList()) { in writeSecurityParamsListToXml()
550 XmlSerializer out, WifiConfiguration configuration, in writeDppConfigurationToXml() argument
554 configuration.getDppPrivateEcKey()); in writeDppConfigurationToXml()
556 configuration.getDppConnector()); in writeDppConfigurationToXml()
558 configuration.getDppCSignKey()); in writeDppConfigurationToXml()
560 configuration.getDppNetAccessKey()); in writeDppConfigurationToXml()
573 XmlSerializer out, WifiConfiguration configuration, in writeCommonElementsToXml() argument
576 XmlUtil.writeNextValue(out, XML_TAG_CONFIG_KEY, configuration.getKey()); in writeCommonElementsToXml()
577 XmlUtil.writeNextValue(out, XML_TAG_SSID, configuration.SSID); in writeCommonElementsToXml()
[all …]
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/sip/
DSipUtils.java109 SipSessionConfiguration configuration, in buildInvite() argument
114 String address = configuration.getLocalIpAddress(); in buildInvite()
115 int port = configuration.getLocalPort(); in buildInvite()
116 String transport = configuration.getSipTransport(); in buildInvite()
117 List<String> associatedUris = configuration.getAssociatedUris(); in buildInvite()
119 configuration.getPublicUserIdentity()); in buildInvite()
151 request.setHeader(generateContactHeader(configuration)); in buildInvite()
154 if (configuration.getPaniHeader() != null) { in buildInvite()
157 configuration.getPaniHeader())); in buildInvite()
159 if (configuration.getPlaniHeader() != null) { in buildInvite()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java201 WifiConfiguration configuration = in parseNetworkConfigurationsFromXml() local
203 if (configuration != null) { in parseNetworkConfigurationsFromXml()
204 Log.v(TAG, "Parsed Configuration: " + configuration.getKey()); in parseNetworkConfigurationsFromXml()
205 configurations.add(configuration); in parseNetworkConfigurationsFromXml()
226 WifiConfiguration configuration = null; in parseNetworkConfigurationFromXml() local
233 configuration = parseWifiConfigurationFromXml(in, configTagDepth, minorVersion); in parseNetworkConfigurationFromXml()
234 if (configuration == null) { in parseNetworkConfigurationFromXml()
242 configuration.setIpConfiguration(ipConfiguration); in parseNetworkConfigurationFromXml()
243 return configuration; in parseNetworkConfigurationFromXml()
257 WifiConfiguration configuration = parsedConfig.second; in parseWifiConfigurationFromXml() local
[all …]
DNetworkListStoreData.java287 WifiConfiguration configuration = parsedConfig.second; in parseNetwork() local
289 configuration.convertLegacyFieldsToSecurityParamsIfNeeded(); in parseNetwork()
292 if (configuration.preSharedKey != null && !configuration.needsPreSharedKey()) { in parseNetwork()
294 configuration.setSecurityParams(WifiConfiguration.SECURITY_TYPE_PSK); in parseNetwork()
296 configKeyParsed = configuration.getKey(); in parseNetwork()
299 String configKeyCalculated = configuration.getKey(); in parseNetwork()
307 String creatorName = mContext.getPackageManager().getNameForUid(configuration.creatorUid); in parseNetwork()
309 Log.e(TAG, "Invalid creatorUid for saved network " + configuration.getKey() in parseNetwork()
310 + ", creatorUid=" + configuration.creatorUid); in parseNetwork()
311 configuration.creatorUid = Process.SYSTEM_UID; in parseNetwork()
[all …]
DWifiBackupRestore.java212 for (WifiConfiguration configuration : configurations) { in writeNetworkConfigurationsToXml()
214 if (configuration.isEnterprise() || configuration.isPasspoint() in writeNetworkConfigurationsToXml()
215 || configuration.ephemeral) { in writeNetworkConfigurationsToXml()
218 if (!mWifiPermissionsUtil.checkConfigOverridePermission(configuration.creatorUid)) { in writeNetworkConfigurationsToXml()
220 + configuration.getKey()); in writeNetworkConfigurationsToXml()
224 if (!configuration.getNetworkSelectionStatus().hasEverConnected()) { in writeNetworkConfigurationsToXml()
225 int disableReason = configuration.getNetworkSelectionStatus() in writeNetworkConfigurationsToXml()
234 writeNetworkConfigurationToXml(out, configuration); in writeNetworkConfigurationsToXml()
244 private void writeNetworkConfigurationToXml(XmlSerializer out, WifiConfiguration configuration) in writeNetworkConfigurationToXml() argument
247 WifiConfigurationXmlUtil.writeToXmlForBackup(out, configuration); in writeNetworkConfigurationToXml()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java290 WifiConfiguration configuration = WifiConfigurationTestUtil.createEapNetwork(); in testEapWifiConfigurationSerializeDeserializeForConfigStore() local
291 configuration.status = WifiConfiguration.Status.DISABLED; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
292 configuration.linkedConfigurations = new HashMap<>(); in testEapWifiConfigurationSerializeDeserializeForConfigStore()
293 configuration.linkedConfigurations.put(TEST_PLACEHOLDER_CONFIG_KEY, Integer.valueOf(1)); in testEapWifiConfigurationSerializeDeserializeForConfigStore()
294 configuration.defaultGwMacAddress = TEST_STATIC_IP_GATEWAY_ADDRESS; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
295 configuration.validatedInternetAccess = true; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
296 configuration.noInternetAccessExpected = true; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
297 configuration.meteredHint = true; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
298 configuration.useExternalScores = true; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
299 configuration.numAssociation = 5; in testEapWifiConfigurationSerializeDeserializeForConfigStore()
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DDisplayControllerTest.kt84 private val configuration = in <lambda>() constant in com.android.launcher3.util.DisplayControllerTest
85 Configuration(appContext.resources.configuration).apply { in <lambda>()
129 whenever(resources.configuration).thenReturn(configuration) in <lambda>()
143 val configuration = in <lambda>() constant
144 Configuration(configuration).apply { in <lambda>()
145 screenWidthDp = configuration.screenHeightDp in <lambda>()
146 screenHeightDp = configuration.screenWidthDp in <lambda>()
148 whenever(resources.configuration).thenReturn(configuration) in <lambda>()
150 displayController.onConfigurationChanged(configuration) in <lambda>()
158 val configuration = Configuration(configuration).apply { fontScale = 1.2f } in <lambda>() constant
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/inject/
DPhotopickerTestModule.kt23 import com.android.photopicker.core.configuration.ConfigurationManager
24 import com.android.photopicker.core.configuration.DeviceConfigProxy
25 import com.android.photopicker.core.configuration.PhotopickerRuntimeEnv
26 import com.android.photopicker.core.configuration.TestDeviceConfigProxyImpl
147 configurationManager.configuration, in createUserMonitor()
167 return Events(scope = scope, configurationManager.configuration, featureManager) in createEvents()
177 configurationManager.configuration, in createFeatureManager()
188 return when (determineSelectionStrategy(configurationManager.configuration.value)) { in createSelection()
192 configuration = configurationManager.configuration, in createSelection()
198 configuration = configurationManager.configuration, in createSelection()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/inject/
DActivityModule.kt23 import com.android.photopicker.core.configuration.ConfigurationManager
24 import com.android.photopicker.core.configuration.DeviceConfigProxyImpl
25 import com.android.photopicker.core.configuration.PhotopickerRuntimeEnv
157 configurationManager.configuration, in provideDataService()
179 return Events(scope, configurationManager.configuration, featureManager) in provideEvents()
201 configurationManager.configuration, in provideFeatureManager()
257 when (determineSelectionStrategy(configurationManager.configuration.value)) { in provideSelection()
261 configuration = configurationManager.configuration, in provideSelection()
267 configuration = configurationManager.configuration, in provideSelection()
299 UserMonitor(context, configurationManager.configuration, scope, dispatcher, handle) in provideUserMonitor()
DEmbeddedServiceModule.kt25 import com.android.photopicker.core.configuration.ConfigurationManager in <lambda>()
26 import com.android.photopicker.core.configuration.DeviceConfigProxyImpl in <lambda>()
27 import com.android.photopicker.core.configuration.PhotopickerRuntimeEnv in <lambda>()
201 configurationManager.configuration, in <lambda>()
222 return Events(scope, configurationManager.configuration, featureManager) in <lambda>()
243 configurationManager.configuration, in <lambda>()
303 when (determineSelectionStrategy(configurationManager.configuration.value)) { in <lambda>()
307 configuration = configurationManager.configuration, in <lambda>()
312 configuration = configurationManager.configuration, in <lambda>()
342 UserMonitor(context, configurationManager.configuration, scope, dispatcher, handle) in <lambda>()
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/
DConfigurationManager.java484 UwbConfiguration configuration = sConfigs.get(rangingParameters.getUwbConfigId()); in createOpenSessionParams() local
489 configuration.isControllerTheInitiator() in createOpenSessionParams()
495 configuration.isControllerTheInitiator() in createOpenSessionParams()
508 if (configuration.getConfigId() == CONFIG_DL_TDOA_DT_TAG) { in createOpenSessionParams()
515 .setRangingRoundUsage(configuration.getRangingRoundUsage()) in createOpenSessionParams()
516 .setMultiNodeMode(configuration.getMultiNodeMode()) in createOpenSessionParams()
525 configuration.getAoaResultRequestMode()) in createOpenSessionParams()
546 .setStsConfig(configuration.getStsConfig()) in createOpenSessionParams()
549 if (configuration.getStsConfig() == FiraParams.STS_CONFIG_STATIC) { in createOpenSessionParams()
563 } else if (configuration.getStsConfig() == STS_CONFIG_PROVISIONED) { in createOpenSessionParams()
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/selection/
DGrantsAwareSelectionTest.kt21 import com.android.photopicker.core.configuration.MULTI_SELECT_CONFIG
22 import com.android.photopicker.core.configuration.SINGLE_SELECT_CONFIG
23 import com.android.photopicker.core.configuration.provideTestConfigurationFlow
59 configuration = in <lambda>()
79 configuration = in testSelectionIsInitialized()
106 configuration = in <lambda>()
130 configuration = in <lambda>()
150 configuration = in <lambda>()
183 configuration = in <lambda>()
223 configuration = in <lambda>()
[all …]
DSelectionImplTest.kt21 import com.android.photopicker.core.configuration.MULTI_SELECT_CONFIG
22 import com.android.photopicker.core.configuration.provideTestConfigurationFlow
23 import com.android.photopicker.core.configuration.SINGLE_SELECT_CONFIG
55 configuration = in <lambda>()
75 configuration = in testSelectionIsInitialized()
102 configuration = in <lambda>()
126 configuration = in <lambda>()
146 configuration = in <lambda>()
179 configuration = in <lambda>()
219 configuration = in <lambda>()
[all …]
/packages/apps/Camera2/src_pd/com/android/camera/one/v2/
DOneCameraCreator.java71 PictureSizeCalculator.Configuration configuration = null; in create() local
88 configuration = pictureSizeCalculator.computeConfiguration( in create()
92 imageBackend, configuration.getPostCaptureCrop()); in create()
99 configuration = pictureSizeCalculator.computeConfiguration( in create()
104 configuration.getPostCaptureCrop()); in create()
110 configuration = pictureSizeCalculator.computeConfiguration( in create()
114 imageBackend, configuration.getPostCaptureCrop()); in create()
118 Log.i(TAG, "Picture Size Configuration: " + configuration); in create()
124 configuration.getNativeOutputSize(), in create()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/layout/
DScalingLazyColumnDefaults.kt80 val configuration = LocalConfiguration.current in responsive() constant
81 val screenWidthDp = configuration.screenWidthDp.toFloat() in responsive()
82 val screenHeightDp = configuration.screenHeightDp.toFloat() in responsive()
87 if (firstItemIsFullWidth && configuration.isScreenRound) { in responsive()
93 if (configuration.isScreenRound) { in responsive()
204 val configuration = LocalConfiguration.current in padding() constant
205 val screenWidthDp = configuration.screenWidthDp.toFloat() in padding()
206 val screenHeightDp = configuration.screenHeightDp.toFloat() in padding()
216 if (configuration.isScreenRound) { in padding()
227 if (configuration.isScreenRound) { in padding()
/packages/services/Car/cpp/watchdog/server/src/
DOveruseConfigurationXmlHelper.cpp412 IoOveruseConfiguration configuration; in readIoOveruseConfiguration() local
415 configuration.componentLevelThresholds = *result; in readIoOveruseConfiguration()
420 configuration.packageSpecificThresholds = *result; in readIoOveruseConfiguration()
425 configuration.categorySpecificThresholds = *result; in readIoOveruseConfiguration()
430 configuration.systemWideThresholds = *result; in readIoOveruseConfiguration()
434 return configuration; in readIoOveruseConfiguration()
649 Result<void> writeIoOveruseConfiguration(const IoOveruseConfiguration& configuration, in writeIoOveruseConfiguration() argument
657 writeComponentLevelThresholds(configuration.componentLevelThresholds, childElement); in writeIoOveruseConfiguration()
661 if (const auto result = writePackageSpecificThresholds(configuration.packageSpecificThresholds, in writeIoOveruseConfiguration()
667 writeAppCategorySpecificThresholds(configuration.categorySpecificThresholds, in writeIoOveruseConfiguration()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DAudioPlaybackConfigurationBuilder.java61 AudioPlaybackConfiguration configuration = mock(AudioPlaybackConfiguration.class); in build() local
64 when(configuration.getAudioAttributes()).thenReturn(attributes); in build()
65 when(configuration.getAudioDeviceInfo()).thenReturn(outputDevice); in build()
66 when(configuration.isActive()).thenReturn(mIsActive); in build()
67 when(configuration.getClientUid()).thenReturn(mClientUid); in build()
68 return configuration; in build()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiConfigurationTest.java791 WifiConfiguration configuration = new WifiConfiguration(); in testNeedsPreSharedKey() local
793 configuration.setSecurityParams(SECURITY_TYPE_PSK); in testNeedsPreSharedKey()
794 assertTrue(configuration.needsPreSharedKey()); in testNeedsPreSharedKey()
796 configuration.setSecurityParams(SECURITY_TYPE_SAE); in testNeedsPreSharedKey()
797 assertTrue(configuration.needsPreSharedKey()); in testNeedsPreSharedKey()
799 configuration.setSecurityParams(SECURITY_TYPE_WAPI_PSK); in testNeedsPreSharedKey()
800 assertTrue(configuration.needsPreSharedKey()); in testNeedsPreSharedKey()
802 configuration.setSecurityParams(SECURITY_TYPE_OPEN); in testNeedsPreSharedKey()
803 assertFalse(configuration.needsPreSharedKey()); in testNeedsPreSharedKey()
805 configuration.setSecurityParams(SECURITY_TYPE_OWE); in testNeedsPreSharedKey()
[all …]
/packages/apps/Dialer/java/com/android/dialer/speeddial/draghelper/
DSpeedDialFavoritesViewHolderOnTouchListener.java31 private final ViewConfiguration configuration; field in SpeedDialFavoritesViewHolderOnTouchListener
41 ViewConfiguration configuration, in SpeedDialFavoritesViewHolderOnTouchListener() argument
45 this.configuration = configuration; in SpeedDialFavoritesViewHolderOnTouchListener()
92 return Math.abs(startX - event.getX()) > configuration.getScaledTouchSlop() in moveEventExceedsTouchSlop()
93 || Math.abs(startY - event.getY()) > configuration.getScaledTouchSlop(); in moveEventExceedsTouchSlop()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/
DMainActivity.kt38 import com.android.photopicker.core.configuration.ConfigurationManager in <lambda>()
39 import com.android.photopicker.core.configuration.IllegalIntentExtraException in <lambda>()
40 import com.android.photopicker.core.configuration.LocalPhotopickerConfiguration in <lambda>()
154 configurationManager.configuration.collectAsStateWithLifecycle() in <lambda>()
187 if (configurationManager.configuration.value.selectionLimit == 1) { in <lambda>()
269 val configuration = configurationManager.configuration.first() in <lambda>() constant
271 when (configuration.action) { in <lambda>()
274 setResultForApp(selection, canSelectMultiple = configuration.selectionLimit > 1) in <lambda>()
277 configuration.intent?.getExtras()?.getInt(Intent.EXTRA_UID) in <lambda>()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiNetworkSpecifier.java484 @NonNull WifiConfiguration configuration) { in setSecurityParamsInWifiConfiguration()
486 configuration.setSecurityParams(WifiConfiguration.SECURITY_TYPE_PSK); in setSecurityParamsInWifiConfiguration()
488 configuration.preSharedKey = "\"" + mWpa2PskPassphrase + "\""; in setSecurityParamsInWifiConfiguration()
490 configuration.setSecurityParams(WifiConfiguration.SECURITY_TYPE_SAE); in setSecurityParamsInWifiConfiguration()
492 configuration.preSharedKey = "\"" + mWpa3SaePassphrase + "\""; in setSecurityParamsInWifiConfiguration()
494 configuration.setSecurityParams(WifiConfiguration.SECURITY_TYPE_EAP); in setSecurityParamsInWifiConfiguration()
495 configuration.enterpriseConfig = mWpa2EnterpriseConfig; in setSecurityParamsInWifiConfiguration()
504 configuration.setSecurityParams( in setSecurityParamsInWifiConfiguration()
508 configuration.setSecurityParams( in setSecurityParamsInWifiConfiguration()
512 configuration.setSecurityParams( in setSecurityParamsInWifiConfiguration()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dtest_command_handler.cc253 rootcanal::configuration::ControllerPreset preset = in SetDeviceConfiguration()
254 rootcanal::configuration::ControllerPreset::DEFAULT; in SetDeviceConfiguration()
257 preset = rootcanal::configuration::ControllerPreset::DEFAULT; in SetDeviceConfiguration()
259 preset = rootcanal::configuration::ControllerPreset::LAIRD_BL654; in SetDeviceConfiguration()
261 preset = rootcanal::configuration::ControllerPreset::CSR_RCK_PTS_DONGLE; in SetDeviceConfiguration()
269 rootcanal::configuration::Controller configuration; in SetDeviceConfiguration() local
270 configuration.set_preset(preset); in SetDeviceConfiguration()
271 model_.SetDeviceConfiguration(device_id, configuration); in SetDeviceConfiguration()

12345678910>>...16