diff options
author | Yu Shan Emily Lau <yslau@google.com> | 2009-09-17 23:40:59 -0700 |
---|---|---|
committer | Yu Shan Emily Lau <yslau@google.com> | 2009-09-17 23:43:18 -0700 |
commit | bc95d663adf047116d0286b4a797e60ae2410fec (patch) | |
tree | fba019c79ebc9b252db752e4d4705f1f8ed752d0 | |
parent | 56af9e9f9cbc3626acf55558d581efd2de3caa03 (diff) | |
download | frameworks_base-bc95d663adf047116d0286b4a797e60ae2410fec.zip frameworks_base-bc95d663adf047116d0286b4a797e60ae2410fec.tar.gz frameworks_base-bc95d663adf047116d0286b4a797e60ae2410fec.tar.bz2 |
Modified the validation to use singal media player instance.
-rw-r--r-- | media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java index 39846c6..4a4ad6f 100644 --- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java +++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java @@ -214,8 +214,10 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase<MediaFram Log.v(TAG, "before getduration"); mOutputDuration = mediaPlayer.getDuration(); Log.v(TAG, "get video dimension"); - mOutputVideoHeight = CodecTest.videoHeight(outputFilePath); - mOutputVideoWidth = CodecTest.videoWidth(outputFilePath); + mOutputVideoHeight = mediaPlayer.getVideoHeight(); + mOutputVideoWidth = mediaPlayer.getVideoWidth(); + //mOutputVideoHeight = CodecTest.videoHeight(outputFilePath); + //mOutputVideoWidth = CodecTest.videoWidth(outputFilePath); mediaPlayer.release(); } catch (Exception e) { Log.v(TAG, e.toString()); @@ -321,10 +323,10 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase<MediaFram recordVideo(15, 352, 288, MediaRecorder.VideoEncoder.H263, MediaRecorder.OutputFormat.THREE_GPP, MediaNames.RECORDED_PORTRAIT_H263, true); - videoRecordedResult = - validateVideo(MediaNames.RECORDED_PORTRAIT_H263, 352, 288); mCamera.lock(); mCamera.release(); + videoRecordedResult = + validateVideo(MediaNames.RECORDED_PORTRAIT_H263, 352, 288); } catch (Exception e) { Log.v(TAG, e.toString()); } @@ -453,4 +455,3 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase<MediaFram } } } - |