wait for all output done before check color-range
testDecodeGlAccuracyRGB[2(c2.mtk.avc.decoder_video/avc_1_4_3)]
fail reason is:The case check the color-range without wait
all output done, so sometimes output have not return done and
the format not changed ,the case already check the color-range done.
wait for all output done before call validateColorAspects
Bug: 234701258
Test: run testDecodeGlAccuracyRGB pass
Change-Id: I20d4e95a5e5a6903cb7b8518f1a82d2729c494f5
(cherry picked from commit 11a2f431ff105055e1850a164deb1cd1623e88e0)
Merged-In: I20d4e95a5e5a6903cb7b8518f1a82d2729c494f5
diff --git a/tests/media/src/android/mediav2/cts/DecodeGlAccuracyTest.java b/tests/media/src/android/mediav2/cts/DecodeGlAccuracyTest.java
index 83cc6f4..f8c0172 100644
--- a/tests/media/src/android/mediav2/cts/DecodeGlAccuracyTest.java
+++ b/tests/media/src/android/mediav2/cts/DecodeGlAccuracyTest.java
@@ -368,8 +368,8 @@
mCodec.start();
doWork(Integer.MAX_VALUE);
queueEOS();
- validateColorAspects(mCodec.getOutputFormat(), mRange, mStandard, mTransferCurve);
waitForAllOutputs();
+ validateColorAspects(mCodec.getOutputFormat(), mRange, mStandard, mTransferCurve);
mCodec.stop();
mCodec.release();
mEGLWindowOutSurface.release();