media.Vp8EncoderTest: comment out asynchronous testing
Bug: 15091403
Change-Id: Ibcae5aa99f40ce5efb0c006a11ed6fd4efddc829
diff --git a/tests/tests/media/src/android/media/cts/Vp8CodecTestBase.java b/tests/tests/media/src/android/media/cts/Vp8CodecTestBase.java
index 45e4009..58a61ab 100644
--- a/tests/tests/media/src/android/media/cts/Vp8CodecTestBase.java
+++ b/tests/tests/media/src/android/media/cts/Vp8CodecTestBase.java
@@ -277,6 +277,7 @@
} else {
params.timeoutDequeue = 0;
params.runInLooperThread = true;
+ continue; // FIXME add support for async
}
outputParameters.add(params);
}
@@ -680,7 +681,7 @@
* is configured to run in async mode the function will run in a looper thread.
* Encoded frame can be retrieved by calling getOutput() function.
*/
- protected class MediaEncoderAsync extends Thread implements MediaCodec.NotificationCallback {
+ protected class MediaEncoderAsync extends Thread /* FIXME implements MediaCodec.NotificationCallback */ {
private int mId;
private MediaCodec mCodec;
private MediaFormat mFormat;
@@ -708,7 +709,7 @@
private Handler mHandler;
private boolean mCallbackReceived;
- @Override
+ /* FIXME @Override */
public void onCodecNotify(MediaCodec codec) {
synchronized (mCallbackEvent) {
Log.v(TAG, "MediaEncoder " + mId + " Event Callback");
@@ -795,7 +796,7 @@
mCodec.configure(mFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE);
mCodec.start();
if (mAsync) {
- mCodec.setNotificationCallback(this);
+ /* FIXME mCodec.setNotificationCallback(this); */
}
mInputBuffers = mCodec.getInputBuffers();
mOutputBuffers = mCodec.getOutputBuffers();
diff --git a/tests/tests/media/src/android/media/cts/Vp8EncoderTest.java b/tests/tests/media/src/android/media/cts/Vp8EncoderTest.java
index 19b4caa..7f51a64 100644
--- a/tests/tests/media/src/android/media/cts/Vp8EncoderTest.java
+++ b/tests/tests/media/src/android/media/cts/Vp8EncoderTest.java
@@ -111,7 +111,7 @@
* Checks the PSNR difference between the encoded and decoded output and reference yuv input
* does not change much for two different ways of the encoder call.
*/
- public void testAsyncEncoding() throws Exception {
+ public void FIXME_testAsyncEncoding() throws Exception {
int encodeSeconds = 9;
// First test the encoder running in a looper thread with buffer callbacks enabled.