Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 77) sorted by relevance

1234

/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/
Dhostapd_ap_preset.py46 channel=None, argument
102 if channel:
103 frequency = hostapd_config.get_frequency_for_channel(channel)
105 channel = hostapd_config.get_channel_for_frequency(frequency)
149 if hostapd_config.ht40_plus_allowed(channel):
151 elif hostapd_config.ht40_minus_allowed(channel):
154 if channel == 165:
214 channel=channel,
237 channel=channel,
306 if hostapd_config.ht40_plus_allowed(channel):
[all …]
Dhostapd_config.py24 def ht40_plus_allowed(channel): argument
26 channel_supported = (channel in hostapd_constants.HT40_ALLOW_MAP[
31 def ht40_minus_allowed(channel): argument
33 channel_supported = (channel in hostapd_constants.HT40_ALLOW_MAP[
38 def get_frequency_for_channel(channel): argument
50 if channel == channel_iter:
53 raise ValueError('Unknown channel value: %r.' % channel)
74 def _get_11ac_center_channel_from_channel(self, channel): argument
78 channel = int(channel)
85 if lower_channel_bound <= channel <= upper_channel_bound:
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/compliance/
DWlanPhyComplianceABGTest.py134 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
143 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
152 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
161 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
170 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
179 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
188 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
198 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
208 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
219 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
[all …]
DVapeInteropTest.py86 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
94 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
107 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
115 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
128 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
136 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
149 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G,
157 channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G,
170 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
178 channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G,
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/engine/
Dcalibration.py36 def add(self, channel, origin, granularity, value): argument
61 def get(self, channel, origin, granularity): argument
83 def add(self, channel, origin, granularity, value): argument
92 window = self._calibrations[(channel, origin, granularity)]
100 def get(self, channel, origin, granularity): argument
101 window = self._calibrations[(channel, origin, granularity)]
104 (channel, origin, granularity)))
121 def add(self, channel, origin, granularity, value): argument
133 self._calibrations[(channel, origin, granularity)] = value
135 def get(self, channel, origin, granularity): argument
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/hvpm/
Dcalibrations.py70 channel = i >> 1
71 self.add(channel, origin, granularity,
72 sample[channel, granularity])
103 def build_status_packet_attribute_name(channel, origin, granularity): argument
122 if channel == Channel.MAIN:
123 channel = 'main'
124 elif channel == Channel.USB:
125 channel = 'usb'
126 elif channel == Channel.AUX:
127 channel = 'aux'
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/third_party_ap_profiles/
Dasus.py24 channel=None, argument
109 if channel <= 11:
134 channel=channel,
153 channel=None, argument
203 if channel <= 11:
233 channel=channel,
249 channel=None, argument
325 if channel <= 11:
357 channel=channel,
375 channel=None, argument
[all …]
Dtplink.py24 channel=None, argument
106 if channel <= 11:
138 channel=channel,
156 channel=None, argument
214 if channel <= 11:
242 if hostapd_config.ht40_plus_allowed(channel):
244 elif hostapd_config.ht40_minus_allowed(channel):
264 channel=channel,
283 channel=None, argument
352 if channel <= 11:
[all …]
Dactiontec.py23 channel=None, argument
43 if channel > 11:
47 'Invalid channel (%s)' % channel)
69 channel=channel,
84 channel=None, argument
109 if channel > 11:
111 'Invalid channel (%s)' % channel)
142 channel=channel,
Dlinksys.py24 channel=None, argument
88 if channel <= 11:
105 channel=channel,
123 channel=None, argument
168 if channel <= 11:
183 channel=channel,
198 channel=None, argument
273 if channel <= 11:
297 channel=channel,
Dnetgear.py24 channel=None, argument
117 if channel <= 11:
133 if hostapd_config.ht40_plus_allowed(channel):
135 elif hostapd_config.ht40_minus_allowed(channel):
156 channel=channel,
175 channel=None, argument
241 if channel <= 11:
259 channel=channel,
Dsecurifi.py22 def securifi_almond(iface_wlan_2g=None, channel=None, security=None, argument
50 if channel > 11:
52 'Invalid channel (%s)' % channel)
91 channel=channel,
Dbelkin.py23 channel=None, argument
54 if channel > 11:
56 'Invalid channel (%s)' % channel)
90 channel=channel,
/tools/apksig/src/main/java/com/android/apksig/util/
DDataSources.java63 public static DataSource asDataSource(FileChannel channel) { in asDataSource() argument
64 if (channel == null) { in asDataSource()
67 return new FileChannelDataSource(channel); in asDataSource()
74 public static DataSource asDataSource(FileChannel channel, long offset, long size) { in asDataSource() argument
75 if (channel == null) { in asDataSource()
78 return new FileChannelDataSource(channel, offset, size); in asDataSource()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/audio_analysis_lib/
Daudio_data.py73 def __init__(self, binary, channel, sample_format): argument
83 self.channel = channel
84 self.channel_data = [[] for _ in range(self.channel)]
108 n_frames = len(np_array) / self.channel
110 np_array = np_array.reshape(int(n_frames), self.channel)
/tools/test/connectivity/acts/framework/tests/
DSnifferSanityTest.py39 for channel in self._channels:
41 override_configs={Sniffer.CONFIG_KEY_CHANNEL: channel},
57 for channel in self._channels:
59 override_configs={Sniffer.CONFIG_KEY_CHANNEL: channel},
69 for channel in self._channels:
71 override_configs={Sniffer.CONFIG_KEY_CHANNEL: channel},
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiSensitivityTest.py222 channel = testcase_params['channel']
223 if channel not in channels_tested:
224 channels_tested.append(channel)
226 testclass_results_dict[test_id][channel] = result[
229 testclass_results_dict[test_id][channel] = ''
235 for channel in testclass_results_dict[test_id].keys():
236 metric_tag = collections.OrderedDict(test_id, channel=channel)
240 sensitivity_result = testclass_results_dict[test_id][channel]
254 for channel in channels_tested:
255 csv_header.append('Ch. ' + str(channel))
[all …]
DWifiScannerTests.config4 …"radio0": {"settings": {"channel": 1}, "wifi-iface" : [{"ssid": "Test_1", "key": "hahahaha", "encr…
6 …"radio1": {"settings": {"channel": 40}, "wifi-iface" : [{"ssid": "Test_40", "key": "hahahaha", "en…
10 …"radio0": {"settings": {"channel": 6}, "wifi-iface" : [{"ssid": "Test_6", "key": "hahahaha", "encr…
12 …"radio1": {"settings": {"channel": 40}, "wifi-iface" : [{"ssid": "Test_40", "key": "hahahaha", "en…
16 …"radio0": {"settings": {"channel": 10}, "wifi-iface" : [{"ssid": "Test_10", "key": "hahahaha", "en…
18 …"radio1": {"settings": {"channel": 44}, "wifi-iface" : [{"ssid": "Test_44", "key": "hahahaha", "en…
22 …"radio0": {"settings": {"channel": 11}, "wifi-iface" : [{"ssid": "Test_11", "key": "hahahaha", "en…
24 …"radio1": {"settings": {"channel": 149}, "wifi-iface" : [{"ssid": "Test_149", "key": "hahahaha", "…
DSetupWifiNetworkTest.py59 self.channel = hostapd_constants.AP_DEFAULT_CHANNEL_2G
61 self.channel = hostapd_constants.AP_DEFAULT_CHANNEL_5G
67 channel=self.channel,
76 channel=self.channel,
DWifiThroughputStabilityTest.py79 for channel, mode, signal_level, traffic_type, traffic_direction in itertools.product(
87 if channel not in allowed_configs[bandwidth]:
90 channel=channel,
99 channel, mode))
514 for channel, channel_data in testclass_data.items():
519 test_id_dict['traffic_direction'], channel,
532 for channel, channel_data in testclass_data.items():
534 title='Channel {} - Rate vs. Position'.format(channel),
582 … for channel, mode, position, traffic_type, signal_level, traffic_direction in itertools.product(
586 if channel not in allowed_configs[bandwidth]:
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/audio_lab/
DBtChameleonTest.py61 channel, audio_to_play): argument
91 channel=channel,
150 channel = audio_channel_mode_8
160 channel=channel,
211 channel = audio_channel_mode_8
220 channel=channel,
/tools/test/connectivity/acts_tests/tests/google/bt/performance/
DBtInterferenceDynamicTest.py124 def get_rssi_at_channel(self, channel): argument
132 if item['chan'] == channel:
166 self.wifi_int_pairs[i].channel),
167 self.wifi_int_pairs[i].channel))
192 self.get_rssi_at_channel(self.wifi_int_pairs[i].channel),
193 self.wifi_int_pairs[i].channel))
241 self.wifi_int_pairs[current_int_pair[0]].channel,
243 self.wifi_int_pairs[current_int_pair[0]].channel)))
272 tag = 'chan_{}'.format(obj.channel)
295 obj.channel, iperf_throughput))
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/functional/
DBeaconLossTest.py91 def beacon_loss(self, channel): argument
94 channel=channel,
97 if channel > 14:
138 self.beacon_loss(channel=hostapd_constants.AP_DEFAULT_CHANNEL_2G)
141 self.beacon_loss(channel=hostapd_constants.AP_DEFAULT_CHANNEL_5G)
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/lvpm_stock/
Dstock_transformers.py359 for channel in Channel.values:
360 fine_zero = calibration_data.get(channel, Origin.ZERO,
362 fine_scale = calibration_data.get(channel, Origin.SCALE,
364 coarse_zero = calibration_data.get(channel, Origin.ZERO,
366 coarse_scale = calibration_data.get(channel, Origin.SCALE,
375 readings[:, channel] = np.where(
376 measurements[:, channel] & 1,
377 ((measurements[:, channel] & ~1) - coarse_zero) * coarse_scale,
378 (measurements[:, channel] - fine_zero) * fine_scale)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/wifi_retail_ap/
Dnetgear_rax120.py281 channel = self.ap_settings[key[0]][key[1]]
282 if int(channel) < 10:
283 channel_string = '0' + str(channel)
284 elif int(channel) > 48 and int(channel) < 149:
285 channel_string = str(channel) + 'DFS'
287 channel_string = str(channel)

1234