/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkListStoreDataTest.java | 245 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 …]
|
D | ScanTestUtil.java | 372 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()
|
D | WificondControlTest.java | 136 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 …]
|
D | WifiConfigStoreTest.java | 372 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()
|
D | WifiNativeTest.java | 142 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;
|
D | WifiConfigManagerTest.java | 303 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/ |
D | ThreeGPPNetworkElementTest.java | 133 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()
|
D | ANQPParserTest.java | 366 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/ |
D | NetworkListStoreData.java | 152 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()
|
D | WificondControl.java | 467 if (pnoSettings.networkList != null) { in startPnoScan() 468 for (WifiNative.PnoNetwork network : pnoSettings.networkList) { in startPnoScan()
|
D | WifiConnectivityManager.java | 916 pnoSettings.networkList = new PnoSettings.PnoNetwork[listSize]; in startDisconnectedPnoScan() 917 pnoSettings.networkList = pnoNetworkList.toArray(pnoSettings.networkList); in startDisconnectedPnoScan()
|
D | WifiNative.java | 981 public PnoNetwork[] networkList; field in WifiNative.PnoSettings
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WificondPnoScannerTest.java | 277 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()
|
D | WifiScanningServiceTest.java | 1744 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/ |
D | WifiScanner.java | 602 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/ |
D | PasspointNetworkEvaluator.java | 174 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/ |
D | WifiScanningServiceImpl.java | 1659 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 …]
|
D | WificondScannerImpl.java | 465 newScanSettings.setHwPnoScan(mPnoSettings.networkList, mPnoEventHandler); in processPendingScans()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScoreService.java | 398 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()
|