/frameworks/base/media/java/android/media/ |
D | EncoderProfiles.java | 69 public @MediaRecorder.OutputFormatValues int getRecommendedFileFormat() { in getRecommendedFileFormat() 81 public @MediaRecorder.VideoEncoderValues int getCodec() { in getCodec() 90 if (codec == MediaRecorder.VideoEncoder.H263) { in getMediaType() 92 } else if (codec == MediaRecorder.VideoEncoder.H264) { in getMediaType() 94 } else if (codec == MediaRecorder.VideoEncoder.MPEG_4_SP) { in getMediaType() 96 } else if (codec == MediaRecorder.VideoEncoder.VP8) { in getMediaType() 98 } else if (codec == MediaRecorder.VideoEncoder.HEVC) { in getMediaType() 246 public @MediaRecorder.AudioEncoderValues int getCodec() { in getCodec() 255 if (codec == MediaRecorder.AudioEncoder.AMR_NB) { in getMediaType() 257 } else if (codec == MediaRecorder.AudioEncoder.AMR_WB) { in getMediaType() [all …]
|
D | AudioRecordingConfiguration.java | 111 false /*clientSilenced*/, MediaRecorder.AudioSource.DEFAULT /*deviceSource*/, in AudioRecordingConfiguration() 139 + " -- source client=" + MediaRecorder.toLogFriendlyAudioSource(arc.mClientSource) in toLogFriendlyString() 170 MediaRecorder.AudioSource.DEFAULT, 171 MediaRecorder.AudioSource.MIC, 172 MediaRecorder.AudioSource.VOICE_UPLINK, 173 MediaRecorder.AudioSource.VOICE_DOWNLINK, 174 MediaRecorder.AudioSource.VOICE_CALL, 175 MediaRecorder.AudioSource.CAMCORDER, 176 MediaRecorder.AudioSource.VOICE_RECOGNITION, 177 MediaRecorder.AudioSource.VOICE_COMMUNICATION, [all …]
|
D | AudioAttributes.java | 514 private int mSource = MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID; 657 private int mSource = MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID; 726 if (mSource == MediaRecorder.AudioSource.VOICE_COMMUNICATION in build() 727 || mSource == MediaRecorder.AudioSource.CAMCORDER) { in build() 744 if (mSource != MediaRecorder.AudioSource.VOICE_RECOGNITION in build() 1061 case MediaRecorder.AudioSource.DEFAULT: in setCapturePreset() 1062 case MediaRecorder.AudioSource.MIC: in setCapturePreset() 1063 case MediaRecorder.AudioSource.CAMCORDER: in setCapturePreset() 1064 case MediaRecorder.AudioSource.VOICE_RECOGNITION: in setCapturePreset() 1065 case MediaRecorder.AudioSource.VOICE_COMMUNICATION: in setCapturePreset() [all …]
|
D | AudioRecord.java | 33 import android.media.MediaRecorder.Source; 406 if (attributes.getCapturePreset() == MediaRecorder.AudioSource.REMOTE_SUBMIX) { in AudioRecord() 618 if ( (source < MediaRecorder.AudioSource.DEFAULT) || in setAudioSource() 619 (source > MediaRecorder.getAudioSourceMax()) ) { in setAudioSource() 656 if (attributes.getCapturePreset() == MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID) { in setAudioAttributes() 876 .setInternalCapturePreset(MediaRecorder.AudioSource.DEFAULT) in build() 884 if (source == MediaRecorder.AudioSource.REMOTE_SUBMIX in build() 885 || source == MediaRecorder.AudioSource.RADIO_TUNER in build() 886 || source == MediaRecorder.AudioSource.VOICE_DOWNLINK in build() 887 || source == MediaRecorder.AudioSource.VOICE_UPLINK in build() [all …]
|
/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 | 38 status_t MediaRecorder::setCamera(const sp<hardware::ICamera>& camera, in setCamera() 60 status_t MediaRecorder::setPreviewSurface(const sp<IGraphicBufferProducer>& surface) in setPreviewSurface() 85 status_t MediaRecorder::init() in init() 115 status_t MediaRecorder::setVideoSource(int vs) in setVideoSource() 150 status_t MediaRecorder::setAudioSource(int as) in setAudioSource() 183 status_t MediaRecorder::setPrivacySensitive(bool privacySensitive) in setPrivacySensitive() 206 status_t MediaRecorder::isPrivacySensitive(bool *privacySensitive) const in isPrivacySensitive() 224 status_t MediaRecorder::setOutputFormat(int of) in setOutputFormat() 254 status_t MediaRecorder::setVideoEncoder(int ve) in setVideoEncoder() 284 status_t MediaRecorder::setAudioEncoder(int ae) in setAudioEncoder() [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/jni/ |
D | android_media_MediaRecorder.cpp | 154 static sp<MediaRecorder> getMediaRecorder(JNIEnv* env, jobject thiz) in getMediaRecorder() 157 MediaRecorder* const p = (MediaRecorder*)env->GetLongField(thiz, fields.context); in getMediaRecorder() 158 return sp<MediaRecorder>(p); in getMediaRecorder() 161 static sp<MediaRecorder> setMediaRecorder(JNIEnv* env, jobject thiz, const sp<MediaRecorder>& recor… in setMediaRecorder() 164 sp<MediaRecorder> old = (MediaRecorder*)env->GetLongField(thiz, fields.context); in setMediaRecorder() 188 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setCamera() 205 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setVideoSource() 223 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setAudioSource() 236 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setPrivacySensitive() 248 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_isPrivacySensitive() [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/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 | MediaRecorderResetStateUnitTest.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 | 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 | 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 | 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/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenMediaRecorder.java | 36 import android.media.MediaRecorder; 79 private MediaRecorder mMediaRecorder; 86 MediaRecorder.OnInfoListener mListener; 90 MediaRecorder.OnInfoListener listener) { in ScreenMediaRecorder() 114 mMediaRecorder = new MediaRecorder(); in prepare() 118 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); in prepare() 120 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in prepare() 122 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); in prepare() 136 mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264); in prepare() 148 mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.HE_AAC); in prepare()
|
/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/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/ |
D | MainActivity.java | 40 import android.media.MediaRecorder; 105 private MediaRecorder mMediaRecorder; 359 mVideoSize = chooseVideoSize(map.getOutputSizes(MediaRecorder.class)); in openCamera() 365 mMediaRecorder = new MediaRecorder(); in openCamera() 528 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in setUpMediaRecorder() 529 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in setUpMediaRecorder() 530 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); in setUpMediaRecorder() 543 mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.HEVC); in setUpMediaRecorder() 550 mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264); in setUpMediaRecorder() 557 mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); in setUpMediaRecorder()
|