FileDocCategorySizeDatePackage
MediaRecorderStressTestRunner.javaAPI DocAndroid 5.1 API4172Thu Mar 12 22:22:30 GMT 2015com.android.mediaframeworktest

MediaRecorderStressTestRunner

public class MediaRecorderStressTestRunner extends android.test.InstrumentationTestRunner

Fields Summary
public static int
mCameraId
public static int
mProfileQuality
public static android.media.CamcorderProfile
profile
public static int
mIterations
public static int
mVideoEncoder
public static int
mAudioEncoder
public static int
mFrameRate
public static int
mVideoWidth
public static int
mVideoHeight
public static int
mBitRate
public static boolean
mRemoveVideo
public static int
mDuration
public static int
mTimeLapseDuration
public static double
mCaptureRate
Constructors Summary
Methods Summary
public junit.framework.TestSuitegetAllTests()

 // 2 sec timelapse interval

    
       
        TestSuite suite = new InstrumentationTestSuite(this);
        suite.addTestSuite(MediaRecorderStressTest.class);
        return suite;
    
public java.lang.ClassLoadergetLoader()

        return MediaRecorderStressTestRunner.class.getClassLoader();
    
public voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);
        String iterations = (String) icicle.get("iterations");
        String videoEncoder = (String) icicle.get("video_encoder");
        String audioEncoder = (String) icicle.get("audio_encoder");
        String frameRate = (String) icicle.get("frame_rate");
        String videoWidth = (String) icicle.get("video_width");
        String videoHeight = (String) icicle.get("video_height");
        String bitRate = (String) icicle.get("bit_rate");
        String recordDuration = (String) icicle.get("record_duration");
        String removeVideos = (String) icicle.get("remove_videos");

        if (iterations != null ) {
            mIterations = Integer.parseInt(iterations);
        }
        if (videoEncoder != null) {
            mVideoEncoder = Integer.parseInt(videoEncoder);
        }
        if (audioEncoder != null) {
            mAudioEncoder = Integer.parseInt(audioEncoder);
        }
        if (frameRate != null) {
            mFrameRate = Integer.parseInt(frameRate);
        }
        if (videoWidth != null) {
            mVideoWidth = Integer.parseInt(videoWidth);
        }
        if (videoHeight != null) {
            mVideoHeight = Integer.parseInt(videoHeight);
        }
        if (bitRate != null) {
            mBitRate = Integer.parseInt(bitRate);
        }
        if (recordDuration != null) {
            mDuration = Integer.parseInt(recordDuration);
        }
        if (removeVideos != null) {
            if (removeVideos.compareTo("true") == 0) {
                mRemoveVideo = true;
            } else {
                mRemoveVideo = false;
            }
        }