/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiAnnotations.java | 70 ScanResult.CHANNEL_WIDTH_20MHZ, 71 ScanResult.CHANNEL_WIDTH_40MHZ, 72 ScanResult.CHANNEL_WIDTH_80MHZ, 73 ScanResult.CHANNEL_WIDTH_160MHZ, 74 ScanResult.CHANNEL_WIDTH_80MHZ_PLUS_MHZ, 75 ScanResult.CHANNEL_WIDTH_320MHZ, 81 ScanResult.PREAMBLE_LEGACY, 82 ScanResult.PREAMBLE_HT, 83 ScanResult.PREAMBLE_VHT, 84 ScanResult.PREAMBLE_HE, [all …]
|
D | BatchedScanResult.java | 41 public final List<ScanResult> scanResults = new ArrayList<ScanResult>(); 49 for (ScanResult s : source.scanResults) scanResults.add(new ScanResult(s)); in BatchedScanResult() 59 for (ScanResult s : scanResults) { in toString() 75 for (ScanResult s : scanResults) { in writeToParcel() 88 result.scanResults.add(ScanResult.CREATOR.createFromParcel(in));
|
D | ScanResult.java | 53 public final class ScanResult implements Parcelable { class 968 if (!ScanResult.is6GHz(freqMhz)) { in is6GHzPsc() 1132 if (ScanResult.is24GHz(frequency)) { in toBand() 1133 return ScanResult.WIFI_BAND_24_GHZ; in toBand() 1134 } else if (ScanResult.is5GHz(frequency)) { in toBand() 1135 return ScanResult.WIFI_BAND_5_GHZ; in toBand() 1136 } else if (ScanResult.is6GHz(frequency)) { in toBand() 1137 return ScanResult.WIFI_BAND_6_GHZ; in toBand() 1138 } else if (ScanResult.is60GHz(frequency)) { in toBand() 1139 return ScanResult.WIFI_BAND_60_GHZ; in toBand() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ThroughputPredictorTest.java | 29 import android.net.wifi.ScanResult; 65 when(mDeviceCapabilities.isWifiStandardSupported(ScanResult.WIFI_STANDARD_11N)) in setUp() 67 when(mDeviceCapabilities.isWifiStandardSupported(ScanResult.WIFI_STANDARD_11AC)) in setUp() 69 when(mDeviceCapabilities.isWifiStandardSupported(ScanResult.WIFI_STANDARD_11AX)) in setUp() 71 when(mDeviceCapabilities.isWifiStandardSupported(ScanResult.WIFI_STANDARD_11BE)) in setUp() 73 when(mDeviceCapabilities.isChannelWidthSupported(ScanResult.CHANNEL_WIDTH_40MHZ)) in setUp() 75 when(mDeviceCapabilities.isChannelWidthSupported(ScanResult.CHANNEL_WIDTH_80MHZ)) in setUp() 77 when(mDeviceCapabilities.isChannelWidthSupported(ScanResult.CHANNEL_WIDTH_160MHZ)) in setUp() 79 when(mDeviceCapabilities.isChannelWidthSupported(ScanResult.CHANNEL_WIDTH_320MHZ)) in setUp() 106 ScanResult.WIFI_STANDARD_11AX, ScanResult.CHANNEL_WIDTH_80MHZ, -70, 5160, 1, in verify6GhzRssiBoost() [all …]
|
D | ScanResults.java | 19 import android.net.wifi.ScanResult; 42 private final ScanResult[] mScanResults; 45 ScanResult[] scanResults) { in ScanResults() 57 ArrayList<ScanResult> scanDataResults = new ArrayList<>(); in merge() 58 ArrayList<ScanResult> rawScanResults = new ArrayList<>(); in merge() 67 .toArray(new ScanResult[scanDataResults.size()])), in merge() 68 rawScanResults.toArray(new ScanResult[rawScanResults.size()])); in merge() 77 public static final Comparator<ScanResult> SCAN_RESULT_RSSI_COMPARATOR = 78 new Comparator<ScanResult>() { 79 public int compare(ScanResult r1, ScanResult r2) { [all …]
|
D | WakeupEvaluatorTest.java | 28 import android.net.wifi.ScanResult; 74 private ScanResult makeScanResult(String ssid, int frequency, int level) { in makeScanResult() 75 ScanResult scanResult = new ScanResult(); in makeScanResult() 135 ScanResult scanResult24 = makeScanResult(SAVED_SSID_1, FREQ_24, THRESHOLD_24 - 1); in isBelowThreshold_returnsTrueWhenRssiIsBelowThreshold() 138 ScanResult scanResult5 = makeScanResult(SAVED_SSID_1, FREQ_5, THRESHOLD_5 - 1); in isBelowThreshold_returnsTrueWhenRssiIsBelowThreshold() 147 ScanResult scanResult24 = makeScanResult(SAVED_SSID_1, FREQ_24, THRESHOLD_24 + 1); in isBelowThreshold_returnsFalseWhenRssiIsAboveThreshold() 150 ScanResult scanResult5 = makeScanResult(SAVED_SSID_1, FREQ_5, THRESHOLD_5 + 1); in isBelowThreshold_returnsFalseWhenRssiIsAboveThreshold() 160 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks() 163 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks() 173 Set<ScanResult> scanResults = Collections.singleton( in findViableNetwork_returnsNullWhenScanResultIsBelowThreshold() [all …]
|
D | MultiInternetManagerTest.java | 32 import android.net.wifi.ScanResult; 268 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_5_GHZ, in testSetMultiInternetConnectionWorksource() 272 .contains(ScanResult.WIFI_BAND_5_GHZ)); in testSetMultiInternetConnectionWorksource() 292 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_24_GHZ, in testSetMultiInternetConnectionWorksourceOnTwoBands() 296 .contains(ScanResult.WIFI_BAND_24_GHZ)); in testSetMultiInternetConnectionWorksourceOnTwoBands() 301 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_5_GHZ, in testSetMultiInternetConnectionWorksourceOnTwoBands() 304 .contains(ScanResult.WIFI_BAND_5_GHZ)); in testSetMultiInternetConnectionWorksourceOnTwoBands() 309 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_24_GHZ, in testSetMultiInternetConnectionWorksourceOnTwoBands() 311 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_5_GHZ, in testSetMultiInternetConnectionWorksourceOnTwoBands() 322 mMultiInternetManager.setMultiInternetConnectionWorksource(ScanResult.WIFI_BAND_5_GHZ, in testOnInternetValidatedSecondaryCmmConnection() [all …]
|
D | MultiInternetWifiNetworkFactoryTest.java | 37 import android.net.wifi.ScanResult; 96 .setBand(ScanResult.WIFI_BAND_24_GHZ) in setUp() 99 .setBand(ScanResult.WIFI_BAND_5_GHZ) in setUp() 153 .setBand(ScanResult.WIFI_BAND_5_GHZ) in testIsWifiMultiInternetRequest() 162 .setBand(ScanResult.WIFI_BAND_5_GHZ) in testIsWifiMultiInternetRequest() 187 ScanResult.WIFI_BAND_24_GHZ, null, TEST_WORKSOURCE); in testMultiInternetHandleNetworkRequest() 205 .setBand(ScanResult.WIFI_BAND_5_GHZ) in testMultiInternetHandleNetworkRequestFromSettingsWithBssid() 214 ScanResult.WIFI_BAND_5_GHZ, TEST_BSSID, TEST_WORKSOURCE); in testMultiInternetHandleNetworkRequestFromSettingsWithBssid() 219 ScanResult.WIFI_BAND_5_GHZ, TEST_BSSID, TEST_WORKSOURCE); in testMultiInternetHandleNetworkRequestFromSettingsWithBssid() 237 ScanResult.WIFI_BAND_24_GHZ, null, TEST_WORKSOURCE); in testMultiInternetHandleDualBandNetworkRequest() [all …]
|
D | ScoringParamsTest.java | 28 import android.net.wifi.ScanResult; 322 assertEquals(mGood2GHz, mScoringParams.getGoodRssi(ScanResult.BAND_24_GHZ_START_FREQ_MHZ)); 328 assertEquals(mGood5GHz, mScoringParams.getGoodRssi(ScanResult.BAND_5_GHZ_START_FREQ_MHZ)); 334 assertEquals(mGood6GHz, mScoringParams.getGoodRssi(ScanResult.BAND_6_GHZ_START_FREQ_MHZ)); 358 assertEquals(-50, mScoringParams.getGoodRssi(ScanResult.BAND_24_GHZ_START_FREQ_MHZ)); 366 assertEquals(mGood2GHz, mScoringParams.getGoodRssi(ScanResult.BAND_24_GHZ_START_FREQ_MHZ)); 374 assertEquals(-55, mScoringParams.getGoodRssi(ScanResult.BAND_5_GHZ_START_FREQ_MHZ)); 382 assertEquals(mGood5GHz, mScoringParams.getGoodRssi(ScanResult.BAND_5_GHZ_START_FREQ_MHZ)); 390 assertEquals(-55, mScoringParams.getGoodRssi(ScanResult.BAND_6_GHZ_START_FREQ_MHZ)); 398 assertEquals(mGood6GHz, mScoringParams.getGoodRssi(ScanResult.BAND_6_GHZ_START_FREQ_MHZ)); [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | ScanResultTest.java | 30 import android.net.wifi.ScanResult.InformationElement; 60 ScanResult.WIFI_STANDARD_11AC; 148 int test6GNonPsc = ScanResult.BAND_6_GHZ_PSC_START_MHZ in testIs6GHzPsc() 149 + ScanResult.BAND_6_GHZ_PSC_STEP_SIZE_MHZ - 20; in testIs6GHzPsc() 150 int test6GPsc = ScanResult.BAND_6_GHZ_PSC_START_MHZ in testIs6GHzPsc() 151 + ScanResult.BAND_6_GHZ_PSC_STEP_SIZE_MHZ; in testIs6GHzPsc() 152 assertFalse(ScanResult.is6GHzPsc(test2G)); in testIs6GHzPsc() 153 assertFalse(ScanResult.is6GHzPsc(test6GNonPsc)); in testIs6GHzPsc() 154 assertTrue(ScanResult.is6GHzPsc(test6GPsc)); in testIs6GHzPsc() 162 ScanResult writeScanResult = createScanResult(); in verifyScanResultParcelWithoutRadioChainInfo() [all …]
|
D | WifiNetworkAgentSpecifierTest.java | 93 wifiConfiguration1, ScanResult.WIFI_BAND_24_GHZ, true); in testWifiNetworkAgentSpecifierDoesNotEqualsWhenKeyMgmtDifferent() 99 wifiConfiguration2, ScanResult.WIFI_BAND_24_GHZ, true); in testWifiNetworkAgentSpecifierDoesNotEqualsWhenKeyMgmtDifferent() 115 wifiConfiguration1, ScanResult.WIFI_BAND_5_GHZ, true); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenSsidDifferent() 121 wifiConfiguration2, ScanResult.WIFI_BAND_5_GHZ, true); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenSsidDifferent() 137 wifiConfiguration1, ScanResult.WIFI_BAND_24_GHZ, false); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenBssidDifferent() 143 wifiConfiguration2, ScanResult.WIFI_BAND_24_GHZ, false); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenBssidDifferent() 197 ScanResult.WIFI_BAND_5_GHZ, in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern() 226 ScanResult.WIFI_BAND_5_GHZ, in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern() 255 ScanResult.WIFI_BAND_5_GHZ, in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern() 275 wifiConfigurationNetworkAgent, ScanResult.WIFI_BAND_24_GHZ, true); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidPattern() [all …]
|
D | WifiScannerTest.java | 230 WifiScanner.WIFI_BAND_BOTH_WITH_DFS, new ScanResult[0]); in verifyScanDataParcel() 298 ScanResult scanResult = new ScanResult(); in testGetSingleScanResults() 300 ScanResult[] scanResults = {scanResult}; in testGetSingleScanResults() 303 public List<ScanResult> answer(String packageName, String featureId) { in testGetSingleScanResults() 308 List<ScanResult> results = mWifiScanner.getSingleScanResults(); in testGetSingleScanResults() 320 public List<ScanResult> answer(String packageName, String featureId) { in testGetSingleScanResultsIncorrectResponse() 324 List<ScanResult> results = mWifiScanner.getSingleScanResults(); in testGetSingleScanResultsIncorrectResponse() 381 ScanResult scanResult = new ScanResult(); in testStartScanListenerOnResults() 383 new ScanData(0, 0, new ScanResult[]{scanResult})}; in testStartScanListenerOnResults() 458 ScanResult scanResult1 = new ScanResult(); in testScanDataAddResults() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ThroughputPredictor.java | 25 import android.net.wifi.ScanResult; 212 case ScanResult.WIFI_STANDARD_11BE: in predictThroughput() 213 if (deviceCapabilities.isWifiStandardSupported(ScanResult.WIFI_STANDARD_11BE)) { in predictThroughput() 214 wifiStandard = ScanResult.WIFI_STANDARD_11BE; in predictThroughput() 218 case ScanResult.WIFI_STANDARD_11AX: in predictThroughput() 219 if (deviceCapabilities.isWifiStandardSupported(ScanResult.WIFI_STANDARD_11AX)) { in predictThroughput() 220 wifiStandard = ScanResult.WIFI_STANDARD_11AX; in predictThroughput() 224 case ScanResult.WIFI_STANDARD_11AC: in predictThroughput() 225 if (deviceCapabilities.isWifiStandardSupported(ScanResult.WIFI_STANDARD_11AC)) { in predictThroughput() 226 wifiStandard = ScanResult.WIFI_STANDARD_11AC; in predictThroughput() [all …]
|
D | ScanDetail.java | 20 import android.net.wifi.ScanResult; 41 private final ScanResult mScanResult; 45 private static final ScanResult.Builder sBuilder = new ScanResult.Builder(); 52 @Nullable ScanResult.InformationElement[] informationElements, in ScanDetail() 56 int anqpDomainId = ScanResult.UNSPECIFIED; in ScanDetail() 58 int channelWidth = ScanResult.UNSPECIFIED; in ScanDetail() 59 int centerFreq0 = ScanResult.UNSPECIFIED; in ScanDetail() 60 int centerFreq1 = ScanResult.UNSPECIFIED; in ScanDetail() 103 mScanResult.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in ScanDetail() 106 mScanResult.setFlag(ScanResult.FLAG_PASSPOINT_NETWORK); in ScanDetail() [all …]
|
D | WakeupEvaluator.java | 19 import android.net.wifi.ScanResult; 46 public ScanResult findViableNetwork(Collection<ScanResult> scanResults, in findViableNetwork() 48 ScanResult selectedScanResult = null; in findViableNetwork() 50 for (ScanResult scanResult : scanResults) { in findViableNetwork() 67 public boolean isBelowThreshold(ScanResult scanResult) { in isBelowThreshold()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/ |
D | WifiRttManagerTest.java | 34 import android.net.wifi.ScanResult; 149 ScanResult scanResult1 = new ScanResult(); in testRangingRequestParcel() 151 scanResult1.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in testRangingRequestParcel() 152 ScanResult scanResult2 = new ScanResult(); in testRangingRequestParcel() 154 scanResult2.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in testRangingRequestParcel() 155 ScanResult scanResult3 = new ScanResult(); in testRangingRequestParcel() 157 scanResult3.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in testRangingRequestParcel() 158 List<ScanResult> scanResults2and3 = new ArrayList<>(2); in testRangingRequestParcel() 193 ScanResult scanResult1 = new ScanResult(); in test802llmcCapableAccessPointFailsForNon11mcBuilderMethods() 195 scanResult1.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in test802llmcCapableAccessPointFailsForNon11mcBuilderMethods() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/util/ |
D | ScanResultUtil.java | 19 import static android.net.wifi.ScanResult.FLAG_PASSPOINT_NETWORK; 24 import android.net.wifi.ScanResult; 48 public static boolean isScanResultForPskNetwork(@NonNull ScanResult scanResult) { in isScanResultForPskNetwork() 56 public static boolean isScanResultForWapiPskNetwork(@NonNull ScanResult scanResult) { in isScanResultForWapiPskNetwork() 65 public static boolean isScanResultForWapiCertNetwork(@NonNull ScanResult scanResult) { in isScanResultForWapiCertNetwork() 69 private static boolean isScanResultForPmfMandatoryNetwork(@NonNull ScanResult scanResult) { in isScanResultForPmfMandatoryNetwork() 73 private static boolean isScanResultForPmfCapableNetwork(@NonNull ScanResult scanResult) { in isScanResultForPmfCapableNetwork() 84 public static boolean isEapScanResultForPasspointR1R2Network(@NonNull ScanResult scanResult) { in isEapScanResultForPasspointR1R2Network() 96 public static boolean isEapScanResultForPasspointR3Network(@NonNull ScanResult scanResult) { in isEapScanResultForPasspointR3Network() 113 @NonNull ScanResult scanResult) { in isScanResultForWpa3EnterpriseTransitionNetwork() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | InformationElementUtil.java | 21 import android.net.wifi.ScanResult; 22 import android.net.wifi.ScanResult.InformationElement; 446 int band = ScanResult.getBandFromOpClass(opClass, channel); in from() 507 return ScanResult.CHANNEL_WIDTH_40MHZ; in getChannelWidth() 509 return ScanResult.CHANNEL_WIDTH_20MHZ; in getChannelWidth() 574 return ScanResult.UNSPECIFIED; in getChannelWidth() 577 return ScanResult.CHANNEL_WIDTH_80MHZ; in getChannelWidth() 580 return ScanResult.CHANNEL_WIDTH_160MHZ; in getChannelWidth() 583 return ScanResult.CHANNEL_WIDTH_80MHZ_PLUS_MHZ; in getChannelWidth() 596 return ScanResult.convertChannelToFrequencyMhzIfSupported(mCenterFreqIndex1, in getCenterFreq0() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttTestUtils.java | 20 import android.net.wifi.ScanResult; 62 ScanResult scan1 = new ScanResult(); in getDummyRangingRequest() 64 scan1.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in getDummyRangingRequest() 65 scan1.channelWidth = ScanResult.CHANNEL_WIDTH_40MHZ; in getDummyRangingRequest() 66 ScanResult scan2 = new ScanResult(); in getDummyRangingRequest() 68 scan2.channelWidth = ScanResult.CHANNEL_WIDTH_20MHZ; in getDummyRangingRequest() 85 ScanResult scan1 = new ScanResult(); in getDummyRangingRequestMcOnly() 87 scan1.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in getDummyRangingRequestMcOnly() 88 scan1.channelWidth = ScanResult.CHANNEL_WIDTH_40MHZ; in getDummyRangingRequestMcOnly() 102 ScanResult scan1 = new ScanResult(); in getDummyRangingRequestNo80211mcSupport() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/ |
D | ResponderConfig.java | 19 import static android.net.wifi.ScanResult.InformationElement.EID_EXTENSION_PRESENT; 20 import static android.net.wifi.ScanResult.InformationElement.EID_EXT_EHT_CAPABILITIES; 21 import static android.net.wifi.ScanResult.InformationElement.EID_EXT_HE_CAPABILITIES; 22 import static android.net.wifi.ScanResult.InformationElement.EID_HT_CAPABILITIES; 23 import static android.net.wifi.ScanResult.InformationElement.EID_VHT_CAPABILITIES; 32 import android.net.wifi.ScanResult; 426 public static ResponderConfig fromScanResult(@NonNull ScanResult scanResult) { in fromScanResult() 443 for (ScanResult.InformationElement ie : scanResult.informationElements) { in fromScanResult() 455 if (ehtCapabilitiesPresent && ScanResult.is6GHz(frequency)) { in fromScanResult() 456 preamble = ScanResult.PREAMBLE_EHT; in fromScanResult() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | NetworkDetail.java | 5 import android.net.wifi.ScanResult; 174 public NetworkDetail(String bssid, ScanResult.InformationElement[] infoElements, in NetworkDetail() 177 infoElements = new ScanResult.InformationElement[0]; in NetworkDetail() 233 for (ScanResult.InformationElement ie : infoElements) { in NetworkDetail() 236 case ScanResult.InformationElement.EID_SSID: in NetworkDetail() 239 case ScanResult.InformationElement.EID_BSS_LOAD: in NetworkDetail() 242 case ScanResult.InformationElement.EID_HT_OPERATION: in NetworkDetail() 245 case ScanResult.InformationElement.EID_VHT_OPERATION: in NetworkDetail() 248 case ScanResult.InformationElement.EID_HT_CAPABILITIES: in NetworkDetail() 251 case ScanResult.InformationElement.EID_VHT_CAPABILITIES: in NetworkDetail() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/ |
D | ScanResultUtilTest.java | 25 import android.net.wifi.ScanResult; 26 import android.net.wifi.ScanResult.InformationElement; 47 ScanResult scanResult = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testNetworkCreationFromScanResult() 148 ScanResult scanResult = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testGenerateSecurityParamsListFromScanResult() 266 scanResult.setFlag(ScanResult.FLAG_PASSPOINT_NETWORK); in testGenerateSecurityParamsListFromScanResult() 319 ScanResult input = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testPskSha256SaeTransitionModeCheck() 346 ScanResult input = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testPskSaeTransitionModeCheck() 373 ScanResult input = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testPskNotInTransitionModeCheck() 400 ScanResult input = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testSaeNotInTransitionModeCheck() 427 ScanResult input = new ScanResult.Builder(WifiSsid.fromUtf8Text(ssid), in testSaeExtKeyAkmSupportedNetwork() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | HearingDevicePairingFragmentTest.java | 32 import android.bluetooth.le.ScanResult; 159 ScanResult scanResult = mock(ScanResult.class); in handleLeScanResult_markDeviceAsHearingAid() 170 ScanResult scanResult = mock(ScanResult.class); in handleLeScanResult_isAndroidCompatible_addDevice() 182 ScanResult scanResult = mock(ScanResult.class); in handleLeScanResult_isNotAndroidCompatible_discoverServices() 194 ScanResult scanResult = mock(ScanResult.class); in handleLeScanResult_alreadyBonded_doNothing() 270 ScanResult scanResult = createAshaScanResult(); in isAndroidCompatibleHearingAid_asha_returnTrue() 279 ScanResult scanResult = createHasScanResult(); in isAndroidCompatibleHearingAid_has_returnTrue() 288 ScanResult scanResult = createMfiHasScanResult(); in isAndroidCompatibleHearingAid_mfiHas_returnFalse() 295 private ScanResult createAshaScanResult() { in createAshaScanResult() 296 ScanResult scanResult = mock(ScanResult.class); in createAshaScanResult() [all …]
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/ |
D | ScanResult.java | 30 public final class ScanResult implements Parcelable, Attributable { class 92 public ScanResult( in ScanResult() method in ScanResult 120 public ScanResult( in ScanResult() method in ScanResult 143 private ScanResult(Parcel in) { in ScanResult() method in ScanResult 312 ScanResult other = (ScanResult) obj; in equals() 351 public static final @android.annotation.NonNull Parcelable.Creator<ScanResult> CREATOR = 352 new Creator<ScanResult>() { 354 public ScanResult createFromParcel(Parcel source) { 355 return new ScanResult(source); 359 public ScanResult[] newArray(int size) { [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/ |
D | WifiP2pManagerTest.java | 36 import android.net.wifi.ScanResult; 175 List<ScanResult.InformationElement> ies = new ArrayList<>(); in testSetVendorElementsWithNonVendorSpecificInformationElement() 176 ies.add(new ScanResult.InformationElement( in testSetVendorElementsWithNonVendorSpecificInformationElement() 177 ScanResult.InformationElement.EID_VSA, 0, new byte[4])); in testSetVendorElementsWithNonVendorSpecificInformationElement() 178 ies.add(new ScanResult.InformationElement( in testSetVendorElementsWithNonVendorSpecificInformationElement() 179 ScanResult.InformationElement.EID_SSID, 0, new byte[4])); in testSetVendorElementsWithNonVendorSpecificInformationElement() 196 List<ScanResult.InformationElement> ies = new ArrayList<>(); in testSetVendorElementsWithIeSizeOver255Bytes() 197 ies.add(new ScanResult.InformationElement( in testSetVendorElementsWithIeSizeOver255Bytes() 198 ScanResult.InformationElement.EID_VSA, 0, new byte[256])); in testSetVendorElementsWithIeSizeOver255Bytes() 215 List<ScanResult.InformationElement> ies = new ArrayList<>(); in testSetVendorElementsWithTotalSizeOver512Bytes() [all …]
|