Home
last modified time | relevance | path

Searched refs:samples (Results 1 – 17 of 17) sorted by relevance

/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/
DIperfHelper.py100 samples = iperf_result.instantaneous_rates[self.start_meas_time:-1]
103 samples = [rate * 8 * (1.024**2) for rate in samples]
106 mean = statistics.mean(samples)
107 var = statistics.variance(samples)
109 for rate in samples:
DPowerGnssBaseTest.py52 samples = super().collect_power_data()
55 self.monsoon_data_plot_power(samples, self.mon_voltage,
57 return samples
59 def monsoon_data_plot_power(self, samples, voltage, dest_path, plot_title): argument
73 time_relative = [sample[0] for sample in samples]
75 current_data = [sample[1] * 1000 for sample in samples]
80 color = ['navy'] * len(samples)
Dplot_utils.py29 def current_waveform_plot(samples, voltage, dest_path, plot_title): argument
51 time_relative = [sample[0] for sample in samples]
53 current_data = [sample[1] * 1000 for sample in samples]
56 color = ['navy'] * len(samples)
137 def monsoon_histogram_plot(samples, dest_path, plot_title): argument
149 milli_amps = [sample[1] * 1000 for sample in samples]
DPowerGTWGnssBaseTest.py103 samples = self.collect_power_data()
105 self.calibrate_avg_current(samples)
111 def calibrate_avg_current(self, samples): argument
120 sample[1] * 1000 for sample in samples
DPowerWiFiBaseTest.py151 samples = super().collect_power_data()
158 plot_utils.current_waveform_plot(samples, self.mon_voltage,
161 return samples
DPowerBaseTest.py206 self.samples = []
357 samples = self.power_monitor_data_collect_save()
359 current = [sample[1] for sample in samples]
367 plot_utils.current_waveform_plot(samples, self.mon_voltage,
370 return samples
/tools/test/connectivity/acts_tests/acts_contrib/test_utils_tests/
Daudio_analysis_integrationtest.py116 samples = length_in_secs * rate
117 noise = numpy.random.standard_normal(int(samples)) * 0.005
118 x = numpy.linspace(0.0, (samples - 1) * 1.0 / rate, samples)
156 samples = length_in_secs * rate
158 noise = numpy.random.standard_normal(int(samples)) * noise_amplitude
187 self.samples = length_in_secs * self.rate
188 x = numpy.linspace(0.0, (self.samples - 1) * 1.0 / self.rate,
189 self.samples)
Daudio_quality_measurement_integrationtest.py87 self.samples = length_in_secs * self.rate
89 for index in range(self.samples):
97 for index in range(self.samples):
129 for i in range(silence_after_playback_start_time, self.samples):
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/cellular/
Dcellular_idle_power_test.py45 samples = self.collect_power_data()
49 self.avg_current = self.filter_for_idle_state(samples)
55 def filter_for_idle_state(self, samples): argument
68 milli_amps = [sample[1] * 1000 for sample in samples]
Dcellular_power_base_test.py52 samples = super().collect_power_data()
55 plot_utils.monsoon_histogram_plot(samples, self.mon_info.data_path,
57 return samples
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/
Dcommon.py29 def __init__(self, samples, calibration_data): argument
30 self.samples = samples
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/hvpm/
Dtransformers.py426 buffer.samples.clear()
427 return buffer.samples
429 readings = np.zeros((len(buffer.samples), 5))
431 measurements = np.array([sample.values for sample in buffer.samples])
432 calibrated_value = np.zeros((len(buffer.samples), 2))
472 for i in range(len(buffer.samples)):
473 buffer.samples[i] = HvpmReading(
474 list(readings[i]), buffer.samples[i].get_sample_time())
476 return buffer.samples
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/lvpm_stock/
Dstock_transformers.py356 measurements = np.array([sample.values for sample in buffer.samples])
357 readings = np.zeros((len(buffer.samples), 5))
386 for i in range(len(buffer.samples)):
387 buffer.samples[i] = LvpmReading(
388 list(readings[i]), buffer.samples[i].get_sample_time())
390 return buffer.samples
Dpacket.py187 self._flag_data, self.packet_type, *samples = struct.unpack(
190 self.measurements = [None] * len(samples)
192 for index, raw_measurement in enumerate(samples):
/tools/test/connectivity/acts/framework/acts/bin/
Dmonsoon.py49 if args.samples:
51 args.samples / args.hz,
/tools/test/connectivity/acts_tests/tests/google/gnss/
DGnssConcurrencyTest.py131 samples = len(search_results) - 1
132 for i in range(samples):
149 self.ad.log.info("TestResult %s_samples %d" % (type, samples))
/tools/test/connectivity/acts/framework/acts/controllers/cellular_lib/
DLteSimulation.py1269 def get_measured_ul_power(self, samples=5, wait_after_sample=3): argument
1281 samples_left = samples
1290 return ul_power_sum / samples + self.ul_path_loss
1295 return ul_power_sum / samples