Improve EncodeDecodeTest

Made Surface-based test reliable by blocking until onFrameAvailable
is called.  Added test on decoded frame count.  Ignore all
unsupported formats in the ByteBuffer output test, not just the ones
we recognize.

Misc cleanup.

Bug 8091782

Change-Id: I48ffd50dd52c344d11ea49eaa4e7326d098c87fc
1 file changed