Home
last modified time | relevance | path

Searched refs:MediaRecorder (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaProfileReader.java19 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/
Dmediarecorder.cpp36 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/
Dandroid_media_MediaRecorder.cpp152 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/
DMediaRecorderTest.java33 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/
DMediaPlayerPerformance.java29 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/
DAudioRecordingConfiguration.java108 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 …]
DAudioAttributes.java450 private int mSource = MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID;
578 private int mSource = MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID;
897 case MediaRecorder.AudioSource.DEFAULT: in setCapturePreset()
898 case MediaRecorder.AudioSource.MIC: in setCapturePreset()
899 case MediaRecorder.AudioSource.CAMCORDER: in setCapturePreset()
900 case MediaRecorder.AudioSource.VOICE_RECOGNITION: in setCapturePreset()
901 case MediaRecorder.AudioSource.VOICE_COMMUNICATION: in setCapturePreset()
902 case MediaRecorder.AudioSource.UNPROCESSED: in setCapturePreset()
903 case MediaRecorder.AudioSource.VOICE_PERFORMANCE: in setCapturePreset()
921 if ((preset == MediaRecorder.AudioSource.HOTWORD) in setInternalCapturePreset()
[all …]
DMediaRecorder.java95 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/
DMediaRecorderStateUnitTestTemplate.java20 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();
DMediaRecorderMethodUnderTest.java19 import android.media.MediaRecorder;
26 public void invokeMethodUnderTest(MediaRecorder player); in invokeMethodUnderTest()
DMediaRecorderResetStateUnitTest.java19 import android.media.MediaRecorder;
53 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
DMediaRecorderSetOutputFormatStateUnitTest.java19 import android.media.MediaRecorder;
53 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
DMediaRecorderSetOutputFileStateUnitTest.java19 import android.media.MediaRecorder;
50 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
DMediaRecorderSetAudioSourceStateUnitTest.java19 import android.media.MediaRecorder;
53 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
DMediaRecorderSetAudioEncoderStateUnitTest.java19 import android.media.MediaRecorder;
53 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
DMediaRecorderStartStateUnitTest.java19 import android.media.MediaRecorder;
53 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
DMediaRecorderPrepareStateUnitTest.java19 import android.media.MediaRecorder;
54 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
DMediaRecorderStopStateUnitTest.java19 import android.media.MediaRecorder;
56 public void invokeMethodUnderTest(MediaRecorder recorder) { in invokeMethodUnderTest()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DMediaRecorderStressTest.java33 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/
DGLEnvironment.java26 import android.media.MediaRecorder;
126 public int registerSurfaceFromMediaRecorder(MediaRecorder mediaRecorder) { in registerSurfaceFromMediaRecorder()
184 private native int nativeAddSurfaceFromMediaRecorder(MediaRecorder mediaRecorder); in nativeAddSurfaceFromMediaRecorder()
186 private native boolean nativeDisconnectSurfaceMediaSource(MediaRecorder mediaRecorder); in nativeDisconnectSurfaceMediaSource()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/
DMediaEncoderFilter.java31 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/
Djni_gl_environment.cpp34 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/
DRecordingService.java31 import android.media.MediaRecorder;
90 private MediaRecorder mMediaRecorder;
257 mMediaRecorder = new MediaRecorder(); in startRecording()
259 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in startRecording()
261 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in startRecording()
262 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); in startRecording()
268 mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264); in startRecording()
275 mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in startRecording()
/frameworks/av/include/media/
Dmediarecorder.h225 class MediaRecorder : public BnMediaRecorderClient,
229 MediaRecorder(const String16& opPackageName);
230 ~MediaRecorder();
/frameworks/av/media/libmedia/include/media/
Dmediarecorder.h225 class MediaRecorder : public BnMediaRecorderClient,
229 MediaRecorder(const String16& opPackageName);
230 ~MediaRecorder();

123