Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 20 of 20) sorted by relevance

/tools/test/connectivity/acts/framework/acts/test_utils/audio_analysis_lib/
Daudio_quality_measurement.py187 def noised_sine_wave(frequency, rate, noise_level): argument
201 for index in range(0, rate * 2):
202 sample = 2.0 * math.pi * frequency * float(index) / float(rate)
232 def noise_level(amplitude, frequency, rate, teager_value_of_input): argument
258 standard_wave = noised_sine_wave(frequency, rate, standard_noise)
280 def hilbert_analysis(signal, rate, block_size): argument
324 frequency = numpy.diff(phase) / (2.0 * numpy.pi) * rate
429 rate, noise_amplitude_threshold): argument
456 same_event_samples = rate * DEFAULT_SAME_EVENT_SECS
466 if ((start_index - rate * NEAR_SINE_START_OR_END_SECS) <= index and
[all …]
Daudio_analysis.py78 rate, argument
131 x_f = _rfft_freq(length, rate)
157 def _rfft_freq(length, rate): argument
171 val = rate / float(length)
274 rate, argument
308 golden_y = _generate_golden_pattern(rate, freq, block_size)
319 results = [float(x) / rate for x in results]
325 rate, argument
353 anoms = anomaly_detection(signal, rate, freq, block_size, threshold)
360 sample_diff = abs(anoms[i] - anoms[i+1]) * rate
[all …]
Dcheck_quality.py76 self.rate = None
157 self.rate = header[2]
193 def __init__(self, raw_data, rate): argument
203 self._rate = rate
252 rate=self._rate,
429 def read_audio_file(filename, channel, bit_width, rate): argument
448 rate = wavefile.rate
459 return raw_data, rate
497 rate, argument
535 raw_data, rate = read_audio_file(filename, channel, bit_width, rate)
[all …]
/tools/test/connectivity/acts/framework/tests/
Daudio_quality_measurement_unittest.py35 rate = 48000
42 for index in range(0, rate * length_in_secs):
43 phase = 2.0 * math.pi * frequency * float(index) / float(rate)
58 amplitude, frequency, rate, teager_value_of_wave)
78 self.rate = 48000
82 self.samples = length_in_secs * self.rate
85 phase = 2.0 * math.pi * self.freq * float(index) / float(self.rate)
102 start_index = int(self.delay_start_time[i] * self.rate)
103 end_index = int(self.delay_end_time[i] * self.rate)
110 end_index = int(silence_before_playback_end_time * self.rate)
[all …]
Daudio_analysis_unittest.py103 rate = 48000
109 samples = length_in_secs * rate
111 x = numpy.linspace(0.0, (samples - 1) * 1.0 / rate, samples)
114 results = audio_analysis.spectral_analysis(y, rate)
147 rate = 48000
149 samples = length_in_secs * rate
152 results = audio_analysis.spectral_analysis(noise, rate)
177 self.rate = 48000
180 self.samples = length_in_secs * self.rate
181 x = numpy.linspace(0.0, (self.samples - 1) * 1.0 / self.rate,
[all …]
/tools/test/connectivity/acts/tests/google/bt/audio_lab/
DBtChameleonTest.py62 bits_per_sample, rate, record_seconds,
92 rate=rate,
150 rate = audio_sample_rate_48000
160 rate=rate,
211 rate = audio_sample_rate_48000
220 rate=rate,
/tools/test/connectivity/acts/framework/acts/test_utils/power/
DIperfHelper.py103 samples = [rate * 8 * (1.024**2) for rate in samples]
109 for rate in samples:
110 if abs(rate - mean) > max_dev:
111 max_dev = abs(rate - mean)
/tools/test/connectivity/acts/framework/acts/libs/metrics/
Dmetric.py150 def __init__(self, rate, default_channel="std"): argument
157 self.rate = rate
180 self.timer = threading.Timer(self.rate, self._iteration)
/tools/test/connectivity/acts/tests/google/wifi/
DWifiSensitivityTest.py402 for chain, rate in itertools.product(chain_mask, rates):
403 if str(chain) in ["0", "1"] and rate[1] == 2:
409 str(rate[0]).replace(".", "p"), rate[1], chain)
412 channel, mode, rate[0], rate[1], chain)
DWifiThroughputStabilityTest.py151 rate * 8 * (1.024**2)
152 for rate in test_result["iperf_result"].instantaneous_rates[
DWifiPowerTest.py173 rate = "%.2fMB/s" % iperf_result.avg_rate
174 result_extra["Average Rate"] = rate
/tools/test/connectivity/acts/framework/acts/test_utils/coex/
Daudio_test_utils.py158 rate = f.getframerate()
159 duration = (frames / float(rate)) * 1000
182 rate=self.audio_params["sample_rate"],
Daudio_capture.py85 rate=self.sample_rate,
/tools/test/connectivity/acts/tests/google/usb/
DUsbTetheringThroughputTest.py184 rate = re.findall('(\d+.\d+) Mbits/sec.*receiver', result)
185 return True, rate[0]
/tools/test/connectivity/acts/tests/google/power/tel/lab/temp/
Diperf_server.py185 sqd_deviations = [(rate - avg_rate)**2 for rate in instantaneous_rates]
/tools/test/connectivity/acts/framework/acts/controllers/
Diperf_server.py197 sqd_deviations = [(rate - avg_rate)**2 for rate in instantaneous_rates]
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_retail_ap.py1273 rate=None,
1293 interface, interface_short, rate)
1296 interface, interface_short, num_streams, rate)
1301 interface, interface_short, rate)
/tools/tradefederation/contrib/src/com/android/media/tests/
DAdbScreenrecordTest.java212 long rate = Long.parseLong(m.group(1)); in convertBitrateToKilobits() local
214 return rate * factor; in convertBitrateToKilobits()
/tools/test/connectivity/acts/tests/google/net/arduino/disconnect_wifi/
Ddisconnect_wifi.ino7 Serial.println("disconnect: setup(): INFO: Setting baud rate to 9600");
/tools/test/connectivity/acts/tests/google/net/arduino/connect_wifi/
Dconnect_wifi.ino17 Serial.println("connect: setup(): INFO: Setting baud rate to 9600");