Home
last modified time | relevance | path

Searched refs:attenuator (Results 1 – 25 of 42) sorted by relevance

12

/tools/test/connectivity/acts_tests/tests/google/bt/performance/
DBtInterferenceRSSITest.py35 def set(self, attenuator, value): argument
36 self.log.debug("Set attenuator %s to %s" % (attenuator.idx, value))
37 attenuator.set_atten(int(value))
39 def wait_seconds(self, attenuator, value): argument
41 (attenuator.idx, value))
44 def atten_sequence_worker(self, attenuator, action_sequence): argument
50 getattr(self, method)(attenuator, value)
53 for attenuator in self.attenuators:
54 attenuator.set_atten(value)
DBtA2dpOtaRangeTest.py114 self.attenuator = self.attenuators[0]
115 self.attenuator.set_atten(self.attenuation_vector['min'])
144 self.attenuator.set_atten(self.attenuation_vector['min'])
173 self.attenuator.set_atten(self.attenuation_vector['min'])
270 self.attenuator.set_atten(self.attenuation_vector['min'])
321 atten_now = self.attenuator.get_atten()
329 ramp_attenuation(self.attenuator, atten_now)
348 ramp_attenuation(self.attenuator, atten_next)
367 ramp_attenuation(self.attenuator, atten_mid)
368 atten_now = self.attenuator.get_atten()
[all …]
DInjectWifiInterferenceTest.py48 self.attenuator = self.attenuators[0]
49 self.attenuator.set_atten(INIT_ATTEN)
62 obj.attenuator.set_atten(INIT_ATTEN)
69 obj.attenuator.set_atten(MAX_ATTENUATION)
73 obj.attenuator.set_atten(MAX_ATTENUATION)
99 self.attenuator.set_atten(atten)
112 self.wifi_int_pairs[0].attenuator.set_atten(
114 self.wifi_int_pairs[1].attenuator.set_atten(MAX_ATTENUATION)
115 self.wifi_int_pairs[2].attenuator.set_atten(MAX_ATTENUATION)
131 self.wifi_int_pairs[current_int_pair[0]].attenuator.set_atten(
[all …]
DBtInterferenceDynamicTest.py121 obj.attenuator.set_atten(interference_level)
168 self.wifi_int_pairs[i].attenuator.set_atten(interference_level)
172 self.wifi_int_pairs[i].attenuator.set_atten(MAX_ATTENUATION)
194 self.wifi_int_pairs[i].attenuator.set_atten(interference_level)
198 self.wifi_int_pairs[i].attenuator.set_atten(MAX_ATTENUATION)
216 self.wifi_int_pairs[0].attenuator.set_atten(interference_level)
217 self.wifi_int_pairs[1].attenuator.set_atten(MAX_ATTENUATION)
218 self.wifi_int_pairs[2].attenuator.set_atten(MAX_ATTENUATION)
235 self.wifi_int_pairs[current_int_pair[0]].attenuator.set_atten(
245 self.wifi_int_pairs[i].attenuator.set_atten(MAX_ATTENUATION)
[all …]
DBtA2dpDynamicChannelTest.py89 self.attenuator.set_atten(upper_bound)
96 self.attenuator.set_atten(lower_bound)
113 self.attenuator.set_atten(upper_bound)
115 self.attenuator.set_atten(lower_bound)
DBtRfcommThroughputRangeTest.py49 self.attenuator = self.attenuators[0]
50 self.attenuator.set_atten(INIT_ATTEN)
62 self.attenuator.set_atten(INIT_ATTEN)
73 ramp_attenuation(self.attenuator, atten)
/tools/test/connectivity/acts/framework/acts/controllers/
Dattenuator.py84 for attenuator in attenuators:
86 "Address": attenuator.instrument.address,
87 "Attenuator_Port": attenuator.idx
157 for attenuator in attenuators:
158 if (attenuator.instrument.address ==
160 and attenuator.idx is attenuator_port):
161 attenuator_list.append(attenuator)
377 def add(self, attenuator): argument
386 if not isinstance(attenuator, Attenuator):
389 self.attens.append(attenuator)
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/minicircuits/
Dhttp.py28 from acts.controllers import attenuator
31 class AttenuatorInstrument(attenuator.AttenuatorInstrument):
64 raise attenuator.InvalidDataError(
125 raise attenuator.InvalidDataError(
156 raise attenuator.InvalidDataError(
Dtelnet.py27 from acts.controllers import attenuator
31 class AttenuatorInstrument(attenuator.AttenuatorInstrument):
110 raise attenuator.InvalidOperationError('Connection not open!')
138 raise attenuator.InvalidOperationError('Connection not open!')
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
DBtInterferenceBaseTest.py144 wifi_int_pairs[i].attenuator.set_atten(interference_level)
146 wifi_int_pairs[i].attenuator.get_atten(), i + 1))
148 wifi_int_pairs[i].attenuator.set_atten(MAX_ATTENUATION)
150 wifi_int_pairs[i].attenuator.get_atten(), i + 1))
200 obj.attenuator.set_atten(MAX_ATTENUATION)
215 obj.attenuator.set_atten(MAX_ATTENUATION)
222 obj.attenuator.set_atten(MAX_ATTENUATION)
DA2dpBaseTest.py74 self.attenuator = self.attenuators[0]
75 self.attenuator.set_atten(INIT_ATTEN)
91 self.attenuator.set_atten(INIT_ATTEN)
121 self.attenuator.set_atten(INIT_ATTEN)
301 ramp_attenuation(self.attenuator, atten)
343 int(self.attenuator.get_atten()),
DBtSarBaseTest.py102 self.attenuator = self.attenuators[0]
134 self.atten_max = int(self.attenuator.get_max_atten())
186 self.attenuator.set_atten(self.pl10_atten)
201 self.attenuator.set_atten(self.atten_min)
729 self.attenuator.set_atten(atten)
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/aeroflex/
Dtelnet.py28 from acts.controllers import attenuator
32 class AttenuatorInstrument(attenuator.AttenuatorInstrument):
98 raise attenuator.InvalidOperationError('Connection not open!')
123 raise attenuator.InvalidOperationError('Connection not open!')
/tools/test/connectivity/acts_tests/tests/google/ble/performance/
DBleRangeTest.py67 self.attenuator = self.attenuators[0]
68 self.attenuator.set_atten(INIT_ATTEN)
91 self.attenuator.set_atten(INIT_ATTEN)
117 ramp_attenuation(self.attenuator, atten)
171 ramp_attenuation(self.attenuator, atten)
222 ramp_attenuation(self.attenuator, atten)
/tools/test/connectivity/acts_tests/tests/google/power/bt/
DPowerBTcalibrationTest.py31 self.attenuator = self.attenuators[0]
56 for i in range(int(self.attenuator.get_max_atten())):
58 self.attenuator.set_atten(i)
DPowerBTa2dpTest.py101 self.attenuator.get_atten()))
103 PBtBT.ramp_attenuation(self.attenuator, self.atten_pl_settings[tpl][0],
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/
D_tnhelper.py24 from acts.controllers import attenuator
109 raise attenuator.InvalidOperationError(
132 raise attenuator.InvalidDataError(
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiPingTest.py106 for attenuator in self.attenuators:
107 attenuator.set_atten(0, strict=False, retry=True)
325 for attenuator in self.attenuators:
326 attenuator.set_atten(atten, strict=False, retry=True)
405 for attenuator in self.attenuators:
406 attenuator.set_atten(testcase_params['atten_range'][0],
509 for attenuator in self.attenuators:
510 attenuator.set_atten(
DWifiThroughputStabilityTest.py289 for attenuator in self.attenuators:
290 attenuator.set_atten(0, strict=False, retry=True)
303 for attenuator in self.attenuators:
304 attenuator.set_atten(testcase_params['atten_level'])
356 for attenuator in self.attenuators:
357 attenuator.set_atten(0)
DWifiIFSTwTest.py25 from acts.controllers import attenuator
128 for attenuator in self.attenuators:
129 attenuator.set_atten(attn_max)
DWifiPreTest.py63 for i, attenuator in enumerate(self.attenuators):
64 attenuator.set_atten(_NO_ATTENUATION)
DWifiRssiTest.py502 for attenuator in self.attenuators:
503 attenuator.set_atten(atten)
522 for attenuator in self.attenuators:
523 attenuator.set_atten(0)
600 for attenuator in self.attenuators:
601 attenuator.set_atten(testcase_params['rssi_atten_range'][0])
/tools/test/connectivity/acts_tests/tests/google/bt/sar/
DBtSarPowerLimitTest.py63 self.attenuator.set_atten(0)
70 ramp_attenuation(self.attenuator, self.pl10_atten)
DBleSarPowerLimitTest.py63 self.attenuator.set_atten(FIXED_ATTENUATION)
75 self.attenuator.set_atten(self.atten_min)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Dwifi_test_utils.py37 from acts.controllers import attenuator
2232 attn0 = attenuator.AttenuatorGroup("AP0")
2233 attn1 = attenuator.AttenuatorGroup("AP1")
2250 def set_attns(attenuator, attn_val_name, roaming_attn=ROAMING_ATTN): argument
2260 attenuator[0].set_atten(roaming_attn[attn_val_name][0])
2261 attenuator[1].set_atten(roaming_attn[attn_val_name][1])
2262 attenuator[2].set_atten(roaming_attn[attn_val_name][2])
2263 attenuator[3].set_atten(roaming_attn[attn_val_name][3])
2289 start_atten = [attenuator.get_atten() for attenuator in attenuators]
2293 for i, attenuator in enumerate(attenuators):
[all …]

12