Home
last modified time | relevance | path

Searched refs:ScanResult (Results 1 – 25 of 93) sorted by relevance

1234

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanResults.java19 import android.net.wifi.ScanResult;
41 private final ScanResult[] mScanResults;
44 ScanResult[] scanResults) { in ScanResults()
56 ArrayList<ScanResult> scanDataResults = new ArrayList<>(); in merge()
57 ArrayList<ScanResult> rawScanResults = new ArrayList<>(); in merge()
66 .toArray(new ScanResult[scanDataResults.size()])), in merge()
67 rawScanResults.toArray(new ScanResult[rawScanResults.size()])); in merge()
76 public static final Comparator<ScanResult> SCAN_RESULT_RSSI_COMPARATOR =
77 new Comparator<ScanResult>() {
78 public int compare(ScanResult r1, ScanResult r2) {
[all …]
DScanTestUtil.java23 import android.net.wifi.ScanResult;
214 public static ScanResult createScanResult(int freq) { in createScanResult()
215 return new ScanResult(WifiSsid.createFromAsciiEncoded("AN SSID"), "00:00:00:00:00:00", 0L, in createScanResult()
220 ScanResult[] results = new ScanResult[freqs.length]; in createScanData()
241 String prefix, ScanResult expected, ScanResult actual) { in assertScanResultEquals()
252 private static void assertScanResultsEquals(String prefix, ScanResult[] expected, in assertScanResultsEquals()
253 ScanResult[] actual) { in assertScanResultsEquals()
258 ScanResult expectedResult = expected[j]; in assertScanResultsEquals()
259 ScanResult actualResult = actual[j]; in assertScanResultsEquals()
267 public static void assertScanResultEquals(ScanResult expected, ScanResult actual) { in assertScanResultEquals()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkKeyTest.java7 import android.net.wifi.ScanResult;
93 ScanResult scanResult = new ScanResult(); in createFromScanResult_nullWifiSsid()
101 ScanResult scanResult = new ScanResult(); in createFromScanResult_emptyWifiSsid()
110 ScanResult scanResult = new ScanResult(); in createFromScanResult_noneWifiSsid()
119 ScanResult scanResult = new ScanResult(); in createFromScanResult_nullBssid()
127 ScanResult scanResult = new ScanResult(); in createFromScanResult_emptyBssid()
136 ScanResult scanResult = new ScanResult(); in createFromScanResult_invalidBssid()
145 ScanResult scanResult = new ScanResult(); in createFromScanResult_validWifiSsid()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DInformationElementUtil.java18 import android.net.wifi.ScanResult;
19 import android.net.wifi.ScanResult.InformationElement;
450 protocol.add(ScanResult.PROTOCOL_WPA2); in parseRsnElement()
473 rsnKeyManagement.add(ScanResult.KEY_MGMT_EAP); in parseRsnElement()
476 rsnKeyManagement.add(ScanResult.KEY_MGMT_PSK); in parseRsnElement()
479 rsnKeyManagement.add(ScanResult.KEY_MGMT_FT_EAP); in parseRsnElement()
482 rsnKeyManagement.add(ScanResult.KEY_MGMT_FT_PSK); in parseRsnElement()
485 rsnKeyManagement.add(ScanResult.KEY_MGMT_EAP_SHA256); in parseRsnElement()
488 rsnKeyManagement.add(ScanResult.KEY_MGMT_PSK_SHA256); in parseRsnElement()
497 rsnKeyManagement.add(ScanResult.KEY_MGMT_EAP); in parseRsnElement()
[all …]
DScanResultUtil.java19 import android.net.wifi.ScanResult;
42 public static ScanDetail toScanDetail(ScanResult scanResult) { in toScanDetail()
52 public static boolean isScanResultForPskNetwork(ScanResult scanResult) { in isScanResultForPskNetwork()
60 public static boolean isScanResultForEapNetwork(ScanResult scanResult) { in isScanResultForEapNetwork()
68 public static boolean isScanResultForWepNetwork(ScanResult scanResult) { in isScanResultForWepNetwork()
77 public static boolean isScanResultForOpenNetwork(ScanResult scanResult) { in isScanResultForOpenNetwork()
96 ScanResult scanResult, WifiConfiguration config) { in doesScanResultMatchWithNetwork()
124 public static WifiConfiguration createNetworkFromScanResult(ScanResult scanResult) { in createNetworkFromScanResult()
135 public static void setAllowedKeyManagementFromScanResult(ScanResult scanResult, in setAllowedKeyManagementFromScanResult()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DOSUCache.java4 import android.net.wifi.ScanResult;
33 private final Map<OSUProvider, ScanResult> mBatchedOSUs = new HashMap<>();
37 private final ScanResult mScanResult;
40 private ScanInstance(ScanResult scanResult, int instant) { in ScanInstance()
45 public ScanResult getScanResult() { in getScanResult()
53 private boolean bssidEqual(ScanResult scanResult) { in bssidEqual()
80 public Map<OSUProvider, ScanResult> pushScanResults(Collection<ScanResult> scanResults) { in pushScanResults()
81 for (ScanResult scanResult : scanResults) { in pushScanResults()
92 private void putResult(ScanResult scanResult, AnqpInformationElement[] elements) { in putResult()
112 private void putProviders(ScanResult scanResult, HSOsuProvidersElement osuProviders) { in putProviders()
[all …]
/frameworks/base/core/java/android/bluetooth/le/
DScanResult.java29 public final class ScanResult implements Parcelable { class
103 public ScanResult(BluetoothDevice device, ScanRecord scanRecord, int rssi, in ScanResult() method in ScanResult
131 public ScanResult(BluetoothDevice device, int eventType, int primaryPhy, int secondaryPhy, in ScanResult() method in ScanResult
146 private ScanResult(Parcel in) { in ScanResult() method in ScanResult
309 ScanResult other = (ScanResult) obj; in equals()
331 public static final Parcelable.Creator<ScanResult> CREATOR = new Creator<ScanResult>() {
333 public ScanResult createFromParcel(Parcel source) {
334 return new ScanResult(source);
338 public ScanResult[] newArray(int size) {
339 return new ScanResult[size];
DIScannerCallback.aidl18 import android.bluetooth.le.ScanResult;
27 void onScanResult(in ScanResult scanResult); in onScanResult()
28 void onBatchScanResults(in List<ScanResult> batchResults); in onBatchScanResults()
29 void onFoundOrLost(in boolean onFound, in ScanResult scanResult); in onFoundOrLost()
DScanCallback.java64 public void onScanResult(int callbackType, ScanResult result) { in onScanResult()
72 public void onBatchScanResults(List<ScanResult> results) { in onBatchScanResults()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java21 import android.net.wifi.ScanResult;
22 import android.net.wifi.ScanResult.InformationElement;
44 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResult()
60 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResultWithAnqpLines()
76 ScanResult input = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "other caps", in convertScanResultWithoutWifiSsid()
92 ScanResult scanResult = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "", in testScanResultMatchingWithNetwork()
116 ScanResult scanResult = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "", in testNetworkCreationFromScanResult()
151 private static void validateScanDetail(ScanResult input, ScanDetail output) { in validateScanDetail()
/frameworks/base/wifi/java/android/net/wifi/
DBatchedScanResult.java38 public final List<ScanResult> scanResults = new ArrayList<ScanResult>();
46 for (ScanResult s : source.scanResults) scanResults.add(new ScanResult(s)); in BatchedScanResult()
56 for (ScanResult s : scanResults) { in toString()
72 for (ScanResult s : scanResults) { in writeToParcel()
85 result.scanResults.add(ScanResult.CREATOR.createFromParcel(in));
DScanResult.java32 public class ScanResult implements Parcelable { class
356 return ScanResult.is24GHz(frequency); in is24GHz()
371 return ScanResult.is5GHz(frequency); in is5GHz()
435 public ScanResult(WifiSsid wifiSsid, String BSSID, long hessid, int anqpDomainId, in ScanResult() method in ScanResult
461 public ScanResult(WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, in ScanResult() method in ScanResult
479 public ScanResult(String Ssid, String BSSID, long hessid, int anqpDomainId, String caps, in ScanResult() method in ScanResult
504 public ScanResult(WifiSsid wifiSsid, String Ssid, String BSSID, long hessid, int anqpDomainId, in ScanResult() method in ScanResult
514 public ScanResult(ScanResult source) { in ScanResult() method in ScanResult
547 public ScanResult() { in ScanResult() method in ScanResult
652 public static final Creator<ScanResult> CREATOR =
[all …]
DWifiScanner.java324 private ScanResult mResults[];
328 public ScanData(int id, int flags, ScanResult[] results) { in ScanData()
336 ScanResult[] results) { in ScanData()
349 mResults = new ScanResult[s.mResults.length]; in ScanData()
351 ScanResult result = s.mResults[i]; in ScanData()
352 ScanResult newResult = new ScanResult(result); in ScanData()
375 public ScanResult[] getResults() { in getResults()
393 ScanResult result = mResults[i]; in writeToParcel()
410 ScanResult results[] = new ScanResult[n];
412 results[i] = ScanResult.CREATOR.createFromParcel(in);
[all …]
DWifiNetworkScoreCache.java125 public boolean isScoredNetwork(ScanResult result) { in isScoredNetwork()
135 public boolean hasScoreCurve(ScanResult result) { in hasScoreCurve()
140 public int getNetworkScore(ScanResult result) { in getNetworkScore()
161 public boolean getMeteredHint(ScanResult result) { in getMeteredHint()
166 public int getNetworkScore(ScanResult result, boolean isActiveNetwork) { in getNetworkScore()
184 public ScoredNetwork getScoredNetwork(ScanResult result) { in getScoredNetwork()
232 private String buildNetworkKey(ScanResult result) { in buildNetworkKey()
256 for (ScanResult scanResult : wifiManager.getScanResults()) { in dump()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DNetworkDetail.java6 import android.net.wifi.ScanResult;
121 public NetworkDetail(String bssid, ScanResult.InformationElement[] infoElements, in NetworkDetail()
162 for (ScanResult.InformationElement ie : infoElements) { in NetworkDetail()
165 case ScanResult.InformationElement.EID_SSID: in NetworkDetail()
168 case ScanResult.InformationElement.EID_BSS_LOAD: in NetworkDetail()
171 case ScanResult.InformationElement.EID_HT_OPERATION: in NetworkDetail()
174 case ScanResult.InformationElement.EID_VHT_OPERATION: in NetworkDetail()
177 case ScanResult.InformationElement.EID_INTERWORKING: in NetworkDetail()
180 case ScanResult.InformationElement.EID_ROAMING_CONSORTIUM: in NetworkDetail()
183 case ScanResult.InformationElement.EID_VSA: in NetworkDetail()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanDetail.java20 import android.net.wifi.ScanResult;
38 private final ScanResult mScanResult;
44 ScanResult.InformationElement[] informationElements, List<String> anqpLines) { in ScanDetail()
46 mScanResult = new ScanResult(wifiSsid, bssid, networkDetail.getHESSID(), in ScanDetail()
57 mScanResult.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in ScanDetail()
60 mScanResult.setFlag(ScanResult.FLAG_PASSPOINT_NETWORK); in ScanDetail()
67 mScanResult = new ScanResult(wifiSsid, bssid, 0L, -1, null, caps, level, frequency, tsf); in ScanDetail()
76 public ScanDetail(ScanResult scanResult, NetworkDetail networkDetail) { in ScanDetail()
117 public ScanResult getScanResult() { in getScanResult()
DScoredNetworkEvaluator.java24 import android.net.wifi.ScanResult;
89 ScanResult scanResult = scanDetails.get(i).getScanResult(); in updateNetworkScoreCache()
120 ScanResult scanResult = scanDetail.getScanResult(); in evaluateNetworks()
183 private ScanResult mScanResultCandidate;
193 private Integer getNetworkScore(ScanResult scanResult, boolean isCurrentNetwork) { in getNetworkScore()
206 void trackUntrustedCandidate(ScanResult scanResult) { in trackUntrustedCandidate()
222 ScanResult scanResult, WifiConfiguration config, boolean isCurrentNetwork) { in trackUntrustedCandidate()
237 ScanResult scanResult, WifiConfiguration config, boolean isCurrentNetwork) { in trackExternallyScoredCandidate()
DScanDetailCache.java19 import android.net.wifi.ScanResult;
70 ScanResult get(String bssid) { in get()
138 ScanResult a = ((ScanDetail) o1).getScanResult(); in sort()
139 ScanResult b = ((ScanDetail) o2).getScanResult(); in sort()
177 ScanResult result = scanDetail.getScanResult(); in getVisibilityByRssi()
243 ScanResult result = scanDetail.getScanResult(); in toString()
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilterUtils.java26 import android.net.wifi.ScanResult;
103 static boolean matchesName(@Nullable Pattern namePattern, ScanResult device) { in matchesName()
123 boolean result, ScanResult device, Object criteria) { in debugLogMatchResult()
131 public static String getDeviceDisplayNameInternal(@NonNull ScanResult device) { in getDeviceDisplayNameInternal()
138 } else if (device instanceof ScanResult) { in getDeviceMacAddress()
139 return ((ScanResult) device).BSSID; in getDeviceMacAddress()
140 } else if (device instanceof android.bluetooth.le.ScanResult) { in getDeviceMacAddress()
141 return getDeviceMacAddress(((android.bluetooth.le.ScanResult) device).getDevice()); in getDeviceMacAddress()
DWifiDeviceFilter.java28 import android.net.wifi.ScanResult;
40 public final class WifiDeviceFilter implements DeviceFilter<ScanResult> {
62 public boolean matches(ScanResult device) { in matches()
68 public String getDeviceDisplayName(ScanResult device) { in getDeviceDisplayName()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DScanResultTest.java46 ScanResult result = new ScanResult(device, ScanRecord.parseFromBytes(scanRecord), rssi, in testScanResultParceling()
52 ScanResult resultFromParcel = ScanResult.CREATOR.createFromParcel(parcel); in testScanResultParceling()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScannerImpl.java20 import android.net.wifi.ScanResult;
63 protected static final Comparator<ScanResult> SCAN_RESULT_SORT_COMPARATOR =
64 new Comparator<ScanResult>() {
65 public int compare(ScanResult r1, ScanResult r2) {
DScanScheduleUtil.java20 import android.net.wifi.ScanResult;
132 ScanResult result, int bucketsScanned, ScanSettings settings, int scheduledBucket) { in shouldReportFullScanResultForSettings()
155 List<ScanResult> filteredResults = new ArrayList<>(); in filterResultsForSettings()
160 for (ScanResult scanResult : scanData.getResults()) { in filterResultsForSettings()
179 new ScanResult[filteredResults.size()]))); in filterResultsForSettings()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkScoreCacheTest.java62 public static final ScanResult VALID_SCAN_RESULT = buildScanResult(SSID, BSSID);
76 private static ScanResult buildScanResult(String ssid, String bssid) { in buildScanResult()
77 return new ScanResult( in buildScanResult()
136 ScanResult result2 = buildScanResult("ssid2", BSSID); in updateScoresShouldAddNewNetwork()
151 ScanResult unscored = buildScanResult("fake", BSSID); in hasScoreCurveShouldReturnFalseWhenNoCachedNetwork()
167 ScanResult result = new ScanResult(VALID_SCAN_RESULT); in getNetworkScoreShouldReturnScore()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluatorTest.java32 import android.net.wifi.ScanResult;
117 when(scanDetail.getScanResult()).thenReturn(new ScanResult()); in generateScanDetail()
143 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(null); in evaluateScansWithNoMatch()
168 verify(mPasspointManager, never()).matchProvider(any(ScanResult.class)); in evaulateScansWithNoInterworkingAP()
190 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(homeProvider) in evaluateScansWithNetworkMatchingHomeProvider()
208 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt()); in evaluateScansWithNetworkMatchingHomeProvider()
232 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(roamingProvider) in evaluateScansWithNetworkMatchingRoamingProvider()
250 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt()); in evaluateScansWithNetworkMatchingRoamingProvider()
276 when(mPasspointManager.matchProvider(any(ScanResult.class))) in evaluateScansWithHomeProviderNewtorkAndRoamingProviderNetwork()
294 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt()); in evaluateScansWithHomeProviderNewtorkAndRoamingProviderNetwork()
[all …]

1234