From 52d8aa79a31c5042d2b43d06f08fa28489b27d1b Mon Sep 17 00:00:00 2001 From: Andy Hung Date: Mon, 4 Nov 2013 14:42:09 -0800 Subject: Add "throws IOException" to MediaCodec constructors (3) Change to add "throws IOException" to android.media.MediaCodec (createByCodecName|createDecoderByType|createEncoderByType). The exception was previously thrown through the native JNI, but not explicitly declared. Requires changes to existing code for declaration compatibility. Bug: 11364276 Change-Id: Ia0d3481397285cb1503bedde37d4651934b3a481 Signed-off-by: Andy Hung --- api/current.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api') diff --git a/api/current.txt b/api/current.txt index 745b33d93..e82d348 100644 --- a/api/current.txt +++ b/api/current.txt @@ -12597,9 +12597,9 @@ package android.media { public final class MediaCodec { method public void configure(android.media.MediaFormat, android.view.Surface, android.media.MediaCrypto, int); - method public static android.media.MediaCodec createByCodecName(java.lang.String); - method public static android.media.MediaCodec createDecoderByType(java.lang.String); - method public static android.media.MediaCodec createEncoderByType(java.lang.String); + method public static android.media.MediaCodec createByCodecName(java.lang.String) throws java.io.IOException; + method public static android.media.MediaCodec createDecoderByType(java.lang.String) throws java.io.IOException; + method public static android.media.MediaCodec createEncoderByType(java.lang.String) throws java.io.IOException; method public final android.view.Surface createInputSurface(); method public final int dequeueInputBuffer(long); method public final int dequeueOutputBuffer(android.media.MediaCodec.BufferInfo, long); -- cgit v1.1