/frameworks/base/wifi/tests/src/android/net/wifi/nl80211/ |
D | DeviceWiphyCapabilitiesTest.java | 21 import android.net.wifi.ScanResult; 45 capa.setWifiStandardSupport(ScanResult.WIFI_STANDARD_11N, true); in canSerializeAndDeserialize() 46 capa.setWifiStandardSupport(ScanResult.WIFI_STANDARD_11AC, true); in canSerializeAndDeserialize() 47 capa.setWifiStandardSupport(ScanResult.WIFI_STANDARD_11AX, false); in canSerializeAndDeserialize() 48 capa.setChannelWidthSupported(ScanResult.CHANNEL_WIDTH_160MHZ, true); in canSerializeAndDeserialize() 49 capa.setChannelWidthSupported(ScanResult.CHANNEL_WIDTH_80MHZ_PLUS_MHZ, false); in canSerializeAndDeserialize() 72 capa.setWifiStandardSupport(ScanResult.WIFI_STANDARD_11N, false); in testMappingWifiStandardIntoChannelWidthSupport() 73 capa.setWifiStandardSupport(ScanResult.WIFI_STANDARD_11AC, false); in testMappingWifiStandardIntoChannelWidthSupport() 74 capa.setWifiStandardSupport(ScanResult.WIFI_STANDARD_11AX, false); in testMappingWifiStandardIntoChannelWidthSupport() 75 assertEquals(true, capa.isChannelWidthSupported(ScanResult.CHANNEL_WIDTH_20MHZ)); in testMappingWifiStandardIntoChannelWidthSupport() [all …]
|
/frameworks/base/wifi/java/src/android/net/wifi/nl80211/ |
D | DeviceWiphyCapabilities.java | 22 import android.net.wifi.ScanResult; 79 case ScanResult.WIFI_STANDARD_LEGACY: in isWifiStandardSupported() 81 case ScanResult.WIFI_STANDARD_11N: in isWifiStandardSupported() 83 case ScanResult.WIFI_STANDARD_11AC: in isWifiStandardSupported() 85 case ScanResult.WIFI_STANDARD_11AX: in isWifiStandardSupported() 87 case ScanResult.WIFI_STANDARD_11BE: in isWifiStandardSupported() 104 case ScanResult.WIFI_STANDARD_11N: in setWifiStandardSupport() 107 case ScanResult.WIFI_STANDARD_11AC: in setWifiStandardSupport() 110 case ScanResult.WIFI_STANDARD_11AX: in setWifiStandardSupport() 113 case ScanResult.WIFI_STANDARD_11BE: in setWifiStandardSupport() [all …]
|
/frameworks/base/core/java/android/companion/ |
D | AssociatedDevice.java | 70 public android.bluetooth.le.ScanResult getBleDevice() { in getBleDevice() 71 if (mDevice instanceof android.bluetooth.le.ScanResult) { in getBleDevice() 72 return (android.bluetooth.le.ScanResult) mDevice; in getBleDevice() 82 public android.net.wifi.ScanResult getWifiDevice() { in getWifiDevice() 83 if (mDevice instanceof android.net.wifi.ScanResult) { in getWifiDevice() 84 return (android.net.wifi.ScanResult) mDevice; in getWifiDevice() 103 if (mDevice instanceof android.bluetooth.le.ScanResult) return BLUETOOTH_LE; in getDeviceType() 104 if (mDevice instanceof android.net.wifi.ScanResult) return WIFI; in getDeviceType() 111 case BLUETOOTH_LE: return android.bluetooth.le.ScanResult.CREATOR; in getDeviceCreator() 112 case WIFI: return android.net.wifi.ScanResult.CREATOR; in getDeviceCreator() [all …]
|
D | BluetoothDeviceFilterUtils.java | 26 import android.net.wifi.ScanResult; 110 static boolean matchesName(@Nullable Pattern namePattern, ScanResult device) { in matchesName() 130 boolean result, ScanResult device, Object criteria) { in debugLogMatchResult() 140 public static String getDeviceDisplayNameInternal(@NonNull ScanResult device) { in getDeviceDisplayNameInternal() 148 } else if (device instanceof ScanResult) { in getDeviceMacAddress() 149 return ((ScanResult) device).BSSID; in getDeviceMacAddress() 150 } else if (device instanceof android.bluetooth.le.ScanResult) { in getDeviceMacAddress() 151 return getDeviceMacAddress(((android.bluetooth.le.ScanResult) device).getDevice()); in getDeviceMacAddress()
|
D | WifiDeviceFilter.java | 26 import android.net.wifi.ScanResult; 40 public final class WifiDeviceFilter implements DeviceFilter<ScanResult> { 64 public boolean matches(ScanResult device) { in matches() 72 public String getDeviceDisplayName(ScanResult device) { in getDeviceDisplayName()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/ |
D | ScanResultUpdaterTest.java | 26 import android.net.wifi.ScanResult; 58 ScanResult oldResult = buildScanResult(SSID, BSSID_1, 10); in testGetScanResults_mergeSameBssid() 59 ScanResult newResult = buildScanResult(SSID, BSSID_1, 20); in testGetScanResults_mergeSameBssid() 82 ScanResult oldResult = buildScanResult(SSID, BSSID_1, NOW_MILLIS - (maxScanAge + 1)); in testGetScanResults_filtersOldScans() 83 ScanResult newResult = buildScanResult(SSID, BSSID_2, NOW_MILLIS); in testGetScanResults_filtersOldScans() 115 ScanResult scan1 = buildScanResult(SSID, BSSID_1, NOW_MILLIS - 10_000); in testConstructor_maxScanAge_filtersOldScans() 116 ScanResult scan2 = buildScanResult(SSID, BSSID_2, NOW_MILLIS - 15_000); in testConstructor_maxScanAge_filtersOldScans() 117 ScanResult scan3 = buildScanResult(SSID, BSSID_3, NOW_MILLIS - 20_000); in testConstructor_maxScanAge_filtersOldScans() 121 List<ScanResult> scanResults = sru.getScanResults(); in testConstructor_maxScanAge_filtersOldScans() 134 ScanResult scan1 = buildScanResult(SSID, BSSID_1, NOW_MILLIS - 10_000); in testGetScanResults_overridesConstructorMaxScanAge() [all …]
|
D | TestUtils.java | 19 import android.net.wifi.ScanResult; 40 static ScanResult buildScanResult(String utf8Ssid, String bssid, long timestampMillis) { in buildScanResult() 41 final ScanResult result = new ScanResult(); in buildScanResult() 52 static ScanResult buildScanResult( in buildScanResult() 54 final ScanResult result = buildScanResult(utf8Ssid, bssid, timestampMillis); in buildScanResult() 60 static ScanResult buildScanResult( in buildScanResult() 62 final ScanResult result = buildScanResult(utf8Ssid, bssid, timestampMillis); in buildScanResult()
|
D | StandardWifiEntryTest.java | 63 import android.net.wifi.ScanResult; 191 final ScanResult unsecureScan = buildScanResult("ssid", "bssid", 0, TestUtils.GOOD_RSSI); in testConstructor_targetingNewSecurity_scanResultsSetSecurity() 192 final ScanResult secureScan = buildScanResult("ssid", "bssid", 0, TestUtils.GOOD_RSSI); in testConstructor_targetingNewSecurity_scanResultsSetSecurity() 341 final ScanResult scan = buildScanResult("ssid", "bssid", 0, TestUtils.GOOD_RSSI); in testUpdateConfig_unsavedToSaved() 491 final ScanResult scan = buildScanResult("ssid", "bssid", 0, TestUtils.GOOD_RSSI); in testConnect_savedNetwork_usesSavedConfig() 509 final ScanResult scan = buildScanResult("ssid", "bssid", 0, TestUtils.GOOD_RSSI); in testConnect_savedNetwork_usesSavedConfig_withOutSim() 548 final ScanResult secureScan = buildScanResult("ssid", "bssid0", 0, TestUtils.GOOD_RSSI); in testConnect_unsavedSecureNetwork_returnsNoConfigFailure() 666 final ScanResult pskScanResult = buildScanResult("ssid", "bssid", 0, TestUtils.GOOD_RSSI); in testCanEasyConnect_deviceNotSupported_shouldReturnFalse() 874 ScanResult pskScan = buildScanResult("ssid", "bssid0", 0, TestUtils.GOOD_RSSI); in testGetSecurityString_pskAndSae_getWpaWpa2Wpa3Personal() 876 ScanResult saeScan = buildScanResult("ssid", "bssid0", 0, TestUtils.BAD_RSSI); in testGetSecurityString_pskAndSae_getWpaWpa2Wpa3Personal() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkKeyTest.java | 24 import android.net.wifi.ScanResult; 111 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_nullSsid() 119 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_emptySsid() 128 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_noneSsid() 137 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_nullBssid() 145 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_emptyBssid() 154 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_invalidBssid() 163 ScanResult scanResult = mock(ScanResult.class); in createFromScanResult_validSsid()
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | ScanResultUpdater.java | 19 import android.net.wifi.ScanResult; 36 private Map<Pair<String, String>, ScanResult> mScanResultsBySsidAndBssid = new ArrayMap<>(); 62 public void update(@NonNull List<ScanResult> newResults) { in update() 66 for (ScanResult result : newResults) { in update() 68 ScanResult prevResult = mScanResultsBySsidAndBssid.get(key); in update() 80 public List<ScanResult> getScanResults() { in getScanResults() 89 public List<ScanResult> getScanResults(long maxScanAgeMillis) throws IllegalArgumentException { in getScanResults() 95 List<ScanResult> ageFilteredResults = new ArrayList<>(); in getScanResults() 96 for (ScanResult result : mScanResultsBySsidAndBssid.values()) { in getScanResults()
|
D | OsuWifiEntry.java | 25 import android.net.wifi.ScanResult; 56 @NonNull private final List<ScanResult> mCurrentScanResults = new ArrayList<>(); 157 synchronized void updateScanResultInfo(@Nullable List<ScanResult> scanResults) in updateScanResultInfo() 164 final ScanResult bestScanResult = getBestScanResultByLevel(scanResults); in updateScanResultInfo() 288 for (Pair<WifiConfiguration, Map<Integer, List<ScanResult>>> pairing : in onProvisioningComplete() 292 List<ScanResult> homeScans = in onProvisioningComplete() 294 List<ScanResult> roamingScans = in onProvisioningComplete() 296 ScanResult bestScan; in onProvisioningComplete()
|
D | PasspointNetworkDetailsTracker.java | 30 import android.net.wifi.ScanResult; 185 private void updatePasspointWifiEntryScans(@NonNull List<ScanResult> scanResults) { in updatePasspointWifiEntryScans() 188 List<Pair<WifiConfiguration, Map<Integer, List<ScanResult>>>> matchingWifiConfigs = in updatePasspointWifiEntryScans() 190 for (Pair<WifiConfiguration, Map<Integer, List<ScanResult>>> pair : matchingWifiConfigs) { in updatePasspointWifiEntryScans() 210 private void updateOsuWifiEntryScans(@NonNull List<ScanResult> scanResults) { in updateOsuWifiEntryScans() 213 Map<OsuProvider, List<ScanResult>> osuProviderToScans = in updateOsuWifiEntryScans() 267 List<ScanResult> currentScans = mScanResultUpdater.getScanResults(scanAgeWindow); in conditionallyUpdateScanResults()
|
D | Utils.java | 48 import android.net.wifi.ScanResult; 88 public static ScanResult getBestScanResultByLevel(@NonNull List<ScanResult> scanResults) { in getBestScanResultByLevel() 96 public static List<Integer> getSecurityTypesFromScanResult(@NonNull ScanResult scanResult) { in getSecurityTypesFromScanResult() 741 private static boolean isScanResultForPskNetwork(ScanResult scanResult) { in isScanResultForPskNetwork() 749 private static boolean isScanResultForWapiPskNetwork(ScanResult scanResult) { in isScanResultForWapiPskNetwork() 758 private static boolean isScanResultForWapiCertNetwork(ScanResult scanResult) { in isScanResultForWapiCertNetwork() 769 private static boolean isScanResultForEapNetwork(ScanResult scanResult) { in isScanResultForEapNetwork() 778 private static boolean isScanResultForPmfMandatoryNetwork(ScanResult scanResult) { in isScanResultForPmfMandatoryNetwork() 782 private static boolean isScanResultForPmfCapableNetwork(ScanResult scanResult) { in isScanResultForPmfCapableNetwork() 796 private static boolean isScanResultForWpa3EnterpriseTransitionNetwork(ScanResult scanResult) { in isScanResultForWpa3EnterpriseTransitionNetwork() [all …]
|
D | StandardWifiEntry.java | 55 import android.net.wifi.ScanResult; 106 @NonNull private final Map<Integer, List<ScanResult>> mMatchingScanResults = new ArrayMap<>(); 115 @NonNull private final List<ScanResult> mTargetScanResults = new ArrayList<>(); 156 @Nullable List<ScanResult> scanResults, in StandardWifiEntry() 662 synchronized void updateScanResultInfo(@Nullable List<ScanResult> scanResults) in updateScanResultInfo() 667 for (ScanResult scan : scanResults) { in updateScanResultInfo() 677 for (ScanResult scan : scanResults) { in updateScanResultInfo() 696 final ScanResult bestScanResult = getBestScanResultByLevel(mTargetScanResults); in updateTargetScanResultInfo() 822 Set<ScanResult> targetScanResultSet = new ArraySet<>(); in updateSecurityTypes() 893 final List<ScanResult> scanResults = mTargetScanResults.stream() in getScanResultDescription() [all …]
|
D | PasspointWifiEntry.java | 40 import android.net.wifi.ScanResult; 69 private final List<ScanResult> mCurrentHomeScanResults = new ArrayList<>(); 70 private final List<ScanResult> mCurrentRoamingScanResults = new ArrayList<>(); 247 for (ScanResult scan : mCurrentHomeScanResults) { in getAllUtf8Ssids() 250 for (ScanResult scan : mCurrentRoamingScanResults) { in getAllUtf8Ssids() 517 @Nullable List<ScanResult> homeScanResults, in updateScanResultInfo() 518 @Nullable List<ScanResult> roamingScanResults) in updateScanResultInfo() 530 List<ScanResult> currentScanResults = new ArrayList<>(); in updateScanResultInfo() 536 ScanResult bestScanResult = getBestScanResultByLevel(currentScanResults); in updateScanResultInfo()
|
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
D | DeviceFilterPair.java | 54 } else if (mDevice instanceof android.bluetooth.le.ScanResult) { in getDisplayName() 55 final android.bluetooth.le.ScanResult bleScanResult = in getDisplayName() 56 (android.bluetooth.le.ScanResult) mDevice; in getDisplayName() 58 } else if (mDevice instanceof android.net.wifi.ScanResult) { in getDisplayName() 59 final android.net.wifi.ScanResult wifiScanResult = in getDisplayName() 60 (android.net.wifi.ScanResult) mDevice; in getDisplayName() 100 } else if (mDevice instanceof android.bluetooth.le.ScanResult) { in getDeviceTypeAsString() 102 } else if (mDevice instanceof android.net.wifi.ScanResult) { in getDeviceTypeAsString()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiTracker.java | 32 import android.net.wifi.ScanResult; 166 private final HashMap<String, ScanResult> mScanResultCache = new HashMap<>(); 468 private ArrayMap<String, List<ScanResult>> updateScanResultCache( in updateScanResultCache() 469 final List<ScanResult> newResults) { in updateScanResultCache() 472 for (ScanResult newResult : newResults) { in updateScanResultCache() 482 ArrayMap<String, List<ScanResult>> scanResultsByApKey = new ArrayMap<>(); in updateScanResultCache() 483 for (ScanResult result : mScanResultCache.values()) { in updateScanResultCache() 491 List<ScanResult> resultList; in updateScanResultCache() 518 for (Iterator<ScanResult> iter = mScanResultCache.values().iterator(); iter.hasNext(); ) { in evictOldScans() 519 ScanResult result = iter.next(); in evictOldScans() [all …]
|
D | AccessPoint.java | 38 import android.net.wifi.ScanResult; 177 private final ArraySet<ScanResult> mScanResults = new ArraySet<>(); 184 private final ArraySet<ScanResult> mExtraScanResults = new ArraySet<>(); 323 mScanResults.add((ScanResult) result); in AccessPoint() 395 @Nullable Collection<ScanResult> homeScans, in AccessPoint() 396 @Nullable Collection<ScanResult> roamingScans) { in AccessPoint() 410 @NonNull Collection<ScanResult> results) { in AccessPoint() 417 AccessPoint(Context context, Collection<ScanResult> results) { in AccessPoint() 589 for (ScanResult result : mScanResults) { in updateScores() 678 for (ScanResult result : mScanResults) { in updateMetered() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | ScanTests.java | 145 final ScanResult scanResult = executeScan(scanRequest); in newInstallSimpleAllNominal() 163 final ScanResult scanResult = executeScan(scanRequest); in newInstallForAllUsers() 177 final ScanResult scanResult = executeScan(scanRequest); in installRealPackageName() 187 final ScanResult scanResultNoReal = executeScan(scanRequestNoRealPkg); in installRealPackageName() 206 final ScanResult scanResult = executeScan(scanRequest); in updateSimpleNominal() 237 final ScanResult scanResult = executeScan(scanRequest); in updateInstantSimpleNominal() 257 final ScanResult scanResult = executeScan(scanRequest); in installSdkLibrary() 289 final ScanResult scanResult = executeScan(scanRequest); in installStaticSharedLibrary() 321 final ScanResult scanResult = executeScan(scanRequest); in installDynamicLibraries() 362 final ScanResult scanResult = executeScan( in volumeUuidChangesOnUpdate() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/ |
D | WifiUtilsTest.java | 34 import android.net.wifi.ScanResult; 88 ArrayList<ScanResult> scanResults = buildScanResultCache(); in testVerboseSummaryString_showsScanResultSpeedLabel() 93 when(mockWifiNetworkScoreCache.getScoredNetwork(any(ScanResult.class))) in testVerboseSummaryString_showsScanResultSpeedLabel() 107 Set<ScanResult> set = new ArraySet<>(); in testGetVisibilityStatus_nullResultDoesNotCrash() 238 private static ArrayList<ScanResult> buildScanResultCache() { in buildScanResultCache() 239 ArrayList<ScanResult> scanResults = new ArrayList<>(); in buildScanResultCache() 241 ScanResult scanResult = createScanResult(TEST_SSID, "bssid-" + i, i); in buildScanResultCache() 247 private static ScanResult createScanResult(String ssid, String bssid, int rssi) { in createScanResult() 248 ScanResult scanResult = new ScanResult(); in createScanResult()
|
/frameworks/base/wifi/java/src/android/net/wifi/ |
D | WifiNetworkScoreCache.java | 131 public boolean isScoredNetwork(ScanResult result) { in isScoredNetwork() 141 public boolean hasScoreCurve(ScanResult result) { in hasScoreCurve() 146 public int getNetworkScore(ScanResult result) { in getNetworkScore() 166 public boolean getMeteredHint(ScanResult result) { in getMeteredHint() 171 public int getNetworkScore(ScanResult result, boolean isActiveNetwork) { in getNetworkScore() 188 public ScoredNetwork getScoredNetwork(ScanResult result) { in getScoredNetwork() 236 private String buildNetworkKey(ScanResult result) { in buildNetworkKey() 261 for (ScanResult scanResult : wifiManager.getScanResults()) { in dump()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiNetworkScoreCacheTest.java | 63 public static final ScanResult VALID_SCAN_RESULT = buildScanResult(SSID, BSSID); 77 private static ScanResult buildScanResult(String ssid, String bssid) { in buildScanResult() 78 return new ScanResult( in buildScanResult() 137 ScanResult result2 = buildScanResult("ssid2", BSSID); in updateScoresShouldAddNewNetwork() 152 ScanResult unscored = buildScanResult("fake", BSSID); in hasScoreCurveShouldReturnFalseWhenNoCachedNetwork() 168 ScanResult result = new ScanResult(VALID_SCAN_RESULT); in getNetworkScoreShouldReturnScore()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | WifiTrackerTest.java | 46 import android.net.wifi.ScanResult; 247 private static ScanResult buildScanResult1() { in buildScanResult1() 248 return new ScanResult( in buildScanResult1() 260 private static ScanResult buildScanResult2() { in buildScanResult2() 261 return new ScanResult( in buildScanResult2() 273 private static ScanResult buildScanResultWithTimestamp(long timestampMillis) { in buildScanResultWithTimestamp() 274 return new ScanResult( in buildScanResultWithTimestamp() 294 private List<Pair<WifiConfiguration, Map<Integer, List<ScanResult>>>> 296 List<Pair<WifiConfiguration, Map<Integer, List<ScanResult>>>> matchingList = in createPasspointMatchingWifiConfigsWithDuplicates() 298 Map<Integer, List<ScanResult>> mapping = new HashMap<>(); in createPasspointMatchingWifiConfigsWithDuplicates() [all …]
|
D | AccessPointTest.java | 41 import android.net.wifi.ScanResult; 90 private ArrayList<ScanResult> mScanResults; 91 private ArrayList<ScanResult> mRoamingScans; 111 private ScanResult createScanResult(String ssid, String bssid, int rssi) { in createScanResult() 112 ScanResult scanResult = new ScanResult(); in createScanResult() 289 ScanResult scanResult = new ScanResult(); 350 when(mockWifiNetworkScoreCache.getScoredNetwork(any(ScanResult.class))) 382 when(mockWifiNetworkScoreCache.getScoredNetwork(any(ScanResult.class))) 398 when(mockWifiNetworkScoreCache.getScoredNetwork(any(ScanResult.class))) 414 when(mockWifiNetworkScoreCache.getScoredNetwork(any(ScanResult.class))) [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ScanResult.java | 30 final class ScanResult { class 62 ScanResult( in ScanResult() method in ScanResult
|