HomeSort by relevance Sort by last modified time
    Searched refs:AudioFormat (Results 1 - 25 of 47) sorted by null

1 2

  /cts/tests/tests/permission2/src/android/permission2/cts/
NoCaptureAudioOutputPermissionTest.java 19 import android.media.AudioFormat;
41 AudioFormat.CHANNEL_IN_STEREO, AudioFormat.ENCODING_PCM_16BIT);
48 AudioFormat.CHANNEL_IN_STEREO, AudioFormat.ENCODING_PCM_16BIT, bufferSize);
  /frameworks/base/media/java/android/media/
AudioTrack.java 187 private int mChannels = AudioFormat.CHANNEL_OUT_MONO;
204 private int mChannelConfiguration = AudioFormat.CHANNEL_OUT_MONO;
207 * @see AudioFormat#ENCODING_PCM_8BIT
208 * @see AudioFormat#ENCODING_PCM_16BIT
210 private int mAudioFormat = AudioFormat.ENCODING_PCM_16BIT;
244 * See {@link AudioFormat#CHANNEL_OUT_MONO} and
245 * {@link AudioFormat#CHANNEL_OUT_STEREO}
246 * @param audioFormat the format in which the audio data is represented.
247 * See {@link AudioFormat#ENCODING_PCM_16BIT} and
248 * {@link AudioFormat#ENCODING_PCM_8BIT
    [all...]
AudioRecord.java 136 * @see AudioFormat#ENCODING_PCM_8BIT
137 * @see AudioFormat#ENCODING_PCM_16BIT
195 * See {@link AudioFormat#CHANNEL_IN_MONO} and
196 * {@link AudioFormat#CHANNEL_IN_STEREO}. {@link AudioFormat#CHANNEL_IN_MONO} is guaranteed
198 * @param audioFormat the format in which the audio data is represented.
199 * See {@link AudioFormat#ENCODING_PCM_16BIT} and
200 * {@link AudioFormat#ENCODING_PCM_8BIT}
208 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat,
218 audioParamCheck(audioSource, sampleRateInHz, channelConfig, audioFormat);
    [all...]
AudioFormat.java 20 * The AudioFormat class is used to access a number of audio format and
25 public class AudioFormat {
JetPlayer.java 97 AudioFormat.CHANNEL_OUT_STEREO; // NUM_OUTPUT_CHANNELS=2 in Android.mk
165 JET_OUTPUT_CHANNEL_CONFIG, AudioFormat.ENCODING_PCM_16BIT);
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
MediaAudioTrackTest.java 22 import android.media.AudioFormat;
118 +", audioFormat=" + _inTest_format
120 _inTest_config, AudioFormat.ENCODING_PCM_16BIT)
143 AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT,
156 AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_16BIT,
169 AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT,
182 AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_16BIT
    [all...]
MediaAudioEffectTest.java 23 import android.media.AudioFormat;
135 AudioFormat.CHANNEL_CONFIGURATION_MONO,
136 AudioFormat.ENCODING_PCM_16BIT,
138 AudioFormat.CHANNEL_CONFIGURATION_MONO,
139 AudioFormat.ENCODING_PCM_16BIT) * 10);
403 AudioFormat.CHANNEL_OUT_MONO,
404 AudioFormat.ENCODING_PCM_16BIT,
406 AudioFormat.CHANNEL_OUT_MONO,
407 AudioFormat.ENCODING_PCM_16BIT),
    [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...]
AudioTrack_ListenerTest.java 20 import android.media.AudioFormat;
33 private final int TEST_CONF = AudioFormat.CHANNEL_CONFIGURATION_MONO;
34 private final int TEST_FORMAT = AudioFormat.ENCODING_PCM_8BIT;
81 final int numChannels = (TEST_CONF == AudioFormat.CHANNEL_CONFIGURATION_STEREO) ? 2 : 1;
82 final int bytesPerSample = (TEST_FORMAT == AudioFormat.ENCODING_PCM_16BIT) ? 2 : 1;
AudioRecord_BufferSizeTest.java 21 import android.media.AudioFormat;
33 private static final int CHANNEL_CONFIG = AudioFormat.CHANNEL_IN_MONO;
34 private static final int AUDIO_FORMAT = AudioFormat.ENCODING_PCM_16BIT;
AudioRecordTest.java 22 import android.media.AudioFormat;
63 AudioFormat.CHANNEL_CONFIGURATION_MONO,
64 AudioFormat.ENCODING_PCM_16BIT,
66 AudioFormat.CHANNEL_CONFIGURATION_MONO,
67 AudioFormat.ENCODING_PCM_16BIT) * 10);
99 assertEquals(AudioFormat.ENCODING_PCM_16BIT, mAudioRecord.getAudioFormat());
102 assertEquals(AudioFormat.CHANNEL_IN_MONO,
109 AudioFormat.CHANNEL_CONFIGURATION_DEFAULT, AudioFormat.ENCODING_PCM_16BIT);
AudioPreProcessingTest.java 21 import android.media.AudioFormat;
208 AudioFormat.CHANNEL_CONFIGURATION_MONO,
209 AudioFormat.ENCODING_PCM_16BIT,
211 AudioFormat.CHANNEL_CONFIGURATION_MONO,
212 AudioFormat.ENCODING_PCM_16BIT) * 10);
AudioEffectTest.java 23 import android.media.AudioFormat;
118 AudioFormat.CHANNEL_CONFIGURATION_MONO,
119 AudioFormat.ENCODING_PCM_16BIT,
121 AudioFormat.CHANNEL_CONFIGURATION_MONO,
122 AudioFormat.ENCODING_PCM_16BIT) * 10);
341 AudioFormat.CHANNEL_OUT_MONO,
342 AudioFormat.ENCODING_PCM_16BIT,
344 AudioFormat.CHANNEL_OUT_MONO,
345 AudioFormat.ENCODING_PCM_16BIT),
    [all...]
  /cts/tests/src/android/speech/tts/cts/
StubTextToSpeechService.java 18 import android.media.AudioFormat;
51 if (callback.start(16000, AudioFormat.ENCODING_PCM_16BIT, 1) != TextToSpeech.SUCCESS) {
  /frameworks/av/libvideoeditor/lvpp/
VideoEditorBGAudioProcessing.h 34 enum AudioFormat {
44 AudioFormat lvBTFormat;
75 AudioFormat mBTFormat;
  /external/chromium_org/media/base/android/java/src/org/chromium/media/
AudioRecordInput.java 8 import android.media.AudioFormat;
137 channelConfig = AudioFormat.CHANNEL_IN_MONO;
139 channelConfig = AudioFormat.CHANNEL_IN_STEREO;
145 int audioFormat;
147 audioFormat = AudioFormat.ENCODING_PCM_8BIT;
149 audioFormat = AudioFormat.ENCODING_PCM_16BIT;
158 int minBufferSize = AudioRecord.getMinBufferSize(mSampleRate, channelConfig, audioFormat);
172 audioFormat,
    [all...]
AudioManagerAndroid.java 16 import android.media.AudioFormat;
328 channelConfig = AudioFormat.CHANNEL_IN_MONO;
330 channelConfig = AudioFormat.CHANNEL_IN_STEREO;
335 sampleRate, channelConfig, AudioFormat.ENCODING_PCM_16BIT) / 2 / channels;
348 channelConfig = AudioFormat.CHANNEL_OUT_MONO;
350 channelConfig = AudioFormat.CHANNEL_OUT_STEREO;
355 sampleRate, channelConfig, AudioFormat.ENCODING_PCM_16BIT) / 2 / channels;
MediaCodecBridge.java 7 import android.media.AudioFormat;
499 int channelConfig = (channelCount == 1) ? AudioFormat.CHANNEL_OUT_MONO :
500 AudioFormat.CHANNEL_OUT_STEREO;
504 AudioFormat.ENCODING_PCM_16BIT);
506 AudioFormat.ENCODING_PCM_16BIT, minBufferSize, AudioTrack.MODE_STREAM);
  /frameworks/base/core/java/android/speech/tts/
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...]
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);
  /cts/suite/audio_quality/client/src/com/android/cts/audiotest/
AudioProtocol.java 20 import android.media.AudioFormat;
263 stereo ? AudioFormat.CHANNEL_OUT_STEREO : AudioFormat.CHANNEL_OUT_MONO,
264 AudioFormat.ENCODING_PCM_16BIT);
273 stereo ? AudioFormat.CHANNEL_OUT_STEREO : AudioFormat.CHANNEL_OUT_MONO,
274 AudioFormat.ENCODING_PCM_16BIT, bufferSize,
352 AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT);
355 AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT
    [all...]
  /external/chromium_org/media/audio/mac/
audio_input_mac.h 8 #include <AudioToolbox/AudioFormat.h>
  /external/chromium_org/media/cdm/ppapi/
cdm_helpers.h 208 virtual void SetFormat(cdm::AudioFormat format) OVERRIDE {
211 virtual cdm::AudioFormat Format() const OVERRIDE {
223 cdm::AudioFormat format_;
ffmpeg_cdm_audio_decoder.cc 83 static cdm::AudioFormat AVSampleFormatToCdmAudioFormat(
104 static void CopySamples(cdm::AudioFormat cdm_format,
262 // Tell the CDM what AudioFormat we're using.
263 const cdm::AudioFormat cdm_format = AVSampleFormatToCdmAudioFormat(
  /development/samples/TtsEngine/src/com/example/android/ttsengine/
RobotSpeakTtsService.java 20 import android.media.AudioFormat;
177 AudioFormat.ENCODING_PCM_16BIT, 1 /* Number of channels. */);

Completed in 1205 milliseconds

1 2