Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DKnownBandsChannelHelperTest.java120 private void testBand(int[] expectedChannels, int band) { in testBand() argument
123 assertEquals("nun channels", expectedChannels.length, channels.length); in testBand()
126 expectedChannels[i], channels[i].frequency); in testBand()
159 int[] expectedChannels = new int[CHANNELS_24_GHZ.length + CHANNELS_5_GHZ.length]; in channels24GhzAnd5Ghz() local
160 System.arraycopy(CHANNELS_24_GHZ, 0, expectedChannels, 0, CHANNELS_24_GHZ.length); in channels24GhzAnd5Ghz()
161 System.arraycopy(CHANNELS_5_GHZ, 0, expectedChannels, CHANNELS_24_GHZ.length, in channels24GhzAnd5Ghz()
163 testBand(expectedChannels, WifiScanner.WIFI_BAND_BOTH); in channels24GhzAnd5Ghz()
171 int[] expectedChannels = in channelsAll() local
173 System.arraycopy(CHANNELS_24_GHZ, 0, expectedChannels, 0, CHANNELS_24_GHZ.length); in channelsAll()
174 System.arraycopy(CHANNELS_5_GHZ, 0, expectedChannels, CHANNELS_24_GHZ.length, in channelsAll()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java389 Set<Integer> expectedChannels = new HashSet<>(); in assertNativeScanSettingsEquals() local
391 expectedChannels.add(channel.frequency); in assertNativeScanSettingsEquals()
397 assertEquals("channels", expectedChannels, actualChannels); in assertNativeScanSettingsEquals()
480 public static Matcher<WifiNative.BucketSettings> channelsAre(final int... expectedChannels) {
489 } else if (bucketSettings.num_channels != expectedChannels.length) {
492 .appendValue(expectedChannels.length)
498 } else if (bucketSettings.channels.length != expectedChannels.length) {
501 .appendValue(expectedChannels.length)
510 for (int i = 0; i < expectedChannels.length; ++i) {
511 expectedChannelsSet.add(expectedChannels[i]);
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPreferencesHelperTest.java1883 ArrayMap<String, Integer> expectedChannels = new ArrayMap<>(); in testDumpChannelsJson() local
1892 expectedChannels.put(pkgName, numChannels); in testDumpChannelsJson()
1896 String pkg = expectedChannels.keyAt(0); in testDumpChannelsJson()
1899 int count = expectedChannels.get(pkg); in testDumpChannelsJson()
1900 expectedChannels.put(pkg, count - 1); in testDumpChannelsJson()
1906 assertTrue(expectedChannels.containsKey(object.get("packageName"))); in testDumpChannelsJson()
1907 assertEquals(expectedChannels.get(object.get("packageName")).intValue(), in testDumpChannelsJson()