Home
last modified time | relevance | path

Searched refs:AudioFormat (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/media/java/android/media/
DAudioRecord.java274 (new AudioFormat.Builder()) in AudioRecord()
305 public AudioRecord(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioRecord()
342 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_SAMPLE_RATE) != 0) in AudioRecord()
352 int encoding = AudioFormat.ENCODING_DEFAULT; in AudioRecord()
353 if ((format.getPropertySetMask() & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_ENCODING) != 0) in AudioRecord()
361 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_INDEX_MASK) != 0) { in AudioRecord()
366 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_MASK) != 0) { in AudioRecord()
370 mChannelMask = getChannelMaskFromLegacyConfig(AudioFormat.CHANNEL_IN_DEFAULT, false); in AudioRecord()
371 mChannelCount = AudioFormat.channelCountFromInChannelMask(mChannelMask); in AudioRecord()
426 private AudioFormat mFormat;
[all …]
DAudioTrack.java266 private int mChannelMask = AudioFormat.CHANNEL_OUT_MONO;
287 private int mChannelConfiguration = AudioFormat.CHANNEL_OUT_MONO;
416 (new AudioFormat.Builder()) in AudioTrack()
445 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack()
464 if ((format.getPropertySetMask() & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_SAMPLE_RATE) != 0) in AudioTrack()
475 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_INDEX_MASK) != 0) { in AudioTrack()
480 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_MASK) != 0) { in AudioTrack()
483 channelMask = AudioFormat.CHANNEL_OUT_FRONT_LEFT in AudioTrack()
484 | AudioFormat.CHANNEL_OUT_FRONT_RIGHT; in AudioTrack()
486 int encoding = AudioFormat.ENCODING_DEFAULT; in AudioTrack()
[all …]
DAudioFormat.java212 public class AudioFormat { class
516 public AudioFormat() in AudioFormat() method in AudioFormat
525 private AudioFormat(int ignoredArgument) { in AudioFormat() method in AudioFormat
533 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() method in AudioFormat
670 public Builder(AudioFormat af) { in Builder()
683 public AudioFormat build() { in build()
684 AudioFormat af = new AudioFormat(1980/*ignored*/); in build()
DJetPlayer.java97 AudioFormat.CHANNEL_OUT_STEREO; // NUM_OUTPUT_CHANNELS=2 in Android.mk
165 JET_OUTPUT_CHANNEL_CONFIG, AudioFormat.ENCODING_PCM_16BIT); in JetPlayer()
175 (AudioFormat.getBytesPerSample(AudioFormat.ENCODING_PCM_16BIT) * in JetPlayer()
DAudioDeviceInfo.java203 AudioFormat.channelCountFromOutChannelMask(mask) in getChannelCounts()
204 : AudioFormat.channelCountFromInChannelMask(mask)); in getChannelCounts()
233 return AudioFormat.filterPublicFormats(mPort.formats()); in getEncodings()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioTrackTest.java22 import android.media.AudioFormat;
120 _inTest_config, AudioFormat.ENCODING_PCM_16BIT) in constructorTestMultiSampleRate()
143 AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, in testConstructorMono16MusicStream()
156 AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_16BIT, in testConstructorStereo16MusicStream()
169 AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, in testConstructorMono16MusicStatic()
182 AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_16BIT, in testConstructorStereo16MusicStatic()
199 AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_8BIT, in testConstructorMono8MusicStream()
211 AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_8BIT, in testConstructorStereo8MusicStream()
223 AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_8BIT, in testConstructorMono8MusicStatic()
235 AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_8BIT, in testConstructorStereo8MusicStatic()
[all …]
DMediaAudioEffectTest.java23 import android.media.AudioFormat;
135 AudioFormat.CHANNEL_CONFIGURATION_MONO, in getAudioRecord()
136 AudioFormat.ENCODING_PCM_16BIT, in getAudioRecord()
138 AudioFormat.CHANNEL_CONFIGURATION_MONO, in getAudioRecord()
139 AudioFormat.ENCODING_PCM_16BIT) * 10); in getAudioRecord()
403 AudioFormat.CHANNEL_OUT_MONO, in test1_7AuxiliaryOnAudioTrack()
404 AudioFormat.ENCODING_PCM_16BIT, in test1_7AuxiliaryOnAudioTrack()
406 AudioFormat.CHANNEL_OUT_MONO, in test1_7AuxiliaryOnAudioTrack()
407 AudioFormat.ENCODING_PCM_16BIT), in test1_7AuxiliaryOnAudioTrack()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioMix.java21 import android.media.AudioFormat;
35 private AudioFormat mFormat;
45 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags) { in AudioMix()
131 AudioFormat getFormat() { in getFormat()
172 private AudioFormat mFormat = null;
235 public Builder setFormat(AudioFormat format) in setFormat()
284 mFormat = new AudioFormat.Builder().setSampleRate(rate).build(); in build()
DAudioPolicy.java26 import android.media.AudioFormat;
338 AudioFormat mixFormat = new AudioFormat.Builder(mix.getFormat()) in createAudioRecordSink()
339 .setChannelMask(AudioFormat.inChannelMaskFromOutChannelMask( in createAudioRecordSink()
351 AudioFormat.CHANNEL_IN_STEREO, mix.getFormat().getEncoding()), in createAudioRecordSink()
DAudioPolicyConfig.java19 import android.media.AudioFormat;
111 final AudioFormat format = new AudioFormat.Builder().setSampleRate(sampleRate) in AudioPolicyConfig()
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java5 import android.media.AudioFormat;
85 mBytesPerFrame = AudioFormat.getBytesPerSample(mAudioFormat) * mChannelCount; in BlockingAudioTrack()
176 return AudioFormat.CHANNEL_OUT_MONO; in getChannelConfig()
178 return AudioFormat.CHANNEL_OUT_STEREO; in getChannelConfig()
217 AudioFormat audioFormat = (new AudioFormat.Builder()) in createStreamingAudioTrack()
DFileSynthesisCallback.java18 import android.media.AudioFormat;
281 int sampleSizeInBytes = AudioFormat.getBytesPerSample(audioFormat); in makeWavHeader()
/frameworks/base/media/java/android/media/audiofx/
DVirtualizer.java21 import android.media.AudioFormat;
186 if (inputChannelMask == AudioFormat.CHANNEL_INVALID) { in getAnglesInt()
190 int channelMask = inputChannelMask == AudioFormat.CHANNEL_OUT_DEFAULT ? in getAnglesInt()
191 AudioFormat.CHANNEL_OUT_STEREO : inputChannelMask; in getAnglesInt()
192 int nbChannels = AudioFormat.channelCountFromOutChannelMask(channelMask); in getAnglesInt()
205 paramsConverter.putInt(AudioFormat.convertChannelOutMaskToNativeMask(channelMask)); in getAnglesInt()
225 angles[3 * i] = AudioFormat.convertNativeChannelMaskToOutMask( in getAnglesInt()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHardwareManager.java34 import android.media.AudioFormat;
680 private int mDesiredChannelMask = AudioFormat.CHANNEL_OUT_DEFAULT;
681 private int mDesiredFormat = AudioFormat.ENCODING_DEFAULT;
842 if (sinkChannelMask == AudioFormat.CHANNEL_OUT_DEFAULT) { in updateAudioConfigLocked()
845 if (sinkFormat == AudioFormat.ENCODING_DEFAULT) { in updateAudioConfigLocked()
860 sinkChannelMask = AudioFormat.CHANNEL_OUT_DEFAULT; in updateAudioConfigLocked()
863 sinkFormat = AudioFormat.ENCODING_DEFAULT; in updateAudioConfigLocked()
882 int sourceChannelMask = AudioFormat.CHANNEL_IN_DEFAULT; in updateAudioConfigLocked()
884 if (AudioFormat.channelCountFromOutChannelMask(sinkConfig.channelMask()) in updateAudioConfigLocked()
885 == AudioFormat.channelCountFromInChannelMask(inChannelMask)) { in updateAudioConfigLocked()
[all …]
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
DSoundTriggerTest.java26 import android.media.AudioFormat;
270 (new AudioFormat.Builder()) in testRecognitionEventParcelUnparcel_largeAudioData()
271 .setChannelMask(AudioFormat.CHANNEL_IN_MONO) in testRecognitionEventParcelUnparcel_largeAudioData()
272 .setEncoding(AudioFormat.ENCODING_PCM_16BIT) in testRecognitionEventParcelUnparcel_largeAudioData()
/frameworks/base/core/java/android/service/voice/
DAlwaysOnHotwordDetector.java34 import android.media.AudioFormat;
211 private final AudioFormat mAudioFormat;
217 AudioFormat audioFormat, int captureSession, byte[] data) { in EventPayload()
230 public AudioFormat getCaptureAudioFormat() { in getCaptureAudioFormat()
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTrigger.java19 import android.media.AudioFormat;
503 public AudioFormat captureFormat;
510 boolean triggerInData, AudioFormat captureFormat, byte[] data) { in RecognitionEvent()
541 AudioFormat captureFormat = null; in fromParcel()
546 captureFormat = (new AudioFormat.Builder()) in fromParcel()
908 boolean triggerInData, AudioFormat captureFormat, byte[] data, in KeyphraseRecognitionEvent()
934 AudioFormat captureFormat = null; in fromParcel()
939 captureFormat = (new AudioFormat.Builder()) in fromParcel()
/frameworks/base/api/
Dsystem-removed.txt29 public class AudioFormat {
30 ctor public AudioFormat();
Dremoved.txt29 public class AudioFormat {
30 ctor public AudioFormat();
/frameworks/base/docs/html/sdk/api_diff/21/
DmissingSinces.txt14 NO DOC BLOCK: android.media.AudioFormat.Builder Class
157 …ia.AudioTrack Constructor (android.media.AudioAttributes, android.media.AudioFormat, int, int, int)
405 NO DOC BLOCK: android.media.AudioFormat Method getChannelMask()
443 NO DOC BLOCK: android.media.AudioFormat Method getEncoding()
540 NO DOC BLOCK: android.media.AudioFormat Method getSampleRate()
1170 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_OUT_SIDE_LEFT
1171 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_OUT_SIDE_RIGHT
1247 NO DOC BLOCK: android.media.AudioFormat Field ENCODING_AC3
1248 NO DOC BLOCK: android.media.AudioFormat Field ENCODING_E_AC3
1249 NO DOC BLOCK: android.media.AudioFormat Field ENCODING_PCM_FLOAT
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java58 import android.media.AudioFormat;
4939 int[] formats = AudioFormat.filterPublicFormats(devicePort.formats()); in configureHdmiPlugIntent()
4944 if (format != AudioFormat.ENCODING_INVALID) { in configureHdmiPlugIntent()
4957 int channelCount = AudioFormat.channelCountFromOutChannelMask(mask); in configureHdmiPlugIntent()
/frameworks/base/docs/html-intl/intl/ja/about/versions/
Dandroid-5.0.jd383 …<li>アプリから音声データを浮動小数点形式({@link android.media.AudioFormat#ENCODING_PCM_FLOAT ENCODING_PCM_FLOAT})で提供…
/frameworks/base/docs/html-intl/intl/ru/about/versions/
Dandroid-5.0.jd384 …едавать аудиоданные в формате с плавающей точкой ({@link android.media.AudioFormat#ENCODING_PCM_FL…
/frameworks/base/docs/html-intl/intl/zh-tw/about/versions/
Dandroid-5.0.jd383 …<li>您的應用程式現在可以透過浮點格式提供音訊資料 ({@link android.media.AudioFormat#ENCODING_PCM_FLOAT ENCODING_PCM_FLOAT…
/frameworks/base/docs/html-intl/intl/ko/about/versions/
Dandroid-5.0.jd384 …<li>이제 앱에서 부동 소수점 형식({@link android.media.AudioFormat#ENCODING_PCM_FLOAT ENCODING_PCM_FLOAT})으로 오디…

12