summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyszard Grzesica <ryszard.grzesica@sonymobile.com>2013-11-19 10:16:34 +0100
committerJohan Redestig <johan.redestig@sonymobile.com>2015-06-25 10:43:35 +0000
commit9c99d9dac192b7eb41aeb15b1ec101ca865d7e66 (patch)
tree7682ef7fe6e94a614cc14704173b043b9d37d3ac
parent2f901cebfcce7d0add9ba1d91093f419b8d0dcd4 (diff)
downloadcts-9c99d9dac192b7eb41aeb15b1ec101ca865d7e66.tar.gz
Fix for failing test of testEOS because checksum takes too long
While low latency port reconfiguration is on (the same as smooth streaming but for local playback) allocated buffers has maximum supported capacity in our case it is Full HD. Effective buffer size is equal to HxWx3/2 but in this test capacity was used for checksum check. So instead of check of buffer ~300k test was checking buffer of ~3M size what makes the test to take too long and test failed due to timeout. In test used space of the buffer should be used. Change-Id: Ie4854eef1d26737bfeade298ebb80f91891c8b6d (cherry picked from commit 923bb77624d140dcf49c0eedf0c2226458e8cdd4)
-rw-r--r--tests/tests/media/src/android/media/cts/DecoderTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tests/media/src/android/media/cts/DecoderTest.java b/tests/tests/media/src/android/media/cts/DecoderTest.java
index 1e91c09769c..9fe08664b13 100644
--- a/tests/tests/media/src/android/media/cts/DecoderTest.java
+++ b/tests/tests/media/src/android/media/cts/DecoderTest.java
@@ -794,7 +794,7 @@ public class DecoderTest extends MediaPlayerTestBase {
CRC32 crc = new CRC32();
int pos = buf.position();
buf.rewind();
- for (int i = 0; i < buf.capacity(); i++) {
+ for (int i = 0; i < size; i++) {
crc.update(buf.get());
}
buf.position(pos);