Home
last modified time | relevance | path

Searched refs:networks (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWakeupLockTest.java81 private void updateEnoughTimesToEvictWithAsserts(Collection<ScanResultMatchInfo> networks) { in updateEnoughTimesToEvictWithAsserts() argument
84 mWakeupLock.update(networks); in updateEnoughTimesToEvictWithAsserts()
94 private void updateEnoughTimesToEvictWithoutAsserts(Collection<ScanResultMatchInfo> networks) { in updateEnoughTimesToEvictWithoutAsserts() argument
96 mWakeupLock.update(networks); in updateEnoughTimesToEvictWithoutAsserts()
106 List<ScanResultMatchInfo> networks = Collections.singletonList(mNetwork1); in verifyInitializingLockByScans() local
107 mWakeupLock.setLock(networks); in verifyInitializingLockByScans()
111 mWakeupLock.update(networks); in verifyInitializingLockByScans()
114 mWakeupLock.update(networks); in verifyInitializingLockByScans()
129 List<ScanResultMatchInfo> networks = Collections.singletonList(mNetwork1); in verifyInitializingLockByTimeout() local
130 mWakeupLock.update(networks); in verifyInitializingLockByTimeout()
[all …]
DWakeupConfigStoreDataTest.java99 Set<ScanResultMatchInfo> networks = Collections.emptySet(); in deserializeSerializedData_emptySet() local
107 when(mNetworkDataSource.getData()).thenReturn(networks); in deserializeSerializedData_emptySet()
115 verify(mNetworkDataSource).setData(eq(networks)); in deserializeSerializedData_emptySet()
135 Set<ScanResultMatchInfo> networks = Sets.newArraySet(network1, network2, network3); in deserializeSerializedData() local
143 when(mNetworkDataSource.getData()).thenReturn(networks); in deserializeSerializedData()
151 verify(mNetworkDataSource).setData(eq(networks)); in deserializeSerializedData()
DWakeupEvaluatorTest.java69 Set<ScanResultMatchInfo> networks = new ArraySet<>(); in getSavedNetworks() local
70 networks.add(ScanResultMatchInfo.fromWifiConfiguration( in getSavedNetworks()
73 networks.add(ScanResultMatchInfo.fromWifiConfiguration( in getSavedNetworks()
76 return networks; in getSavedNetworks()
DWifiConfigManagerTest.java303 List<WifiConfiguration> networks = new ArrayList<>(); in testRandomizedMacIsGeneratedEvenIfKeyStoreFails() local
304 networks.add(openNetwork); in testRandomizedMacIsGeneratedEvenIfKeyStoreFails()
322 List<WifiConfiguration> networks = new ArrayList<>(); in testAddSingleOpenNetwork() local
323 networks.add(openNetwork); in testAddSingleOpenNetwork()
330 networks, retrievedNetworks); in testAddSingleOpenNetwork()
341 List<WifiConfiguration> networks = new ArrayList<>(); in testAddSingleOpenNetworkWhenCorrespondingEphemeralNetworkExists() local
342 networks.add(openNetwork); in testAddSingleOpenNetworkWhenCorrespondingEphemeralNetworkExists()
361 networks, retrievedNetworks); in testAddSingleOpenNetworkWhenCorrespondingEphemeralNetworkExists()
375 List<WifiConfiguration> networks = new ArrayList<>(); in testAddEphemeralNetworkWhenCorrespondingEphemeralNetworkExists() local
376 networks.add(ephemeralNetwork); in testAddEphemeralNetworkWhenCorrespondingEphemeralNetworkExists()
[all …]
DWifiConfigurationUtilTest.java868 List<WifiConfiguration> networks = new ArrayList<>(); in testPnoListComparator() local
886 networks.add(tempDisabledNetwork1); in testPnoListComparator()
887 networks.add(enabledNetwork1); in testPnoListComparator()
888 networks.add(permDisabledNetwork); in testPnoListComparator()
889 networks.add(tempDisabledNetwork2); in testPnoListComparator()
890 networks.add(enabledNetwork2); in testPnoListComparator()
911 Collections.sort(networks, comparator); in testPnoListComparator()
914 assertEquals(enabledNetwork1, networks.get(0)); in testPnoListComparator()
915 assertEquals(enabledNetwork2, networks.get(1)); in testPnoListComparator()
916 assertEquals(tempDisabledNetwork1, networks.get(2)); in testPnoListComparator()
[all …]
DWifiNetworkSelectorTestUtil.java341 List<ScoredNetwork> networks = new ArrayList<>(); in configureScoreCache() local
365 networks.add(scoredNetwork); in configureScoreCache()
368 scoreCache.updateScores(networks); in configureScoreCache()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTransportManager.java244 List<QualifiedNetworks> networks = (List<QualifiedNetworks>) ar.result; in handleMessage() local
245 mAvailableNetworksList.add(networks); in handleMessage()
295 private static boolean areNetworksValid(QualifiedNetworks networks) { in areNetworksValid() argument
296 if (networks.qualifiedNetworks == null) { in areNetworksValid()
299 for (int network : networks.qualifiedNetworks) { in areNetworksValid()
336 for (QualifiedNetworks networks : networksList) { in updateAvailableNetworks()
337 if (areNetworksValid(networks)) { in updateAvailableNetworks()
338 if (isHandoverNeeded(networks)) { in updateAvailableNetworks()
344 networks.qualifiedNetworks[0]); in updateAvailableNetworks()
346 + ApnSetting.getApnTypeString(networks.apnType) + ", target transport: " in updateAvailableNetworks()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java182 final SparseArray<IpConfiguration> networks) { in writeIpAndProxyConfigurationsToFile() argument
185 for(int i = 0; i < networks.size(); i++) { in writeIpAndProxyConfigurationsToFile()
186 writeConfig(out, String.valueOf(networks.keyAt(i)), networks.valueAt(i)); in writeIpAndProxyConfigurationsToFile()
192 ArrayMap<String, IpConfiguration> networks) { in writeIpConfigurations() argument
195 for(int i = 0; i < networks.size(); i++) { in writeIpConfigurations()
196 writeConfig(out, networks.keyAt(i), networks.valueAt(i)); in writeIpConfigurations()
233 ArrayMap<String, IpConfiguration> networks = readIpConfigurations(inputStream); in readIpAndProxyConfigurations() local
234 if (networks == null) { in readIpAndProxyConfigurations()
239 for (int i = 0; i < networks.size(); i++) { in readIpAndProxyConfigurations()
240 int id = Integer.valueOf(networks.keyAt(i)); in readIpAndProxyConfigurations()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DThreeGPPNetworkElement.java50 public ThreeGPPNetworkElement(List<CellularNetwork> networks) { in ThreeGPPNetworkElement() argument
52 mNetworks = networks; in ThreeGPPNetworkElement()
79 List<CellularNetwork> networks = new ArrayList<>(); in parse() local
83 networks.add(network); in parse()
86 return new ThreeGPPNetworkElement(networks); in parse()
/frameworks/base/core/java/android/net/
DNetworkRecommendationProvider.java74 public abstract void onRequestScores(NetworkKey[] networks); in onRequestScores() argument
99 public void requestScores(final NetworkKey[] networks) throws RemoteException { in requestScores() argument
101 if (networks != null && networks.length > 0) { in requestScores()
105 onRequestScores(networks); in requestScores()
DINetworkScoreService.aidl35 boolean updateScores(in ScoredNetwork[] networks); in updateScores() argument
91 boolean requestScores(in NetworkKey[] networks); in requestScores() argument
DNetworkScoreManager.java288 public boolean updateScores(ScoredNetwork[] networks) throws SecurityException { in updateScores() argument
290 return mService.updateScores(networks); in updateScores()
368 public boolean requestScores(NetworkKey[] networks) throws SecurityException { in requestScores() argument
370 return mService.requestScores(networks); in requestScores()
DVpnService.java372 public boolean setUnderlyingNetworks(Network[] networks) { in setUnderlyingNetworks() argument
374 return getService().setUnderlyingNetworksForVpn(networks); in setUnderlyingNetworks()
821 public Builder setUnderlyingNetworks(@Nullable Network[] networks) { in setUnderlyingNetworks() argument
822 mConfig.underlyingNetworks = networks != null ? networks.clone() : null; in setUnderlyingNetworks()
DINetworkRecommendationProvider.aidl36 void requestScores(in NetworkKey[] networks); in requestScores() argument
DINetworkScoreCache.aidl39 void updateScores(in List<ScoredNetwork> networks); in updateScores() argument
Dnetwork-policy-restrictions.md24 ## On metered networks
37 ## On non-metered networks
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkScoreCache.java89 @Override public final void updateScores(List<ScoredNetwork> networks) { in updateScores() argument
90 if (networks == null || networks.isEmpty()) { in updateScores()
94 Log.d(TAG, "updateScores list size=" + networks.size()); in updateScores()
100 for (ScoredNetwork network : networks) { in updateScores()
113 mListener.post(networks); in updateScores()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWakeupEvaluator.java47 Collection<ScanResultMatchInfo> networks) { in findViableNetwork() argument
54 if (networks.contains(ScanResultMatchInfo.fromScanResult(scanResult))) { in findViableNetwork()
DWakeupConfigStoreData.java155 Set<ScanResultMatchInfo> networks = new ArraySet<>(); in deserializeData() local
164 networks.add(parseNetwork(in, outerTagDepth + 1)); in deserializeData()
169 mNetworkDataSource.setData(networks); in deserializeData()
DWifiBackupRestore.java364 SparseArray<IpConfiguration> networks = in retrieveConfigurationsFromSupplicantBackupData() local
367 if (networks != null) { in retrieveConfigurationsFromSupplicantBackupData()
368 for (int i = 0; i < networks.size(); i++) { in retrieveConfigurationsFromSupplicantBackupData()
369 int id = networks.keyAt(i); in retrieveConfigurationsFromSupplicantBackupData()
373 configuration.setIpConfiguration(networks.valueAt(i)); in retrieveConfigurationsFromSupplicantBackupData()
DWifiConfigManager.java628 List<WifiConfiguration> networks = new ArrayList<>(); in getConfiguredNetworks() local
633 networks.add(createExternalWifiConfiguration(config, maskPasswords, targetUid)); in getConfiguredNetworks()
635 return networks; in getConfiguredNetworks()
2672 List<WifiConfiguration> networks = new ArrayList<>(getInternalConfiguredNetworks()); in retrievePnoNetworkList() local
2674 Iterator<WifiConfiguration> iter = networks.iterator(); in retrievePnoNetworkList()
2683 if (networks.isEmpty()) { in retrievePnoNetworkList()
2688 Collections.sort(networks, sScanListComparator); in retrievePnoNetworkList()
2692 networks.stream() in retrievePnoNetworkList()
2697 int lastConnectedNetworkIdx = networks.indexOf(lastConnectedNetwork); in retrievePnoNetworkList()
2698 networks.remove(lastConnectedNetworkIdx); in retrievePnoNetworkList()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java189 List<WifiConfiguration> networks = mWifiManager.getConfiguredNetworks(); in getValidSsid() local
190 int length = networks.size(); in getValidSsid()
192 if (networks.get(i).networkId == info.getNetworkId()) { in getValidSsid()
193 return networks.get(i).SSID; in getValidSsid()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkRecommendationProviderTest.java117 public void onRequestScores(NetworkKey[] networks) { in onRequestScores() argument
118 mCapturedNetworks = networks; in onRequestScores()
/frameworks/base/proto/src/
Dwifi.proto30 // Number of saved networks in the user profile.
33 // Number of open networks in the saved networks.
36 // Number of legacy personal networks.
39 // Number of legacy enterprise networks.
54 // Number of networks added by the user.
57 // Number of networks added by applications.
148 // Total number of networks over bad association threshold when watchdog triggered
151 // Total number of networks over bad authentication threshold when watchdog triggered
154 // Total number of networks over bad dhcp threshold when watchdog triggered
157 // Total number of networks over bad other threshold when watchdog triggered
[all …]
/frameworks/base/core/proto/android/net/
Dnetworkrequest.proto39 // The framework will issue callbacks about any and all networks that
59 // Like REQUEST but does not cause any networks to retain the

12