Home
last modified time | relevance | path

Searched refs:scanResults (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/wifi/
DWifiTrackerTest.java132 List<ScanResult> scanResults = new ArrayList<ScanResult>(); in testNetworkSorting() local
133 String[] expectedSsids = generateTestNetworks(wifiConfigs, scanResults, true); in testNetworkSorting()
140 Mockito.when(mWifiManager.getScanResults()).thenReturn(scanResults); in testNetworkSorting()
156 List<ScanResult> scanResults = new ArrayList<ScanResult>(); in testSavedOnly() local
157 generateTestNetworks(wifiConfigs, scanResults, true); in testSavedOnly()
164 Mockito.when(mWifiManager.getScanResults()).thenReturn(scanResults); in testSavedOnly()
183 List<ScanResult> scanResults = new ArrayList<ScanResult>(); in testSavedOnlyNoLooper() local
184 generateTestNetworks(wifiConfigs, scanResults, true); in testSavedOnlyNoLooper()
188 Mockito.when(mWifiManager.getScanResults()).thenReturn(scanResults); in testSavedOnlyNoLooper()
204 List<ScanResult> scanResults = new ArrayList<ScanResult>(); in testAvailableOnly() local
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DBatchedScanResult.java38 public final List<ScanResult> scanResults = new ArrayList<ScanResult>(); field in BatchedScanResult
46 for (ScanResult s : source.scanResults) scanResults.add(new ScanResult(s)); in BatchedScanResult()
56 for (ScanResult s : scanResults) { in toString()
71 dest.writeInt(scanResults.size()); in writeToParcel()
72 for (ScanResult s : scanResults) { in writeToParcel()
85 result.scanResults.add(ScanResult.CREATOR.createFromParcel(in));
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DSupplicantPnoScannerTest.java94 ScanResults scanResults = createDummyScanResults(false); in startHwDisconnectedPnoScan() local
99 expectSuccessfulHwDisconnectedPnoScan(order, pnoSettings, pnoEventHandler, scanResults); in startHwDisconnectedPnoScan()
115 ScanResults scanResults = createDummyScanResults(true); in pauseResumeHwDisconnectedPnoScanForSingleScan() local
125 scanResults); in pauseResumeHwDisconnectedPnoScanForSingleScan()
136 expectSuccessfulHwDisconnectedPnoScan(order, pnoSettings, pnoEventHandler, scanResults); in pauseResumeHwDisconnectedPnoScanForSingleScan()
185 ScanResults scanResults = createDummyScanResults(true); in delayedHwDisconnectedPnoScanFailure() local
195 scanResults); in delayedHwDisconnectedPnoScanFailure()
214 expectSuccessfulHwDisconnectedPnoScan(order, pnoSettings, pnoEventHandler, scanResults); in delayedHwDisconnectedPnoScanFailure()
250 ScanResults scanResults = createDummyScanResults(false); in ignoreHwDisconnectedPnoScanStopFailure() local
251 expectSuccessfulHwDisconnectedPnoScan(order, pnoSettings, pnoEventHandler, scanResults); in ignoreHwDisconnectedPnoScanStopFailure()
[all …]
DWifiScanningServiceTest.java1563 ScanResults scanResults = createScanResultsForPno(); in testSuccessfulHwPnoScanWithNoBackgroundScan() local
1567 createPnoSettings(scanResults); in testSuccessfulHwPnoScanWithNoBackgroundScan()
1571 scanResults); in testSuccessfulHwPnoScanWithNoBackgroundScan()
1572 verifyPnoNetworkFoundRecieved(order, handler, requestId, scanResults.getRawScanResults()); in testSuccessfulHwPnoScanWithNoBackgroundScan()
1587 ScanResults scanResults = createScanResultsForPno(); in testSuccessfulHwPnoScanWithBackgroundScan() local
1591 createPnoSettings(scanResults); in testSuccessfulHwPnoScanWithBackgroundScan()
1595 pnoSettings.second, scanResults); in testSuccessfulHwPnoScanWithBackgroundScan()
1596 verifyPnoNetworkFoundRecieved(order, handler, requestId, scanResults.getRawScanResults()); in testSuccessfulHwPnoScanWithBackgroundScan()
1611 ScanResults scanResults = createScanResultsForPnoWithNoIE(); in testSuccessfulHwPnoScanWithBackgroundScanWithNoIE() local
1615 createPnoSettings(scanResults); in testSuccessfulHwPnoScanWithBackgroundScanWithNoIE()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNotificationController.java155 List<ScanResult> scanResults) { in checkAndSetNotification() argument
169 if (scanResults != null) { in checkAndSetNotification()
171 for (int i = scanResults.size() - 1; i >= 0; i--) { in checkAndSetNotification()
172 ScanResult scanResult = scanResults.get(i); in checkAndSetNotification()
DWifiServiceImpl.java1565 List<ScanResult> scanResults = mWifiStateMachine.syncGetScanResultsList(); in dump() local
1567 if (scanResults != null && scanResults.size() != 0) { in dump()
1570 for (ScanResult r : scanResults) { in dump()
DWifiStateMachine.java3114 ArrayList<ScanDetail> scanResults = mWifiNative.getScanResults(); in setScanResults() local
3116 if (scanResults.isEmpty()) { in setScanResults()
3135 mScanResults = scanResults; in setScanResults()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNotificationControllerTest.java95 List<ScanResult> scanResults = new ArrayList<>(); in setOpenAccessPoint() local
98 scanResults.add(scanResult); in setOpenAccessPoint()
99 when(mWifiStateMachine.syncGetScanResultsList()).thenReturn(scanResults); in setOpenAccessPoint()
DWifiConnectivityManagerTest.java168 final ScanResult[] scanResults = new ScanResult[1]; in mockWifiScanner() local
169 scanResults[0] = new ScanResult(WifiSsid.createFromAsciiEncoded(CANDIDATE_SSID), in mockWifiScanner()
172 scanResults[0].informationElements = new InformationElement[1]; in mockWifiScanner()
173 scanResults[0].informationElements[0] = new InformationElement(); in mockWifiScanner()
174 scanResults[0].informationElements[0].id = InformationElement.EID_SSID; in mockWifiScanner()
175 scanResults[0].informationElements[0].bytes = in mockWifiScanner()
181 listener.onPnoNetworkFound(scanResults); in mockWifiScanner()
187 listener.onPnoNetworkFound(scanResults); in mockWifiScanner()
DScanResults.java44 ScanResult[] scanResults) { in ScanResults() argument
48 mScanResults = scanResults; in ScanResults()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DOSUCache.java80 public Map<OSUProvider, ScanResult> pushScanResults(Collection<ScanResult> scanResults) { in pushScanResults() argument
81 for (ScanResult scanResult : scanResults) { in pushScanResults()
DOSUManager.java603 public void pushScanResults(Collection<ScanResult> scanResults) { in pushScanResults() argument
604 Map<OSUProvider, ScanResult> results = mOSUCache.pushScanResults(scanResults); in pushScanResults()
/frameworks/opt/net/wifi/service/jni/
Dcom_android_server_wifi_WifiNative.cpp582 JNIObject<jobjectArray> scanResults = helper.createObjectArray( in android_net_wifi_getScanResults() local
584 if (scanResults == NULL) { in android_net_wifi_getScanResults()
599 helper.setObjectArrayElement(scanResults, j, scanResult); in android_net_wifi_getScanResults()
602 helper.setObjectField(data, "mResults", "[Landroid/net/wifi/ScanResult;", scanResults); in android_net_wifi_getScanResults()
715 JNIObject<jobjectArray> scanResults = helper.newObjectArray(num_results, in onHotlistApFound() local
717 if (scanResults == NULL) { in onHotlistApFound()
730 helper.setObjectArrayElement(scanResults, i, scanResult); in onHotlistApFound()
736 id, scanResults.get()); in onHotlistApFound()
745 JNIObject<jobjectArray> scanResults = helper.newObjectArray(num_results, in onHotlistApLost() local
747 if (scanResults == NULL) { in onHotlistApLost()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningServiceImpl.java1588 ScanResult[] scanResults = ((ScanResult[]) msg.obj); in processMessage() local
1589 if (isSingleScanNeeded(scanResults)) { in processMessage()
1691 ScanResult[] scanResults = mSwPnoFullScanResults.toArray( in processMessage() local
1693 reportPnoNetworkFound(scanResults); in processMessage()
1874 private boolean isSingleScanNeeded(ScanResult[] scanResults) { in isSingleScanNeeded() argument
1875 for (ScanResult scanResult : scanResults) { in isSingleScanNeeded()
DSupplicantWifiScannerImpl.java958 public int processScan(List<ScanResult> scanResults) { in processScan() argument
974 ScanResult result = findResult(scanResults, mBssidInfos[i].bssid); in processScan()
/frameworks/base/api/
Dsystem-current.txt26495 field public final java.util.List<android.net.wifi.ScanResult> scanResults;