Home
last modified time | relevance | path

Searched refs:expectedChannels (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DKnownBandsChannelHelperTest.java128 private void testBand(int[] expectedChannels, int band) { in testBand() argument
135 assertEquals("num channels", expectedChannels.length, len); in testBand()
140 expectedChannels[index++], channels[i][j].frequency); in testBand()
174 int[] expectedChannels = new int[CHANNELS_24_GHZ.length + CHANNELS_5_GHZ.length]; in channels24GhzAnd5Ghz() local
175 System.arraycopy(CHANNELS_24_GHZ, 0, expectedChannels, 0, CHANNELS_24_GHZ.length); in channels24GhzAnd5Ghz()
176 System.arraycopy(CHANNELS_5_GHZ, 0, expectedChannels, CHANNELS_24_GHZ.length, in channels24GhzAnd5Ghz()
178 testBand(expectedChannels, WifiScanner.WIFI_BAND_BOTH); in channels24GhzAnd5Ghz()
186 int[] expectedChannels = in channelsAll() local
189 System.arraycopy(CHANNELS_24_GHZ, 0, expectedChannels, 0, CHANNELS_24_GHZ.length); in channelsAll()
190 System.arraycopy(CHANNELS_5_GHZ, 0, expectedChannels, CHANNELS_24_GHZ.length, in channelsAll()
[all …]
DWifiScanningServiceTest.java791 Set<Integer> expectedChannels = new ArraySet<Integer>( in testPscChannelAddedWhenScanning6GhzBand() local
807 expectedChannels, scanTestUtilcomputedExpectedChannels); in testPscChannelAddedWhenScanning6GhzBand()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java460 Set<Integer> expectedChannels = new HashSet<>(); in assertNativeScanSettingsEquals() local
462 expectedChannels.add(channel.frequency); in assertNativeScanSettingsEquals()
468 assertEquals("channels", expectedChannels, actualChannels); in assertNativeScanSettingsEquals()
546 public static Matcher<WifiNative.BucketSettings> channelsAre(final int... expectedChannels) {
555 } else if (bucketSettings.num_channels != expectedChannels.length) {
558 .appendValue(expectedChannels.length)
564 } else if (bucketSettings.channels.length != expectedChannels.length) {
567 .appendValue(expectedChannels.length)
576 for (int i = 0; i < expectedChannels.length; ++i) {
577 expectedChannelsSet.add(expectedChannels[i]);
[all …]