Home
last modified time | relevance | path

Searched refs:pnoSettings (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondPnoScannerTest.java97 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in startHwDisconnectedPnoScan() local
102 startSuccessfulPnoScan(null, pnoSettings, null, pnoEventHandler); in startHwDisconnectedPnoScan()
103 expectSuccessfulHwDisconnectedPnoScan(order, pnoSettings, pnoEventHandler, scanResults); in startHwDisconnectedPnoScan()
118 WifiNative.PnoSettings pnoSettings = createDummyPnoSettings(false); in ignoreHwDisconnectedPnoScanStopFailure() local
121 startSuccessfulPnoScan(null, pnoSettings, null, pnoEventHandler); in ignoreHwDisconnectedPnoScanStopFailure()
130 startSuccessfulPnoScan(null, pnoSettings, null, pnoEventHandler); in ignoreHwDisconnectedPnoScanStopFailure()
134 expectSuccessfulHwDisconnectedPnoScan(order, pnoSettings, pnoEventHandler, scanResults); in ignoreHwDisconnectedPnoScanStopFailure()
151 WifiNative.PnoSettings pnoSettings = new WifiNative.PnoSettings(); in createDummyPnoSettings() local
152 pnoSettings.isConnected = isConnected; in createDummyPnoSettings()
153 pnoSettings.networkList = new WifiNative.PnoNetwork[2]; in createDummyPnoSettings()
[all …]
DWifiScanningServiceTest.java2190 WifiScanner.PnoSettings pnoSettings) { in sendPnoScanRequest() argument
2194 pnoParams.putParcelable(WifiScanner.PNO_PARAMS_PNO_SETTINGS_KEY, pnoSettings); in sendPnoScanRequest()
2259 Pair<WifiScanner.PnoSettings, WifiNative.PnoSettings> pnoSettings = in testSuccessfulHwPnoScanWithNoBackgroundScan() local
2262 sendPnoScanRequest(controlChannel, requestId, scanSettings.first, pnoSettings.first); in testSuccessfulHwPnoScanWithNoBackgroundScan()
2263 expectHwPnoScan(order, handler, requestId, pnoSettings.second, scanResults); in testSuccessfulHwPnoScanWithNoBackgroundScan()
2282 Pair<WifiScanner.PnoSettings, WifiNative.PnoSettings> pnoSettings = in rejectHwPnoScanRequestWhenScannerImplCreateFails() local
2285 sendPnoScanRequest(controlChannel, 122, scanSettings.first, pnoSettings.first); in rejectHwPnoScanRequestWhenScannerImplCreateFails()
2478 Pair<WifiScanner.PnoSettings, WifiNative.PnoSettings> pnoSettings = in hwPnoScanScanAfterDuplicateScanEnable() local
2481 sendPnoScanRequest(controlChannel, requestId, scanSettings.first, pnoSettings.first); in hwPnoScanScanAfterDuplicateScanEnable()
2482 expectHwPnoScan(order, handler, requestId, pnoSettings.second, scanResults); in hwPnoScanScanAfterDuplicateScanEnable()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiScannerTest.java162 PnoSettings pnoSettings = new PnoSettings(); in canSerializeAndDeserializePnoSettings() local
169 pnoSettings.networkList = new PnoNetwork[]{pnoNetwork1, pnoNetwork2}; in canSerializeAndDeserializePnoSettings()
170 pnoSettings.isConnected = TEST_PNOSETTINGS_IS_CONNECTED; in canSerializeAndDeserializePnoSettings()
171 pnoSettings.min5GHzRssi = TEST_PNOSETTINGS_MIN_5GHZ_RSSI; in canSerializeAndDeserializePnoSettings()
172 pnoSettings.min24GHzRssi = TEST_PNOSETTINGS_MIN_2GHZ_RSSI; in canSerializeAndDeserializePnoSettings()
173 pnoSettings.initialScoreMax = TEST_PNOSETTINGS_INITIAL_SCORE_MAX; in canSerializeAndDeserializePnoSettings()
174 pnoSettings.currentConnectionBonus = TEST_PNOSETTINGS_CURRENT_CONNECTION_BONUS; in canSerializeAndDeserializePnoSettings()
175 pnoSettings.sameNetworkBonus = TEST_PNOSETTINGS_SAME_NETWORK_BONUS; in canSerializeAndDeserializePnoSettings()
176 pnoSettings.secureBonus = TEST_PNOSETTINGS_SECURE_BONUS; in canSerializeAndDeserializePnoSettings()
177 pnoSettings.band5GHzBonus = TEST_PNOSETTINGS_BAND_5GHZ_BONUS; in canSerializeAndDeserializePnoSettings()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/wificond/
DPnoSettingsTest.java71 PnoSettings pnoSettings = new PnoSettings(); in canSerializeAndDeserialize() local
72 pnoSettings.intervalMs = TEST_INTERVAL_MS; in canSerializeAndDeserialize()
73 pnoSettings.min2gRssi = TEST_MIN_2G_RSSI; in canSerializeAndDeserialize()
74 pnoSettings.min5gRssi = TEST_MIN_5G_RSSI; in canSerializeAndDeserialize()
75 pnoSettings.pnoNetworks = new ArrayList<>(Arrays.asList(mPnoNetwork1, mPnoNetwork2)); in canSerializeAndDeserialize()
78 pnoSettings.writeToParcel(parcel, 0); in canSerializeAndDeserialize()
83 assertEquals(pnoSettings, pnoSettingsDeserialized); in canSerializeAndDeserialize()
84 assertEquals(pnoSettings.hashCode(), pnoSettingsDeserialized.hashCode()); in canSerializeAndDeserialize()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningServiceImpl.java1615 PnoSettings pnoSettings = in processMessage() local
1617 if (mScannerImpl.isHwPnoSupported(pnoSettings.isConnected)) { in processMessage()
1658 PnoSettings pnoSettings = in processMessage() local
1662 if (addHwPnoScanRequest(ci, msg.arg2, scanSettings, pnoSettings)) { in processMessage()
1733 PnoSettings pnoSettings) { in convertSettingsToPnoNative() argument
1736 nativePnoSetting.min5GHzRssi = pnoSettings.min5GHzRssi; in convertSettingsToPnoNative()
1737 nativePnoSetting.min24GHzRssi = pnoSettings.min24GHzRssi; in convertSettingsToPnoNative()
1738 nativePnoSetting.initialScoreMax = pnoSettings.initialScoreMax; in convertSettingsToPnoNative()
1739 nativePnoSetting.currentConnectionBonus = pnoSettings.currentConnectionBonus; in convertSettingsToPnoNative()
1740 nativePnoSetting.sameNetworkBonus = pnoSettings.sameNetworkBonus; in convertSettingsToPnoNative()
[all …]
DWificondScannerImpl.java421 private boolean startHwPnoScan(WifiNative.PnoSettings pnoSettings) { in startHwPnoScan() argument
422 return mWifiNative.startPnoScan(mIfaceName, pnoSettings); in startHwPnoScan()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConnectivityManager.java1005 PnoSettings pnoSettings = new PnoSettings(); in startDisconnectedPnoScan() local
1015 pnoSettings.networkList = new PnoSettings.PnoNetwork[listSize]; in startDisconnectedPnoScan()
1016 pnoSettings.networkList = pnoNetworkList.toArray(pnoSettings.networkList); in startDisconnectedPnoScan()
1017 pnoSettings.min5GHzRssi = mScoringParams.getEntryRssi(ScoringParams.BAND5); in startDisconnectedPnoScan()
1018 pnoSettings.min24GHzRssi = mScoringParams.getEntryRssi(ScoringParams.BAND2); in startDisconnectedPnoScan()
1019 pnoSettings.initialScoreMax = initialScoreMax(); in startDisconnectedPnoScan()
1020 pnoSettings.currentConnectionBonus = mCurrentConnectionBonus; in startDisconnectedPnoScan()
1021 pnoSettings.sameNetworkBonus = mSameNetworkBonus; in startDisconnectedPnoScan()
1022 pnoSettings.secureBonus = mSecureBonus; in startDisconnectedPnoScan()
1023 pnoSettings.band5GHzBonus = mBand5GHzBonus; in startDisconnectedPnoScan()
[all …]
DWificondControl.java724 public boolean startPnoScan(@NonNull String ifaceName, WifiNative.PnoSettings pnoSettings) { in startPnoScan() argument
732 settings.intervalMs = pnoSettings.periodInMs; in startPnoScan()
733 settings.min2gRssi = pnoSettings.min24GHzRssi; in startPnoScan()
734 settings.min5gRssi = pnoSettings.min5GHzRssi; in startPnoScan()
735 if (pnoSettings.networkList != null) { in startPnoScan()
736 for (WifiNative.PnoNetwork network : pnoSettings.networkList) { in startPnoScan()
DWifiNative.java1328 public boolean startPnoScan(@NonNull String ifaceName, PnoSettings pnoSettings) { in startPnoScan() argument
1329 return mWificondControl.startPnoScan(ifaceName, pnoSettings); in startPnoScan()
/frameworks/base/wifi/java/android/net/wifi/
DWifiScanner.java931 private void startPnoScan(ScanSettings scanSettings, PnoSettings pnoSettings, int key) { in startPnoScan() argument
937 pnoParams.putParcelable(PNO_PARAMS_PNO_SETTINGS_KEY, pnoSettings); in startPnoScan()
951 public void startConnectedPnoScan(ScanSettings scanSettings, PnoSettings pnoSettings, in startConnectedPnoScan() argument
954 Preconditions.checkNotNull(pnoSettings, "pnoSettings cannot be null"); in startConnectedPnoScan()
958 pnoSettings.isConnected = true; in startConnectedPnoScan()
959 startPnoScan(scanSettings, pnoSettings, key); in startConnectedPnoScan()
973 public void startDisconnectedPnoScan(ScanSettings scanSettings, PnoSettings pnoSettings, in startDisconnectedPnoScan() argument
976 Preconditions.checkNotNull(pnoSettings, "pnoSettings cannot be null"); in startDisconnectedPnoScan()
980 pnoSettings.isConnected = false; in startDisconnectedPnoScan()
981 startPnoScan(scanSettings, pnoSettings, key); in startDisconnectedPnoScan()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConnectivityManagerTest.java248 public void answer(ScanSettings settings, PnoSettings pnoSettings, in mockWifiScanner()
254 public void answer(ScanSettings settings, PnoSettings pnoSettings, in mockWifiScanner()