Home
last modified time | relevance | path

Searched refs:scanResult (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiQualifiedNetworkSelector.java426 int calculateBssidScore(ScanResult scanResult, WifiConfiguration network, in calculateBssidScore() argument
432 int rssi = scanResult.level <= mWifiConfigManager.mThresholdSaturatedRssi24.get() in calculateBssidScore()
433 ? scanResult.level : mWifiConfigManager.mThresholdSaturatedRssi24.get(); in calculateBssidScore()
436 if (scanResult.is5GHz()) { in calculateBssidScore()
485 sbuf.append(" Score for scanResult: " + scanResult + " and Network ID: " in calculateBssidScore()
672 private boolean isCarrierNetwork(ScanResult scanResult) { in isCarrierNetwork() argument
673 return (getMatchingConfigForEAPNetworks(scanResult, in isCarrierNetwork()
756 ScanResult scanResult = scanDetail.getScanResult(); in selectQualifiedNetwork() local
758 if (scanResult.SSID == null || TextUtils.isEmpty(scanResult.SSID)) { in selectQualifiedNetwork()
761 noValidSsid.append(scanResult.BSSID + " / "); in selectQualifiedNetwork()
[all …]
DWifiMetrics.java398 ScanResult scanResult = scanDetail.getScanResult(); in setConnectionScanDetail() local
401 if (networkDetail != null && scanResult != null in setConnectionScanDetail()
406 updateMetricsFromScanResult(scanResult); in setConnectionScanDetail()
479 private void updateMetricsFromScanResult(ScanResult scanResult) { in updateMetricsFromScanResult() argument
480 mCurrentConnectionEvent.mConnectionEvent.signalStrength = scanResult.level; in updateMetricsFromScanResult()
483 mCurrentConnectionEvent.mConfigBssid = scanResult.BSSID; in updateMetricsFromScanResult()
484 if (scanResult.capabilities != null) { in updateMetricsFromScanResult()
485 if (scanResult.capabilities.contains("WEP")) { in updateMetricsFromScanResult()
488 } else if (scanResult.capabilities.contains("PSK")) { in updateMetricsFromScanResult()
491 } else if (scanResult.capabilities.contains("EAP")) { in updateMetricsFromScanResult()
[all …]
DWifiNetworkScoreCache.java187 for (ScanResult scanResult : wifiManager.getScanResults()) { in dump()
188 … writer.println(" " + buildNetworkKey(scanResult) + ": " + getNetworkScore(scanResult)); in dump()
DWifiNotificationController.java172 ScanResult scanResult = scanResults.get(i); in checkAndSetNotification() local
176 if (scanResult.capabilities != null && in checkAndSetNotification()
177 scanResult.capabilities.equals("[ESS]")) { in checkAndSetNotification()
DWifiConfigManager.java542 WifiConfiguration getMatchingConfig(ScanResult scanResult) { in getMatchingConfig() argument
543 if (scanResult == null) { in getMatchingConfig()
553 if (cache.get(scanResult.BSSID) != null) { in getMatchingConfig()
2635 ScanResult scanResult = scanDetail.getScanResult();
2644 ScanResult result = scanDetailCache.get(scanResult.BSSID);
2647 scanResult.blackListTimestamp = result.blackListTimestamp;
2648 scanResult.numIpConfigFailures = result.numIpConfigFailures;
2649 scanResult.numConnection = result.numConnection;
2650 scanResult.isAutoJoinCandidate = result.isAutoJoinCandidate;
2656 scanResult.untrusted = true;
[all …]
DWifiLastResortWatchdog.java104 ScanResult scanResult = scanDetail.getScanResult(); in updateAvailableNetworks() local
105 if (scanResult == null) continue; in updateAvailableNetworks()
106 String bssid = scanResult.BSSID; in updateAvailableNetworks()
DScanDetail.java81 public ScanDetail(ScanResult scanResult, NetworkDetail networkDetail, in ScanDetail() argument
83 mScanResult = scanResult; in ScanDetail()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DScanDetailUtil.java35 public static ScanDetail toScanDetail(ScanResult scanResult) { in toScanDetail() argument
36 NetworkDetail networkDetail = new NetworkDetail(scanResult.BSSID, in toScanDetail()
37 scanResult.informationElements, scanResult.anqpLines, scanResult.frequency); in toScanDetail()
38 return new ScanDetail(scanResult, networkDetail, null); in toScanDetail()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DOSUCache.java40 private ScanInstance(ScanResult scanResult, int instant) { in ScanInstance() argument
41 mScanResult = scanResult; in ScanInstance()
53 private boolean bssidEqual(ScanResult scanResult) { in bssidEqual() argument
54 return mScanResult.BSSID.equals(scanResult.BSSID); in bssidEqual()
81 for (ScanResult scanResult : scanResults) { in pushScanResults()
82 AnqpInformationElement[] osuInfo = scanResult.anqpElements; in pushScanResults()
84 putResult(scanResult, osuInfo); in pushScanResults()
90 private void putResult(ScanResult scanResult, AnqpInformationElement[] elements) { in putResult() argument
99 putProviders(scanResult, providers); in putResult()
108 private void putProviders(ScanResult scanResult, HSOsuProvidersElement osuProviders) { in putProviders() argument
[all …]
DOSUInfo.java41 public OSUInfo(ScanResult scanResult, String ssid, OSUProvider osuProvider, int osuID) { in OSUInfo() argument
43 mBSSID = Utils.parseMac(scanResult.BSSID); in OSUInfo()
44 mHESSID = scanResult.hessid; in OSUInfo()
45 mAnqpDomID = scanResult.anqpDomainId; in OSUInfo()
46 mAdvertisingSSID = scanResult.SSID; in OSUInfo()
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeScanner.java389 public void onScanResult(final ScanResult scanResult) { in onScanResult() argument
390 if (VDBG) Log.d(TAG, "onScanResult() - " + scanResult.toString()); in onScanResult()
400 mScanCallback.onScanResult(ScanSettings.CALLBACK_TYPE_ALL_MATCHES, scanResult); in onScanResult()
418 public void onFoundOrLost(final boolean onFound, final ScanResult scanResult) { in onFoundOrLost() argument
421 " " + scanResult.toString()); in onFoundOrLost()
435 scanResult); in onFoundOrLost()
438 scanResult); in onFoundOrLost()
DScanFilter.java271 public boolean matches(ScanResult scanResult) { in matches() argument
272 if (scanResult == null) { in matches()
275 BluetoothDevice device = scanResult.getDevice(); in matches()
282 ScanRecord scanRecord = scanResult.getScanRecord(); in matches()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DScanScheduleUtil.java160 for (ScanResult scanResult : scanData.getResults()) { in filterResultsForSettings()
161 if (channelHelper.settingsContainChannel(settings, scanResult.frequency)) { in filterResultsForSettings()
162 filteredResults.add(scanResult); in filterResultsForSettings()
DSupplicantWifiScannerImpl.java579 for (ScanResult scanResult : backgroundScanResults) { in pollLatestScanData()
581 mBackgroundScanEventHandler.onFullScanResult(scanResult, 0); in pollLatestScanData()
633 for (ScanResult scanResult : singleScanResults) { in pollLatestScanData()
635 mLastScanSettings.singleScanEventHandler.onFullScanResult(scanResult, in pollLatestScanData()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNotificationControllerTest.java96 ScanResult scanResult = new ScanResult(); in setOpenAccessPoint() local
97 scanResult.capabilities = "[ESS]"; in setOpenAccessPoint()
98 scanResults.add(scanResult); in setOpenAccessPoint()
DWifiMetricsTest.java551 ScanResult scanResult = mock(ScanResult.class); in testScanDetailAndWifiConfigurationUsage() local
552 scanResult.level = SCAN_RESULT_LEVEL; in testScanDetailAndWifiConfigurationUsage()
558 when(networkSelectionStat.getCandidate()).thenReturn(scanResult); in testScanDetailAndWifiConfigurationUsage()
562 when(scanDetail.getScanResult()).thenReturn(scanResult); in testScanDetailAndWifiConfigurationUsage()
DWifiQualifiedNetworkSelectorTest.java312 ScanResult scanResult = scanDetail.getScanResult(); in configureScoreCache() local
314 when(mScoreCache.isScoredNetwork(scanResult)).thenReturn(true); in configureScoreCache()
315 when(mScoreCache.hasScoreCurve(scanResult)).thenReturn(true); in configureScoreCache()
316 when(mScoreCache.getNetworkScore(eq(scanResult), anyBoolean())).thenReturn(score); in configureScoreCache()
317 when(mScoreCache.getNetworkScore(scanResult)).thenReturn(score); in configureScoreCache()
319 when(mScoreCache.isScoredNetwork(scanResult)).thenReturn(false); in configureScoreCache()
320 when(mScoreCache.hasScoreCurve(scanResult)).thenReturn(false); in configureScoreCache()
321 when(mScoreCache.getNetworkScore(eq(scanResult), anyBoolean())).thenReturn( in configureScoreCache()
323 when(mScoreCache.getNetworkScore(scanResult)).thenReturn( in configureScoreCache()
326 when(mScoreCache.getMeteredHint(scanResult)).thenReturn(meteredHints[i]); in configureScoreCache()
/frameworks/opt/net/wifi/service/jni/
Dcom_android_server_wifi_WifiNative.cpp185 jboolean setSSIDField(JNIHelper helper, jobject scanResult, const char *rawSsid) { in setSSIDField() argument
193 "setSsid", "([BLandroid/net/wifi/ScanResult;)Z", ssidBytes.get(), scanResult); in setSSIDField()
203 JNIObject<jobject> scanResult = helper.createObject("android/net/wifi/ScanResult"); in createScanResult() local
204 if (scanResult == NULL) { in createScanResult()
211 if (!setSSIDField(helper, scanResult, result->ssid)) { in createScanResult()
220 helper.setStringField(scanResult, "BSSID", bssid); in createScanResult()
222 helper.setIntField(scanResult, "level", result->rssi); in createScanResult()
223 helper.setIntField(scanResult, "frequency", result->channel); in createScanResult()
224 helper.setLongField(scanResult, "timestamp", result->ts); in createScanResult()
234 helper.setObjectField(scanResult, "bytes", "[B", elements); in createScanResult()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattCallbackWrapper.java44 public void onScanResult(ScanResult scanResult) throws RemoteException { in onScanResult() argument
95 public void onFoundOrLost(boolean onFound, ScanResult scanResult) throws RemoteException { in onFoundOrLost() argument
DIBluetoothGattCallback.aidl31 void onScanResult(in ScanResult scanResult); in onScanResult() argument
45 void onFoundOrLost(in boolean onFound, in ScanResult scanResult); in onFoundOrLost() argument
/frameworks/base/libs/androidfw/
DAsset.cpp195 bool scanResult; in createFromCompressedFile() local
220 scanResult = ZipUtils::examineGzip(fp, &method, &uncompressedLen, in createFromCompressedFile()
224 if (!scanResult) { in createFromCompressedFile()
/frameworks/base/wifi/java/android/net/wifi/
DIWifiManager.aidl59 WifiConfiguration getMatchingWifiConfig(in ScanResult scanResult); in getMatchingWifiConfig() argument
DWifiManager.java784 public WifiConfiguration getMatchingWifiConfig(ScanResult scanResult) { in getMatchingWifiConfig() argument
786 return mService.getMatchingWifiConfig(scanResult); in getMatchingWifiConfig()
/frameworks/base/tools/aapt/
DZipFile.cpp464 bool scanResult; in addCommon() local
468 scanResult = ZipUtils::examineGzip(inputFp, &method, &uncompressedLen, in addCommon()
470 if (!scanResult || method != ZipEntry::kCompressDeflated) { in addCommon()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DSupplicantBridge.java188 String bssData = mSupplicantHook.scanResult(scanDetail.getBSSIDString()); in notifyANQPDone()

12