/frameworks/base/core/java/android/speech/tts/ |
D | SynthesisMessageParams.java | 58 int audioFormat, int channelCount, in SynthesisMessageParams() argument 65 mAudioFormat = audioFormat; in SynthesisMessageParams() 131 private static int getBytesPerFrame(int audioFormat) { in getBytesPerFrame() argument 132 if (audioFormat == AudioFormat.ENCODING_PCM_8BIT) { in getBytesPerFrame() 134 } else if (audioFormat == AudioFormat.ENCODING_PCM_16BIT) { in getBytesPerFrame()
|
D | FileSynthesisCallback.java | 97 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument 99 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat in start() 112 mAudioFormat = audioFormat; in start() 190 private byte[] makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, in makeWavHeader() argument 193 int sampleSizeInBytes = (audioFormat == AudioFormat.ENCODING_PCM_8BIT ? 1 : 2); in makeWavHeader()
|
D | PlaybackSynthesisCallback.java | 129 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument 131 Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat in start() 147 mStreamType, sampleRateInHz, audioFormat, channelCount, mVolume, mPan, in start()
|
D | SynthesisCallback.java | 51 public int start(int sampleRateInHz, int audioFormat, int channelCount); in start() argument
|
D | AudioPlaybackHandler.java | 561 final int audioFormat = params.mAudioFormat; in createStreamingAudioTrack() local 564 = AudioTrack.getMinBufferSize(sampleRateInHz, channelConfig, audioFormat); in createStreamingAudioTrack() 568 audioFormat, bufferSizeInBytes, AudioTrack.MODE_STREAM); in createStreamingAudioTrack()
|
/frameworks/base/media/java/android/media/ |
D | AudioRecord.java | 217 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, in AudioRecord() argument 228 audioParamCheck(audioSource, sampleRateInHz, channelConfig, audioFormat); in AudioRecord() 260 int channelConfig, int audioFormat) { in audioParamCheck() argument 305 switch (audioFormat) { in audioParamCheck() 311 mAudioFormat = audioFormat; in audioParamCheck() 460 static public int getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) { in getMinBufferSize() argument 479 if (audioFormat != AudioFormat.ENCODING_PCM_16BIT) { in getMinBufferSize() 484 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat); in getMinBufferSize() 783 int recordSource, int sampleRate, int nbChannels, int audioFormat, in native_setup() argument 809 int sampleRateInHz, int channelCount, int audioFormat); in native_get_min_buff_size() argument
|
D | AudioTrack.java | 263 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument 266 this(streamType, sampleRateInHz, channelConfig, audioFormat, in AudioTrack() 303 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument 313 audioParamCheck(streamType, sampleRateInHz, channelConfig, audioFormat, mode); in AudioTrack() 352 int channelConfig, int audioFormat, int mode) { in audioParamCheck() argument 401 switch (audioFormat) { in audioParamCheck() 407 mAudioFormat = audioFormat; in audioParamCheck() 611 static public int getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) { in getMinBufferSize() argument 627 if ((audioFormat != AudioFormat.ENCODING_PCM_16BIT) in getMinBufferSize() 628 && (audioFormat != AudioFormat.ENCODING_PCM_8BIT)) { in getMinBufferSize() [all …]
|
/frameworks/base/core/jni/ |
D | android_media_AudioRecord.cpp | 130 jint audioFormat, jint buffSizeInBytes, jintArray jSession) in android_media_AudioRecord_setup() argument 143 if ((audioFormat != javaAudioRecordFields.PCM16) in android_media_AudioRecord_setup() 144 && (audioFormat != javaAudioRecordFields.PCM8)) { in android_media_AudioRecord_setup() 149 int bytesPerSample = audioFormat==javaAudioRecordFields.PCM16 ? 2 : 1; in android_media_AudioRecord_setup() 150 int format = audioFormat==javaAudioRecordFields.PCM16 ? in android_media_AudioRecord_setup() 486 jint sampleRateInHertz, jint nbChannels, jint audioFormat) { in android_media_AudioRecord_get_min_buff_size() argument 488 …roid_media_AudioRecord_get_min_buff_size(%d, %d, %d)", sampleRateInHertz, nbChannels, audioFormat); in android_media_AudioRecord_get_min_buff_size() 493 (audioFormat == javaAudioRecordFields.PCM16 ? in android_media_AudioRecord_get_min_buff_size() 503 return frameCount * nbChannels * (audioFormat == javaAudioRecordFields.PCM16 ? 2 : 1); in android_media_AudioRecord_get_min_buff_size()
|
D | android_media_AudioTrack.cpp | 171 jint audioFormat, jint buffSizeInBytes, jint memoryMode, jintArray jSession) in android_media_AudioTrack_native_setup() argument 174 sampleRateInHertz, audioFormat, javaChannelMask, buffSizeInBytes); in android_media_AudioTrack_native_setup() 223 if ((audioFormat != javaAudioTrackFields.PCM16) && (audioFormat != javaAudioTrackFields.PCM8)) { in android_media_AudioTrack_native_setup() 231 if ((audioFormat == javaAudioTrackFields.PCM8) in android_media_AudioTrack_native_setup() 236 audioFormat = javaAudioTrackFields.PCM16; in android_media_AudioTrack_native_setup() 242 int bytesPerSample = audioFormat == javaAudioTrackFields.PCM16 ? 2 : 1; in android_media_AudioTrack_native_setup() 243 int format = audioFormat == javaAudioTrackFields.PCM16 ? in android_media_AudioTrack_native_setup() 483 jint writeToTrack(AudioTrack* pTrack, jint audioFormat, jbyte* data, in writeToTrack() argument 491 if (audioFormat == javaAudioTrackFields.PCM16) { in writeToTrack() 498 } else if (audioFormat == javaAudioTrackFields.PCM8) { in writeToTrack() [all …]
|
/frameworks/base/media/java/android/media/videoeditor/ |
D | AudioTrack.java | 162 switch (mMANativeHelper.getAudioCodecType(properties.audioFormat)) { in AudioTrack() 183 mAudioType = properties.audioFormat; in AudioTrack()
|
D | MediaArtistNativeHelper.java | 1549 public int audioFormat; field in MediaArtistNativeHelper.EditSettings 1676 public int audioFormat; field in MediaArtistNativeHelper.Properties 2316 editSettings.audioFormat = AudioFormat.AAC; in generateEffectClip() 2330 editSettings.audioFormat = AudioFormat.AAC; in generateEffectClip() 2394 e.audioFormat = AudioFormat.AAC; in generateKenBurnsClip() 2490 e.audioFormat = AudioFormat.AAC; in generateTransitionClip() 3693 mPreviewEditSettings.audioFormat = mExportAudioCodec; in export()
|
D | MediaVideoItem.java | 180 mAudioType = mMANativeHelper.getAudioCodecType(properties.audioFormat); in MediaVideoItem()
|
/frameworks/base/media/jni/mediaeditor/ |
D | VideoEditorClasses.h | 165 jfieldID audioFormat; member 206 jfieldID audioFormat; member
|
D | VideoEditorClasses.cpp | 1606 pEnv->SetIntField(object, fieldIds.audioFormat, in videoEditPropClass_createProperties() 1967 &converted, pEnv->GetIntField(object, fieldIds.audioFormat)); in videoEditClasses_getEditSettings()
|