Fix to AudioLoopbackStress and AdbScreenrecord tests

Fixes to Glitches test; after consultation with Audio Devs, a 4 step approach is taken to run Glitches test to minimize test flakiness.
Also restructures basic test flow - once an error is detected and reported, but rather than returning up the calling hierarchy, an exception is thrown. Before, the test exited incorrectly and reported values even though the test had failed. This change affects both AudioLoopbackStress and AdbScreenrecord.

Bug: 64715929
Bug: 64438393
Change-Id: I518f0c21c00fb1bff0ace17655d907ebdca63207
Fixes:
Test: tradefed.sh run google/test/framework/media/adb-screen-record -s 84B0115625000809
Test:  tradefed.sh  run google/test/framework/media/audio-loopback-stress --iterations 1 --test-type 223 --buffer-test-duration 3600 -s 84B0115625000809
Test:  tradefed.sh  run google/test/framework/media/audio-loopback-stress --iterations 10 -s 84B0115625000809
6 files changed
tree: abc1775ed4eccb52fd5be41ad4984e97a8358e13
  1. res/
  2. src/
  3. .gitignore
  4. Android.mk
  5. MANIFEST.mf
  6. OWNERS
  7. README
  8. README.txt