/frameworks/base/core/java/android/speech/tts/ |
SynthesisCallback.java | 47 * @param audioFormat Audio format of the generated audio. Must be one of 48 * the ENCODING_ constants defined in {@link android.media.AudioFormat}. 52 public int start(int sampleRateInHz, int audioFormat, int channelCount);
|
FileSynthesisCallback.java | 18 import android.media.AudioFormat; 99 public int start(int sampleRateInHz, int audioFormat, int channelCount) { 101 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat 115 mAudioFormat = audioFormat; 198 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, 200 // TODO: is AudioFormat.ENCODING_DEFAULT always the same as ENCODING_PCM_16BIT? 201 int sampleSizeInBytes = (audioFormat == AudioFormat.ENCODING_PCM_8BIT ? 1 : 2);
|
BlockingAudioTrack.java | 5 import android.media.AudioFormat; 77 int audioFormat, int channelCount, 81 mAudioFormat = audioFormat; 177 return AudioFormat.CHANNEL_OUT_MONO; 179 return AudioFormat.CHANNEL_OUT_STEREO; 232 private static int getBytesPerFrame(int audioFormat) { 233 if (audioFormat == AudioFormat.ENCODING_PCM_8BIT) { 235 } else if (audioFormat == AudioFormat.ENCODING_PCM_16BIT) [all...] |
PlaybackSynthesisCallback.java | 137 public int start(int sampleRateInHz, int audioFormat, int channelCount) { 139 Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat 155 mStreamType, sampleRateInHz, audioFormat, channelCount, mVolume, mPan,
|
SynthesisPlaybackQueueItem.java | 67 int audioFormat, int channelCount, 78 mAudioTrack = new BlockingAudioTrack(streamType, sampleRate, audioFormat,
|
/frameworks/base/media/java/android/media/ |
AudioRecord.java | 135 private int mChannels = AudioFormat.CHANNEL_IN_MONO; 139 private int mChannelConfiguration = AudioFormat.CHANNEL_IN_MONO; 142 * @see AudioFormat#ENCODING_PCM_8BIT 143 * @see AudioFormat#ENCODING_PCM_16BIT 145 private int mAudioFormat = AudioFormat.ENCODING_PCM_16BIT; 201 * See {@link AudioFormat#CHANNEL_IN_MONO} and 202 * {@link AudioFormat#CHANNEL_IN_STEREO}. {@link AudioFormat#CHANNEL_IN_MONO} is guaranteed 204 * @param audioFormat the format in which the audio data is represented. 205 * See {@link AudioFormat#ENCODING_PCM_16BIT} an [all...] |
AudioTrack.java | 184 private int mChannels = AudioFormat.CHANNEL_OUT_MONO; 201 private int mChannelConfiguration = AudioFormat.CHANNEL_OUT_MONO; 204 * @see AudioFormat#ENCODING_PCM_8BIT 205 * @see AudioFormat#ENCODING_PCM_16BIT 207 private int mAudioFormat = AudioFormat.ENCODING_PCM_16BIT; 241 * See {@link AudioFormat#CHANNEL_OUT_MONO} and 242 * {@link AudioFormat#CHANNEL_OUT_STEREO} 243 * @param audioFormat the format in which the audio data is represented. 244 * See {@link AudioFormat#ENCODING_PCM_16BIT} and 245 * {@link AudioFormat#ENCODING_PCM_8BIT [all...] |
/frameworks/base/core/jni/ |
android_media_AudioRecord.cpp | 170 jint audioFormat, jint buffSizeInBytes, jintArray jSession) 173 //ALOGV("sampleRate=%d, audioFormat=%d, channels=%x, buffSizeInBytes=%d", 174 // sampleRateInHertz, audioFormat, channels, buffSizeInBytes); 183 if ((audioFormat != javaAudioRecordFields.PCM16) 184 && (audioFormat != javaAudioRecordFields.PCM8)) { 189 int bytesPerSample = audioFormat==javaAudioRecordFields.PCM16 ? 2 : 1; 190 audio_format_t format = audioFormat==javaAudioRecordFields.PCM16 ? 505 jint sampleRateInHertz, jint nbChannels, jint audioFormat) { 508 sampleRateInHertz, nbChannels, audioFormat); 513 (audioFormat == javaAudioRecordFields.PCM16 [all...] |
android_media_AudioTrack.cpp | 207 jint audioFormat, jint buffSizeInBytes, jint memoryMode, jintArray jSession) 209 ALOGV("sampleRate=%d, audioFormat(from Java)=%d, channel mask=%x, buffSize=%d", 210 sampleRateInHertz, audioFormat, javaChannelMask, buffSizeInBytes); 254 if ((audioFormat != javaAudioTrackFields.PCM16) && (audioFormat != javaAudioTrackFields.PCM8)) { 262 if ((audioFormat == javaAudioTrackFields.PCM8) 267 audioFormat = javaAudioTrackFields.PCM16; 273 int bytesPerSample = audioFormat == javaAudioTrackFields.PCM16 ? 2 : 1; 274 audio_format_t format = audioFormat == javaAudioTrackFields.PCM16 ? 516 jint writeToTrack(const sp<AudioTrack>& track, jint audioFormat, jbyte* data [all...] |
/external/svox/pico/compat/jni/ |
tts.h | 122 android_tts_audio_format_t audioFormat,
|
/frameworks/av/services/audioflinger/ |
test-resample.cpp | 39 audioFormat = 1; 54 uint16_t audioFormat; // 1=PCM
|
/frameworks/base/media/java/android/media/videoeditor/ |
AudioTrack.java | 162 switch (mMANativeHelper.getAudioCodecType(properties.audioFormat)) { 183 mAudioType = properties.audioFormat;
|
MediaArtistNativeHelper.java | 176 public final class AudioFormat { [all...] |
MediaVideoItem.java | 180 mAudioType = mMANativeHelper.getAudioCodecType(properties.audioFormat);
|
/frameworks/base/media/jni/mediaeditor/ |
VideoEditorClasses.h | 48 #define AUDIO_FORMAT_CLASS_NAME MANUAL_EDIT_ENGINE_CLASS_NAME"$AudioFormat" 165 jfieldID audioFormat; 206 jfieldID audioFormat; 282 VIDEOEDIT_JAVA_DECLARE_CONSTANT_CLASS(AudioFormat )
|
VideoEditorClasses.cpp | 55 VIDEOEDIT_JAVA_DEFINE_CONSTANTS(AudioFormat) 69 VIDEOEDIT_JAVA_DEFINE_CONSTANT_CLASS(AudioFormat, AUDIO_FORMAT_CLASS_NAME, M4OSA_NULL, M4OSA_NULL) 489 VIDEOEDIT_JAVA_FIELD_INIT("audioFormat", "I"), 520 VIDEOEDIT_JAVA_FIELD_INIT("audioFormat", "I"), 562 VIDEOEDIT_JAVA_FIELD_INIT("audioFormat", "I" ), [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
AudioTrackTest.java | 19 import android.media.AudioFormat; 94 + ", audioFormat=" 98 AudioFormat.ENCODING_PCM_16BIT) + ", mode=" + _inTest_mode); 119 AudioTrack.MODE_STREAM, AudioFormat.CHANNEL_CONFIGURATION_MONO, 120 AudioFormat.ENCODING_PCM_16BIT, AudioTrack.STATE_INITIALIZED); 130 AudioTrack.MODE_STREAM, AudioFormat.CHANNEL_CONFIGURATION_STEREO, 131 AudioFormat.ENCODING_PCM_16BIT, AudioTrack.STATE_INITIALIZED); 141 AudioTrack.MODE_STATIC, AudioFormat.CHANNEL_CONFIGURATION_MONO, 142 AudioFormat.ENCODING_PCM_16BIT, AudioTrack.STATE_NO_STATIC_DATA); 152 AudioTrack.MODE_STATIC, AudioFormat.CHANNEL_CONFIGURATION_STEREO [all...] |
/prebuilts/sdk/14/ |
android.jar | |
/prebuilts/sdk/15/ |
android.jar | |
/prebuilts/sdk/18/ |
android.jar | |
/prebuilts/sdk/4/ |
android.jar | |
/prebuilts/sdk/5/ |
android.jar | |
/prebuilts/sdk/6/ |
android.jar | |
/prebuilts/sdk/8/ |
android.jar | |
/prebuilts/sdk/12/ |
android.jar | |