/tools/test/connectivity/acts/framework/acts/test_utils/audio_analysis_lib/ |
D | audio_quality_measurement.py | 187 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 …]
|
D | audio_analysis.py | 78 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 …]
|
D | check_quality.py | 76 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 534 raw_data, rate = read_audio_file(filename, channel, bit_width, rate) [all …]
|
/tools/test/connectivity/acts/framework/tests/ |
D | audio_quality_measurement_integrationtest.py | 40 rate = 48000 47 for index in range(0, rate * length_in_secs): 48 phase = 2.0 * math.pi * frequency * float(index) / float(rate) 63 amplitude, frequency, rate, teager_value_of_wave) 83 self.rate = 48000 87 self.samples = length_in_secs * self.rate 90 phase = 2.0 * math.pi * self.freq * float(index) / float(self.rate) 107 start_index = int(self.delay_start_time[i] * self.rate) 108 end_index = int(self.delay_end_time[i] * self.rate) 115 end_index = int(silence_before_playback_end_time * self.rate) [all …]
|
D | audio_analysis_integrationtest.py | 110 rate = 48000 116 samples = length_in_secs * rate 118 x = numpy.linspace(0.0, (samples - 1) * 1.0 / rate, samples) 121 results = audio_analysis.spectral_analysis(y, rate) 154 rate = 48000 156 samples = length_in_secs * rate 159 results = audio_analysis.spectral_analysis(noise, rate) 184 self.rate = 48000 187 self.samples = length_in_secs * self.rate 188 x = numpy.linspace(0.0, (self.samples - 1) * 1.0 / self.rate, [all …]
|
/tools/test/connectivity/acts/tests/google/bt/audio_lab/ |
D | BtChameleonTest.py | 60 bits_per_sample, rate, record_seconds, 90 rate=rate, 148 rate = audio_sample_rate_48000 158 rate=rate, 209 rate = audio_sample_rate_48000 218 rate=rate,
|
/tools/test/connectivity/acts/framework/acts/test_utils/power/ |
D | IperfHelper.py | 103 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/tests/google/wifi/ |
D | WifiSensitivityTest.py | 278 data_rate = next(rate.data_rate for rate in rate_list 279 if rate[:-1] == (test_id_dict['rate'], 566 for chain, rate in itertools.product(chain_mask, rates): 570 rate=rate.mcs, 571 num_streams=rate.streams, 574 if chain in ['0', '1'] and rate[1] == 2: 581 str(rate.mcs).replace('.', 'p'), 582 rate.streams, chain)) 586 channel, mode, rate.mcs, 587 rate.streams, chain)) [all …]
|
D | WifiThroughputStabilityTest.py | 208 rate * 8 * (1.024**2) 209 for rate in test_result['iperf_result'].instantaneous_rates[
|
D | WifiRoamingPerformanceTest.py | 532 rate * 8 * (1.024**2) for rate in iperf_result.instantaneous_rates
|
/tools/test/connectivity/acts/framework/acts/test_utils/coex/ |
D | audio_capture_device.py | 70 rate = f.getframerate() 71 duration = (frames / float(rate)) * 1000 197 rate=self.sample_rate,
|
D | audio_test_utils.py | 163 rate=self.audio_params["sample_rate"],
|
/tools/test/connectivity/acts/tests/google/net/arduino/disconnect_wifi/ |
D | disconnect_wifi.ino | 7 Serial.println("disconnect: setup(): INFO: Setting baud rate to 9600");
|
/tools/test/connectivity/acts/tests/google/net/arduino/connect_wifi/ |
D | connect_wifi.ino | 17 Serial.println("connect: setup(): INFO: Setting baud rate to 9600");
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AdbScreenrecordTest.java | 212 long rate = Long.parseLong(m.group(1)); in convertBitrateToKilobits() local 214 return rate * factor; in convertBitrateToKilobits()
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | iperf_server.py | 248 sqd_deviations = ([(rate - avg_rate)**2 249 for rate in instantaneous_rates])
|
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/ |
D | wifi_performance_test_utils.py | 104 mcs_id.rate)
|