/packages/modules/Wifi/framework/java/android/net/wifi/util/ |
D | ScanResultUtil.java | 48 public static boolean isScanResultForPskNetwork(@NonNull ScanResult scanResult) { in isScanResultForPskNetwork() argument 49 return scanResult.capabilities.contains("PSK"); in isScanResultForPskNetwork() 56 public static boolean isScanResultForWapiPskNetwork(@NonNull ScanResult scanResult) { in isScanResultForWapiPskNetwork() argument 57 return scanResult.capabilities.contains("WAPI-PSK"); in isScanResultForWapiPskNetwork() 65 public static boolean isScanResultForWapiCertNetwork(@NonNull ScanResult scanResult) { in isScanResultForWapiCertNetwork() argument 66 return scanResult.capabilities.contains("WAPI-CERT"); in isScanResultForWapiCertNetwork() 69 private static boolean isScanResultForPmfMandatoryNetwork(@NonNull ScanResult scanResult) { in isScanResultForPmfMandatoryNetwork() argument 70 return scanResult.capabilities.contains("[MFPR]"); in isScanResultForPmfMandatoryNetwork() 73 private static boolean isScanResultForPmfCapableNetwork(@NonNull ScanResult scanResult) { in isScanResultForPmfCapableNetwork() argument 74 return scanResult.capabilities.contains("[MFPC]"); in isScanResultForPmfCapableNetwork() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/ |
D | ScanResultUtilTest.java | 47 ScanResult scanResult = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testNetworkCreationFromScanResult() local 57 scanResult.informationElements = new InformationElement[] { in testNetworkCreationFromScanResult() 62 scanResult.capabilities = ""; in testNetworkCreationFromScanResult() 63 config = ScanResultUtil.createNetworkFromScanResult(scanResult); in testNetworkCreationFromScanResult() 68 scanResult.capabilities = "WEP"; in testNetworkCreationFromScanResult() 69 config = ScanResultUtil.createNetworkFromScanResult(scanResult); in testNetworkCreationFromScanResult() 74 scanResult.capabilities = "PSK"; in testNetworkCreationFromScanResult() 75 config = ScanResultUtil.createNetworkFromScanResult(scanResult); in testNetworkCreationFromScanResult() 81 scanResult.capabilities = "[EAP/SHA1]"; in testNetworkCreationFromScanResult() 82 config = ScanResultUtil.createNetworkFromScanResult(scanResult); in testNetworkCreationFromScanResult() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | HearingDevicePairingFragmentTest.java | 159 ScanResult scanResult = mock(ScanResult.class); in handleLeScanResult_markDeviceAsHearingAid() local 160 doReturn(mDevice).when(scanResult).getDevice(); in handleLeScanResult_markDeviceAsHearingAid() 163 mFragment.handleLeScanResult(scanResult); in handleLeScanResult_markDeviceAsHearingAid() 170 ScanResult scanResult = mock(ScanResult.class); in handleLeScanResult_isAndroidCompatible_addDevice() local 171 doReturn(mDevice).when(scanResult).getDevice(); in handleLeScanResult_isAndroidCompatible_addDevice() 173 doReturn(true).when(mFragment).isAndroidCompatibleHearingAid(scanResult); in handleLeScanResult_isAndroidCompatible_addDevice() 175 mFragment.handleLeScanResult(scanResult); in handleLeScanResult_isAndroidCompatible_addDevice() 182 ScanResult scanResult = mock(ScanResult.class); in handleLeScanResult_isNotAndroidCompatible_discoverServices() local 183 doReturn(mDevice).when(scanResult).getDevice(); in handleLeScanResult_isNotAndroidCompatible_discoverServices() 185 doReturn(false).when(mFragment).isAndroidCompatibleHearingAid(scanResult); in handleLeScanResult_isNotAndroidCompatible_discoverServices() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | ScanResultTest.java | 212 ScanResult scanResult = createScanResult(); in verifyScanResultCopyWithoutRadioChainInfo() local 213 ScanResult copyScanResult = new ScanResult(scanResult); in verifyScanResultCopyWithoutRadioChainInfo() 214 assertScanResultEquals(scanResult, copyScanResult); in verifyScanResultCopyWithoutRadioChainInfo() 222 ScanResult scanResult = createScanResult(); in verifyScanResultCopyWithRadioChainInfo() local 223 scanResult.radioChainInfos = new ScanResult.RadioChainInfo[2]; in verifyScanResultCopyWithRadioChainInfo() 224 scanResult.radioChainInfos[0] = new ScanResult.RadioChainInfo(); in verifyScanResultCopyWithRadioChainInfo() 225 scanResult.radioChainInfos[0].id = 0; in verifyScanResultCopyWithRadioChainInfo() 226 scanResult.radioChainInfos[0].level = -45; in verifyScanResultCopyWithRadioChainInfo() 227 scanResult.radioChainInfos[1] = new ScanResult.RadioChainInfo(); in verifyScanResultCopyWithRadioChainInfo() 228 scanResult.radioChainInfos[1].id = 1; in verifyScanResultCopyWithRadioChainInfo() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WakeupEvaluatorTest.java | 75 ScanResult scanResult = new ScanResult(); in makeScanResult() local 76 scanResult.SSID = ssid; in makeScanResult() 77 scanResult.setWifiSsid(WifiSsid.fromUtf8Text(ssid)); in makeScanResult() 78 scanResult.frequency = frequency; in makeScanResult() 79 scanResult.level = level; in makeScanResult() 80 scanResult.capabilities = "[]"; in makeScanResult() 82 return scanResult; in makeScanResult() 163 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks() local 165 assertNull(scanResult); in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks() 176 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsBelowThreshold() local [all …]
|
D | ConfigurationMapTest.java | 248 ScanResult scanResult = createScanResultForNetwork(config); in verifyScanResultMatchWithNetwork() local 250 mConfigs.getByScanResultForCurrentUser(scanResult); in verifyScanResultMatchWithNetwork() 340 ScanResult scanResult = createScanResultForNetwork(config); in testScanResultDoesNotMatchWithOtherNetworks() local 344 assertNull(mConfigs.getByScanResultForCurrentUser(scanResult)); in testScanResultDoesNotMatchWithOtherNetworks() 354 ScanResult scanResult = createScanResultForNetwork(config); in testScanResultDoesNotMatchAfterNetworkRemove() local 359 assertNotNull(mConfigs.getByScanResultForCurrentUser(scanResult)); in testScanResultDoesNotMatchAfterNetworkRemove() 362 assertNull(mConfigs.getByScanResultForCurrentUser(scanResult)); in testScanResultDoesNotMatchAfterNetworkRemove() 372 ScanResult scanResult = createScanResultForNetwork(config); in testScanResultDoesNotMatchAfterClear() local 377 assertNotNull(mConfigs.getByScanResultForCurrentUser(scanResult)); in testScanResultDoesNotMatchAfterClear() 380 assertNull(mConfigs.getByScanResultForCurrentUser(scanResult)); in testScanResultDoesNotMatchAfterClear() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WakeupEvaluator.java | 50 for (ScanResult scanResult : scanResults) { in findViableNetwork() 51 if (isBelowThreshold(scanResult)) { in findViableNetwork() 54 if (networks.contains(ScanResultMatchInfo.fromScanResult(scanResult))) { in findViableNetwork() 55 if (selectedScanResult == null || selectedScanResult.level < scanResult.level) { in findViableNetwork() 56 selectedScanResult = scanResult; in findViableNetwork() 67 public boolean isBelowThreshold(ScanResult scanResult) { in isBelowThreshold() argument 68 return scanResult.level < mScoringParams.getEntryRssi(scanResult.frequency); in isBelowThreshold()
|
D | WifiNetworkSelector.java | 445 public static String toScanId(@Nullable ScanResult scanResult) { in toScanId() argument 446 return scanResult == null ? "NULL" in toScanId() 447 : scanResult.SSID + ":" + scanResult.BSSID; in toScanId() 464 public boolean isSignalTooWeak(ScanResult scanResult) { in isSignalTooWeak() argument 465 return (scanResult.level < mScoringParams.getEntryRssi(scanResult.frequency)); in isSignalTooWeak() 505 ScanResult scanResult = scanDetail.getScanResult(); in filterScanResults() local 507 if (TextUtils.isEmpty(scanResult.SSID)) { in filterScanResults() 508 noValidSsid.append(scanResult.BSSID).append(" / "); in filterScanResults() 513 if (currentBssids.contains(scanResult.BSSID)) { in filterScanResults() 514 scanResultPresentForCurrentBssids.add(scanResult.BSSID); in filterScanResults() [all …]
|
D | ScanResultMatchInfo.java | 61 public static ScanResultMatchInfo fromScanResult(ScanResult scanResult) { in fromScanResult() argument 63 WifiSsid wifiSsid = scanResult.getWifiSsid(); in fromScanResult() 67 info.networkSsid = "\"" + scanResult.SSID + "\""; in fromScanResult() 70 ScanResultUtil.generateSecurityParamsListFromScanResult(scanResult); in fromScanResult() 138 ScanResult scanResult) { in getBestMatchingSecurityParams() argument 139 if (null == config || null == scanResult) return null; in getBestMatchingSecurityParams() 143 ScanResultUtil.generateSecurityParamsListFromScanResult(scanResult)); in getBestMatchingSecurityParams()
|
D | ScanRequestProxy.java | 167 ScanResult scanResult = mFullScanCache.get(s.BSSID); in onResults() local 168 if (isFullBandScan && scanResult == null) { in onResults() 175 if (scanResult != null) { in onResults() 176 if (TextUtils.isEmpty(scanResult.SSID) || !TextUtils.isEmpty(s.SSID)) { in onResults() 181 scanResult = mPartialScanCache.get(s.BSSID); in onResults() 182 if (scanResult == null in onResults() 183 || TextUtils.isEmpty(scanResult.SSID) || !TextUtils.isEmpty(s.SSID)) { in onResults() 585 ScanResult scanResult = mFullScanCache.get(bssid); in getScanResult() 586 if (scanResult == null) { in getScanResult() 587 scanResult = mPartialScanCache.get(bssid); in getScanResult() [all …]
|
D | ScanDetail.java | 125 public ScanDetail(@NonNull ScanResult scanResult) { in ScanDetail() argument 126 mScanResult = scanResult; in ScanDetail() 128 scanResult.BSSID, in ScanDetail() 129 scanResult.informationElements, in ScanDetail() 130 scanResult.anqpLines, in ScanDetail() 131 scanResult.frequency); in ScanDetail()
|
D | SavedNetworkNominator.java | 110 ScanResult scanResult = scanDetail.getScanResult(); in findMatchedSavedNetworks() local 153 && !network.BSSID.equals(scanResult.BSSID)) { in findMatchedSavedNetworks() 158 + scanResult.BSSID); in findMatchedSavedNetworks() 166 + scanResult.BSSID); in findMatchedSavedNetworks() 171 if (!bssidSet.contains(scanResult.BSSID)) { in findMatchedSavedNetworks() 174 + scanResult.BSSID); in findMatchedSavedNetworks()
|
D | WifiCandidates.java | 674 ScanResult scanResult = scanDetail.getScanResult(); in keyFromScanDetailAndConfig() local 675 SecurityParams params = ScanResultMatchInfo.fromScanResult(scanResult) in keyFromScanDetailAndConfig() 681 + ScanResultMatchInfo.fromScanResult(scanResult) in keyFromScanDetailAndConfig() 686 MacAddress bssid = MacAddress.fromString(scanResult.BSSID); in keyFromScanDetailAndConfig() 687 return new Key(ScanResultMatchInfo.fromScanResult(scanResult), bssid, config.networkId, in keyFromScanDetailAndConfig() 752 ScanResult scanResult = scanDetail.getScanResult(); in validConfigAndScanDetail() 753 if (scanResult == null) return failure(); in validConfigAndScanDetail() 756 bssid = MacAddress.fromString(scanResult.BSSID); in validConfigAndScanDetail() 760 ScanResultMatchInfo key1 = ScanResultMatchInfo.fromScanResult(scanResult); in validConfigAndScanDetail()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointManager.java | 855 ScanResult scanResult) { in matchProvider() argument 856 return matchProvider(scanResult, true); in matchProvider() 870 ScanResult scanResult, boolean anqpRequestAllowed) { in matchProvider() argument 875 scanResult, anqpRequestAllowed); in matchProvider() 879 Log.d(TAG, "No service provider found for " + scanResult.SSID); in matchProvider() 892 ScanResult scanResult) { in getAllMatchedProviders() argument 893 return getAllMatchedProviders(scanResult, true); in getAllMatchedProviders() 904 ScanResult scanResult, boolean anqpRequestAllowed) { in getAllMatchedProviders() argument 914 InformationElementUtil.getRoamingConsortiumIE(scanResult.informationElements); in getAllMatchedProviders() 916 scanResult.informationElements); in getAllMatchedProviders() [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/ |
D | BleDiscoveryScanProviderTest.java | 197 ScanResult scanResult = in testBleScanResult_noScanRecord() local 215 cb.onScanResult(ScanSettings.CALLBACK_TYPE_ALL_MATCHES, scanResult); in testBleScanResult_noScanRecord() 242 private void testBleScanResult(ScanResult scanResult) { in testBleScanResult() argument 255 scanResult)); in testBleScanResult() 275 ScanResult scanResult = in testBleScanResult_noServiceData() local 288 testBleScanResult(scanResult); in testBleScanResult_noServiceData() 315 ScanResult scanResult = in testBleScanResult_serviceDataParsingFailed() local 328 testBleScanResult(scanResult); in testBleScanResult_serviceDataParsingFailed() 356 ScanResult scanResult = in testBleScanResult_rssiBelowThreshold() local 368 testBleScanResult(scanResult); in testBleScanResult_rssiBelowThreshold() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/info/ |
D | TransportClientInfo.java | 23 public TransportClientInfo(ScanResult scanResult) { in TransportClientInfo() argument 24 this.scanResult = scanResult; in TransportClientInfo() 27 public final ScanResult scanResult; field in TransportClientInfo
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProviderTest.java | 1702 ScanResult scanResult = new ScanResult(); in createTestScanResult() local 1703 scanResult.SSID = TEST_SSID; in createTestScanResult() 1704 scanResult.BSSID = TEST_BSSID_STRING; in createTestScanResult() 1705 scanResult.hessid = TEST_HESSID; in createTestScanResult() 1706 scanResult.anqpDomainId = TEST_ANQP_DOMAIN_ID; in createTestScanResult() 1707 scanResult.flags = ScanResult.FLAG_PASSPOINT_NETWORK; in createTestScanResult() 1708 scanResult.setWifiSsid(WifiSsid.fromString(TEST_SSID_QUOTED)); in createTestScanResult() 1709 return scanResult; in createTestScanResult() 1718 ScanResult scanResult = new ScanResult(); in createSecondaryTestScanResult() local 1719 scanResult.SSID = TEST_SSID_2; in createSecondaryTestScanResult() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/ |
D | DiscoveryScanProvider.java | 32 public ScanResult scanResult; field in DiscoveryScanProvider.DiscoveryResult 36 ScanResult scanResult, DiscoveryAdvertisement discoveryAdvertisement) { in DiscoveryResult() argument 37 this.scanResult = scanResult; in DiscoveryResult()
|
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/ |
D | DckGattTest.kt | 251 val scanResult = scanResultCaptor.firstValue in testGattConnect_fromIrkScan() constant 252 assertThat(scanResult).isNotNull() in testGattConnect_fromIrkScan() 253 assertThat(scanResult.device.identityAddress).isEqualTo(TEST_ADDRESS_RANDOM_STATIC) in testGattConnect_fromIrkScan() 256 val device = scanResult.device in testGattConnect_fromIrkScan() 297 val scanResult = scanResultCaptor.firstValue in testGattConnect_fromUuidScan() constant 298 assertThat(scanResult).isNotNull() in testGattConnect_fromUuidScan() 299 assertThat(scanResult.scanRecord?.serviceUuids).contains(ParcelUuid(CCC_DK_UUID)) in testGattConnect_fromUuidScan() 302 val device = scanResult.device in testGattConnect_fromUuidScan()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/ |
D | PeriodicAdvertisingManager.java | 96 ScanResult scanResult, int skip, int timeout, PeriodicAdvertisingCallback callback) { in registerSync() argument 97 registerSync(scanResult, skip, timeout, callback, null); in registerSync() 123 ScanResult scanResult, in registerSync() argument 132 if (scanResult == null) { in registerSync() 136 if (scanResult.getAdvertisingSid() == ScanResult.SID_NOT_PRESENT) { in registerSync() 160 gatt.registerSync(scanResult, skip, timeout, wrapped, mAttributionSource); in registerSync()
|
D | BluetoothLeScanner.java | 580 public void onScanResult(final ScanResult scanResult) { in onScanResult() argument 581 Attributable.setAttributionSource(scanResult, mAttributionSource); in onScanResult() 585 if (VDBG) Log.d(TAG, "onScanResult() - " + scanResult.toString()); in onScanResult() 606 ScanSettings.CALLBACK_TYPE_ALL_MATCHES, scanResult); in onScanResult() 625 public void onFoundOrLost(final boolean onFound, final ScanResult scanResult) { in onFoundOrLost() argument 626 Attributable.setAttributionSource(scanResult, mAttributionSource); in onFoundOrLost() 628 Log.d(TAG, "onFoundOrLost() - onFound = " + onFound + " " + scanResult.toString()); in onFoundOrLost() 644 ScanSettings.CALLBACK_TYPE_FIRST_MATCH, scanResult); in onFoundOrLost() 647 ScanSettings.CALLBACK_TYPE_MATCH_LOST, scanResult); in onFoundOrLost()
|
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/ |
D | ResponderConfig.java | 426 public static ResponderConfig fromScanResult(@NonNull ScanResult scanResult) { in fromScanResult() argument 427 MacAddress macAddress = MacAddress.fromString(scanResult.BSSID); in fromScanResult() 429 boolean supports80211mc = scanResult.is80211mcResponder(); in fromScanResult() 430 boolean supports80211azNtbRanging = scanResult.is80211azNtbResponder(); in fromScanResult() 431 int channelWidth = scanResult.channelWidth; in fromScanResult() 432 int frequency = scanResult.frequency; in fromScanResult() 433 int centerFreq0 = scanResult.centerFreq0; in fromScanResult() 434 int centerFreq1 = scanResult.centerFreq1; in fromScanResult() 437 if (scanResult.informationElements != null && scanResult.informationElements.length != 0) { in fromScanResult() 443 for (ScanResult.InformationElement ie : scanResult.informationElements) { in fromScanResult()
|
D | RangingRequest.java | 307 for (ScanResult scanResult : apInfos) { in addAccessPoints() 308 addAccessPoint(scanResult); in addAccessPoints() 438 for (ScanResult scanResult : apInfos) { in addNon80211mcCapableAccessPoints() 439 if (scanResult.is80211mcResponder() || scanResult.is80211azNtbResponder()) { in addNon80211mcCapableAccessPoints() 443 addAccessPoint(scanResult); in addNon80211mcCapableAccessPoints()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/ |
D | WifiRttManagerTest.java | 228 ScanResult scanResult = new ScanResult(); in testRangingRequestSetBurstSize() local 229 scanResult.BSSID = "AA:BB:CC:DD:EE:FF"; in testRangingRequestSetBurstSize() 230 scanResult.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in testRangingRequestSetBurstSize() 235 builder.addAccessPoint(scanResult); in testRangingRequestSetBurstSize() 247 ScanResult scanResult = new ScanResult(); in testRangingRequestMinBurstSizeIsEnforced() local 248 scanResult.BSSID = "AA:BB:CC:DD:EE:FF"; in testRangingRequestMinBurstSizeIsEnforced() 265 ScanResult scanResult = new ScanResult(); in testRangingRequestMaxBurstSizeIsEnforced() local 266 scanResult.BSSID = "AA:BB:CC:DD:EE:FF"; in testRangingRequestMaxBurstSizeIsEnforced() 412 ScanResult scanResult = new ScanResult(); in testRangingRequestPastLimit() local 413 scanResult.BSSID = "00:01:02:03:04:05"; in testRangingRequestPastLimit() [all …]
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/provider/ |
D | BleDiscoveryProvider.java | 74 public void onScanResult(int callbackType, ScanResult scanResult) { 76 String bleAddress = scanResult.getDevice().getAddress(); 79 .setRssi(scanResult.getRssi()) 80 .setTxPower(scanResult.getTxPower()) 83 ScanRecord record = scanResult.getScanRecord(); 94 scanResult.getRssi());
|