/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanResultMatchInfoTest.java | 44 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration() 49 ScanResultMatchInfo.fromScanResult(scan.getScanResult())); in testScanResultMatchesWifiConfiguration() 62 assertFalse(scan1.getScanResult().BSSID.equals(scan2.getScanResult().BSSID)); in testDifferentBssidScanResultsMatch() 63 assertEquals(ScanResultMatchInfo.fromScanResult(scan1.getScanResult()), in testDifferentBssidScanResultsMatch() 64 ScanResultMatchInfo.fromScanResult(scan2.getScanResult())); in testDifferentBssidScanResultsMatch() 82 assertTrue(ScanResultMatchInfo.fromScanResult(scanOpen1.getScanResult()) in testDifferentNetworkScanResultsDontMatch() 83 != ScanResultMatchInfo.fromScanResult(scanOpen2.getScanResult())); in testDifferentNetworkScanResultsDontMatch() 84 assertTrue(ScanResultMatchInfo.fromScanResult(scanOpen1.getScanResult()) in testDifferentNetworkScanResultsDontMatch() 85 != ScanResultMatchInfo.fromScanResult(scanPsk.getScanResult())); in testDifferentNetworkScanResultsDontMatch() 100 ScanResultMatchInfo key2 = ScanResultMatchInfo.fromScanResult(scanDetail.getScanResult()); in testEqualityRulesForTransitionMode() [all …]
|
D | SavedNetworkEvaluatorTest.java | 237 eq(scanDetails.get(0).getScanResult()), in setCandidateScanResultsForAllSavedNetworks() 241 eq(scanDetails.get(1).getScanResult()), in setCandidateScanResultsForAllSavedNetworks() 245 eq(scanDetails.get(2).getScanResult()), in setCandidateScanResultsForAllSavedNetworks() 271 ScanResult chosenScanResult = scanDetails.get(1).getScanResult(); in chooseStrongerRssi2GNetwork() 299 ScanResult chosenScanResult = scanDetails.get(1).getScanResult(); in chooseStrongerRssi5GNetwork() 326 ScanResult chosenScanResult = scanDetails.get(1).getScanResult(); in chooseSecureNetworkOverOpenNetwork() 353 ScanResult chosenScanResult = scanDetails.get(1).getScanResult(); in choose5GNetworkOver2GNetwork() 385 ScanResult chosenScanResult = scanDetails.get(0).getScanResult(); in stickToCurrentNetwork() 418 ScanResult chosenScanResult = scanDetails.get(0).getScanResult(); in stickToCurrentBSSID() 458 ScanResult chosenScanResult = scanDetails.get(2).getScanResult(); in currentBssidAwardForAllBssidsWithinTheSameNetworkWhenFirmwareRoamingSupported() [all …]
|
D | ScoredNetworkEvaluatorTest.java | 178 scanDetailsAndConfigs.getScanDetails().get(0).getScanResult()); in testUpdate_allNetworksUnscored() 181 scanDetailsAndConfigs.getScanDetails().get(1).getScanResult()); in testUpdate_allNetworksUnscored() 211 scanDetailsAndConfigs.getScanDetails().get(1).getScanResult()); in testUpdate_oneScored_oneUnscored() 294 ScanResult scanResult = scanDetails.get(1).getScanResult(); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable() 343 ScanResult scanResult = scanDetails.get(1).getScanResult(); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork() 387 scanResults[i] = scanDetails.get(i).getScanResult(); in testEvaluateNetworks_chooseHigherScoredEphemeralNetwork() 467 scanDetails.get(0).getScanResult(), candidate); in testEvaluateNetworks_chooseSavedNetworkWithExternalScore() 503 scanDetails.get(1).getScanResult(), candidate); in testEvaluateNetworks_chooseSavedNetworkWithHigherExternalScore() 540 scanDetails.get(0).getScanResult(), candidate); in testEvaluateNetworks_chooseExternallyScoredOverUntrustedNetworksWithSameScore() 583 ScanResult ephemeralScanResult = scanDetails.get(1).getScanResult(); in testEvaluateNetworks_chooseUntrustedWithHigherScoreThanExternallyScoredNetwork() [all …]
|
D | CarrierNetworkNotifierTest.java | 750 scanResults.get(0).getScanResult().level = MIN_RSSI_LEVEL; in onlyNetworkIsRecommended() 753 ScanResult expected = scanResults.get(0).getScanResult(); in onlyNetworkIsRecommended() 761 scanResults.get(0).getScanResult().level = MIN_RSSI_LEVEL; in networkWithHighestRssiIsRecommended() 762 scanResults.get(1).getScanResult().level = MIN_RSSI_LEVEL + 1; in networkWithHighestRssiIsRecommended() 765 ScanResult expected = scanResults.get(1).getScanResult(); in networkWithHighestRssiIsRecommended() 778 scanResults.get(0).getScanResult().level = MIN_RSSI_LEVEL + 1; in blacklistBestNetworkSsid_shouldNeverRecommendNetwork() 779 scanResults.get(1).getScanResult().level = MIN_RSSI_LEVEL; in blacklistBestNetworkSsid_shouldNeverRecommendNetwork() 816 ScanResult expected = mCarrierNetworks.get(0).getScanResult(); in connectToNetwork_shouldRemoveSsidFromBlacklist()
|
D | OpenNetworkNotifierTest.java | 744 scanResults.get(0).getScanResult().level = MIN_RSSI_LEVEL; in onlyNetworkIsRecommended() 747 ScanResult expected = scanResults.get(0).getScanResult(); in onlyNetworkIsRecommended() 755 scanResults.get(0).getScanResult().level = MIN_RSSI_LEVEL; in networkWithHighestRssiIsRecommended() 756 scanResults.get(1).getScanResult().level = MIN_RSSI_LEVEL + 1; in networkWithHighestRssiIsRecommended() 759 ScanResult expected = scanResults.get(1).getScanResult(); in networkWithHighestRssiIsRecommended() 773 scanResults.get(0).getScanResult().level = MIN_RSSI_LEVEL + 1; in blacklistBestNetworkSsid_shouldNeverRecommendNetwork() 774 scanResults.get(1).getScanResult().level = MIN_RSSI_LEVEL; in blacklistBestNetworkSsid_shouldNeverRecommendNetwork() 811 ScanResult expected = mOpenNetworks.get(0).getScanResult(); in connectToNetwork_shouldRemoveSsidFromBlacklist()
|
D | WifiCandidatesTest.java | 73 doReturn(mScanResult1).when(mScanDetail1).getScanResult(); in setUp() 74 doReturn(mScanResult2).when(mScanDetail2).getScanResult(); in setUp() 85 doReturn(null).when(mScanDetail2).getScanResult(); in testDontDieFromNulls()
|
D | WifiNetworkSelectorTest.java | 174 config.networkId, scanDetail.getScanResult(), 100); in evaluateNetworks() 395 ScanResult chosenScanResult = scanDetails.get(0).getScanResult(); in verifyNoMinimumTimeGapWhenDisconnected() 443 ScanResult chosenScanResult = scanDetails.get(0).getScanResult(); in openNetworkIsNotSufficient() 492 ScanResult chosenScanResult = scanDetails.get(0).getScanResult(); in lowRssi5GNetworkIsNotSufficient() 543 ScanResult chosenScanResult = scanDetails.get(0).getScanResult(); in noInternetAccessNetworkIsNotSufficient() 689 .setCandidate(scanDetailsAndConfigs.getScanDetails().get(0).getScanResult()); in setUserConnectChoice() 742 .setCandidate(scanDetailsAndConfigs.getScanDetails().get(1).getScanResult()); in userConnectChoiceOverridesNetworkEvaluators() 809 .setCandidate(scanDetailsAndConfigs.getScanDetails().get(1).getScanResult()); in testMultipleEvaluatorsSetsNominatorIdCorrectly() 1163 scanDetails.get(0).getScanResult(), candidate); in testStayOrTryToSwitchImpl() 1184 scanDetails.get(0).getScanResult(), candidate); in testStayOrTryToSwitchImpl()
|
D | WificondControlTest.java | 620 returnedScanResults.get(i).getScanResult().SSID.getBytes()); in testGetScanResults() 622 returnedScanResults.get(i).getScanResult().frequency); in testGetScanResults() 624 returnedScanResults.get(i).getScanResult().timestamp); in testGetScanResults() 661 ScanResult scanResult = returnedScanResults.get(0).getScanResult(); in testGetScanResultsForCarrierAp() 675 scanResult = returnedScanResults.get(0).getScanResult(); in testGetScanResultsForCarrierAp() 713 returnedScanResults.get(i).getScanResult().SSID.getBytes()); in testGetScanResultsWithRadioChainInfo() 715 returnedScanResults.get(i).getScanResult().frequency); in testGetScanResultsWithRadioChainInfo() 717 returnedScanResults.get(i).getScanResult().timestamp); in testGetScanResultsWithRadioChainInfo() 719 returnedScanResults.get(i).getScanResult().radioChainInfos); in testGetScanResultsWithRadioChainInfo()
|
D | WifiNetworkSelectorTestUtil.java | 101 ScanResult scanResult = scanDetails.get(i).getScanResult(); in checkConsistencyOfScanDetailsAndWifiConfigs() 345 ScanResult scanResult = scanDetail.getScanResult(); in configureScoreCache() 385 ScanResultUtil.createNetworkFromScanResult(scanDetail.getScanResult()); in setupEphemeralNetwork()
|
D | WifiConfigManagerTest.java | 1589 openNetworkScanDetail.getScanResult().SSID = in testNoMatchScanDetailToNetwork() 1590 wepNetworkScanDetail.getScanResult().SSID; in testNoMatchScanDetailToNetwork() 1591 wepNetworkScanDetail.getScanResult().capabilities = in testNoMatchScanDetailToNetwork() 1592 pskNetworkScanDetail.getScanResult().capabilities; in testNoMatchScanDetailToNetwork() 1593 pskNetworkScanDetail.getScanResult().capabilities = in testNoMatchScanDetailToNetwork() 1594 eapNetworkScanDetail.getScanResult().capabilities; in testNoMatchScanDetailToNetwork() 1595 eapNetworkScanDetail.getScanResult().capabilities = in testNoMatchScanDetailToNetwork() 1596 saeNetworkScanDetail.getScanResult().capabilities; in testNoMatchScanDetailToNetwork() 1597 saeNetworkScanDetail.getScanResult().capabilities = in testNoMatchScanDetailToNetwork() 1598 oweNetworkScanDetail.getScanResult().capabilities; in testNoMatchScanDetailToNetwork() [all …]
|
D | ClientModeImplTest.java | 1008 when(mScanDetailCache.getScanResult(sBSSID)).thenReturn( in connect() 1009 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq).getScanResult()); in connect() 1076 when(mScanDetailCache.getScanResult(sBSSID)).thenReturn( in testSetAnonymousIdentityWhenConnectionIsEstablishedNoPseudonym() 1077 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq).getScanResult()); in testSetAnonymousIdentityWhenConnectionIsEstablishedNoPseudonym() 1125 when(mScanDetailCache.getScanResult(sBSSID)).thenReturn( in testSetAnonymousIdentityWhenConnectionIsEstablishedWithPseudonym() 1126 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq).getScanResult()); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithPseudonym() 1175 when(mScanDetailCache.getScanResult(sBSSID)).thenReturn( in testSetAnonymousIdentityWhenConnectionIsEstablishedWithNonDecoratedPseudonym() 1176 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq).getScanResult()); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithNonDecoratedPseudonym() 2056 when(mScanDetailCache.getScanResult(sBSSID)).thenReturn( in disconnectFromNetworkWhenRemovedWhileObtainingIpAddr() 2057 getGoogleGuestScanDetail(TEST_RSSI, sBSSID, sFreq).getScanResult()); in disconnectFromNetworkWhenRemovedWhileObtainingIpAddr() [all …]
|
D | CarrierNetworkEvaluatorTest.java | 135 scanDetail.getScanResult()); in configureNewSsid() 137 assertEquals(ScanResultMatchInfo.fromScanResult(scanDetail.getScanResult()), in configureNewSsid()
|
D | ScanResults.java | 163 mScanResults[i] = nativeResults[i].getScanResult(); in ScanResults()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | ScanResultUtilTest.java | 204 assertNotNull("ScanResult was null", output.getScanResult()); in validateScanDetail() 208 output.getScanResult().SSID); in validateScanDetail() 210 output.getScanResult().wifiSsid); in validateScanDetail() 216 output.getScanResult().frequency); in validateScanDetail() 218 output.getScanResult().level); in validateScanDetail() 220 output.getScanResult().capabilities); in validateScanDetail() 222 output.getScanResult().timestamp); in validateScanDetail() 224 output.getScanResult().informationElements); in validateScanDetail() 226 output.getScanResult().anqpLines); in validateScanDetail()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ScanDetailCache.java | 75 public ScanResult getScanResult(String bssid) { in getScanResult() method in ScanDetailCache 77 return scanDetail == null ? null : scanDetail.getScanResult(); in getScanResult() 149 ScanResult a = ((ScanDetail) o1).getScanResult(); in sort() 150 ScanResult b = ((ScanDetail) o2).getScanResult(); in sort() 179 ScanResult result = scanDetail.getScanResult(); in toString()
|
D | WifiCandidates.java | 219 return scanDetail.getScanResult().level; in getScanRssi() 224 return scanDetail.getScanResult().frequency; in getFrequency() 354 ScanResult scanResult = scanDetail.getScanResult(); in add()
|
D | ScoredNetworkEvaluator.java | 95 ScanResult scanResult = scanDetails.get(i).getScanResult(); in updateNetworkScoreCache() 139 ScanResult scanResult = scanDetail.getScanResult(); in evaluateNetworks() 226 ScanResult scanResult = scanDetail.getScanResult(); in trackUntrustedCandidate()
|
D | WifiNetworkSelector.java | 297 ScanResult result = detail.getScanResult(); in is5GHzNetworkAvailable() 383 ScanResult scanResult = scanDetail.getScanResult(); in filterScanResults() 462 ScanResult scanResult = scanDetail.getScanResult(); in getFilteredScanDetailsForOpenUnsavedNetworks() 497 ScanResult scanResult = scanDetail.getScanResult(); in getFilteredScanDetailsForCarrierUnsavedNetworks() 802 scanDetail.getScanResult(), best.getEvaluatorScore()); in selectNetwork()
|
D | NetworkSuggestionEvaluator.java | 85 ScanResult scanResult = scanDetail.getScanResult(); in evaluateNetworks() 289 .max(Comparator.comparing(e -> e.matchingScanDetail.getScanResult().level)) in findConnectableNetworksAndPickBest()
|
D | CarrierNetworkEvaluator.java | 99 ScanResult scanResult = scanDetail.getScanResult(); in evaluateNetworks()
|
D | ScanDetail.java | 117 public ScanResult getScanResult() { in getScanResult() method in ScanDetail
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluator.java | 117 ScanResultUtil.createQuotedSSID(s.getScanResult().SSID))) { in evaluateNetworks() 122 + WifiNetworkSelector.toScanId(s.getScanResult())); in evaluateNetworks() 132 ScanResult scanResult = scanDetail.getScanResult(); in evaluateNetworks() 165 bestNetwork.mScanDetail.getScanResult(), 0); in evaluateNetworks() 251 networkInfo.mScanDetail.getScanResult(), 0); in createWifiConfigForProvider() 277 scanDetail, mPasspointManager.getANQPElements(scanDetail.getScanResult()), in findBestNetwork()
|
D | PasspointNetworkScore.java | 185 score += RSSI_SCORE.lookupScore(scanDetail.getScanResult().level, isActiveNetwork); in calculateScore()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | WificondScannerImpl.java | 328 ScanResult result = mNativePnoScanResults.get(i).getScanResult(); in pollLatestScanDataForPno() 380 ScanResult result = mNativeScanResults.get(i).getScanResult(); in pollLatestScanData() 490 return r.getScanResult(); in dump() 497 return r.getScanResult(); in dump()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | BaseWifiScannerImplTest.java | 436 if (detail.getScanResult().timestamp > approxScanStartUs) { in singleScanWhereSupplicantReturnsSomeOldResults() 437 fullResults.add(detail.getScanResult()); in singleScanWhereSupplicantReturnsSomeOldResults()
|