Lines Matching refs:channels

28  * adjusted based on the amount of information known about the available channels.
32 // TODO: Currently this is simply an estimate and is used for both active and passive channels
43 * Create a new collection that can be used to store channels
53 * Get the channels that are available for scanning on the supplied band.
75 * Object that supports accumulation of channels and bands
83 * Add all channels in the band to the collection
91 * @return true if the collection contains all the channels of the supplied band
95 * @return true if the collection contains some of the channels of the supplied band
99 * @return true if the collection contains no channels
103 * @return true if the collection contains all available channels
107 * Remove all channels from the collection
111 * Retrieves a list of channels from the band which are missing in the channel collection.
115 * Retrieves a list of channels from the band which are contained in the channel collection.
119 * Gets a list of channels specified in the current channel collection. This will return
125 * Add all channels in the ScanSetting to the collection
129 for (int j = 0; j < scanSettings.channels.length; ++j) {
130 addChannel(scanSettings.channels[j].frequency);
138 * Add all channels in the BucketSettings to the collection
142 for (int j = 0; j < bucketSettings.channels.length; ++j) {
143 addChannel(bucketSettings.channels[j].frequency);
151 * Checks if all channels in ScanSetting is in the collection
155 for (int j = 0; j < scanSettings.channels.length; ++j) {
156 if (!containsChannel(scanSettings.channels[j].frequency)) {
167 * Checks if at least some of the channels in ScanSetting is in the collection
171 for (int j = 0; j < scanSettings.channels.length; ++j) {
172 if (containsChannel(scanSettings.channels[j].frequency)) {
183 * Retrieves a list of missing channels in the collection from the provided settings.
188 for (int j = 0; j < scanSettings.channels.length; ++j) {
189 if (!containsChannel(scanSettings.channels[j].frequency)) {
190 missingChannels.add(scanSettings.channels[j].frequency);
200 * Retrieves a list of containing channels in the collection from the provided settings.
206 for (int j = 0; j < scanSettings.channels.length; ++j) {
207 if (containsChannel(scanSettings.channels[j].frequency)) {
208 containingChannels.add(scanSettings.channels[j].frequency);
218 * Store the channels in this collection in the supplied BucketSettings. If maxChannels is
219 * exceeded or a band better describes the channels then a band is specified instead of a
225 * Gets the list of channels scan. Will either be a collection of all channels or null
226 * if all channels should be scanned.
233 * Utility methods for converting band/channels to strings
237 * Create a string representation of the channels in the ScanSettings.
238 * If it contains a list of channels then the channels are returned, otherwise a string name of
243 return toString(scanSettings.channels);
250 * Create a string representation of the channels in the BucketSettings.
251 * If it contains a list of channels then the channels are returned, otherwise a string name of
256 return toString(bucketSettings.channels, bucketSettings.num_channels);
262 private static String toString(WifiScanner.ChannelSpec[] channels) {
263 if (channels == null) {
269 for (int c = 0; c < channels.length; c++) {
270 sb.append(channels[c].frequency);
271 if (c != channels.length - 1) {
279 private static String toString(WifiNative.ChannelSettings[] channels, int numChannels) {
280 if (channels == null) {
287 sb.append(channels[c].frequency);