Add SineWaveQualityTest and refactor

SineWaveQualityTest: new test derived from A2dpCodecBaseTest. Ensures
test file is a clean sine wave, streams audio on connected DUTs and runs
THD+N and gap detection analysis.

A2dpCodecBaseTest: Refactored THD+N and anomaly detection analysis into
separate methods (some tests inheriting from this class may not have use
for all the analyses).

Refactor generic logic in methods detect_anomalies and THDN in SshAudioCapture into
audio_analysis.py

Change return type for file audio analysis methods from dict to list.

Bug: None
Test: tested on Pixel1, Earstudio Relay device on multiple different wav
files.

Change-Id: Icab4701a3aeab47fbfa8567e54d3e523788c252f
4 files changed
tree: 3fa030c9d5139191a90b7c60424e2949c3b12aef
  1. acts/
  2. tools/
  3. wts-acts/
  4. Android.mk
  5. PREUPLOAD.cfg