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.java103 Set<ScanResultMatchInfo> networks = Collections.emptySet(); in deserializeSerializedData_emptySet() local
111 when(mNetworkDataSource.getData()).thenReturn(networks); in deserializeSerializedData_emptySet()
119 verify(mNetworkDataSource).setData(eq(networks)); in deserializeSerializedData_emptySet()
139 Set<ScanResultMatchInfo> networks = Sets.newArraySet(network1, network2, network3); in deserializeSerializedData() local
147 when(mNetworkDataSource.getData()).thenReturn(networks); in deserializeSerializedData()
155 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.java315 List<WifiConfiguration> networks = new ArrayList<>(); in testRandomizedMacIsGeneratedEvenIfKeyStoreFails() local
316 networks.add(openNetwork); in testRandomizedMacIsGeneratedEvenIfKeyStoreFails()
337 List<WifiConfiguration> networks = new ArrayList<>(); in testAddSingleOpenNetwork() local
338 networks.add(openNetwork); in testAddSingleOpenNetwork()
345 networks, retrievedNetworks); in testAddSingleOpenNetwork()
356 List<WifiConfiguration> networks = new ArrayList<>(); in testAddSingleOpenNetworkWhenCorrespondingEphemeralNetworkExists() local
357 networks.add(openNetwork); in testAddSingleOpenNetworkWhenCorrespondingEphemeralNetworkExists()
376 networks, retrievedNetworks); in testAddSingleOpenNetworkWhenCorrespondingEphemeralNetworkExists()
390 List<WifiConfiguration> networks = new ArrayList<>(); in testAddEphemeralNetworkWhenCorrespondingEphemeralNetworkExists() local
391 networks.add(ephemeralNetwork); in testAddEphemeralNetworkWhenCorrespondingEphemeralNetworkExists()
[all …]
DWifiConfigurationUtilTest.java863 List<WifiConfiguration> networks = new ArrayList<>(); in testPnoListComparator() local
881 networks.add(tempDisabledNetwork1); in testPnoListComparator()
882 networks.add(enabledNetwork1); in testPnoListComparator()
883 networks.add(permDisabledNetwork); in testPnoListComparator()
884 networks.add(tempDisabledNetwork2); in testPnoListComparator()
885 networks.add(enabledNetwork2); in testPnoListComparator()
906 Collections.sort(networks, comparator); in testPnoListComparator()
909 assertEquals(enabledNetwork1, networks.get(0)); in testPnoListComparator()
910 assertEquals(enabledNetwork2, networks.get(1)); in testPnoListComparator()
911 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.java250 List<QualifiedNetworks> networks = (List<QualifiedNetworks>) ar.result; in handleMessage() local
251 mAvailableNetworksList.add(networks); in handleMessage()
301 private static boolean areNetworksValid(QualifiedNetworks networks) { in areNetworksValid() argument
302 if (networks.qualifiedNetworks == null || networks.qualifiedNetworks.length == 0) { in areNetworksValid()
305 for (int network : networks.qualifiedNetworks) { in areNetworksValid()
342 for (QualifiedNetworks networks : networksList) { in updateAvailableNetworks()
343 if (areNetworksValid(networks)) { in updateAvailableNetworks()
344 if (isHandoverNeeded(networks)) { in updateAvailableNetworks()
350 networks.qualifiedNetworks[0]); in updateAvailableNetworks()
352 + ApnSetting.getApnTypeString(networks.apnType) + ", target transport: " in updateAvailableNetworks()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java183 final SparseArray<IpConfiguration> networks) { in writeIpAndProxyConfigurationsToFile() argument
186 for(int i = 0; i < networks.size(); i++) { in writeIpAndProxyConfigurationsToFile()
187 writeConfig(out, String.valueOf(networks.keyAt(i)), networks.valueAt(i)); in writeIpAndProxyConfigurationsToFile()
193 ArrayMap<String, IpConfiguration> networks) { in writeIpConfigurations() argument
196 for(int i = 0; i < networks.size(); i++) { in writeIpConfigurations()
197 writeConfig(out, networks.keyAt(i), networks.valueAt(i)); in writeIpConfigurations()
234 ArrayMap<String, IpConfiguration> networks = readIpConfigurations(inputStream); in readIpAndProxyConfigurations() local
235 if (networks == null) { in readIpAndProxyConfigurations()
240 for (int i = 0; i < networks.size(); i++) { in readIpAndProxyConfigurations()
241 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()
DNetworkScoreManager.java303 public boolean updateScores(@NonNull ScoredNetwork[] networks) throws SecurityException { in updateScores() argument
305 return mService.updateScores(networks); in updateScores()
391 public boolean requestScores(@NonNull NetworkKey[] networks) throws SecurityException { in requestScores() argument
393 return mService.requestScores(networks); in requestScores()
473 void updateScores(@NonNull List<ScoredNetwork> networks); in updateScores() argument
495 public void updateScores(@NonNull List<ScoredNetwork> networks) { in updateScores() argument
498 mCallback.updateScores(networks); in updateScores()
DINetworkScoreService.aidl35 boolean updateScores(in ScoredNetwork[] networks); in updateScores() argument
91 boolean requestScores(in NetworkKey[] networks); in requestScores() argument
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.java91 @Override public final void updateScores(List<ScoredNetwork> networks) { in updateScores() argument
92 if (networks == null || networks.isEmpty()) { in updateScores()
96 Log.d(TAG, "updateScores list size=" + networks.size()); in updateScores()
102 for (ScoredNetwork network : networks) { in updateScores()
115 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.java160 Set<ScanResultMatchInfo> networks = new ArraySet<>(); in deserializeData() local
169 networks.add(parseNetwork(in, outerTagDepth + 1)); in deserializeData()
174 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.java648 List<WifiConfiguration> networks = new ArrayList<>(); in getConfiguredNetworks() local
653 networks.add(createExternalWifiConfiguration(config, maskPasswords, targetUid)); in getConfiguredNetworks()
655 return networks; in getConfiguredNetworks()
2711 List<WifiConfiguration> networks = new ArrayList<>(getInternalConfiguredNetworks()); in retrievePnoNetworkList() local
2713 Iterator<WifiConfiguration> iter = networks.iterator(); in retrievePnoNetworkList()
2722 if (networks.isEmpty()) { in retrievePnoNetworkList()
2727 Collections.sort(networks, sScanListComparator); in retrievePnoNetworkList()
2731 networks.stream() in retrievePnoNetworkList()
2736 int lastConnectedNetworkIdx = networks.indexOf(lastConnectedNetwork); in retrievePnoNetworkList()
2737 networks.remove(lastConnectedNetworkIdx); in retrievePnoNetworkList()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java196 List<WifiConfiguration> networks = mWifiManager.getConfiguredNetworks(); in getValidSsid() local
197 int length = networks.size(); in getValidSsid()
199 if (networks.get(i).networkId == info.getNetworkId()) { in getValidSsid()
200 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