Home
last modified time | relevance | path

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

123

/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 …]
DWifiQualifiedNetworkSelectorTest.java38 import android.net.wifi.ScanResult;
280 ScanResult scanResult = scanDetail.getScanResult(); in configureScoreCache()
304 private void verifySelectedResult(ScanResult chosenScanResult, WifiConfiguration candidate) { in verifySelectedResult()
305 ScanResult candidateScan = candidate.getNetworkSelectionStatus().getCandidate(); in verifySelectedResult()
342 ScanResult chosenScanResult = scanDetails.get(scanDetails.size() - 1).getScanResult(); in chooseNetworkDisconnected2GHighestRssi()
379 ScanResult chosenScanResult = scanDetails.get(scanDetails.size() - 1).getScanResult(); in chooseNetworkDisconnected5GHighestRssi()
415 ScanResult chosenScanResult = scanDetails.get(scanDetails.size() - 1).getScanResult(); in chooseNetworkDisconnect5GOver2GTest()
452 ScanResult chosenScanResult = scanDetails.get(0).getScanResult(); in chooseNetworkDisconnect2GOver5GTest()
489 ScanResult chosenScanResult = scanDetails.get(scanDetails.size() - 1).getScanResult(); in chooseNetworkDisconnect2GRssiSaturationTest()
561 ScanResult chosenScanResult = scanDetails.get(0).getScanResult(); in chooseNetworkSecurityOverPassPoint()
[all …]
DScanTestUtil.java23 import android.net.wifi.ScanResult;
210 public static ScanResult createScanResult(int freq) { in createScanResult()
211 return new ScanResult(WifiSsid.createFromAsciiEncoded("AN SSID"), "00:00:00:00:00:00", 0L, in createScanResult()
216 ScanResult[] results = new ScanResult[freqs.length]; in createScanData()
236 private static void assertScanResultsEquals(String prefix, ScanResult[] expected, in assertScanResultsEquals()
237 ScanResult[] actual) { in assertScanResultsEquals()
242 ScanResult expectedResult = expected[j]; in assertScanResultsEquals()
243 ScanResult actualResult = actual[j]; in assertScanResultsEquals()
266 public static void assertScanResultsEquals(ScanResult[] expected, ScanResult[] actual) { in assertScanResultsEquals()
DWifiNotificationControllerTest.java34 import android.net.wifi.ScanResult;
95 List<ScanResult> scanResults = new ArrayList<>(); in setOpenAccessPoint()
96 ScanResult scanResult = new ScanResult(); in setOpenAccessPoint()
/frameworks/base/core/java/android/bluetooth/le/
DScanResult.java29 public final class ScanResult implements Parcelable { class
51 public ScanResult(BluetoothDevice device, ScanRecord scanRecord, int rssi, in ScanResult() method in ScanResult
59 private ScanResult(Parcel in) { in ScanResult() method in ScanResult
139 ScanResult other = (ScanResult) obj; in equals()
152 public static final Parcelable.Creator<ScanResult> CREATOR = new Creator<ScanResult>() {
154 public ScanResult createFromParcel(Parcel source) {
155 return new ScanResult(source);
159 public ScanResult[] newArray(int size) {
160 return new ScanResult[size];
DScanCallback.java62 public void onScanResult(int callbackType, ScanResult result) { in onScanResult()
70 public void onBatchScanResults(List<ScanResult> results) { in onBatchScanResults()
/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()
90 private void putResult(ScanResult scanResult, AnqpInformationElement[] elements) { in putResult()
108 private void putProviders(ScanResult scanResult, HSOsuProvidersElement osuProviders) { in putProviders()
[all …]
/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.java31 public class ScanResult implements Parcelable { class
274 return ScanResult.is24GHz(frequency); in is24GHz()
289 return ScanResult.is5GHz(frequency); in is5GHz()
353 public ScanResult(WifiSsid wifiSsid, String BSSID, long hessid, int anqpDomainId, in ScanResult() method in ScanResult
379 public ScanResult(WifiSsid wifiSsid, String BSSID, String caps, int level, int frequency, in ScanResult() method in ScanResult
397 public ScanResult(String Ssid, String BSSID, long hessid, int anqpDomainId, String caps, in ScanResult() method in ScanResult
422 public ScanResult(WifiSsid wifiSsid, String Ssid, String BSSID, long hessid, int anqpDomainId, in ScanResult() method in ScanResult
432 public ScanResult(ScanResult source) { in ScanResult() method in ScanResult
466 public ScanResult() { in ScanResult() method in ScanResult
572 public static final Creator<ScanResult> CREATOR =
[all …]
DWifiScanner.java290 private ScanResult mResults[];
294 public ScanData(int id, int flags, ScanResult[] results) { in ScanData()
301 public ScanData(int id, int flags, int bucketsScanned, ScanResult[] results) { in ScanData()
312 mResults = new ScanResult[s.mResults.length]; in ScanData()
314 ScanResult result = s.mResults[i]; in ScanData()
315 ScanResult newResult = new ScanResult(result); in ScanData()
333 public ScanResult[] getResults() { in getResults()
350 ScanResult result = mResults[i]; in writeToParcel()
366 ScanResult results[] = new ScanResult[n];
368 results[i] = ScanResult.CREATOR.createFromParcel(in);
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanDetailUtilTest.java23 import android.net.wifi.ScanResult;
24 import android.net.wifi.ScanResult.InformationElement;
45 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResult()
61 ScanResult input = new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), ssid, in convertScanResultWithAnqpLines()
77 ScanResult input = new ScanResult(ssid, "ab:cd:01:ef:45:89", 1245, 0, "other caps", in convertScanResultWithoutWifiSsid()
95 private static void validateScanDetail(ScanResult input, ScanDetail output) { in validateScanDetail()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DNetworkDetail.java6 import android.net.wifi.ScanResult;
125 public NetworkDetail(String bssid, ScanResult.InformationElement[] infoElements, in NetworkDetail()
165 for (ScanResult.InformationElement ie : infoElements) { in NetworkDetail()
168 case ScanResult.InformationElement.EID_SSID: in NetworkDetail()
171 case ScanResult.InformationElement.EID_BSS_LOAD: in NetworkDetail()
174 case ScanResult.InformationElement.EID_HT_OPERATION: in NetworkDetail()
177 case ScanResult.InformationElement.EID_VHT_OPERATION: in NetworkDetail()
180 case ScanResult.InformationElement.EID_INTERWORKING: in NetworkDetail()
183 case ScanResult.InformationElement.EID_ROAMING_CONSORTIUM: in NetworkDetail()
186 case ScanResult.InformationElement.EID_VSA: in NetworkDetail()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNetworkScoreCache.java24 import android.net.wifi.ScanResult;
80 public boolean isScoredNetwork(ScanResult result) { in isScoredNetwork()
90 public boolean hasScoreCurve(ScanResult result) { in hasScoreCurve()
95 public int getNetworkScore(ScanResult result) { in getNetworkScore()
116 public boolean getMeteredHint(ScanResult result) { in getMeteredHint()
121 public int getNetworkScore(ScanResult result, boolean isActiveNetwork) { in getNetworkScore()
138 private ScoredNetwork getScoredNetwork(ScanResult result) { in getScoredNetwork()
163 private String buildNetworkKey(ScanResult result) { in buildNetworkKey()
187 for (ScanResult scanResult : wifiManager.getScanResults()) { in dump()
DScanDetail.java20 import android.net.wifi.ScanResult;
40 private final ScanResult mScanResult;
47 ScanResult.InformationElement[] informationElements, List<String> anqpLines) { in ScanDetail()
49 mScanResult = new ScanResult(wifiSsid, bssid, networkDetail.getHESSID(), in ScanDetail()
60 mScanResult.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in ScanDetail()
68 mScanResult = new ScanResult(wifiSsid, bssid, 0L, -1, null, caps, level, frequency, tsf); in ScanDetail()
78 public ScanDetail(ScanResult scanResult, NetworkDetail networkDetail, in ScanDetail()
112 mScanResult.setFlag(ScanResult.FLAG_80211mc_RESPONDER); in updateResults()
115 mScanResult.setFlag(ScanResult.FLAG_PASSPOINT_NETWORK); in updateResults()
152 public ScanResult getScanResult() { in getScanResult()
DScanDetailCache.java19 import android.net.wifi.ScanResult;
67 ScanResult get(String bssid) { in get()
142 ScanResult a = ((ScanDetail) o1).getScanResult(); in sort()
143 ScanResult b = ((ScanDetail) o2).getScanResult(); in sort()
181 ScanResult result = scanDetail.getScanResult(); in getVisibilityByRssi()
240 ScanResult result = scanDetail.getScanResult(); in getVisibilityByPasspointMatch()
261 ScanResult result = pmiBest5.getScanDetail().getScanResult(); in getVisibilityByPasspointMatch()
268 ScanResult result = pmiBest24.getScanDetail().getScanResult(); in getVisibilityByPasspointMatch()
306 ScanResult result = scanDetail.getScanResult(); in toString()
/frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/wifi/
DWifiTrackerTest.java21 import android.net.wifi.ScanResult;
132 List<ScanResult> scanResults = new ArrayList<ScanResult>(); in testNetworkSorting()
156 List<ScanResult> scanResults = new ArrayList<ScanResult>(); in testSavedOnly()
183 List<ScanResult> scanResults = new ArrayList<ScanResult>(); in testSavedOnlyNoLooper()
204 List<ScanResult> scanResults = new ArrayList<ScanResult>(); in testAvailableOnly()
229 List<ScanResult> scanResults = new ArrayList<ScanResult>(); in testNonEphemeralConnected()
271 List<ScanResult> scanResults, boolean connectedIsEphemeral) { in generateTestNetworks()
315 private void addResult(List<ScanResult> results, String ssid, int level) { in addResult()
316 results.add(new ScanResult(WifiSsid.createFromAsciiEncoded(ssid), in addResult()
DAccessPointTest.java18 import android.net.wifi.ScanResult;
51 ScanResult result = new ScanResult(); in testOnLevelChanged()
76 ScanResult result = new ScanResult(); in testOnAccessPointChangedCallback()
/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;
59 protected static final Comparator<ScanResult> SCAN_RESULT_SORT_COMPARATOR =
60 new Comparator<ScanResult>() {
61 public int compare(ScanResult r1, ScanResult r2) {
DSupplicantWifiScannerImpl.java21 import android.net.wifi.ScanResult;
89 new WifiScanner.ScanData(0, 0, new ScanResult[0]);
539 List<ScanResult> singleScanResults = new ArrayList<>(); in pollLatestScanData()
540 List<ScanResult> backgroundScanResults = new ArrayList<>(); in pollLatestScanData()
541 List<ScanResult> hwPnoScanResults = new ArrayList<>(); in pollLatestScanData()
543 ScanResult result = nativeResults.get(i).getScanResult(); in pollLatestScanData()
566 for (ScanResult scanResult : backgroundScanResults) { in pollLatestScanData()
574 ScanResult[] scanResultsArray = new ScanResult[Math.min(mLastScanSettings.maxAps, in pollLatestScanData()
620 for (ScanResult scanResult : singleScanResults) { in pollLatestScanData()
628 singleScanResults.toArray(new ScanResult[singleScanResults.size()])); in pollLatestScanData()
[all …]
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()
DWifiScanningServiceImpl.java28 import android.net.wifi.ScanResult;
467 public void onFullScanResult(ScanResult fullScanResult, int bucketsScanned) { in onFullScanResult()
627 reportFullScanResult((ScanResult) msg.obj, /* bucketsScanned */ msg.arg2); in processMessage()
741 void reportFullScanResult(ScanResult result, int bucketsScanned) { in reportFullScanResult()
832 public void onFullScanResult(ScanResult fullScanResult, int bucketsScanned) { in onFullScanResult()
850 public void onHotlistApFound(ScanResult[] results) { in onHotlistApFound()
856 public void onHotlistApLost(ScanResult[] results) { in onHotlistApLost()
989 reportFullScanResult((ScanResult) msg.obj, /* bucketsScanned */ msg.arg2); in processMessage()
992 reportHotlistResults(WifiScanner.CMD_AP_FOUND, (ScanResult[]) msg.obj); in processMessage()
995 reportHotlistResults(WifiScanner.CMD_AP_LOST, (ScanResult[]) msg.obj); in processMessage()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattCallbackWrapper.java20 import android.bluetooth.le.ScanResult;
44 public void onScanResult(ScanResult scanResult) throws RemoteException { in onScanResult()
48 public void onBatchScanResults(List<ScanResult> batchResults) throws RemoteException { in onBatchScanResults()
95 public void onFoundOrLost(boolean onFound, ScanResult scanResult) throws RemoteException { in onFoundOrLost()
DIBluetoothGattCallback.aidl21 import android.bluetooth.le.ScanResult;
31 void onScanResult(in ScanResult scanResult); in onScanResult()
32 void onBatchScanResults(in List<ScanResult> batchResults); in onBatchScanResults()
45 void onFoundOrLost(in boolean onFound, in ScanResult scanResult); in onFoundOrLost()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java31 import android.net.wifi.ScanResult;
84 public LruCache<String, ScanResult> mScanResultCache = new LruCache<String, ScanResult>(32);
150 ArrayList<ScanResult> scanResultArrayList = in AccessPoint()
153 for (ScanResult result : scanResultArrayList) { in AccessPoint()
162 AccessPoint(Context context, ScanResult result) { in AccessPoint()
236 public boolean matches(ScanResult result) { in matches()
272 for (ScanResult result : mScanResultCache.snapshot().values()) { in getRssi()
283 for (ScanResult result : mScanResultCache.snapshot().values()) { in getSeen()
508 Map<String, ScanResult> list = mScanResultCache.snapshot(); in getVisibilityStatus()
510 for (ScanResult result : list.values()) { in getVisibilityStatus()
[all …]

123