Home
last modified time | relevance | path

Searched refs:selectedNetwork (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DDppManagerTest.java167 WifiConfiguration selectedNetwork = new WifiConfiguration(); in testStartDppAsConfiguratorInitiatorFailAddPeer() local
168 selectedNetwork.SSID = "\"Test_SSID\""; in testStartDppAsConfiguratorInitiatorFailAddPeer()
169 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailAddPeer()
170 selectedNetwork.preSharedKey = "\"secretPassword\""; in testStartDppAsConfiguratorInitiatorFailAddPeer()
171 selectedNetwork.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testStartDppAsConfiguratorInitiatorFailAddPeer()
174 selectedNetwork); in testStartDppAsConfiguratorInitiatorFailAddPeer()
213 WifiConfiguration selectedNetwork = new WifiConfiguration(); in testStartDppAsConfiguratorInitiatorFailStart() local
214 selectedNetwork.SSID = "\"Test_SSID\""; in testStartDppAsConfiguratorInitiatorFailStart()
215 selectedNetwork.networkId = TEST_NETWORK_ID; in testStartDppAsConfiguratorInitiatorFailStart()
216 selectedNetwork.preSharedKey = "\"secretPassword\""; in testStartDppAsConfiguratorInitiatorFailStart()
[all …]
DWifiNetworkFactoryTest.java1015 WifiConfiguration selectedNetwork = WifiConfigurationTestUtil.createOpenNetwork(); in testNetworkSpecifierHandleUserSelectionConnectToNetworkWithoutActiveRequest() local
1016 networkRequestUserSelectionCallback.select(selectedNetwork); in testNetworkSpecifierHandleUserSelectionConnectToNetworkWithoutActiveRequest()
1039 WifiConfiguration selectedNetwork = WifiConfigurationTestUtil.createOpenNetwork(); in testNetworkSpecifierHandleUserSelectionConnectToNetworkWithDifferentActiveRequest() local
1040 networkRequestUserSelectionCallback.select(selectedNetwork); in testNetworkSpecifierHandleUserSelectionConnectToNetworkWithDifferentActiveRequest()
1637 WifiConfiguration selectedNetwork = WifiConfigurationTestUtil.createOpenNetwork(); in testHandleNewNetworkRequestWithSpecifierAfterMatch() local
1638 networkRequestUserSelectionCallback.select(selectedNetwork); in testHandleNewNetworkRequestWithSpecifierAfterMatch()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DDppManager.java186 WifiConfiguration selectedNetwork = mWifiConfigManager in startDppAsConfiguratorInitiator() local
189 if (selectedNetwork == null) { in startDppAsConfiguratorInitiator()
208 if (selectedNetwork.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SAE)) { in startDppAsConfiguratorInitiator()
210 password = selectedNetwork.preSharedKey; in startDppAsConfiguratorInitiator()
212 } else if (selectedNetwork.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in startDppAsConfiguratorInitiator()
213 if (selectedNetwork.preSharedKey.matches(String.format("[0-9A-Fa-f]{%d}", 64))) { in startDppAsConfiguratorInitiator()
215 psk = selectedNetwork.preSharedKey; in startDppAsConfiguratorInitiator()
218 password = selectedNetwork.preSharedKey; in startDppAsConfiguratorInitiator()
266 String ssidEncoded = encodeStringToHex(selectedNetwork.SSID); in startDppAsConfiguratorInitiator()
270 passwordEncoded = encodeStringToHex(selectedNetwork.preSharedKey); in startDppAsConfiguratorInitiator()
DWifiNetworkSelector.java740 WifiConfiguration selectedNetwork = null; in selectNetwork() local
769 if (selectedNetwork == null && choice != null) { in selectNetwork()
770 selectedNetwork = choice; // First one wins in selectNetwork()
772 + WifiNetworkSelector.toNetworkString(selectedNetwork)); in selectNetwork()
809 final int legacySelectedNetworkId = selectedNetwork == null in selectNetwork()
811 : selectedNetwork.networkId; in selectNetwork()
858 selectedNetwork = mWifiConfigManager.getConfiguredNetwork(selectedNetworkId); in selectNetwork()
859 if (selectedNetwork != null && legacyOverrideWanted) { in selectNetwork()
860 selectedNetwork = overrideCandidateWithUserConnectChoice(selectedNetwork); in selectNetwork()
863 return selectedNetwork; in selectNetwork()