/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 | 35 status_t MediaRecorder::setCamera(const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy) in setCamera() 56 status_t MediaRecorder::setPreviewSurface(const sp<IGraphicBufferProducer>& surface) in setPreviewSurface() 81 status_t MediaRecorder::init() in init() 111 status_t MediaRecorder::setVideoSource(int vs) in setVideoSource() 146 status_t MediaRecorder::setAudioSource(int as) in setAudioSource() 179 status_t MediaRecorder::setOutputFormat(int of) in setOutputFormat() 208 status_t MediaRecorder::setVideoEncoder(int ve) in setVideoEncoder() 238 status_t MediaRecorder::setAudioEncoder(int ae) in setAudioEncoder() 268 status_t MediaRecorder::setOutputFile(int fd, int64_t offset, int64_t length) in setOutputFile() 305 status_t MediaRecorder::setVideoSize(int width, int height) in setVideoSize() [all …]
|
/frameworks/base/docs/html/guide/topics/media/ |
D | audio-capture.jd | 19 <li>{@link android.media.MediaRecorder}</li> 34 using the {@link android.media.MediaRecorder} APIs if supported by the device hardware.</p> 47 <li>Create a new instance of {@link android.media.MediaRecorder android.media.MediaRecorder}.</li> 49 {@link android.media.MediaRecorder#setAudioSource MediaRecorder.setAudioSource()}. You will 51 <code>MediaRecorder.AudioSource.MIC</code>.</li> 53 {@link android.media.MediaRecorder#setOutputFormat MediaRecorder.setOutputFormat()}. 56 {@link android.media.MediaRecorder#setOutputFile MediaRecorder.setOutputFile()}. 59 {@link android.media.MediaRecorder#setAudioEncoder MediaRecorder.setAudioEncoder()}. 61 <li>Call {@link android.media.MediaRecorder#prepare MediaRecorder.prepare()} 62 on the MediaRecorder instance.</li> [all …]
|
D | camera.jd | 45 <li>{@link android.media.MediaRecorder}</li> 103 <dt>{@link android.media.MediaRecorder}</dt> 708 android.hardware.Camera} object and coordination with the {@link android.media.MediaRecorder} 711 Camera.unlock()} calls to allow {@link android.media.MediaRecorder} access to the camera hardware, 736 android.media.MediaRecorder} by calling {@link android.hardware.Camera#unlock() 738 <li><strong>Configure MediaRecorder</strong> - Call in the following {@link 739 android.media.MediaRecorder} methods <em>in this order</em>. For more information, see the {@link 740 android.media.MediaRecorder} reference documentation. 742 <li>{@link android.media.MediaRecorder#setCamera(android.hardware.Camera) 745 <li>{@link android.media.MediaRecorder#setAudioSource(int) setAudioSource()} - Set the [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaRecorder.cpp | 141 static sp<MediaRecorder> getMediaRecorder(JNIEnv* env, jobject thiz) in getMediaRecorder() 144 MediaRecorder* const p = (MediaRecorder*)env->GetLongField(thiz, fields.context); in getMediaRecorder() 145 return sp<MediaRecorder>(p); in getMediaRecorder() 148 static sp<MediaRecorder> setMediaRecorder(JNIEnv* env, jobject thiz, const sp<MediaRecorder>& recor… in setMediaRecorder() 151 sp<MediaRecorder> old = (MediaRecorder*)env->GetLongField(thiz, fields.context); in setMediaRecorder() 175 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setCamera() 188 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setVideoSource() 202 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setAudioSource() 214 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setOutputFormat() 226 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 | MediaRecorder.java | 76 public class MediaRecorder class 100 public MediaRecorder() { in MediaRecorder() method in MediaRecorder 115 native_setup(new WeakReference<MediaRecorder>(this), packageName, in MediaRecorder() 864 void onError(MediaRecorder mr, int what, int extra); in onError() 981 void onInfo(MediaRecorder mr, int what, int extra); in onInfo() 997 private MediaRecorder mMediaRecorder; 999 public EventHandler(MediaRecorder mr, Looper looper) { in EventHandler() 1057 MediaRecorder mr = (MediaRecorder)((WeakReference)mediarecorder_ref).get(); in postEventFromNative()
|
D | AudioAttributes.java | 233 private int mSource = MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID; 319 private int mSource = MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID; 530 case MediaRecorder.AudioSource.DEFAULT: in setCapturePreset() 531 case MediaRecorder.AudioSource.MIC: in setCapturePreset() 532 case MediaRecorder.AudioSource.CAMCORDER: in setCapturePreset() 533 case MediaRecorder.AudioSource.VOICE_RECOGNITION: in setCapturePreset() 534 case MediaRecorder.AudioSource.VOICE_COMMUNICATION: in setCapturePreset() 552 if ((preset == MediaRecorder.AudioSource.HOTWORD) in setInternalCapturePreset() 553 || (preset == MediaRecorder.AudioSource.REMOTE_SUBMIX) in setInternalCapturePreset() 554 || (preset == MediaRecorder.AudioSource.RADIO_TUNER)) { in setInternalCapturePreset()
|
D | AudioRecord.java | 322 if (attributes.getCapturePreset() == MediaRecorder.AudioSource.REMOTE_SUBMIX) { in AudioRecord() 443 if ( (source < MediaRecorder.AudioSource.DEFAULT) || in setAudioSource() 444 (source > MediaRecorder.getAudioSourceMax()) ) { in setAudioSource() 467 if (attributes.getCapturePreset() == MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID) { in setAudioAttributes() 557 .setInternalCapturePreset(MediaRecorder.AudioSource.DEFAULT) in build() 621 if ( (audioSource < MediaRecorder.AudioSource.DEFAULT) || in audioParamCheck() 622 ((audioSource > MediaRecorder.getAudioSourceMax()) && in audioParamCheck() 623 (audioSource != MediaRecorder.AudioSource.RADIO_TUNER) && in audioParamCheck() 624 (audioSource != MediaRecorder.AudioSource.HOTWORD)) ) { in audioParamCheck()
|
/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 | MediaRecorderStartStateUnitTest.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 | MediaRecorderSetAudioEncoderStateUnitTest.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 | MediaRecorderSetOutputFileStateUnitTest.java | 19 import android.media.MediaRecorder; 50 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
|
D | MediaRecorderSetOutputFormatStateUnitTest.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()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | GLEnvironment.java | 25 import android.media.MediaRecorder; 120 public int registerSurfaceFromMediaRecorder(MediaRecorder mediaRecorder) { in registerSurfaceFromMediaRecorder() 175 private native int nativeAddSurfaceFromMediaRecorder(MediaRecorder mediaRecorder); in nativeAddSurfaceFromMediaRecorder() 177 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; 116 static sp<MediaRecorder> getMediaRecorder(JNIEnv* env, jobject jmediarecorder) { in getMediaRecorder() 127 MediaRecorder* const p = (MediaRecorder*)env->GetLongField(jmediarecorder, context); in getMediaRecorder() 129 return sp<MediaRecorder>(p); in getMediaRecorder() 278 sp<MediaRecorder> mr = getMediaRecorder(env, jmediarecorder); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceFromMediaRecorder()
|
/frameworks/av/include/media/ |
D | mediarecorder.h | 209 class MediaRecorder : public BnMediaRecorderClient, 213 MediaRecorder(const String16& opPackageName); 214 ~MediaRecorder();
|