Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DNetworkListStoreDataTest.java245 List<WifiConfiguration> networkList = new ArrayList<>(); in getTestNetworksConfig() local
246 networkList.add(openNetwork); in getTestNetworksConfig()
247 networkList.add(eapNetwork); in getTestNetworksConfig()
248 return networkList; in getTestNetworksConfig()
314 List<WifiConfiguration> networkList = getTestNetworksConfig(true /* shared */); in serializeSharedConfigurations() local
315 mNetworkListStoreData.setSharedConfigurations(networkList); in serializeSharedConfigurations()
316 byte[] expectedData = getTestNetworksXmlBytes(networkList.get(0), networkList.get(1)); in serializeSharedConfigurations()
327 List<WifiConfiguration> networkList = getTestNetworksConfig(true /* shared */); in deserializeSharedConfigurations() local
328 byte[] xmlData = getTestNetworksXmlBytes(networkList.get(0), networkList.get(1)); in deserializeSharedConfigurations()
330 networkList, deserializeData(xmlData, true /* shared */)); in deserializeSharedConfigurations()
[all …]
DScanTestUtil.java372 assertNotNull("expected networkList was null", expected.networkList); in assertNativePnoSettingsEquals()
373 assertNotNull("actual networkList was null", actual.networkList); in assertNativePnoSettingsEquals()
374 assertEquals("networkList.length", expected.networkList.length, actual.networkList.length); in assertNativePnoSettingsEquals()
375 for (int i = 0; i < expected.networkList.length; i++) { in assertNativePnoSettingsEquals()
377 expected.networkList[i].ssid, actual.networkList[i].ssid); in assertNativePnoSettingsEquals()
379 expected.networkList[i].flags, actual.networkList[i].flags); in assertNativePnoSettingsEquals()
381 expected.networkList[i].auth_bit_field, actual.networkList[i].auth_bit_field); in assertNativePnoSettingsEquals()
DWificondControlTest.java136 networkList = new WifiNative.PnoNetwork[2];
137 networkList[0] = new WifiNative.PnoNetwork();
138 networkList[1] = new WifiNative.PnoNetwork();
139 networkList[0].ssid = TEST_QUOTED_SSID_1;
140 networkList[0].flags = WifiScanner.PnoSettings.PnoNetwork.FLAG_DIRECTED_SCAN;
141 networkList[1].ssid = TEST_QUOTED_SSID_2;
142 networkList[1].flags = 0;
831 if (settings.pnoNetworks == null || mExpectedPnoSettings.networkList == null) { in matches()
834 if (settings.pnoNetworks.size() != mExpectedPnoSettings.networkList.length) { in matches()
839 if (!mExpectedPnoSettings.networkList[i].ssid.equals(NativeUtil.encodeSsid( in matches()
[all …]
DWifiConfigStoreTest.java372 NetworkListStoreData networkList = new NetworkListStoreData(mContext); in testReadWifiConfigStoreData() local
373 mWifiConfigStore.registerStoreData(networkList); in testReadWifiConfigStoreData()
399 userConfigs, networkList.getUserConfigurations()); in testReadWifiConfigStoreData()
415 NetworkListStoreData networkList = new NetworkListStoreData(mContext); in testWriteWifiConfigStoreData() local
416 mWifiConfigStore.registerStoreData(networkList); in testWriteWifiConfigStoreData()
423 networkList.setUserConfigurations(userConfigs); in testWriteWifiConfigStoreData()
DWifiNativeTest.java142 networkList = new WifiNative.PnoNetwork[2];
143 networkList[0] = new WifiNative.PnoNetwork();
144 networkList[1] = new WifiNative.PnoNetwork();
145 networkList[0].ssid = TEST_QUOTED_SSID_1;
146 networkList[1].ssid = TEST_QUOTED_SSID_2;
DWifiConfigManagerTest.java303 List<WifiConfiguration> networkList = new ArrayList<>(); in testAddMultipleNetworksAndEnsureEphemeralNetworkNotPersisted() local
304 networkList.addAll(networkListStoreData.first); in testAddMultipleNetworksAndEnsureEphemeralNetworkNotPersisted()
305 networkList.addAll(networkListStoreData.second); in testAddMultipleNetworksAndEnsureEphemeralNetworkNotPersisted()
306 assertFalse(isNetworkInConfigStoreData(ephemeralNetwork, networkList)); in testAddMultipleNetworksAndEnsureEphemeralNetworkNotPersisted()
307 assertTrue(isNetworkInConfigStoreData(openNetwork, networkList)); in testAddMultipleNetworksAndEnsureEphemeralNetworkNotPersisted()
3562 List<WifiConfiguration> networkList = new ArrayList<>(); in isNetworkInConfigStoreData() local
3563 networkList.addAll(networkListStoreData.first); in isNetworkInConfigStoreData()
3564 networkList.addAll(networkListStoreData.second); in isNetworkInConfigStoreData()
3565 return isNetworkInConfigStoreData(configuration, networkList); in isNetworkInConfigStoreData()
3572 WifiConfiguration configuration, List<WifiConfiguration> networkList) { in isNetworkInConfigStoreData() argument
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DThreeGPPNetworkElementTest.java133 List<CellularNetwork> networkList = new ArrayList<>(); in parseBufferWithTestData() local
134 networkList.add(TEST_NETWORK1); in parseBufferWithTestData()
135 networkList.add(TEST_NETWORK2); in parseBufferWithTestData()
136 ThreeGPPNetworkElement expected = new ThreeGPPNetworkElement(networkList); in parseBufferWithTestData()
DANQPParserTest.java366 List<CellularNetwork> networkList = new ArrayList<>(); in parseThreeGPPNetworkElement() local
367 networkList.add(new CellularNetwork(Arrays.asList(plmnList))); in parseThreeGPPNetworkElement()
368 ThreeGPPNetworkElement expected = new ThreeGPPNetworkElement(networkList); in parseThreeGPPNetworkElement()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DNetworkListStoreData.java152 private void serializeNetworkList(XmlSerializer out, List<WifiConfiguration> networkList) in serializeNetworkList() argument
154 if (networkList == null) { in serializeNetworkList()
157 for (WifiConfiguration network : networkList) { in serializeNetworkList()
211 List<WifiConfiguration> networkList = new ArrayList<>(); in parseNetworkList() local
218 networkList.add(config); in parseNetworkList()
224 return networkList; in parseNetworkList()
DWificondControl.java467 if (pnoSettings.networkList != null) { in startPnoScan()
468 for (WifiNative.PnoNetwork network : pnoSettings.networkList) { in startPnoScan()
DWifiConnectivityManager.java916 pnoSettings.networkList = new PnoSettings.PnoNetwork[listSize]; in startDisconnectedPnoScan()
917 pnoSettings.networkList = pnoNetworkList.toArray(pnoSettings.networkList); in startDisconnectedPnoScan()
DWifiNative.java981 public PnoNetwork[] networkList; field in WifiNative.PnoSettings
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondPnoScannerTest.java277 pnoSettings.networkList = in forceRestartHwDisconnectedPnoScanWhenSettingsChange()
278 Arrays.copyOf(pnoSettings.networkList, pnoSettings.networkList.length + 1); in forceRestartHwDisconnectedPnoScanWhenSettingsChange()
279 pnoSettings.networkList[pnoSettings.networkList.length - 1] = in forceRestartHwDisconnectedPnoScanWhenSettingsChange()
366 pnoSettings.networkList = new WifiNative.PnoNetwork[2]; in createDummyPnoSettings()
367 pnoSettings.networkList[0] = createDummyPnoNetwork("ssid_pno_1"); in createDummyPnoSettings()
368 pnoSettings.networkList[1] = createDummyPnoNetwork("ssid_pno_2"); in createDummyPnoSettings()
DWifiScanningServiceTest.java1744 requestPnoSettings.networkList = in createPnoSettings()
1748 requestPnoSettings.networkList[i++] = in createPnoSettings()
1761 nativePnoSettings.networkList = in createPnoSettings()
1762 new WifiNative.PnoNetwork[requestPnoSettings.networkList.length]; in createPnoSettings()
1763 for (i = 0; i < requestPnoSettings.networkList.length; i++) { in createPnoSettings()
1764 nativePnoSettings.networkList[i] = new WifiNative.PnoNetwork(); in createPnoSettings()
1765 nativePnoSettings.networkList[i].ssid = requestPnoSettings.networkList[i].ssid; in createPnoSettings()
1766 nativePnoSettings.networkList[i].flags = requestPnoSettings.networkList[i].flags; in createPnoSettings()
1767 nativePnoSettings.networkList[i].auth_bit_field = in createPnoSettings()
1768 requestPnoSettings.networkList[i].authBitField; in createPnoSettings()
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java602 public PnoNetwork[] networkList; field in WifiScanner.PnoSettings
619 if (networkList != null) { in writeToParcel()
620 dest.writeInt(networkList.length); in writeToParcel()
621 for (int i = 0; i < networkList.length; i++) { in writeToParcel()
622 dest.writeString(networkList[i].ssid); in writeToParcel()
623 dest.writeByte(networkList[i].flags); in writeToParcel()
624 dest.writeByte(networkList[i].authBitField); in writeToParcel()
645 settings.networkList = new PnoNetwork[numNetworks];
651 settings.networkList[i] = network;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluator.java174 List<PasspointNetworkCandidate> networkList, String currentNetworkSsid) { in findBestNetwork() argument
177 for (PasspointNetworkCandidate candidate : networkList) { in findBestNetwork()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningServiceImpl.java1659 nativePnoSetting.networkList = in convertSettingsToPnoNative()
1660 new WifiNative.PnoNetwork[pnoSettings.networkList.length]; in convertSettingsToPnoNative()
1661 for (int i = 0; i < pnoSettings.networkList.length; i++) { in convertSettingsToPnoNative()
1662 nativePnoSetting.networkList[i] = new WifiNative.PnoNetwork(); in convertSettingsToPnoNative()
1663 nativePnoSetting.networkList[i].ssid = pnoSettings.networkList[i].ssid; in convertSettingsToPnoNative()
1664 nativePnoSetting.networkList[i].flags = pnoSettings.networkList[i].flags; in convertSettingsToPnoNative()
1665 nativePnoSetting.networkList[i].auth_bit_field = in convertSettingsToPnoNative()
1666 pnoSettings.networkList[i].authBitField; in convertSettingsToPnoNative()
2244 if (pnoSettings.networkList != null) { in describeTo()
2245 for (int i = 0; i < pnoSettings.networkList.length; i++) { in describeTo()
[all …]
DWificondScannerImpl.java465 newScanSettings.setHwPnoScan(mPnoSettings.networkList, mPnoEventHandler); in processPendingScans()
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java398 List<ScoredNetwork> networkList = networksByType.get(network.networkKey.type); in updateScores() local
399 if (networkList == null) { in updateScores()
400 networkList = new ArrayList<>(); in updateScores()
401 networksByType.put(network.networkKey.type, networkList); in updateScores()
403 networkList.add(network); in updateScores()