Home | History | Annotate | Download | only in hotspot2

Lines Matching defs:scanDetail

41 import com.android.server.wifi.ScanDetail;
106 * Helper function for generating {@link ScanDetail} for testing.
110 * @return {@link ScanDetail}
112 private static ScanDetail generateScanDetail(String ssid, String bssid) {
117 ScanDetail scanDetail = mock(ScanDetail.class);
121 when(scanDetail.getSSID()).thenReturn(ssid);
122 when(scanDetail.getBSSIDString()).thenReturn(bssid);
123 when(scanDetail.getScanResult()).thenReturn(scanResult);
124 when(scanDetail.getNetworkDetail()).thenReturn(networkDetail);
125 return scanDetail;
146 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] {
149 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>();
166 ScanDetail scanDetail = mock(ScanDetail.class);
167 when(scanDetail.getNetworkDetail()).thenReturn(networkDetail);
169 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] {scanDetail});
170 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>();
186 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] {
190 // Setup matching providers for ScanDetail with TEST_SSID1.
194 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>();
196 // Return homeProvider for the first ScanDetail (TEST_SSID1) and a null (no match) for
218 eq(TEST_NETWORK_ID), any(ScanDetail.class));
229 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] {
233 // Setup matching providers for ScanDetail with TEST_SSID1.
237 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>();
239 // Return roamingProvider for the first ScanDetail (TEST_SSID1) and a null (no match) for
261 eq(TEST_NETWORK_ID), any(ScanDetail.class));
272 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] {
276 // Setup matching providers for ScanDetail with TEST_SSID1.
282 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>();
284 // Return homeProvider for the first ScanDetail (TEST_SSID1) and
306 eq(TEST_NETWORK_ID), any(ScanDetail.class));
317 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] {
321 // Setup matching providers for both ScanDetail.
331 // Returning the same matching provider for both ScanDetail.
332 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>();
356 // Setup ScanDetail and match providers.
357 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] {
363 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>();
381 List<ScanDetail> scanDetails = Arrays.asList(new ScanDetail[] {
394 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>();
406 ArgumentCaptor<ScanDetail> updatedCandidateScanDetail =
407 ArgumentCaptor.forClass(ScanDetail.class);