Source:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "getMaxAmplitude" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "prepare" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setAudioEncoder" , args = { int . class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setAudioSource" , args = { int . class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setOutputFile" , args = { java.lang.String.class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setOutputFormat" , args = { int . class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "start" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "stop" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setMaxFileSize" , args = { long . class } ) } ) public void testRecorderAudio ( ) throws java.lang.Exception { mMediaRecorder.setAudioSource ( MediaRecorder.AudioSource.MIC ) ; assertEquals ( 0 , mMediaRecorder.getMaxAmplitude ( ) ) ; mMediaRecorder.setOutputFormat ( MediaRecorder.OutputFormat.THREE_GPP ) ; mMediaRecorder.setAudioEncoder ( MediaRecorder.AudioEncoder.AMR_NB ) ; recordMedia ( android.media.cts.MediaRecorderTest.MAX_FILE_SIZE ) ; }

Target:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "getMaxAmplitude" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "prepare" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setAudioEncoder" , args = { int . class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setAudioSource" , args = { int . class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setOutputFile" , args = { java.lang.String.class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setOutputFormat" , args = { int . class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "start" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "stop" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setMaxFileSize" , args = { long . class } ) } ) public void testRecorderAudio ( ) throws java.lang.Exception { mMediaRecorder.setAudioSource ( MediaRecorder.AudioSource.MIC ) ; assertEquals ( 0 , mMediaRecorder.getMaxAmplitude ( ) ) ; mMediaRecorder.setOutputFormat ( MediaRecorder.OutputFormat.THREE_GPP ) ; mMediaRecorder.setOutputFile ( OUTPUT_PATH ) ; mMediaRecorder.setAudioEncoder ( MediaRecorder.AudioEncoder.AMR_NB ) ; recordMedia ( android.media.cts.MediaRecorderTest.MAX_FILE_SIZE , mOutFile ) ; }