Home
last modified time | relevance | path

Searched refs:audio_params (Results 1 – 11 of 11) sorted by relevance

/tools/test/connectivity/acts_tests/acts_contrib/test_utils/coex/
Daudio_capture_device.py72 def write_record_file(self, audio_params, frames): argument
85 wf.setnchannels(audio_params['channel'])
86 wf.setsampwidth(audio_params['sample_width'])
87 wf.setframerate(audio_params['sample_rate'])
98 def __init__(self, ad, audio_params): argument
107 self.audio_params = audio_params
114 self.audio_params['duration'],
140 file_path = self.write_record_file(self.audio_params, frames)
149 def __init__(self, audio_params): argument
156 self.audio_params = audio_params
[all …]
Daudio_test_utils.py35 def get_audio_capture_device(ad, audio_params): argument
54 if audio_params['type'] == 'AndroidDevice':
55 return CaptureAudioOverAdb(ad, audio_params)
57 elif audio_params['type'] == 'Local':
58 return CaptureAudioOverLocal(audio_params)
62 '%s' % audio_params['type'])
70 def __init__(self, path, audio_params=None): argument
78 self.audio_params = audio_params
81 if self.audio_params:
163 rate=self.audio_params["sample_rate"],
[all …]
DCoexPerformanceBaseTest.py105 self.audio = get_audio_capture_device(self.sec_ad, self.audio_params)
242 self.path).audio_quality_analysis(self.audio_params)
Dcoex_test_utils.py1038 def push_music_to_android_device(ad, audio_params): argument
1050 music_path = audio_params["music_file"]
1058 music_file_to_play = audio_params["music_file"]
/tools/test/connectivity/acts_tests/tests/google/bt/performance/
DBtA2dpOtaRangeTest.py159 self.bt_device_controller, self.audio_params)
186 ) * self.audio_params['volume']
191 ) * self.audio_params['volume']
213 ) * self.audio_params['volume']
238 self.audio_params)
239 thdn = audio_result.THDN(**self.audio_params['thdn_params'])
247 time.sleep(self.audio_params['duration'])
250 self.audio_params)
251 thdn = audio_result.THDN(**self.audio_params['thdn_params'])
295 ) * self.audio_params['volume']
[all …]
DBtInterferenceDynamicTest.py35 self.iperf_duration = self.audio_params['duration'] + TIME_OVERHEAD
284 args=(self.audio_params['duration'], queue))
305 if thdn >= self.audio_params['thdn_threshold']:
341 args=(self.audio_params['duration'], queue))
364 if thdn >= self.audio_params['thdn_threshold']:
DBtA2dpDynamicChannelTest.py84 self.audio_params)
85 thdn = audio_result.THDN(**self.audio_params['thdn_params'])
106 if thdn[0] > self.audio_params['thdn_threshold'] or thdn[0] == 0:
DBtInterferenceStaticTest.py38 self.iperf_duration = self.audio_params['duration'] + TIME_OVERHEAD
123 args=(self.audio_params['duration'], queue))
146 if thdn >= self.audio_params['thdn_threshold']:
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
DA2dpBaseTest.py102 self.bt_device_controller, self.audio_params)
109 vol = self.dut.droid.getMaxMediaVolume() * self.audio_params['volume']
205 self.audio_params)
206 thdn = audio_result.THDN(**self.audio_params['thdn_params'])
227 **self.audio_params['anomaly_params'])
332 self.audio_params['duration'])
419 if thdn >= self.audio_params['thdn_threshold']:
/tools/test/connectivity/acts_tests/tests/google/coex/performance_tests/
DWlanWithA2dpPerformanceTest.py71 self.audio_params["music_play_time"])),
92 self.audio_params["music_play_time"])),
/tools/test/connectivity/acts_tests/tests/google/bt/headphone_automation/
DSineWaveQualityTest.py13 **self.audio_params.get('anomaly_params', {}))