Home
last modified time | relevance | path

Searched refs:audioFormat (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/core/java/android/speech/tts/
DFileSynthesisCallback.java103 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument
105 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat in start()
108 if (audioFormat != AudioFormat.ENCODING_PCM_8BIT && in start()
109 audioFormat != AudioFormat.ENCODING_PCM_16BIT && in start()
110 audioFormat != AudioFormat.ENCODING_PCM_FLOAT) { in start()
111 Log.e(TAG, "Audio format encoding " + audioFormat + " not supported. Please use one " + in start()
115 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount); in start()
133 mAudioFormat = audioFormat; in start()
204 int audioFormat = 0; in done() local
229 audioFormat = mAudioFormat; in done()
[all …]
DPlaybackSynthesisCallback.java125 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument
126 if (DBG) Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat + "," + channelCount in start()
128 if (audioFormat != AudioFormat.ENCODING_PCM_8BIT && in start()
129 audioFormat != AudioFormat.ENCODING_PCM_16BIT && in start()
130 audioFormat != AudioFormat.ENCODING_PCM_FLOAT) { in start()
131 Log.w(TAG, "Audio format encoding " + audioFormat + " not supported. Please use one " + in start()
135 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount); in start()
158 mAudioParams, sampleRateInHz, audioFormat, channelCount, in start()
DBlockingAudioTrack.java79 int audioFormat, int channelCount) { in BlockingAudioTrack() argument
82 mAudioFormat = audioFormat; in BlockingAudioTrack()
222 AudioFormat audioFormat = (new AudioFormat.Builder()) in createStreamingAudioTrack() local
227 audioFormat, bufferSizeInBytes, AudioTrack.MODE_STREAM, in createStreamingAudioTrack()
DITextToSpeechCallback.aidl71 … void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelCount); in onBeginSynthesis() argument
/frameworks/base/media/java/android/media/
DAudioFormat.java786 public static int getBytesPerSample(int audioFormat) in getBytesPerSample() argument
788 switch (audioFormat) { in getBytesPerSample()
802 throw new IllegalArgumentException("Bad audio format " + audioFormat); in getBytesPerSample()
807 public static boolean isValidEncoding(int audioFormat) in isValidEncoding() argument
809 switch (audioFormat) { in isValidEncoding()
847 public static boolean isPublicEncoding(int audioFormat) in isPublicEncoding() argument
849 switch (audioFormat) { in isPublicEncoding()
888 public static boolean isEncodingLinearPcm(int audioFormat) in isEncodingLinearPcm() argument
890 switch (audioFormat) { in isEncodingLinearPcm()
925 throw new IllegalArgumentException("Bad audio format " + audioFormat); in isEncodingLinearPcm()
[all …]
DAudioTrack.java693 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument
696 this(streamType, sampleRateInHz, channelConfig, audioFormat, in AudioTrack()
751 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument
760 .setEncoding(audioFormat) in AudioTrack()
1847 int audioFormat, int mode) { in audioParamCheck() argument
1858 if (audioFormat == AudioFormat.ENCODING_IEC61937 in audioParamCheck()
1886 if (!isMultichannelConfigSupported(channelConfig, audioFormat)) { in audioParamCheck()
1889 + " for encoding " + audioFormat); in audioParamCheck()
1901 && (!AudioFormat.isEncodingLinearFrames(audioFormat) // compressed OK in audioParamCheck()
1906 + " for encoding " + audioFormat); in audioParamCheck()
[all …]
DAudioRecord.java328 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, in AudioRecord() argument
337 .setEncoding(audioFormat) in AudioRecord()
1143 private void audioParamCheck(int audioSource, int sampleRateInHz, int audioFormat) in audioParamCheck() argument
1170 switch (audioFormat) { in audioParamCheck()
1180 mAudioFormat = audioFormat; in audioParamCheck()
1183 throw new IllegalArgumentException("Unsupported sample encoding " + audioFormat in audioParamCheck()
1402 static public int getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) { in getMinBufferSize() argument
1421 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat); in getMinBufferSize()
2442 int[] sampleRate, int channelMask, int channelIndexMask, int audioFormat, in native_setup() argument
2449 channelIndexMask, audioFormat, buffSizeInBytes, sessionId, in native_setup()
[all …]
DAudioPlaybackCaptureConfiguration.java131 @NonNull AudioMix createAudioMix(@NonNull AudioFormat audioFormat) { in createAudioMix() argument
133 .setFormat(audioFormat) in createAudioMix()
/frameworks/av/cmds/stagefright/
DAudioPlayer.cpp151 audio_format_t audioFormat = AUDIO_FORMAT_PCM_16_BIT; in start() local
154 sAudioFormatToPcmEncoding.map(pcmEncoding, &audioFormat); in start()
158 if (mapMimeToAudioFormat(audioFormat, mime) != OK) { in start()
160 audioFormat = AUDIO_FORMAT_INVALID; in start()
162 ALOGV("Mime type \"%s\" mapped to audio_format 0x%x", mime, audioFormat); in start()
166 if ((audioFormat == AUDIO_FORMAT_AAC) && format->findInt32(kKeyAACAOT, &aacaot)) { in start()
168 mapAACProfileToAudioFormat(audioFormat,(OMX_AUDIO_AACPROFILETYPE) aacaot); in start()
195 offloadInfo.format = audioFormat; in start()
203 mSampleRate, numChannels, channelMask, audioFormat, in start()
/frameworks/av/media/libaaudio/src/binding/
DAAudioStreamConfiguration.cpp41 parcelable.audioFormat); in AAudioStreamConfiguration()
95 result.audioFormat = convAudioFormat.value(); in parcelable()
99 result.audioFormat = AudioFormatDescription{}; in parcelable()
100 result.audioFormat.type = in parcelable()
/frameworks/base/media/java/android/media/musicrecognition/
DMusicRecognitionService.java80 AudioFormat audioFormat,
84 audioFormat,
131 @NonNull AudioFormat audioFormat, in onRecognize() argument
DRecognitionRequest.java104 public Builder setAudioFormat(@NonNull AudioFormat audioFormat) { in setAudioFormat() argument
105 mAudioFormat = audioFormat; in setAudioFormat()
DIMusicRecognitionService.aidl17 in AudioFormat audioFormat, in onAudioStreamStarted() argument
/frameworks/base/core/java/android/service/voice/
DHotwordAudioStream.java196 @NonNull AudioFormat audioFormat, in HotwordAudioStream()
201 this.mAudioFormat = audioFormat; in HotwordAudioStream()
370 AudioFormat audioFormat = (AudioFormat) in.readTypedObject(AudioFormat.CREATOR); in HotwordAudioStream() local
376 this.mAudioFormat = audioFormat; in HotwordAudioStream()
441 @NonNull AudioFormat audioFormat, in Builder()
443 mAudioFormat = audioFormat; in Builder()
DAbstractDetector.java108 @NonNull AudioFormat audioFormat, in startRecognition() argument
120 audioFormat, in startRecognition()
234 @Nullable AudioFormat audioFormat, in onDetected() argument
238 .setCaptureAudioFormat(audioFormat) in onDetected()
DISandboxedDetectionService.aidl41 in AudioFormat audioFormat, in detectFromDspSource() argument
48 in AudioFormat audioFormat, in detectFromMicrophoneSource() argument
DHotwordDetectionService.java158 AudioFormat audioFormat,
185 AudioFormat audioFormat,
200 audioFormat,
382 @NonNull AudioFormat audioFormat, in onDetect() argument
DSoftwareHotwordDetector.java64 AudioFormat audioFormat, in SoftwareHotwordDetector() argument
71 mAudioFormat = audioFormat; in SoftwareHotwordDetector()
171 @Nullable AudioFormat audioFormat, in onDetected() argument
175 .setCaptureAudioFormat(audioFormat) in onDetected()
/frameworks/base/services/musicrecognition/java/com/android/server/musicrecognition/
DRemoteMusicRecognitionService.java90 @NonNull AudioFormat audioFormat) { in onAudioStreamStarted() argument
92 binder -> binder.onAudioStreamStarted(fd, audioFormat, mServerCallback)); in onAudioStreamStarted()
/frameworks/base/core/java/android/companion/virtual/audio/
DVirtualAudioSession.java310 private static AudioMix createAudioRecordMix(@NonNull AudioFormat audioFormat, int[] appUids) { in createAudioRecordMix() argument
319 .setFormat(audioFormat) in createAudioRecordMix()
325 private static AudioMix createAudioTrackMix(@NonNull AudioFormat audioFormat, int[] appUids) { in createAudioTrackMix() argument
334 .setFormat(audioFormat) in createAudioTrackMix()
DAudioCapture.java93 AudioCapture(@NonNull AudioFormat audioFormat) { in AudioCapture() argument
94 mAudioFormat = audioFormat; in AudioCapture()
/frameworks/base/core/jni/
Dandroid_media_AudioFormat.h63 static inline audio_format_t audioFormatToNative(int audioFormat) in audioFormatToNative() argument
65 switch (audioFormat) { in audioFormatToNative()
/frameworks/av/media/libaaudio/src/binding/aidl/aaudio/
DStreamParameters.aidl26 AudioFormatDescription audioFormat; // = AUDIO_FORMAT_DEFAULT;
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioPolicyDeathTestActivity.java58 AudioFormat audioFormat = new AudioFormat.Builder() in onCreate() local
65 .setFormat(audioFormat) in onCreate()
/frameworks/av/media/libaaudio/src/core/
DAAudioStreamParameters.h56 void setFormat(audio_format_t audioFormat) { in setFormat() argument
57 mAudioFormat = audioFormat; in setFormat()

123