/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | ChannelHelper.java | 127 public void addChannels(WifiScanner.ScanSettings scanSettings) { in addChannels() argument 128 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in addChannels() 129 for (int j = 0; j < scanSettings.channels.length; ++j) { in addChannels() 130 addChannel(scanSettings.channels[j].frequency); in addChannels() 133 addBand(scanSettings.band); in addChannels() 153 public boolean containsSettings(WifiScanner.ScanSettings scanSettings) { in containsSettings() argument 154 if (scanSettings.band == WifiScanner.WIFI_BAND_UNSPECIFIED) { in containsSettings() 155 for (int j = 0; j < scanSettings.channels.length; ++j) { in containsSettings() 156 if (!containsChannel(scanSettings.channels[j].frequency)) { in containsSettings() 162 return containsBand(scanSettings.band); in containsSettings() [all …]
|
D | WifiScanningServiceImpl.java | 155 ScanSettings scanSettings = bundle.getParcelable(WifiScanner.SCAN_PARAMS_SCAN_SETTINGS_KEY); in shouldIgnoreLocationSettingsForSingleScan() local 156 return scanSettings.ignoreLocationSettings; in shouldIgnoreLocationSettingsForSingleScan() 164 ScanSettings scanSettings = bundle.getParcelable(WifiScanner.SCAN_PARAMS_SCAN_SETTINGS_KEY); in shouldHideFromAppsForSingleScan() local 165 return scanSettings.hideFromAppOps; in shouldHideFromAppsForSingleScan() 668 ScanSettings scanSettings = in processMessage() local 672 if (validateScanRequest(ci, handler, scanSettings)) { in processMessage() 674 if (scanSettings.band == WifiScanner.WIFI_BAND_5_GHZ_DFS_ONLY in processMessage() 675 || scanSettings.band == WifiScanner.WIFI_BAND_5_GHZ_WITH_DFS in processMessage() 676 || scanSettings.band == WifiScanner.WIFI_BAND_BOTH_WITH_DFS) { in processMessage() 680 scanSettings, null); in processMessage() [all …]
|
D | BackgroundScanScheduler.java | 162 public boolean addSettings(ScanSettings scanSettings) { in addSettings() argument 163 mChannelCollection.addChannels(scanSettings); in addSettings() 164 return mScanSettingsList.add(scanSettings); in addSettings() 167 public boolean removeSettings(ScanSettings scanSettings) { in removeSettings() argument 168 if (mScanSettingsList.remove(scanSettings)) { in removeSettings()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/wificond/ |
D | SingleScanSettingsTest.java | 71 SingleScanSettings scanSettings = new SingleScanSettings(); in canSerializeAndDeserialize() local 72 scanSettings.scanType = IWifiScannerImpl.SCAN_TYPE_HIGH_ACCURACY; in canSerializeAndDeserialize() 74 scanSettings.channelSettings = in canSerializeAndDeserialize() 76 scanSettings.hiddenNetworks = in canSerializeAndDeserialize() 80 scanSettings.writeToParcel(parcel, 0); in canSerializeAndDeserialize() 86 assertEquals(scanSettings, scanSettingsDeserialized); in canSerializeAndDeserialize() 87 assertEquals(scanSettings.hashCode(), scanSettingsDeserialized.hashCode()); in canSerializeAndDeserialize()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | ChannelHelperTest.java | 57 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_BOTH, in scanSettings_band() local 59 assertEquals("24Ghz & 5Ghz (no DFS)", ChannelHelper.toString(scanSettings)); in scanSettings_band() 67 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(5150, 2400), in scanSettings_channels() local 69 assertEquals("[5150,2400]", ChannelHelper.toString(scanSettings)); in scanSettings_channels() 77 WifiScanner.ScanSettings scanSettings = createRequest(WifiScanner.WIFI_BAND_5_GHZ, in bucketSettings_band() local 79 assertEquals("5Ghz (no DFS)", ChannelHelper.toString(scanSettings)); in bucketSettings_band() 88 WifiScanner.ScanSettings scanSettings = createRequest(channelsToSpec(2400, 5100), in bucketSettings_channels() local 90 assertEquals("[2400,5100]", ChannelHelper.toString(scanSettings)); in bucketSettings_channels()
|
D | WifiScanningServiceTest.java | 2189 int scanRequestId, WifiScanner.ScanSettings scanSettings, in sendPnoScanRequest() argument 2192 scanSettings.isPnoScan = true; in sendPnoScanRequest() 2193 pnoParams.putParcelable(WifiScanner.PNO_PARAMS_SCAN_SETTINGS_KEY, scanSettings); in sendPnoScanRequest() 2257 Pair<WifiScanner.ScanSettings, WifiNative.ScanSettings> scanSettings = in testSuccessfulHwPnoScanWithNoBackgroundScan() local 2262 sendPnoScanRequest(controlChannel, requestId, scanSettings.first, pnoSettings.first); in testSuccessfulHwPnoScanWithNoBackgroundScan() 2280 Pair<WifiScanner.ScanSettings, WifiNative.ScanSettings> scanSettings = in rejectHwPnoScanRequestWhenScannerImplCreateFails() local 2285 sendPnoScanRequest(controlChannel, 122, scanSettings.first, pnoSettings.first); in rejectHwPnoScanRequestWhenScannerImplCreateFails() 2476 Pair<WifiScanner.ScanSettings, WifiNative.ScanSettings> scanSettings = in hwPnoScanScanAfterDuplicateScanEnable() local 2481 sendPnoScanRequest(controlChannel, requestId, scanSettings.first, pnoSettings.first); in hwPnoScanScanAfterDuplicateScanEnable() 2602 WifiScanner.ScanSettings scanSettings = new WifiScanner.ScanSettings(); in verifyIgnoreLocationSettingsFromNonPrivilegedAppsForSingleScan() local [all …]
|
D | WificondPnoScannerTest.java | 177 private void startSuccessfulPnoScan(WifiNative.ScanSettings scanSettings, in startSuccessfulPnoScan() argument
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiScannerTest.java | 252 ScanSettings scanSettings = new ScanSettings(); in testStartScan() local 255 mWifiScanner.startScan(scanSettings, scanListener); in testStartScan() 266 assertEquals(scanSettings, in testStartScan() 280 ScanSettings scanSettings = new ScanSettings(); in testStopScan() local 283 mWifiScanner.startScan(scanSettings, scanListener); in testStopScan() 308 ScanSettings scanSettings = new ScanSettings(); in testStartScanListenerOnSuccess() local 311 mWifiScanner.startScan(scanSettings, scanListener); in testStartScanListenerOnSuccess() 338 ScanSettings scanSettings = new ScanSettings(); in testStartScanListenerOnResults() local 341 mWifiScanner.startScan(scanSettings, scanListener); in testStartScanListenerOnResults() 372 ScanSettings scanSettings = new ScanSettings(); in testStartDisconnectedPnoScan() local [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanRequestProxyTest.java | 861 private void validateScanSettings(WifiScanner.ScanSettings scanSettings, in validateScanSettings() argument 863 validateScanSettings(scanSettings, expectHiddenNetworks, false); in validateScanSettings() 866 private void validateScanSettings(WifiScanner.ScanSettings scanSettings, in validateScanSettings() argument 869 assertNotNull(scanSettings); in validateScanSettings() 870 assertEquals(WifiScanner.WIFI_BAND_BOTH_WITH_DFS, scanSettings.band); in validateScanSettings() 872 assertEquals(WifiScanner.TYPE_HIGH_ACCURACY, scanSettings.type); in validateScanSettings() 874 assertEquals(WifiScanner.TYPE_LOW_LATENCY, scanSettings.type); in validateScanSettings() 877 | WifiScanner.REPORT_EVENT_FULL_SCAN_RESULT, scanSettings.reportEvents); in validateScanSettings() 883 assertNotNull(scanSettings.hiddenNetworks); in validateScanSettings() 884 assertEquals(hiddenNetworkList.size(), scanSettings.hiddenNetworks.length); in validateScanSettings() [all …]
|
D | WifiNetworkFactoryTest.java | 2816 ScanSettings scanSettings = mScanSettingsArgumentCaptor.getValue(); in validateScanSettings() local 2817 assertNotNull(scanSettings); in validateScanSettings() 2818 assertEquals(WifiScanner.WIFI_BAND_BOTH_WITH_DFS, scanSettings.band); in validateScanSettings() 2819 assertEquals(WifiScanner.TYPE_HIGH_ACCURACY, scanSettings.type); in validateScanSettings() 2820 assertEquals(WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN, scanSettings.reportEvents); in validateScanSettings() 2822 assertNull(scanSettings.hiddenNetworks); in validateScanSettings() 2824 assertNotNull(scanSettings.hiddenNetworks); in validateScanSettings() 2825 assertNotNull(scanSettings.hiddenNetworks[0]); in validateScanSettings() 2826 assertEquals(scanSettings.hiddenNetworks[0].ssid, addEnclosingQuotes(hiddenSsid)); in validateScanSettings()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiScanner.java | 931 private void startPnoScan(ScanSettings scanSettings, PnoSettings pnoSettings, int key) { in startPnoScan() argument 935 scanSettings.isPnoScan = true; in startPnoScan() 936 pnoParams.putParcelable(PNO_PARAMS_SCAN_SETTINGS_KEY, scanSettings); in startPnoScan() 951 public void startConnectedPnoScan(ScanSettings scanSettings, PnoSettings pnoSettings, in startConnectedPnoScan() argument 959 startPnoScan(scanSettings, pnoSettings, key); in startConnectedPnoScan() 973 public void startDisconnectedPnoScan(ScanSettings scanSettings, PnoSettings pnoSettings, in startDisconnectedPnoScan() argument 981 startPnoScan(scanSettings, pnoSettings, key); in startDisconnectedPnoScan()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConnectivityManager.java | 1026 ScanSettings scanSettings = new ScanSettings(); in startDisconnectedPnoScan() local 1027 scanSettings.band = getScanBand(); in startDisconnectedPnoScan() 1028 scanSettings.reportEvents = WifiScanner.REPORT_EVENT_NO_BATCH; in startDisconnectedPnoScan() 1029 scanSettings.numBssidsPerScan = 0; in startDisconnectedPnoScan() 1030 scanSettings.periodInMs = mPnoScanIntervalMs; in startDisconnectedPnoScan() 1034 mScanner.startDisconnectedPnoScan(scanSettings, pnoSettings, mPnoScanListener); in startDisconnectedPnoScan()
|
/frameworks/base/media/java/android/media/ |
D | MediaScanner.java | 445 final SharedPreferences scanSettings = in MediaScanner() local 448 scanSettings.getString(LAST_INTERNAL_SCAN_FINGERPRINT, new String()); in MediaScanner()
|