diff options
author | James Dong <jdong@google.com> | 2012-04-19 13:30:20 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2012-04-27 15:48:46 -0700 |
commit | 7a9734d769d97470ce6fac0594dd007804d33432 (patch) | |
tree | ca8065dee6e8540066d992dbefed8785dfe6601a /media/tests/MediaFrameworkTest/src | |
parent | 665a376d245d7bbfc43e3cfa651afc7448604afa (diff) | |
download | frameworks_base-7a9734d769d97470ce6fac0594dd007804d33432.zip frameworks_base-7a9734d769d97470ce6fac0594dd007804d33432.tar.gz frameworks_base-7a9734d769d97470ce6fac0594dd007804d33432.tar.bz2 |
Unhide APIs for timed text and multiple audio track switch APIs
o made all the member variables in helper classes for TimedText to be public and final
since they are read-only
o removed Text and TextPos helper classes
o added two public methods in TimedText class: getText() and getBounds()
o cleaned up the javadoc of related methods in MediaPlayer.java and TimedText.java classes
o make the inner classes of TimedText static and final
o change invoke and let it throw RuntimeException on failure (thus a test class needs to be
modified also).
o related-to-bug: 6110705,5542712
Change-Id: Ia1dd1fd5eb8e9fd1b61c6c0d67405edb627a3002
Diffstat (limited to 'media/tests/MediaFrameworkTest/src')
-rw-r--r-- | media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPlayerInvokeTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPlayerInvokeTest.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPlayerInvokeTest.java index 0b96bae..55a1545 100644 --- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPlayerInvokeTest.java +++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPlayerInvokeTest.java @@ -65,7 +65,7 @@ public class MediaPlayerInvokeTest extends ActivityInstrumentationTestCase2<Medi int val = rnd.nextInt(); request.writeInt(val); - assertEquals(0, mPlayer.invoke(request, reply)); + mPlayer.invoke(request, reply); assertEquals(val, reply.readInt()); } } |