/frameworks/base/core/java/android/speech/tts/ |
D | FileSynthesisCallback.java | 102 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument 104 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat in start() 107 if (audioFormat != AudioFormat.ENCODING_PCM_8BIT && in start() 108 audioFormat != AudioFormat.ENCODING_PCM_16BIT && in start() 109 audioFormat != AudioFormat.ENCODING_PCM_FLOAT) { in start() 110 Log.e(TAG, "Audio format encoding " + audioFormat + " not supported. Please use one " + in start() 114 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount); in start() 132 mAudioFormat = audioFormat; in start() 203 int audioFormat = 0; in done() local 228 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() 217 AudioFormat audioFormat = (new AudioFormat.Builder()) in createStreamingAudioTrack() local 222 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/av/services/oboeservice/ |
D | AAudioServiceEndpointMMAP.cpp | 81 audio_format_t audioFormat = getFormat(); in open() local 84 if (audioFormat == AUDIO_FORMAT_PCM_FLOAT) { in open() 86 ALOGD("%s() change format from %d to 32_BIT", __func__, audioFormat); in open() 87 audioFormat = AUDIO_FORMAT_PCM_32_BIT; in open() 90 result = openWithFormat(audioFormat); in open() 93 if (result == AAUDIO_ERROR_UNAVAILABLE && audioFormat == AUDIO_FORMAT_PCM_32_BIT) { in open() 95 audioFormat = AUDIO_FORMAT_PCM_24_BIT_PACKED; in open() 96 result = openWithFormat(audioFormat); in open() 103 if (result == AAUDIO_ERROR_UNAVAILABLE && audioFormat == AUDIO_FORMAT_PCM_24_BIT_PACKED) { in open() 105 audioFormat = AUDIO_FORMAT_PCM_16_BIT; in open() [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothAudioConfig.java | 36 public BluetoothAudioConfig(int sampleRate, int channelConfig, int audioFormat) { in BluetoothAudioConfig() argument 39 mAudioFormat = audioFormat; in BluetoothAudioConfig() 73 int audioFormat = in.readInt(); 74 return new BluetoothAudioConfig(sampleRate, channelConfig, audioFormat);
|
/frameworks/base/media/java/android/media/ |
D | AudioFormat.java | 625 public static int getBytesPerSample(int audioFormat) in getBytesPerSample() argument 627 switch (audioFormat) { in getBytesPerSample() 641 throw new IllegalArgumentException("Bad audio format " + audioFormat); in getBytesPerSample() 646 public static boolean isValidEncoding(int audioFormat) in isValidEncoding() argument 648 switch (audioFormat) { in isValidEncoding() 683 public static boolean isPublicEncoding(int audioFormat) in isPublicEncoding() argument 685 switch (audioFormat) { in isPublicEncoding() 721 public static boolean isEncodingLinearPcm(int audioFormat) in isEncodingLinearPcm() argument 723 switch (audioFormat) { in isEncodingLinearPcm() 756 throw new IllegalArgumentException("Bad audio format " + audioFormat); in isEncodingLinearPcm() [all …]
|
D | AudioTrack.java | 639 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument 642 this(streamType, sampleRateInHz, channelConfig, audioFormat, in AudioTrack() 697 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument 706 .setEncoding(audioFormat) in AudioTrack() 1684 int audioFormat, int mode) { in audioParamCheck() argument 1695 if (audioFormat == AudioFormat.ENCODING_IEC61937 in audioParamCheck() 1723 if (!isMultichannelConfigSupported(channelConfig, audioFormat)) { in audioParamCheck() 1726 + " for encoding " + audioFormat); in audioParamCheck() 1738 && (!AudioFormat.isEncodingLinearFrames(audioFormat) // compressed OK in audioParamCheck() 1743 + " for encoding " + audioFormat); in audioParamCheck() [all …]
|
D | AudioRecord.java | 322 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, in AudioRecord() argument 331 .setEncoding(audioFormat) in AudioRecord() 958 private void audioParamCheck(int audioSource, int sampleRateInHz, int audioFormat) in audioParamCheck() argument 984 switch (audioFormat) { in audioParamCheck() 993 mAudioFormat = audioFormat; in audioParamCheck() 996 throw new IllegalArgumentException("Unsupported sample encoding " + audioFormat in audioParamCheck() 1223 static public int getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) { in getMinBufferSize() argument 1242 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat); in getMinBufferSize() 2234 int[] sampleRate, int channelMask, int channelIndexMask, int audioFormat, in native_setup() argument 2241 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/media/libaaudio/src/binding/ |
D | AAudioStreamConfiguration.cpp | 38 static_assert(sizeof(audio_format_t) == sizeof(parcelable.audioFormat)); in AAudioStreamConfiguration() 39 setFormat(static_cast<audio_format_t>(parcelable.audioFormat)); in AAudioStreamConfiguration() 71 static_assert(sizeof(audio_format_t) == sizeof(result.audioFormat)); in parcelable() 72 result.audioFormat = static_cast<AudioFormat>(getFormat()); in parcelable()
|
/frameworks/base/core/java/android/service/voice/ |
D | AbstractHotwordDetector.java | 65 @NonNull AudioFormat audioFormat, in startRecognition() argument 76 audioFormat, in startRecognition() 140 @Nullable AudioFormat audioFormat, in onDetected() argument 145 new AlwaysOnHotwordDetector.EventPayload(audioFormat, hotwordDetectedResult))); in onDetected()
|
D | SoftwareHotwordDetector.java | 59 AudioFormat audioFormat, in SoftwareHotwordDetector() argument 66 mAudioFormat = audioFormat; in SoftwareHotwordDetector() 132 @Nullable AudioFormat audioFormat, in onDetected() argument 138 audioFormat, hotwordDetectedResult, audioStream))); in onDetected()
|
D | IHotwordDetectionService.aidl | 38 in AudioFormat audioFormat, in detectFromDspSource() argument 45 in AudioFormat audioFormat, in detectFromMicrophoneSource() argument
|
D | AlwaysOnHotwordDetector.java | 353 AudioFormat audioFormat, int captureSession, byte[] data) { in EventPayload() argument 354 this(triggerAvailable, captureAvailable, audioFormat, captureSession, data, null, in EventPayload() 359 AudioFormat audioFormat, int captureSession, byte[] data, in EventPayload() argument 361 this(triggerAvailable, captureAvailable, audioFormat, captureSession, data, in EventPayload() 365 EventPayload(AudioFormat audioFormat, HotwordDetectedResult hotwordDetectedResult) { in EventPayload() argument 366 this(false, false, audioFormat, -1, null, hotwordDetectedResult, null); in EventPayload() 369 EventPayload(AudioFormat audioFormat, in EventPayload() argument 372 this(false, false, audioFormat, -1, null, hotwordDetectedResult, audioStream); in EventPayload() 376 AudioFormat audioFormat, int captureSession, byte[] data, in EventPayload() argument 381 mAudioFormat = audioFormat; in EventPayload()
|
D | HotwordDetectionService.java | 135 AudioFormat audioFormat, 164 AudioFormat audioFormat, 179 audioFormat, 334 @NonNull AudioFormat audioFormat, in onDetect() argument
|
D | IMicrophoneHotwordDetectionVoiceInteractionCallback.aidl | 34 in AudioFormat audioFormat, in onDetected() argument
|
/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/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/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/jni/ |
D | android_media_AudioFormat.h | 60 static inline audio_format_t audioFormatToNative(int audioFormat) in audioFormatToNative() argument 62 switch (audioFormat) { in audioFormatToNative()
|
/frameworks/av/media/libaaudio/src/core/ |
D | AAudioStreamParameters.h | 63 void setFormat(audio_format_t audioFormat) { in setFormat() argument 64 mAudioFormat = audioFormat; in setFormat()
|
/frameworks/av/media/libaaudio/src/binding/aidl/aaudio/ |
D | StreamParameters.aidl | 26 AudioFormat audioFormat; // = AUDIO_FORMAT_DEFAULT;
|