/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | MediaProfileReader.java | 19 import android.media.MediaRecorder; 79 if (videoEncoder != MediaRecorder.VideoEncoder.H263 && in getVideoCodecName() 80 videoEncoder != MediaRecorder.VideoEncoder.H264 && in getVideoCodecName() 81 videoEncoder != MediaRecorder.VideoEncoder.MPEG_4_SP) { in getVideoCodecName() 88 if (audioEncoder != MediaRecorder.AudioEncoder.AMR_NB && in getAudioCodecName() 89 audioEncoder != MediaRecorder.AudioEncoder.AMR_WB && in getAudioCodecName() 90 audioEncoder != MediaRecorder.AudioEncoder.AAC && in getAudioCodecName() 91 audioEncoder != MediaRecorder.AudioEncoder.HE_AAC && in getAudioCodecName() 92 audioEncoder != MediaRecorder.AudioEncoder.AAC_ELD) { in getAudioCodecName() 121 videoEncoderMap.put(MediaRecorder.VideoEncoder.H263, "h263"); in initVideoEncoderMap() [all …]
|
/frameworks/av/media/libmedia/ |
D | mediarecorder.cpp | 36 status_t MediaRecorder::setCamera(const sp<hardware::ICamera>& camera, in setCamera() 58 status_t MediaRecorder::setPreviewSurface(const sp<IGraphicBufferProducer>& surface) in setPreviewSurface() 83 status_t MediaRecorder::init() in init() 113 status_t MediaRecorder::setVideoSource(int vs) in setVideoSource() 148 status_t MediaRecorder::setAudioSource(int as) in setAudioSource() 181 status_t MediaRecorder::setOutputFormat(int of) in setOutputFormat() 210 status_t MediaRecorder::setVideoEncoder(int ve) in setVideoEncoder() 240 status_t MediaRecorder::setAudioEncoder(int ae) in setAudioEncoder() 271 status_t MediaRecorder::setOutputFile(int fd) in setOutputFile() 313 status_t MediaRecorder::setNextOutputFile(int fd) in setNextOutputFile() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaRecorder.cpp | 152 static sp<MediaRecorder> getMediaRecorder(JNIEnv* env, jobject thiz) in getMediaRecorder() 155 MediaRecorder* const p = (MediaRecorder*)env->GetLongField(thiz, fields.context); in getMediaRecorder() 156 return sp<MediaRecorder>(p); in getMediaRecorder() 159 static sp<MediaRecorder> setMediaRecorder(JNIEnv* env, jobject thiz, const sp<MediaRecorder>& recor… in setMediaRecorder() 162 sp<MediaRecorder> old = (MediaRecorder*)env->GetLongField(thiz, fields.context); in setMediaRecorder() 186 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setCamera() 203 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setVideoSource() 221 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setAudioSource() 237 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setOutputFormat() 253 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setVideoEncoder() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/ |
D | MediaRecorderTest.java | 33 import android.media.MediaRecorder; 60 private MediaRecorder mRecorder; 77 mRecorder = new MediaRecorder(); in setUp() 87 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in recordVideo() 89 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in recordVideo() 98 mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in recordVideo() 119 MediaRecorder recorder = new MediaRecorder(); in validateGetSurface() 136 recorder.setAudioSource(MediaRecorder.AudioSource.MIC); in validateGetSurface() 138 MediaRecorder.VideoSource.SURFACE : in validateGetSurface() 139 MediaRecorder.VideoSource.CAMERA; in validateGetSurface() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/ |
D | MediaPlayerPerformance.java | 29 import android.media.MediaRecorder; 227 MediaRecorder mRecorder = new MediaRecorder(); in stressVideoRecord() 231 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in stressVideoRecord() 233 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in stressVideoRecord() 242 mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in stressVideoRecord() 266 MediaRecorder mRecorder = new MediaRecorder(); in stressAudioRecord() 268 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in stressAudioRecord() 269 mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in stressAudioRecord() 270 mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in stressAudioRecord() 457 .getMaxFrameRateForCodec(MediaRecorder.VideoEncoder.H263); in testH263RecordVideoOnlyMemoryUsage() [all …]
|
/frameworks/base/media/java/android/media/ |
D | AudioRecordingConfiguration.java | 108 false /*clientSilenced*/, MediaRecorder.AudioSource.DEFAULT /*deviceSource*/, in AudioRecordingConfiguration() 136 + " -- source client=" + MediaRecorder.toLogFriendlyAudioSource(arc.mClientSource) in toLogFriendlyString() 167 MediaRecorder.AudioSource.DEFAULT, 168 MediaRecorder.AudioSource.MIC, 169 MediaRecorder.AudioSource.VOICE_UPLINK, 170 MediaRecorder.AudioSource.VOICE_DOWNLINK, 171 MediaRecorder.AudioSource.VOICE_CALL, 172 MediaRecorder.AudioSource.CAMCORDER, 173 MediaRecorder.AudioSource.VOICE_RECOGNITION, 174 MediaRecorder.AudioSource.VOICE_COMMUNICATION, [all …]
|
D | AudioAttributes.java | 450 private int mSource = MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID; 588 private int mSource = MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID; 907 case MediaRecorder.AudioSource.DEFAULT: in setCapturePreset() 908 case MediaRecorder.AudioSource.MIC: in setCapturePreset() 909 case MediaRecorder.AudioSource.CAMCORDER: in setCapturePreset() 910 case MediaRecorder.AudioSource.VOICE_RECOGNITION: in setCapturePreset() 911 case MediaRecorder.AudioSource.VOICE_COMMUNICATION: in setCapturePreset() 912 case MediaRecorder.AudioSource.UNPROCESSED: in setCapturePreset() 913 case MediaRecorder.AudioSource.VOICE_PERFORMANCE: in setCapturePreset() 931 if ((preset == MediaRecorder.AudioSource.HOTWORD) in setInternalCapturePreset() [all …]
|
D | MediaRecorder.java | 95 public class MediaRecorder implements AudioRouting, class 131 public MediaRecorder() { in MediaRecorder() method in MediaRecorder 147 native_setup(new WeakReference<MediaRecorder>(this), packageName, in MediaRecorder() 1177 void onError(MediaRecorder mr, int what, int extra); in onError() 1311 void onInfo(MediaRecorder mr, int what, int extra); in onInfo() 1327 private MediaRecorder mMediaRecorder; 1329 public EventHandler(MediaRecorder mr, Looper looper) { in EventHandler() 1642 MediaRecorder mr = (MediaRecorder)((WeakReference)mediarecorder_ref).get(); in postEventFromNative()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | MediaRecorderStateUnitTestTemplate.java | 20 import android.media.MediaRecorder; 40 public static final int OUTPUT_FORMAT= MediaRecorder.OutputFormat.THREE_GPP; 41 public static final int AUDIO_ENCODER = MediaRecorder.AudioEncoder.AMR_NB; 42 public static final int AUDIO_SOURCE = MediaRecorder.AudioSource.MIC; 45 private MediaRecorder mMediaRecorder = new MediaRecorder();
|
D | MediaRecorderMethodUnderTest.java | 19 import android.media.MediaRecorder; 26 public void invokeMethodUnderTest(MediaRecorder player); in invokeMethodUnderTest()
|
D | MediaRecorderSetOutputFileStateUnitTest.java | 19 import android.media.MediaRecorder; 50 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
|
D | MediaRecorderSetAudioEncoderStateUnitTest.java | 19 import android.media.MediaRecorder; 53 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
|
D | MediaRecorderStartStateUnitTest.java | 19 import android.media.MediaRecorder; 53 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
|
D | MediaRecorderSetOutputFormatStateUnitTest.java | 19 import android.media.MediaRecorder; 53 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
|
D | MediaRecorderSetAudioSourceStateUnitTest.java | 19 import android.media.MediaRecorder; 53 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
|
D | MediaRecorderResetStateUnitTest.java | 19 import android.media.MediaRecorder; 53 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
|
D | MediaRecorderPrepareStateUnitTest.java | 19 import android.media.MediaRecorder; 54 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
|
D | MediaRecorderStopStateUnitTest.java | 19 import android.media.MediaRecorder; 56 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | MediaRecorderStressTest.java | 33 import android.media.MediaRecorder; 49 private MediaRecorder mRecorder; 141 private final class RecorderErrorCallback implements MediaRecorder.OnErrorListener { 142 public void onError(MediaRecorder mr, int what, int extra) { in onError() 216 mRecorder = new MediaRecorder(); in recordVideoAndPlayback() 230 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in recordVideoAndPlayback() 231 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in recordVideoAndPlayback() 232 mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in recordVideoAndPlayback() 319 mRecorder = new MediaRecorder(); in testStressTimeLapse() 327 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in testStressTimeLapse()
|
D | Camera2RecordingTest.java | 44 import android.media.MediaRecorder; 110 private MediaRecorder mMediaRecorder; 131 mMediaRecorder = new MediaRecorder(); in doBasicRecording() 205 mMediaRecorder = new MediaRecorder(); in constrainedHighSpeedRecording() 476 mMediaRecorder = new MediaRecorder(); in videoSnapshotHelper() 815 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); in prepareRecordingWithProfile() 816 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in prepareRecordingWithProfile() 840 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); in prepareRecording() 841 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in prepareRecording() 842 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in prepareRecording() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | GLEnvironment.java | 22 import android.media.MediaRecorder; 125 public int registerSurfaceFromMediaRecorder(MediaRecorder mediaRecorder) { in registerSurfaceFromMediaRecorder() 183 private native int nativeAddSurfaceFromMediaRecorder(MediaRecorder mediaRecorder); in nativeAddSurfaceFromMediaRecorder() 185 private native boolean nativeDisconnectSurfaceMediaSource(MediaRecorder mediaRecorder); in nativeDisconnectSurfaceMediaSource()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/ |
D | MediaEncoderFilter.java | 31 import android.media.MediaRecorder; 73 private MediaRecorder.OnInfoListener mInfoListener = null; 80 private MediaRecorder.OnErrorListener mErrorListener = null; 121 private int mOutputFormat = MediaRecorder.OutputFormat.MPEG_4; 127 private int mVideoEncoder = MediaRecorder.VideoEncoder.H264; 175 private MediaRecorder mMediaRecorder; 313 mMediaRecorder = new MediaRecorder(); in startRecording()
|
/frameworks/base/media/mca/filterfw/jni/ |
D | jni_gl_environment.cpp | 34 using android::MediaRecorder; 117 static sp<MediaRecorder> getMediaRecorder(JNIEnv* env, jobject jmediarecorder) { in getMediaRecorder() 128 MediaRecorder* const p = (MediaRecorder*)env->GetLongField(jmediarecorder, context); in getMediaRecorder() 130 return sp<MediaRecorder>(p); in getMediaRecorder() 279 sp<MediaRecorder> mr = getMediaRecorder(env, jmediarecorder); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceFromMediaRecorder()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | RecordingService.java | 34 import android.media.MediaRecorder; 88 private MediaRecorder mMediaRecorder; 233 mMediaRecorder = new MediaRecorder(); in startRecording() 235 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in startRecording() 237 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in startRecording() 238 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); in startRecording() 244 mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264); in startRecording() 251 mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in startRecording()
|
/frameworks/av/media/libmedia/include/media/ |
D | mediarecorder.h | 225 class MediaRecorder : public BnMediaRecorderClient, 229 MediaRecorder(const String16& opPackageName); 230 ~MediaRecorder();
|