diff options
author | Hakan Lindh <hlindh@google.com> | 2017-10-19 16:17:03 -0700 |
---|---|---|
committer | Hakan Lindh <hlindh@google.com> | 2017-10-19 16:17:03 -0700 |
commit | 451391bb1738da9cdadf3c988d0a71ecdf4b69ed (patch) | |
tree | b8a8054feef80bcbfa22b03e779ba0263276728e /src | |
parent | 1228b179a65e3e1c5edfacf9618b02a8e0cdc4e0 (diff) | |
download | contrib-451391bb1738da9cdadf3c988d0a71ecdf4b69ed.tar.gz |
ImageAnalyzer fix: Allow complete analysis along x-axis
Due to Dragon's fairly poor audio loopback responses, the analysis ignores a part in the beginning of the image, otherwise we would not get any data from dragon.
This change restores inspection of the whole x-axis for smaller devices.
Bug: 68001193
Change-Id: If4cdb1aa9bd915c021feee30e654f2e443878549
Fixes: 68001193
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/media/tests/AudioLoopbackImageAnalyzer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/media/tests/AudioLoopbackImageAnalyzer.java b/src/com/android/media/tests/AudioLoopbackImageAnalyzer.java index 08cf70c..f73fc67 100644 --- a/src/com/android/media/tests/AudioLoopbackImageAnalyzer.java +++ b/src/com/android/media/tests/AudioLoopbackImageAnalyzer.java @@ -116,7 +116,7 @@ public class AudioLoopbackImageAnalyzer { amplitudeCenterMaxDiff = 20; maxDuration = 2.5f * SECTION_WIDTH_IN_PERCENT; targetColors = TARGET_COLORS_PHONE; - horizontalStart = Math.round(1 * SECTION_WIDTH_IN_PERCENT * width / 100.0f); + horizontalStart = 0; minNrOfZeroesBetweenAmplitudes = MIN_SPACE_BETWEEN_TWO_COLUMNS; } |