Home
last modified time | relevance | path

Searched refs:wns (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNetworkSuggestionsManager.java310 public final WifiNetworkSuggestion wns; field in WifiNetworkSuggestionsManager.ExtendedWifiNetworkSuggestion
318 public ExtendedWifiNetworkSuggestion(@NonNull WifiNetworkSuggestion wns, in ExtendedWifiNetworkSuggestion() argument
321 this.wns = wns; in ExtendedWifiNetworkSuggestion()
324 this.wns.wifiConfiguration.fromWifiNetworkSuggestion = true; in ExtendedWifiNetworkSuggestion()
325 this.wns.wifiConfiguration.ephemeral = true; in ExtendedWifiNetworkSuggestion()
326 this.wns.wifiConfiguration.creatorName = perAppInfo.packageName; in ExtendedWifiNetworkSuggestion()
327 this.wns.wifiConfiguration.creatorUid = perAppInfo.uid; in ExtendedWifiNetworkSuggestion()
332 this.wns.wifiConfiguration.carrierId = perAppInfo.carrierId; in ExtendedWifiNetworkSuggestion()
333 if (this.wns.passpointConfiguration != null) { in ExtendedWifiNetworkSuggestion()
334 this.wns.passpointConfiguration.setCarrierId(perAppInfo.carrierId); in ExtendedWifiNetworkSuggestion()
[all …]
DMultiInternetWifiNetworkFactory.java100 WifiNetworkSpecifier wns = (WifiNetworkSpecifier) networkRequest.getNetworkSpecifier(); in isWifiMultiInternetRequest() local
105 && wns.getBand() != ScanResult.UNSPECIFIED in isWifiMultiInternetRequest()
106 && (isFromSettings || WifiConfigurationUtil.isMatchAllNetworkSpecifier(wns))) { in isWifiMultiInternetRequest()
160 WifiNetworkSpecifier wns = (WifiNetworkSpecifier) networkRequest.getNetworkSpecifier(); in acceptRequest() local
161 final int band = wns.getBand(); in acceptRequest()
175 WifiNetworkSpecifier wns = (WifiNetworkSpecifier) networkRequest.getNetworkSpecifier(); in needNetworkFor() local
176 final int band = wns.getBand(); in needNetworkFor()
184 wns.ssidPatternMatcher, wns.bssidPatternMatcher, wns.getBand(), in needNetworkFor()
185 wns.wifiConfiguration, wns.getPreferredChannelFrequenciesMhz()), in needNetworkFor()
204 band, wns.wifiConfiguration.BSSID, in needNetworkFor()
DWifiNetworkFactory.java723 WifiNetworkSpecifier wns = (WifiNetworkSpecifier) networkRequest.getNetworkSpecifier(); in isRequestWithWifiNetworkSpecifierValid() local
749 if (wns.getBand() != ScanResult.UNSPECIFIED) { in isRequestWithWifiNetworkSpecifierValid()
753 if (!WifiConfigurationUtil.validateNetworkSpecifier(wns, mContext.getResources() in isRequestWithWifiNetworkSpecifierValid()
755 Log.e(TAG, "Invalid wifi network specifier: " + wns + ". Rejecting "); in isRequestWithWifiNetworkSpecifierValid()
758 if (wns.wifiConfiguration.enterpriseConfig != null in isRequestWithWifiNetworkSpecifierValid()
759 && wns.wifiConfiguration.enterpriseConfig.isTrustOnFirstUseEnabled()) { in isRequestWithWifiNetworkSpecifierValid()
760 Log.e(TAG, "Invalid wifi network specifier with TOFU enabled: " + wns + ". Rejecting "); in isRequestWithWifiNetworkSpecifierValid()
904 WifiNetworkSpecifier wns = (WifiNetworkSpecifier) ns; in needNetworkFor() local
906 wns.ssidPatternMatcher, wns.bssidPatternMatcher, wns.getBand(), in needNetworkFor()
907 wns.wifiConfiguration, wns.getPreferredChannelFrequenciesMhz()); in needNetworkFor()
[all …]
DNetworkSuggestionNominator.java214 ewns.wns.wifiConfiguration.getPasspointUniqueId(), in findMatchedPasspointSuggestionNetworks()
419 e -> e.extWifiNetworkSuggestion.wns.wifiConfiguration.priority, in getHighestPriorityNetworks()
449 wifiNetworkSuggestion.wns.priorityGroup); in put()
DNetworkSuggestionStoreData.java216 WifiNetworkSuggestion suggestion = extSuggestion.wns; in serializeNetworkSuggestion()
DClientModeImpl.java5182 WifiNetworkAgentSpecifier wns = in createNetworkAgentSpecifier() local
5184 return wns; in createNetworkAgentSpecifier()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DNetworkSuggestionNominatorTest.java221 WifiConfiguration config = suggestions[0].wns.wifiConfiguration; in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion()
569 suggestions[0].wns.wifiConfiguration.fromWifiNetworkSuggestion = true; in testSelectNetworkSuggestionForOneMatchForExistingNetwork()
570 suggestions[0].wns.wifiConfiguration.ephemeral = true; in testSelectNetworkSuggestionForOneMatchForExistingNetwork()
575 .thenReturn(suggestions[0].wns.wifiConfiguration); in testSelectNetworkSuggestionForOneMatchForExistingNetwork()
602 suggestions[0].wns.wifiConfiguration.getKey()); in testSelectNetworkSuggestionForOneMatchForExistingNetwork()
691 suggestions[0].wns.wifiConfiguration.getNetworkSelectionStatus().setNetworkSelectionStatus( in testSelectNetworkSuggestionForOneMatchForExistingNetworkButTempDisabled()
699 .thenReturn(suggestions[0].wns.wifiConfiguration); in testSelectNetworkSuggestionForOneMatchForExistingNetworkButTempDisabled()
711 suggestions[0].wns.wifiConfiguration.getProfileKey())); in testSelectNetworkSuggestionForOneMatchForExistingNetworkButTempDisabled()
713 suggestions[0].wns.wifiConfiguration.networkId)); in testSelectNetworkSuggestionForOneMatchForExistingNetworkButTempDisabled()
716 suggestions[0].wns.wifiConfiguration.getKey())); in testSelectNetworkSuggestionForOneMatchForExistingNetworkButTempDisabled()
[all …]
DNetworkSuggestionStoreDataTest.java322 configuration, deserializedSuggestion.wns.wifiConfiguration); in serializeDeserializeSingleNetworkSuggestionFromSingleApp()
325 deserializedSuggestion.wns.wifiConfiguration.enterpriseConfig); in serializeDeserializeSingleNetworkSuggestionFromSingleApp()
496 assertEquals(networkSuggestion, deserializedSuggestion.wns); in serializeDeserializeSinglePasspointSuggestionFromSingleApp()
DWifiNetworkSuggestionsManagerTest.java2015 n -> n.wns, in testAddNetworkSuggestionsConfigStoreWrite()
3431 assertEquals(networkSuggestion, ewns.iterator().next().wns); in testGetPasspointSuggestionFromFqdnWithUserApproval()
3673 .map(ewns -> ewns.wns) in assertSuggestionsEquals()
4452 assertTrue(ewns.wns.wifiConfiguration.isMostRecentlyConnected); in testIsMostRecentlyConnectedSuggestion()
4461 assertFalse(ewns.wns.wifiConfiguration.isMostRecentlyConnected); in testIsMostRecentlyConnectedSuggestion()
5174 assertEquals(networkSuggestion, ewns.iterator().next().wns); in testGetMergedPasspointSuggestionFromFqdn()
/packages/modules/Connectivity/tests/unit/java/android/net/
DTelephonyNetworkSpecifierTest.java102 final WifiNetworkSpecifier wns = new WifiNetworkSpecifier.Builder() in testCanBeSatisfiedBy() local
114 assertFalse(tns1.canBeSatisfiedBy(wns)); in testCanBeSatisfiedBy()