Home
last modified time | relevance | path

Searched refs:networkList (Results 1 – 23 of 23) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTransportManagerTest.java81 List<QualifiedNetworks> networkList = new ArrayList<>(Arrays.asList( in testHandoverNeeded() local
86 new AsyncResult(null, networkList, null)).sendToTarget(); in testHandoverNeeded()
95 networkList = new ArrayList<>(Arrays.asList( in testHandoverNeeded()
100 new AsyncResult(null, networkList, null)).sendToTarget(); in testHandoverNeeded()
121 networkList = new ArrayList<>(Arrays.asList( in testHandoverNeeded()
126 new AsyncResult(null, networkList, null)).sendToTarget(); in testHandoverNeeded()
156 List<QualifiedNetworks> networkList = new ArrayList<>(Arrays.asList( in testHandoverNotNeeded() local
161 new AsyncResult(null, networkList, null)).sendToTarget(); in testHandoverNotNeeded()
167 networkList = new ArrayList<>(Arrays.asList( in testHandoverNotNeeded()
172 new AsyncResult(null, networkList, null)).sendToTarget(); in testHandoverNotNeeded()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWakeupLock.java148 private void addToLock(Collection<ScanResultMatchInfo> networkList) { in addToLock() argument
150 Log.d(TAG, "Initializing lock with networks: " + networkList); in addToLock()
155 for (ScanResultMatchInfo network : networkList) { in addToLock()
179 private void removeFromLock(Collection<ScanResultMatchInfo> networkList) { in removeFromLock() argument
181 Log.d(TAG, "Filtering lock with networks: " + networkList); in removeFromLock()
191 if (networkList.contains(entry.getKey())) { in removeFromLock()
230 public void update(Collection<ScanResultMatchInfo> networkList) { in update() argument
244 removeFromLock(networkList); in update()
246 addToLock(networkList); in update()
DNetworkListStoreData.java134 private void serializeNetworkList(XmlSerializer out, List<WifiConfiguration> networkList, in serializeNetworkList() argument
137 if (networkList == null) { in serializeNetworkList()
141 Collections.sort(networkList, Comparator.comparing(a -> a.SSID)); in serializeNetworkList()
142 for (WifiConfiguration network : networkList) { in serializeNetworkList()
203 List<WifiConfiguration> networkList = new ArrayList<>(); in parseNetworkList() local
211 networkList.add(config); in parseNetworkList()
217 return networkList; in parseNetworkList()
DWifiConnectivityManager.java1382 pnoSettings.networkList = new PnoSettings.PnoNetwork[listSize]; in startDisconnectedPnoScan()
1383 pnoSettings.networkList = pnoNetworkList.toArray(pnoSettings.networkList); in startDisconnectedPnoScan()
DWifiNative.java2747 public PnoNetwork[] networkList;
2758 if (networkList != null) {
2759 for (PnoNetwork network : networkList) {
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DNetworkListStoreDataTest.java389 List<WifiConfiguration> networkList = new ArrayList<>(); in getTestNetworksConfig() local
390 networkList.add(openNetwork); in getTestNetworksConfig()
391 networkList.add(eapNetwork); in getTestNetworksConfig()
392 networkList.add(saeNetwork); in getTestNetworksConfig()
393 return networkList; in getTestNetworksConfig()
473 List<WifiConfiguration> networkList = getTestNetworksConfig(true /* shared */); in serializeSharedConfigurations() local
474 mNetworkListSharedStoreData.setConfigurations(networkList); in serializeSharedConfigurations()
475 byte[] expectedData = getTestNetworksXmlBytes(networkList.get(0), networkList.get(1), in serializeSharedConfigurations()
476 networkList.get(2)); in serializeSharedConfigurations()
488 List<WifiConfiguration> networkList = getTestNetworksConfig(true /* shared */); in deserializeSharedConfigurations() local
[all …]
DScanTestUtil.java410 assertNotNull("expected networkList was null", expected.networkList); in assertNativePnoSettingsEquals()
411 assertNotNull("actual networkList was null", actual.networkList); in assertNativePnoSettingsEquals()
412 assertEquals("networkList.length", expected.networkList.length, actual.networkList.length); in assertNativePnoSettingsEquals()
413 for (int i = 0; i < expected.networkList.length; i++) { in assertNativePnoSettingsEquals()
415 expected.networkList[i].ssid, actual.networkList[i].ssid); in assertNativePnoSettingsEquals()
417 expected.networkList[i].flags, actual.networkList[i].flags); in assertNativePnoSettingsEquals()
419 expected.networkList[i].auth_bit_field, actual.networkList[i].auth_bit_field); in assertNativePnoSettingsEquals()
DWifiNativeTest.java160 networkList = new WifiNative.PnoNetwork[2];
161 networkList[0] = new WifiNative.PnoNetwork();
162 networkList[1] = new WifiNative.PnoNetwork();
163 networkList[0].ssid = TEST_QUOTED_SSID_1;
164 networkList[1].ssid = TEST_QUOTED_SSID_2;
165 networkList[0].frequencies = TEST_FREQUENCIES_1;
166 networkList[1].frequencies = TEST_FREQUENCIES_2;
DWifiConnectivityManagerTest.java396 List<WifiConfiguration> networkList = new ArrayList<>(); in mockWifiConfigManager() local
397 networkList.add(config); in mockWifiConfigManager()
399 when(wifiConfigManager.getSavedNetworks(anyInt())).thenReturn(networkList); in mockWifiConfigManager()
2999 List<WifiConfiguration> networkList = new ArrayList<>(); in testRetrievePnoList() local
3000 networkList.add(network1); in testRetrievePnoList()
3001 networkList.add(network2); in testRetrievePnoList()
3002 networkList.add(network3); in testRetrievePnoList()
3006 when(mWifiConfigManager.getSavedNetworks(anyInt())).thenReturn(networkList); in testRetrievePnoList()
3043 List<WifiConfiguration> networkList = new ArrayList<>(); in testRetrievePnoListFrequencies() local
3044 networkList.add(network1); in testRetrievePnoListFrequencies()
[all …]
DWifiConfigStoreTest.java532 NetworkListStoreData networkList = new NetworkListUserStoreData(mContext); in testReadWifiConfigStoreData() local
533 mWifiConfigStore.registerStoreData(networkList); in testReadWifiConfigStoreData()
553 userConfigs, networkList.getConfigurations()); in testReadWifiConfigStoreData()
568 NetworkListStoreData networkList = new NetworkListUserStoreData(mContext); in testWriteWifiConfigStoreData() local
569 mWifiConfigStore.registerStoreData(networkList); in testWriteWifiConfigStoreData()
577 networkList.setConfigurations(userConfigs); in testWriteWifiConfigStoreData()
DWifiConfigManagerTest.java866 List<WifiConfiguration> networkList = new ArrayList<>(); in testAddMultipleNetworksAndEnsureEphemeralNetworkNotPersisted() local
867 networkList.addAll(networkListStoreData.first); in testAddMultipleNetworksAndEnsureEphemeralNetworkNotPersisted()
868 networkList.addAll(networkListStoreData.second); in testAddMultipleNetworksAndEnsureEphemeralNetworkNotPersisted()
869 assertFalse(isNetworkInConfigStoreData(ephemeralNetwork, networkList)); in testAddMultipleNetworksAndEnsureEphemeralNetworkNotPersisted()
870 assertTrue(isNetworkInConfigStoreData(openNetwork, networkList)); in testAddMultipleNetworksAndEnsureEphemeralNetworkNotPersisted()
4855 List<WifiConfiguration> networkList = new ArrayList<>(); in isNetworkInConfigStoreData() local
4856 networkList.addAll(networkListStoreData.first); in isNetworkInConfigStoreData()
4857 networkList.addAll(networkListStoreData.second); in isNetworkInConfigStoreData()
4858 return isNetworkInConfigStoreData(configuration, networkList); in isNetworkInConfigStoreData()
4865 WifiConfiguration configuration, List<WifiConfiguration> networkList) { in isNetworkInConfigStoreData() argument
[all …]
DWifiScoreCardTest.java649 NetworkList networkList = NetworkList.parseFrom(serialized); in testNetworksSerialization() local
650 assertEquals(diag, 1, networkList.getNetworksCount()); in testNetworksSerialization()
651 Network network = networkList.getNetworks(0); in testNetworksSerialization()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DThreeGPPNetworkElementTest.java135 List<CellularNetwork> networkList = new ArrayList<>(); in parseBufferWithTestData() local
136 networkList.add(TEST_NETWORK1); in parseBufferWithTestData()
137 networkList.add(TEST_NETWORK2); in parseBufferWithTestData()
138 ThreeGPPNetworkElement expected = new ThreeGPPNetworkElement(networkList); in parseBufferWithTestData()
DANQPParserTest.java369 List<CellularNetwork> networkList = new ArrayList<>(); in parseThreeGPPNetworkElement() local
370 networkList.add(new CellularNetwork(Arrays.asList(plmnList))); in parseThreeGPPNetworkElement()
371 ThreeGPPNetworkElement expected = new ThreeGPPNetworkElement(networkList); in parseThreeGPPNetworkElement()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkNominateHelper.java229 @NonNull List<PasspointNetworkCandidate> networkList) { in findHomeNetworksIfPossible()
230 List<PasspointNetworkCandidate> homeProviderCandidates = networkList.stream() in findHomeNetworksIfPossible()
234 return networkList; in findHomeNetworksIfPossible()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondPnoScannerTest.java177 pnoSettings.networkList = new WifiNative.PnoNetwork[2]; in createDummyPnoSettings()
178 pnoSettings.networkList[0] = createDummyPnoNetwork("ssid_pno_1"); in createDummyPnoSettings()
179 pnoSettings.networkList[1] = createDummyPnoNetwork("ssid_pno_2"); in createDummyPnoSettings()
DWifiScanningServiceTest.java2267 requestPnoSettings.networkList = in createPnoSettings()
2271 requestPnoSettings.networkList[i++] = in createPnoSettings()
2280 nativePnoSettings.networkList = in createPnoSettings()
2281 new WifiNative.PnoNetwork[requestPnoSettings.networkList.length]; in createPnoSettings()
2282 for (i = 0; i < requestPnoSettings.networkList.length; i++) { in createPnoSettings()
2283 nativePnoSettings.networkList[i] = new WifiNative.PnoNetwork(); in createPnoSettings()
2284 nativePnoSettings.networkList[i].ssid = requestPnoSettings.networkList[i].ssid; in createPnoSettings()
2285 nativePnoSettings.networkList[i].flags = requestPnoSettings.networkList[i].flags; in createPnoSettings()
2286 nativePnoSettings.networkList[i].auth_bit_field = in createPnoSettings()
2287 requestPnoSettings.networkList[i].authBitField; in createPnoSettings()
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java794 public PnoNetwork[] networkList; field in WifiScanner.PnoSettings
807 if (networkList != null) { in writeToParcel()
808 dest.writeInt(networkList.length); in writeToParcel()
809 for (int i = 0; i < networkList.length; i++) { in writeToParcel()
810 dest.writeString(networkList[i].ssid); in writeToParcel()
811 dest.writeByte(networkList[i].flags); in writeToParcel()
812 dest.writeByte(networkList[i].authBitField); in writeToParcel()
813 dest.writeIntArray(networkList[i].frequencies); in writeToParcel()
830 settings.networkList = new PnoNetwork[numNetworks];
837 settings.networkList[i] = network;
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiScannerTest.java178 pnoSettings.networkList = new PnoNetwork[]{pnoNetwork1, pnoNetwork2}; in canSerializeAndDeserializePnoSettings()
198 assertEquals(pnoSettings.networkList.length, pnoSettingsDeserialized.networkList.length); in canSerializeAndDeserializePnoSettings()
199 for (int i = 0; i < pnoSettings.networkList.length; i++) { in canSerializeAndDeserializePnoSettings()
200 PnoNetwork expected = pnoSettings.networkList[i]; in canSerializeAndDeserializePnoSettings()
201 PnoNetwork actual = pnoSettingsDeserialized.networkList[i]; in canSerializeAndDeserializePnoSettings()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTransportManager.java444 int[] networkList = mCurrentAvailableNetworks.valueAt(i); in isAnyApnPreferredOnIwlan() local
445 if (networkList.length > 0 && networkList[0] == AccessNetworkType.IWLAN) { in isAnyApnPreferredOnIwlan()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningServiceImpl.java2127 nativePnoSetting.networkList = in convertSettingsToPnoNative()
2128 new WifiNative.PnoNetwork[pnoSettings.networkList.length]; in convertSettingsToPnoNative()
2129 for (int i = 0; i < pnoSettings.networkList.length; i++) { in convertSettingsToPnoNative()
2130 nativePnoSetting.networkList[i] = new WifiNative.PnoNetwork(); in convertSettingsToPnoNative()
2131 nativePnoSetting.networkList[i].ssid = pnoSettings.networkList[i].ssid; in convertSettingsToPnoNative()
2132 nativePnoSetting.networkList[i].flags = pnoSettings.networkList[i].flags; in convertSettingsToPnoNative()
2133 nativePnoSetting.networkList[i].auth_bit_field = in convertSettingsToPnoNative()
2134 pnoSettings.networkList[i].authBitField; in convertSettingsToPnoNative()
2135 nativePnoSetting.networkList[i].frequencies = in convertSettingsToPnoNative()
2136 pnoSettings.networkList[i].frequencies; in convertSettingsToPnoNative()
[all …]
DWificondScannerImpl.java442 settings.networkList, eventHandler); in setHwPnoList()
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java451 List<ScoredNetwork> networkList = networksByType.get(network.networkKey.type); in updateScores() local
452 if (networkList == null) { in updateScores()
453 networkList = new ArrayList<>(); in updateScores()
454 networksByType.put(network.networkKey.type, networkList); in updateScores()
456 networkList.add(network); in updateScores()