HomeSort by relevance Sort by last modified time
    Searched refs:WifiScanner (Results 1 - 25 of 38) sorted by null

1 2

  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
KnownBandsChannelHelper.java 19 import android.net.wifi.WifiScanner;
32 private WifiScanner.ChannelSpec[][] mBandsToChannels;
35 mBandsToChannels = new WifiScanner.ChannelSpec[8][];
39 mBandsToChannels[1] = new WifiScanner.ChannelSpec[channels2G.length];
42 mBandsToChannels[2] = new WifiScanner.ChannelSpec[channels5G.length];
45 mBandsToChannels[3] = new WifiScanner.ChannelSpec[channels2G.length + channels5G.length];
49 mBandsToChannels[4] = new WifiScanner.ChannelSpec[channelsDfs.length];
52 mBandsToChannels[5] = new WifiScanner.ChannelSpec[channels2G.length + channelsDfs.length];
56 mBandsToChannels[6] = new WifiScanner.ChannelSpec[channels5G.length + channelsDfs.length];
60 mBandsToChannels[7] = new WifiScanner.ChannelSpec
    [all...]
ChannelHelper.java 19 import android.net.wifi.WifiScanner;
40 protected static final WifiScanner.ChannelSpec[] NO_CHANNELS = new WifiScanner.ChannelSpec[0];
50 public abstract boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel);
56 public abstract WifiScanner.ChannelSpec[] getAvailableScanChannels(int band);
61 public abstract int estimateScanDuration(WifiScanner.ScanSettings settings);
123 public void addChannels(WifiScanner.ScanSettings scanSettings) {
124 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
137 if (bucketSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
149 public boolean containsSettings(WifiScanner.ScanSettings scanSettings)
    [all...]
NoBandChannelHelper.java 19 import android.net.wifi.WifiScanner;
40 public boolean settingsContainChannel(WifiScanner.ScanSettings settings, int channel) {
41 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
54 public WifiScanner.ChannelSpec[] getAvailableScanChannels(int band) {
59 public int estimateScanDuration(WifiScanner.ScanSettings settings) {
60 if (settings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) {
83 if (band != WifiScanner.WIFI_BAND_UNSPECIFIED) {
95 if (band != WifiScanner.WIFI_BAND_UNSPECIFIED) {
148 bucketSettings.band = WifiScanner.WIFI_BAND_BOTH_WITH_DFS;
152 bucketSettings.band = WifiScanner.WIFI_BAND_UNSPECIFIED
    [all...]
WifiScanningServiceImpl.java 30 import android.net.wifi.WifiScanner;
31 import android.net.wifi.WifiScanner.BssidInfo;
32 import android.net.wifi.WifiScanner.ChannelSpec;
33 import android.net.wifi.WifiScanner.PnoSettings;
34 import android.net.wifi.WifiScanner.ScanData;
35 import android.net.wifi.WifiScanner.ScanSettings;
116 b.putIntegerArrayList(WifiScanner.GET_AVAILABLE_CHANNELS_EXTRA, list);
179 replyFailed(msg, WifiScanner.REASON_NOT_AUTHORIZED, "Not authorized");
183 // Since this message is sent from WifiScanner using |sendMessageSynchronously| which
185 if (msg.what == WifiScanner.CMD_GET_SCAN_RESULTS)
    [all...]
HalChannelHelper.java 19 import android.net.wifi.WifiScanner;
42 int[] channels24G = mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ);
44 int[] channels5G = mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ);
46 int[] channelsDfs = mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ_DFS_ONLY);
WifiScannerImpl.java 21 import android.net.wifi.WifiScanner;
30 * Defines the interface to the Wifi hardware required for the WifiScanner API
98 public abstract WifiScanner.ScanData getLatestSingleScanResults();
128 public abstract WifiScanner.ScanData[] getLatestBatchedScanResults(boolean flush);
161 public abstract boolean setHotlist(WifiScanner.HotlistSettings settings,
172 public abstract boolean trackSignificantWifiChange(WifiScanner.WifiChangeSettings settings,
HalWifiScannerImpl.java 20 import android.net.wifi.WifiScanner;
30 * WifiScanner implementation that takes advantage of the gscan HAL API
80 public WifiScanner.ScanData getLatestSingleScanResults() {
111 public WifiScanner.ScanData[] getLatestBatchedScanResults(boolean flush) {
153 public boolean setHotlist(WifiScanner.HotlistSettings settings,
164 public boolean trackSignificantWifiChange(WifiScanner.WifiChangeSettings settings,
SupplicantWifiScannerImpl.java 23 import android.net.wifi.WifiScanner;
45 * Implementation of the WifiScanner HAL API that uses wpa_supplicant to perform all scans
88 private WifiScanner.ScanData mLatestSingleScanResult =
89 new WifiScanner.ScanData(0, 0, new ScanResult[0]);
212 public WifiScanner.ScanData getLatestSingleScanResults() {
292 WifiScanner.ScanData[] results = getLatestBatchedScanResults(/* flush = */ true);
357 int reportEvents = WifiScanner.REPORT_EVENT_NO_BATCH; // default to no batch
365 & WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN) != 0) {
366 reportEvents |= WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN;
369 & WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT) != 0)
    [all...]
BackgroundScanScheduler.java 22 import android.net.wifi.WifiScanner;
23 import android.net.wifi.WifiScanner.ScanData;
24 import android.net.wifi.WifiScanner.ScanSettings;
199 int reportEvents = WifiScanner.REPORT_EVENT_NO_BATCH;
205 WifiScanner.ScanSettings setting = mScanSettingsList.get(i);
207 if ((requestedReportEvents & WifiScanner.REPORT_EVENT_NO_BATCH) == 0) {
208 reportEvents &= ~WifiScanner.REPORT_EVENT_NO_BATCH;
210 if ((requestedReportEvents & WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN) != 0) {
211 reportEvents |= WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN;
213 if ((requestedReportEvents & WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT) != 0)
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
ChannelHelperTest.java 29 import android.net.wifi.WifiScanner;
56 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_BOTH,
57 10000, 0, 20, WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN);
66 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(5150, 2400),
67 10000, 0, 20, WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN);
76 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_5_GHZ,
77 10000, 0, 20, WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN);
87 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(2400, 5100)
    [all...]
SupplicantWifiScannerTest.java 27 import android.net.wifi.WifiScanner;
61 .addBucketWithBand(10000, WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN,
62 WifiScanner.WIFI_BAND_24_GHZ)
68 expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ)),
71 expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ))
83 WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN
84 | WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT,
85 WifiScanner.WIFI_BAND_24_GHZ)
99 expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ))
111 WifiScanner.REPORT_EVENT_AFTER_EACH_SCA
    [all...]
BackgroundScanSchedulerTest.java 29 import android.net.wifi.WifiScanner;
30 import android.net.wifi.WifiScanner.ScanSettings;
94 WifiScanner.WIFI_BAND_BOTH, 30000, 0, 20,
95 WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT
111 WifiScanner.WIFI_BAND_BOTH, 7500, 0, 20,
112 WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT
128 requests.add(createRequest(WifiScanner.WIFI_BAND_BOTH, 30000, 0, 20,
129 WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT));
130 requests.add(createRequest(WifiScanner.WIFI_BAND_5_GHZ_DFS_ONLY, 14000, 0, 20,
131 WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT))
    [all...]
ScanScheduleUtilFilterTest.java 30 import android.net.wifi.WifiScanner;
31 import android.net.wifi.WifiScanner.ScanData;
32 import android.net.wifi.WifiScanner.ScanSettings;
58 WifiScanner.WIFI_BAND_24_GHZ, 30000, 0, 20,
59 WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT
69 WifiScanner.WIFI_BAND_24_GHZ, 30000, 0, 20,
70 WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT
81 WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT
92 WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT
103 WifiScanner.REPORT_EVENT_FULL_SCAN_RESUL
    [all...]
NoBandChannelHelperTest.java 30 import android.net.wifi.WifiScanner;
49 private static final int ALL_BANDS = WifiScanner.WIFI_BAND_BOTH_WITH_DFS;
73 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(2400, 2450, 5100),
74 10000, 0, 20, WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN);
85 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_24_GHZ,
86 10000, 0, 20, WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN);
116 for (int band = WifiScanner.WIFI_BAND_24_GHZ;
117 band <= WifiScanner.WIFI_BAND_BOTH_WITH_DFS; ++band) {
118 WifiScanner.ChannelSpec[] channels
    [all...]
KnownBandsChannelHelperTest.java 30 import android.net.wifi.WifiScanner;
79 WifiScanner.ScanSettings testSettings = createRequest(channelsToSpec(2400, 2450, 5100),
80 10000, 0, 20, WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN);
91 WifiScanner.ScanSettings testSettings = createRequest(WifiScanner.WIFI_BAND_24_GHZ,
92 10000, 0, 20, WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN);
120 WifiScanner.ChannelSpec[] channels =
134 testBand(CHANNELS_24_GHZ, WifiScanner.WIFI_BAND_24_GHZ);
142 testBand(CHANNELS_5_GHZ, WifiScanner.WIFI_BAND_5_GHZ);
150 testBand(CHANNELS_DFS, WifiScanner.WIFI_BAND_5_GHZ_DFS_ONLY)
    [all...]
WifiScanningServiceTest.java 30 import android.net.wifi.WifiScanner;
127 private WifiScanner.ScanSettings generateValidScanSettings() {
128 return createRequest(WifiScanner.WIFI_BAND_BOTH, 30000, 0, 20,
129 WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN);
160 WifiScanner.ScanData... expected) {
162 WifiScanner.CMD_SCAN_RESULT);
166 private static void assertScanResultsMessage(int listenerId, WifiScanner.ScanData[] expected,
168 assertEquals("what", WifiScanner.CMD_SCAN_RESULT, scanResultMessage.what);
171 ((WifiScanner.ParcelableScanData) scanResultMessage.obj).getResults());
177 WifiScanner.CMD_SINGLE_SCAN_COMPLETED)
    [all...]
BaseWifiScannerImplTest.java 28 import android.net.wifi.WifiScanner;
29 import android.net.wifi.WifiScanner.ScanData;
112 .addBucketWithBand(10000 /* ms */, WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN,
113 WifiScanner.WIFI_BAND_24_GHZ)
116 doSuccessfulSingleScanTest(settings, expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ),
126 .addBucketWithChannels(20000, WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN, 5650)
140 WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN
141 | WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT,
142 WifiScanner.WIFI_BAND_24_GHZ)
145 doSuccessfulSingleScanTest(settings, expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ)
    [all...]
SupplicantPnoScannerTest.java 27 import android.net.wifi.WifiScanner;
123 expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ), new HashSet<Integer>(),
193 expectedBandScanFreqs(WifiScanner.WIFI_BAND_24_GHZ), new HashSet<Integer>(),
265 .addBucketWithBand(10000, WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN,
266 WifiScanner.WIFI_BAND_24_GHZ)
371 WifiScanner.ScanData[] scanData = mScanner.getLatestBatchedScanResults(true);
372 WifiScanner.ScanData lastScanData = scanData[scanData.length -1];
  /frameworks/opt/net/wifi/tests/wifitests/src/android/net/wifi/
WifiScannerTest.java 29 import android.net.wifi.WifiScanner.BssidInfo;
30 import android.net.wifi.WifiScanner.BssidListener;
46 * Unit tests for {@link android.net.wifi.WifiScanner}.
57 private WifiScanner mWifiScanner;
72 mWifiScanner = new WifiScanner(mContext, mService, mLooper.getLooper());
88 WifiScanner.CMD_SET_HOTLIST,
109 verify(mBssidListener).onFailure(eq(WifiScanner.REASON_DUPLICATE_REQEUST), anyString());
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
ScanTestUtil.java 24 import android.net.wifi.WifiScanner;
25 import android.net.wifi.WifiScanner.ScanData;
43 when(wifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_24_GHZ))
45 when(wifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ))
47 when(wifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ_DFS_ONLY))
51 public static WifiScanner.ScanSettings createRequest(WifiScanner.ChannelSpec[] channels,
53 WifiScanner.ScanSettings request = new WifiScanner.ScanSettings();
54 request.band = WifiScanner.WIFI_BAND_UNSPECIFIED
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
WifiConnectivityManager.java 29 import android.net.wifi.WifiScanner;
30 import android.net.wifi.WifiScanner.PnoSettings;
31 import android.net.wifi.WifiScanner.ScanSettings;
126 private final WifiScanner mScanner;
240 private class PeriodicScanListener implements WifiScanner.ScanListener {
275 public void onResults(WifiScanner.ScanData[] results) {
300 private class AllSingleScanListener implements WifiScanner.ScanListener {
324 public void onResults(WifiScanner.ScanData[] results) {
371 private class SingleScanListener implements WifiScanner.ScanListener {
406 public void onResults(WifiScanner.ScanData[] results)
    [all...]
FrameworkFacade.java 27 import android.net.wifi.WifiScanner;
81 public WifiScanner makeWifiScanner(Context context, Looper looper) {
82 return new WifiScanner(context, IWifiScanner.Stub.asInterface(
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
ApConfigUtil.java 20 import android.net.wifi.WifiScanner;
134 wifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ));
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
ApConfigUtilTest.java 24 import android.net.wifi.WifiScanner;
236 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ))
253 when(mWifiNative.getChannelsForBand(WifiScanner.WIFI_BAND_5_GHZ))
  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
WifiScannerFacade.java 42 import android.net.wifi.WifiScanner;
43 import android.net.wifi.WifiScanner.BssidInfo;
44 import android.net.wifi.WifiScanner.ChannelSpec;
45 import android.net.wifi.WifiScanner.ScanData;
46 import android.net.wifi.WifiScanner.ScanSettings;
53 * WifiScanner functions.
58 private final WifiScanner mScan;
74 mScan = (WifiScanner) mService.getSystemService(Context.WIFI_SCANNING_SERVICE);
89 private class WifiActionListener implements WifiScanner.ActionListener {
168 private class WifiScanListener implements WifiScanner.ScanListener
    [all...]

Completed in 162 milliseconds

1 2