Home
last modified time | relevance | path

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

/tools/test/connectivity/acts/framework/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/framework/acts/controllers/monsoon_lib/sampling/hvpm/
Dtransformers.py420 buffer.samples.clear()
421 return buffer.samples
423 readings = np.zeros((len(buffer.samples), 5))
425 measurements = np.array([sample.values for sample in buffer.samples])
426 calibrated_value = np.zeros((len(buffer.samples), 2))
466 for i in range(len(buffer.samples)):
467 buffer.samples[i] = HvpmReading(
468 list(readings[i]), buffer.samples[i].get_sample_time())
470 return buffer.samples
Dpacket.py181 *samples) = struct.unpack(struct_string, sampled_bytes)
186 for i, raw_data in enumerate(samples):
/tools/test/connectivity/acts/framework/acts/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:
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/lvpm_stock/
Dstock_transformers.py349 measurements = np.array([sample.values for sample in buffer.samples])
350 readings = np.zeros((len(buffer.samples), 5))
373 for i in range(len(buffer.samples)):
374 buffer.samples[i] = LvpmReading(
375 list(readings[i]), buffer.samples[i].get_sample_time())
377 return buffer.samples
Dpacket.py189 self._flag_data, self.packet_type, *samples = struct.unpack(
192 self.measurements = [None] * len(samples)
194 for index, raw_measurement in enumerate(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/test_utils/power/tel_simulations/
DLteSimulation.py1273 def get_measured_ul_power(self, samples=5, wait_after_sample=3): argument
1285 samples_left = samples
1294 return ul_power_sum / samples + self.ul_path_loss
1299 return ul_power_sum / samples
/tools/trebuchet/trebuchet/startup-summarizer/src/
DStartupSummarizer.kt228 val samples : MutableMap<String, MutableList<Double>> = mutableMapOf() in printSampleSetPlainText() constant
232 samples.getOrPut(sliceName, ::mutableListOf).add(aggInfo.totalTime) in printSampleSetPlainText()
236 samples.forEach {sliceName, sliceSamples -> in printSampleSetPlainText()
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java2823 List<Long> samples = wifi.stopMonitor(); in disableNetworkMonitor() local
2824 if (!samples.isEmpty()) { in disableNetworkMonitor()
2827 for (Long sample : samples) { in disableNetworkMonitor()
2834 double failureRate = failures * 100.0 / samples.size(); in disableNetworkMonitor()
2836 if (failures < samples.size()) { in disableNetworkMonitor()
2837 avgLatency = totalLatency / (samples.size() - failures); in disableNetworkMonitor()
2840 mOptions.getConnCheckUrl(), samples.size() * NETWORK_MONITOR_INTERVAL / 1000, in disableNetworkMonitor()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java905 List<Long> samples = new ArrayList<Long>(); in testDisableNetworkMonitor() local
906 samples.add(Long.valueOf(42)); in testDisableNetworkMonitor()
907 samples.add(Long.valueOf(256)); in testDisableNetworkMonitor()
908 samples.add(Long.valueOf(-1)); // failure to connect in testDisableNetworkMonitor()
909 EasyMock.expect(mMockWifi.stopMonitor()).andReturn(samples); in testDisableNetworkMonitor()
/tools/test/connectivity/acts/framework/acts/test_utils/power/cellular/
Dcellular_idle_power_test.py66 samples = [
76 slot_average = sum(samples[slot_start:slot_end]) / slot_length
/tools/test/connectivity/acts/framework/acts/bin/
Dmonsoon.py49 if args.samples:
51 args.samples / args.hz,