/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/base/media/java/android/media/ |
D | EncoderProfiles.java | 72 public @MediaRecorder.OutputFormatValues int getRecommendedFileFormat() { in getRecommendedFileFormat() 84 public @MediaRecorder.VideoEncoderValues int getCodec() { in getCodec() 93 if (codec == MediaRecorder.VideoEncoder.H263) { in getMediaType() 95 } else if (codec == MediaRecorder.VideoEncoder.H264) { in getMediaType() 97 } else if (codec == MediaRecorder.VideoEncoder.MPEG_4_SP) { in getMediaType() 99 } else if (codec == MediaRecorder.VideoEncoder.VP8) { in getMediaType() 101 } else if (codec == MediaRecorder.VideoEncoder.HEVC) { in getMediaType() 103 } else if (codec == MediaRecorder.VideoEncoder.VP9) { in getMediaType() 105 } else if (codec == MediaRecorder.VideoEncoder.DOLBY_VISION) { in getMediaType() 107 } else if (codec == MediaRecorder.VideoEncoder.AV1) { 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 | 563 private int mSource = MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID; 766 private int mSource = MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID; 860 if (mSource == MediaRecorder.AudioSource.VOICE_COMMUNICATION in build() 861 || mSource == MediaRecorder.AudioSource.CAMCORDER) { in build() 878 if (mSource != MediaRecorder.AudioSource.VOICE_RECOGNITION in build() 1246 case MediaRecorder.AudioSource.DEFAULT: in setCapturePreset() 1247 case MediaRecorder.AudioSource.MIC: in setCapturePreset() 1248 case MediaRecorder.AudioSource.CAMCORDER: in setCapturePreset() 1249 case MediaRecorder.AudioSource.VOICE_RECOGNITION: in setCapturePreset() 1250 case MediaRecorder.AudioSource.VOICE_COMMUNICATION: in setCapturePreset() [all …]
|
D | AudioRecord.java | 39 import android.media.MediaRecorder.Source; 414 if (attributes.getCapturePreset() == MediaRecorder.AudioSource.REMOTE_SUBMIX) { in AudioRecord() 632 if ( (source < MediaRecorder.AudioSource.DEFAULT) || in setAudioSource() 633 (source > MediaRecorder.getAudioSourceMax()) ) { in setAudioSource() 670 if (attributes.getCapturePreset() == MediaRecorder.AudioSource.AUDIO_SOURCE_INVALID) { in setAudioAttributes() 1008 .setInternalCapturePreset(MediaRecorder.AudioSource.DEFAULT) in build() 1014 .setInternalCapturePreset(MediaRecorder.AudioSource.VOICE_RECOGNITION) in build() 1022 if (source == MediaRecorder.AudioSource.REMOTE_SUBMIX in build() 1023 || source == MediaRecorder.AudioSource.RADIO_TUNER in build() 1024 || source == MediaRecorder.AudioSource.VOICE_DOWNLINK in build() [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 | 29 import android.media.MediaRecorder; 55 private MediaRecorder mRecorder; 72 mRecorder = new MediaRecorder(); in setUp() 82 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in recordVideo() 84 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in recordVideo() 93 mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in recordVideo() 114 MediaRecorder recorder = new MediaRecorder(); in validateGetSurface() 131 recorder.setAudioSource(MediaRecorder.AudioSource.MIC); in validateGetSurface() 133 MediaRecorder.VideoSource.SURFACE : in validateGetSurface() 134 MediaRecorder.VideoSource.CAMERA; in validateGetSurface() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaRecorder.cpp | 153 static sp<MediaRecorder> getMediaRecorder(JNIEnv* env, jobject thiz) in getMediaRecorder() 156 MediaRecorder* const p = (MediaRecorder*)env->GetLongField(thiz, fields.context); in getMediaRecorder() 157 return sp<MediaRecorder>(p); in getMediaRecorder() 160 static sp<MediaRecorder> setMediaRecorder(JNIEnv* env, jobject thiz, const sp<MediaRecorder>& recor… in setMediaRecorder() 163 sp<MediaRecorder> old = (MediaRecorder*)env->GetLongField(thiz, fields.context); in setMediaRecorder() 187 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setCamera() 204 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setVideoSource() 222 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setAudioSource() 235 sp<MediaRecorder> mr = getMediaRecorder(env, thiz); in android_media_MediaRecorder_setPrivacySensitive() 247 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 | 23 import android.media.MediaRecorder; 224 MediaRecorder mRecorder = new MediaRecorder(); in stressVideoRecord() 228 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in stressVideoRecord() 230 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in stressVideoRecord() 239 mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in stressVideoRecord() 263 MediaRecorder mRecorder = new MediaRecorder(); in stressAudioRecord() 265 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in stressAudioRecord() 266 mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in stressAudioRecord() 267 mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); in stressAudioRecord() 454 .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 | AudioRecordUnitTest.java | 36 import android.media.MediaRecorder; 64 MediaRecorder.AudioSource.DEFAULT).setAudioFormat( in testBuilderConstructionWithContext_defaultDeviceExplicitSessionId() 82 MediaRecorder.AudioSource.DEFAULT).setAudioFormat( in testBuilderConstructionWithContext_virtualDeviceDefaultAudioPolicy() 99 MediaRecorder.AudioSource.DEFAULT).setAudioFormat( in testBuilderConstructionWithContext_virtualDeviceCustomAudioPolicy() 118 MediaRecorder.AudioSource.DEFAULT).setAudioSource( in testBuilderConstructionWithContext_virtualDeviceSetSessionIdOverridesContext() 119 MediaRecorder.AudioSource.DEFAULT).setBufferSizeInBytes( in testBuilderConstructionWithContext_virtualDeviceSetSessionIdOverridesContext()
|
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 | 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 | 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 | MediaRecorderPrepareStateUnitTest.java | 19 import android.media.MediaRecorder; 55 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 | 23 import android.media.MediaRecorder; 50 private MediaRecorder mRecorder; 142 private final class RecorderErrorCallback implements MediaRecorder.OnErrorListener { 143 public void onError(MediaRecorder mr, int what, int extra) { in onError() 217 mRecorder = new MediaRecorder(); in recordVideoAndPlayback() 231 mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in recordVideoAndPlayback() 232 mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in recordVideoAndPlayback() 233 mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); in recordVideoAndPlayback() 320 mRecorder = new MediaRecorder(); in testStressTimeLapse() 328 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/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/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenMediaRecorder.java | 38 import android.media.MediaRecorder; 88 private MediaRecorder mMediaRecorder; 132 mMediaRecorder = new MediaRecorder(); in prepare() 136 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); in prepare() 138 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in prepare() 140 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); in prepare() 154 mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264); in prepare() 166 mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.HE_AAC); in prepare() 433 void onInfo(MediaRecorder mr, int what, int extra); in onInfo()
|
/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()
|