/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/util/ |
D | ScanResultUtil.java | 39 public static boolean isScanResultForPskNetwork(ScanResult scanResult) { in isScanResultForPskNetwork() argument 40 return scanResult.capabilities.contains("PSK"); in isScanResultForPskNetwork() 47 public static boolean isScanResultForEapNetwork(ScanResult scanResult) { in isScanResultForEapNetwork() argument 48 return scanResult.capabilities.contains("EAP"); in isScanResultForEapNetwork() 55 public static boolean isScanResultForWepNetwork(ScanResult scanResult) { in isScanResultForWepNetwork() argument 56 return scanResult.capabilities.contains("WEP"); in isScanResultForWepNetwork() 64 public static boolean isScanResultForOpenNetwork(ScanResult scanResult) { in isScanResultForOpenNetwork() argument 65 return !(isScanResultForWepNetwork(scanResult) in isScanResultForOpenNetwork() 66 || isScanResultForPskNetwork(scanResult) in isScanResultForOpenNetwork() 67 || isScanResultForEapNetwork(scanResult)); in isScanResultForOpenNetwork() [all …]
|
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/wakeup/ |
D | WifiWakeupNetworkSelector.java | 75 ScanResult scanResult = scanResults.get(i); in selectNetwork() local 76 WifiConfiguration wifiConfiguration = savedNetworks.get(scanResult.SSID); in selectNetwork() 80 if ((ScanResultUtil.is5GHz(scanResult) && scanResult.level < mThresholdQualifiedRssi5) in selectNetwork() 81 || (ScanResultUtil.is24GHz(scanResult) in selectNetwork() 82 && scanResult.level < mThresholdQualifiedRssi24)) { in selectNetwork() 85 if (!ScanResultUtil.doesScanResultMatchWithNetwork(scanResult, wifiConfiguration)) { in selectNetwork() 92 openOrExternalScanResults.add(scanResult); in selectNetwork() 95 int score = calculateScore(scanResult, wifiConfiguration); in selectNetwork() 97 || calculateScore(scanResult, wifiConfiguration) > candidateScore) { in selectNetwork() 98 candidateScanResult = scanResult; in selectNetwork() [all …]
|
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/ |
D | DefaultNetworkRecommendationProvider.java | 163 final ScanResult scanResult = results[i]; in requestRecommendation() local 164 Blog.v(TAG, "Scan: " + scanResult + " " + i); in requestRecommendation() 169 if (!"[ESS]".equals(scanResult.capabilities)) { in requestRecommendation() 170 Blog.v(TAG, "Discarding closed network: " + scanResult); in requestRecommendation() 175 new WifiKey(SsidUtil.quoteSsid(scanResult.SSID), in requestRecommendation() 176 scanResult.BSSID)); in requestRecommendation() 182 Blog.v(TAG, "Discarding unscored network: " + scanResult); in requestRecommendation() 186 final int score = network.rssiCurve.lookupScore(scanResult.level); in requestRecommendation() 187 Blog.v(TAG, "Scored " + scanResult + ": " + score); in requestRecommendation() 189 recommendedScanResult = scanResult; in requestRecommendation() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | SelectFromListWizardFragment.java | 126 public ListItem(ScanResult scanResult) { in ListItem() argument 127 mName = scanResult.SSID; in ListItem() 128 mIconResource = WifiSecurity.NONE == WifiSecurity.getSecurity(scanResult) in ListItem() 131 mIconLevel = WifiManager.calculateSignalLevel(scanResult.level, 4); in ListItem() 133 mScanResult = scanResult; in ListItem() 174 ScanResult scanResult = source.readParcelable(ScanResult.class.getClassLoader()); 175 if (scanResult == null) { 178 return new ListItem(scanResult);
|
D | WifiSetupActivity.java | 523 ScanResult scanResult = getListItem(chooseNetworkPage).getScanResult(); in addPageBasedOnNetworkChoice() local 529 || !scanResult.SSID.equals(mConfiguration.getPrintableSsid()))) { in addPageBasedOnNetworkChoice() 533 mConfiguration = WifiConfigHelper.getConfiguration(this, scanResult.SSID, in addPageBasedOnNetworkChoice() 534 WifiSecurity.getSecurity(scanResult)); in addPageBasedOnNetworkChoice() 535 mWifiSecurity = WifiSecurity.getSecurity(scanResult); in addPageBasedOnNetworkChoice()
|
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/notify/ |
D | WifiNotificationController.java | 384 for (ScanResult scanResult : scanResults) { in getOpenNetworkRecommendation() 388 if ("[ESS]".equals(scanResult.capabilities)) { in getOpenNetworkRecommendation() 389 if (isSavedNetwork(scanResult, configuredNetworks)) { in getOpenNetworkRecommendation() 392 openNetworks.add(scanResult); in getOpenNetworkRecommendation() 405 private boolean isSavedNetwork(ScanResult scanResult, List<WifiConfiguration> savedNetworks) { in isSavedNetwork() argument 410 if (ScanResultUtil.doesScanResultMatchWithNetwork(scanResult, savedNetworks.get(i))) { in isSavedNetwork()
|
/packages/services/NetworkRecommendation/src/com/android/networkrecommendation/scoring/util/ |
D | NetworkUtil.java | 97 ScanResult scanResult = scanResults.get(i); in getOpenWifiNetworkKeys() local 98 NetworkKey networkKey = ScanResultUtil.createNetworkKey(scanResult); in getOpenWifiNetworkKeys() 100 openKeys.put(networkKey, isScanResultForOpenNetwork(scanResult)); in getOpenWifiNetworkKeys()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiStatusTest.java | 270 final ScanResult scanResult = list.get(i); in handleScanResultsAvailable() local 272 if (scanResult == null) { in handleScanResultsAvailable() 276 if (TextUtils.isEmpty(scanResult.SSID)) { in handleScanResultsAvailable() 280 scanList.append(scanResult.SSID+" "); in handleScanResultsAvailable()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | PeriodicScanManager.java | 174 ScanResult scanResult, int skip, int timeout, IPeriodicAdvertisingCallback callback) { in startSync() argument 183 String address = scanResult.getDevice().getAddress(); in startSync() 184 int sid = scanResult.getAdvertisingSid(); in startSync()
|
D | GattService.java | 676 public void registerSync(ScanResult scanResult, int skip, int timeout, in registerSync() argument 680 service.registerSync(scanResult, skip, timeout, callback); in registerSync() 872 private boolean matchesFilters(ScanClient client, ScanResult scanResult) { in matchesFilters() argument 877 if (filter.matches(scanResult)) { in matchesFilters() 1279 for (ScanResult scanResult : allResults) { in deliverBatchScan() 1280 if (matchesFilters(client, scanResult)) { in deliverBatchScan() 1281 results.add(scanResult); in deliverBatchScan() 1706 ScanResult scanResult, int skip, int timeout, IPeriodicAdvertisingCallback callback) { in registerSync() argument 1708 mPeriodicScanManager.startSync(scanResult, skip, timeout, callback); in registerSync()
|