Home
last modified time | relevance | path

Searched refs:channelSet (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DBackgroundScanScheduler.java757 ArraySet<Integer> channelSet = new ArraySet<>(); in partitionChannelSet() local
761 channelSet.add(iterChannels.next()); in partitionChannelSet()
762 if (channelSet.size() == maxChannelsPerBucket) { in partitionChannelSet()
763 channelSetList.add(channelSet); in partitionChannelSet()
764 channelSet = new ArraySet<>(); in partitionChannelSet()
768 if (!channelSet.isEmpty()) { in partitionChannelSet()
769 channelSetList.add(channelSet); in partitionChannelSet()
786 for (Set<Integer> channelSet : channelSets) { in createSplitBuckets()
797 for (Integer channel : channelSet) { in createSplitBuckets()
819 Set<Integer> channelSet = channelCollection.getChannelSet(); in fixBuckets() local
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiverMetrics.java468 HashSet<Pair<Integer, Integer>> channelSet = new HashSet<>(); in getChannelSetFromString() local
473 channelSet.add( in getChannelSetFromString()
477 channelSet.add(new Pair(Integer.parseInt(chRange.trim()), in getChannelSetFromString()
484 return channelSet; in getChannelSetFromString()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DBackgroundScanSchedulerTest.java731 Set<Integer> channelSet = getAllChannels(settings); in assertSettingsSatisfied() local
817 + channelSet + ", Channel ignore reasons:" + ignoreString.toString(), in assertSettingsSatisfied()
818 scheduleChannels.getAllChannels().containsAll(channelSet)); in assertSettingsSatisfied()
826 private void assertChannels(Set<Integer> channelSet, Set<Integer> expectedChannelSet) { in assertChannels() argument
827 assertTrue("expected that " + channelSet + " contained " in assertChannels()
828 + expectedChannelSet, channelSet.containsAll(expectedChannelSet)); in assertChannels()
/packages/modules/Wifi/service/java/com/android/server/wifi/coex/
DCoexUtils.java522 Set<Integer> channelSet = new HashSet<>(); in getIntermodCoexUnsafeChannels() local
525 channelSet.add(channel); in getIntermodCoexUnsafeChannels()
528 channelSet.addAll(CHANNEL_SET_5_GHZ); in getIntermodCoexUnsafeChannels()
531 for (int channel : channelSet) { in getIntermodCoexUnsafeChannels()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConnectivityManager.java1986 @NonNull Set<Integer> channelSet, in addChannelFromWifiScoreCardWithLimitPerNetwork()
1995 if (maxCount > 0 && channelSet.size() >= maxCount) { in addChannelFromWifiScoreCardWithLimitPerNetwork()
2010 if (channelSet.add(channel)) { in addChannelFromWifiScoreCardWithLimitPerNetwork()
2028 Set<Integer> channelSet = new HashSet<>(); in fetchChannelSetForNetworkForPartialScan() local
2032 channelSet.add(wifiInfo.getFrequency()); in fetchChannelSetForNetworkForPartialScan()
2036 channelSet, in fetchChannelSetForNetworkForPartialScan()
2041 return channelSet; in fetchChannelSetForNetworkForPartialScan()
2056 Set<Integer> channelSet = new HashSet<>(); in fetchChannelSetForPartialScan() local
2060 channelSet, config.SSID, maxCountTotal, maxCountPerNetwork, ageInMillis)) { in fetchChannelSetForPartialScan()
2061 return channelSet; in fetchChannelSetForPartialScan()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConnectivityManagerTest.java5953 Set<Integer> channelSet = in testFetchChannelSetForPartialScanMaxCount() local
5956 assertEquals(2, channelSet.size()); in testFetchChannelSetForPartialScanMaxCount()
5957 assertTrue(channelSet.contains(freqs.get(0).get(0))); in testFetchChannelSetForPartialScanMaxCount()
5958 assertTrue(channelSet.contains(freqs.get(1).get(0))); in testFetchChannelSetForPartialScanMaxCount()
5962 channelSet = in testFetchChannelSetForPartialScanMaxCount()
5965 assertEquals(3, channelSet.size()); in testFetchChannelSetForPartialScanMaxCount()
5966 assertTrue(channelSet.contains(freqs.get(0).get(0))); in testFetchChannelSetForPartialScanMaxCount()
5967 assertTrue(channelSet.contains(freqs.get(0).get(1))); in testFetchChannelSetForPartialScanMaxCount()
5968 assertTrue(channelSet.contains(freqs.get(1).get(0))); in testFetchChannelSetForPartialScanMaxCount()