/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<hardware::ICamera>& camera, in setCamera() 57 status_t MediaRecorder::setPreviewSurface(const sp<IGraphicBufferProducer>& surface) in setPreviewSurface() 82 status_t MediaRecorder::init() in init() 112 status_t MediaRecorder::setVideoSource(int vs) in setVideoSource() 147 status_t MediaRecorder::setAudioSource(int as) in setAudioSource() 180 status_t MediaRecorder::setOutputFormat(int of) in setOutputFormat() 209 status_t MediaRecorder::setVideoEncoder(int ve) in setVideoEncoder() 239 status_t MediaRecorder::setAudioEncoder(int ae) in setAudioEncoder() 270 status_t MediaRecorder::setOutputFile(int fd) in setOutputFile() 312 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 | 90 + " -- source:" + MediaRecorder.toLogFriendlyAudioSource(arc.mClientSource) in toLogFriendlyString() 115 MediaRecorder.AudioSource.DEFAULT, 116 MediaRecorder.AudioSource.MIC, 117 MediaRecorder.AudioSource.VOICE_UPLINK, 118 MediaRecorder.AudioSource.VOICE_DOWNLINK, 119 MediaRecorder.AudioSource.VOICE_CALL, 120 MediaRecorder.AudioSource.CAMCORDER, 121 MediaRecorder.AudioSource.VOICE_RECOGNITION, 122 MediaRecorder.AudioSource.VOICE_COMMUNICATION, 123 MediaRecorder.AudioSource.UNPROCESSED
|
D | AudioAttributes.java | 377 private int mSource = MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID; 478 private int mSource = MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID; 736 case MediaRecorder.AudioSource.DEFAULT: in setCapturePreset() 737 case MediaRecorder.AudioSource.MIC: in setCapturePreset() 738 case MediaRecorder.AudioSource.CAMCORDER: in setCapturePreset() 739 case MediaRecorder.AudioSource.VOICE_RECOGNITION: in setCapturePreset() 740 case MediaRecorder.AudioSource.VOICE_COMMUNICATION: in setCapturePreset() 741 case MediaRecorder.AudioSource.UNPROCESSED: in setCapturePreset() 759 if ((preset == MediaRecorder.AudioSource.HOTWORD) in setInternalCapturePreset() 760 || (preset == MediaRecorder.AudioSource.REMOTE_SUBMIX) in setInternalCapturePreset() [all …]
|
D | MediaRecorder.java | 87 public class MediaRecorder implements AudioRouting class 114 public MediaRecorder() { in MediaRecorder() method in MediaRecorder 130 native_setup(new WeakReference<MediaRecorder>(this), packageName, in MediaRecorder() 1089 void onError(MediaRecorder mr, int what, int extra); in onError() 1223 void onInfo(MediaRecorder mr, int what, int extra); in onInfo() 1239 private MediaRecorder mMediaRecorder; 1241 public EventHandler(MediaRecorder mr, Looper looper) { in EventHandler() 1472 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 | MediaRecorderSetAudioSourceStateUnitTest.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 | MediaRecorderStartStateUnitTest.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 | 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/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/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 | 38 import android.media.MediaRecorder; 106 private MediaRecorder mMediaRecorder; 127 mMediaRecorder = new MediaRecorder(); in doBasicRecording() 201 mMediaRecorder = new MediaRecorder(); in constrainedHighSpeedRecording() 472 mMediaRecorder = new MediaRecorder(); in videoSnapshotHelper() 811 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); in prepareRecordingWithProfile() 812 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in prepareRecordingWithProfile() 836 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); in prepareRecording() 837 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in prepareRecording() 838 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in prepareRecording() [all …]
|
/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/av/include/media/ |
D | mediarecorder.h | 221 class MediaRecorder : public BnMediaRecorderClient, 225 MediaRecorder(const String16& opPackageName); 226 ~MediaRecorder();
|
/frameworks/av/media/libmedia/include/media/ |
D | mediarecorder.h | 221 class MediaRecorder : public BnMediaRecorderClient, 225 MediaRecorder(const String16& opPackageName); 226 ~MediaRecorder();
|