/frameworks/base/core/java/android/speech/tts/ |
D | FileSynthesisCallback.java | 103 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 …]
|
D | PlaybackSynthesisCallback.java | 125 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()
|
D | BlockingAudioTrack.java | 79 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()
|
D | ITextToSpeechCallback.aidl | 71 … void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelCount); in onBeginSynthesis() argument
|
/frameworks/base/media/java/android/media/ |
D | AudioFormat.java | 786 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 …]
|
D | AudioTrack.java | 693 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 …]
|
D | AudioRecord.java | 328 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 …]
|
D | AudioPlaybackCaptureConfiguration.java | 131 @NonNull AudioMix createAudioMix(@NonNull AudioFormat audioFormat) { in createAudioMix() argument 133 .setFormat(audioFormat) in createAudioMix()
|
/frameworks/av/cmds/stagefright/ |
D | AudioPlayer.cpp | 151 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/ |
D | AAudioStreamConfiguration.cpp | 41 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/ |
D | MusicRecognitionService.java | 80 AudioFormat audioFormat, 84 audioFormat, 131 @NonNull AudioFormat audioFormat, in onRecognize() argument
|
D | RecognitionRequest.java | 104 public Builder setAudioFormat(@NonNull AudioFormat audioFormat) { in setAudioFormat() argument 105 mAudioFormat = audioFormat; in setAudioFormat()
|
D | IMusicRecognitionService.aidl | 17 in AudioFormat audioFormat, in onAudioStreamStarted() argument
|
/frameworks/base/core/java/android/service/voice/ |
D | HotwordAudioStream.java | 196 @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()
|
D | AbstractDetector.java | 108 @NonNull AudioFormat audioFormat, in startRecognition() argument 120 audioFormat, in startRecognition() 234 @Nullable AudioFormat audioFormat, in onDetected() argument 238 .setCaptureAudioFormat(audioFormat) in onDetected()
|
D | ISandboxedDetectionService.aidl | 41 in AudioFormat audioFormat, in detectFromDspSource() argument 48 in AudioFormat audioFormat, in detectFromMicrophoneSource() argument
|
D | HotwordDetectionService.java | 158 AudioFormat audioFormat, 185 AudioFormat audioFormat, 200 audioFormat, 382 @NonNull AudioFormat audioFormat, in onDetect() argument
|
D | SoftwareHotwordDetector.java | 64 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/ |
D | RemoteMusicRecognitionService.java | 90 @NonNull AudioFormat audioFormat) { in onAudioStreamStarted() argument 92 binder -> binder.onAudioStreamStarted(fd, audioFormat, mServerCallback)); in onAudioStreamStarted()
|
/frameworks/base/core/java/android/companion/virtual/audio/ |
D | VirtualAudioSession.java | 310 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()
|
D | AudioCapture.java | 93 AudioCapture(@NonNull AudioFormat audioFormat) { in AudioCapture() argument 94 mAudioFormat = audioFormat; in AudioCapture()
|
/frameworks/base/core/jni/ |
D | android_media_AudioFormat.h | 63 static inline audio_format_t audioFormatToNative(int audioFormat) in audioFormatToNative() argument 65 switch (audioFormat) { in audioFormatToNative()
|
/frameworks/av/media/libaaudio/src/binding/aidl/aaudio/ |
D | StreamParameters.aidl | 26 AudioFormatDescription audioFormat; // = AUDIO_FORMAT_DEFAULT;
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | AudioPolicyDeathTestActivity.java | 58 AudioFormat audioFormat = new AudioFormat.Builder() in onCreate() local 65 .setFormat(audioFormat) in onCreate()
|
/frameworks/av/media/libaaudio/src/core/ |
D | AAudioStreamParameters.h | 56 void setFormat(audio_format_t audioFormat) { in setFormat() argument 57 mAudioFormat = audioFormat; in setFormat()
|