summaryrefslogtreecommitdiffstats
path: root/media/tests
diff options
context:
space:
mode:
authorDevaraj Rangasamy <dev@ti.com>2011-09-08 17:53:33 -0700
committerJames Dong <jdong@google.com>2011-09-09 17:22:24 -0700
commitd8f7c2c2dcc9548bc8808e648904c918ecd1d1ba (patch)
treec75440aabc86cb26997ac89b9a0bacf2d847af5a /media/tests
parenta3809b344c9f528c5c510dfc48ed9049a17cb64b (diff)
downloadframeworks_base-d8f7c2c2dcc9548bc8808e648904c918ecd1d1ba.zip
frameworks_base-d8f7c2c2dcc9548bc8808e648904c918ecd1d1ba.tar.gz
frameworks_base-d8f7c2c2dcc9548bc8808e648904c918ecd1d1ba.tar.bz2
MTS Recorder Test: Use VideoFrameRate from Device Camcorder Profile
MTS tests have hardcoded video framerates. MTS can query the video framerate supported by device via Camcorder profiles and use. Change-Id: I61666df6af58eaba46f7366521cc114184cb4ac5 Signed-off-by: Devaraj Rangasamy <dev@ti.com>
Diffstat (limited to 'media/tests')
-rw-r--r--media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaRecorderStressTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaRecorderStressTest.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaRecorderStressTest.java
index ae0589c..e6177ba 100644
--- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaRecorderStressTest.java
+++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaRecorderStressTest.java
@@ -205,7 +205,7 @@ public class MediaRecorderStressTest extends ActivityInstrumentationTestCase2<Me
mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mRecorder.setOutputFile(filename);
- mRecorder.setVideoFrameRate(20);
+ mRecorder.setVideoFrameRate(MediaRecorderStressTestRunner.mFrameRate);
mRecorder.setVideoSize(176,144);
Log.v(TAG, "setEncoder");
mRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
@@ -269,7 +269,7 @@ public class MediaRecorderStressTest extends ActivityInstrumentationTestCase2<Me
mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mRecorder.setOutputFile(filename);
- mRecorder.setVideoFrameRate(20);
+ mRecorder.setVideoFrameRate(MediaRecorderStressTestRunner.mFrameRate);
mRecorder.setVideoSize(176,144);
Log.v(TAG, "Media recorder setEncoder");
mRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);