Home
last modified time | relevance | path

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

12

/frameworks/base/media/java/android/media/
DAudioTrack.java231 private int mChannels = AudioFormat.CHANNEL_OUT_MONO;
250 private int mChannelConfiguration = AudioFormat.CHANNEL_OUT_MONO;
257 private int mAudioFormat = AudioFormat.ENCODING_PCM_16BIT;
362 (new AudioFormat.Builder()) in AudioTrack()
391 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack()
410 if ((format.getPropertySetMask() & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_SAMPLE_RATE) != 0) in AudioTrack()
419 int channelMask = AudioFormat.CHANNEL_OUT_FRONT_LEFT | AudioFormat.CHANNEL_OUT_FRONT_RIGHT; in AudioTrack()
420 if ((format.getPropertySetMask() & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_MASK) != 0) in AudioTrack()
424 int encoding = AudioFormat.ENCODING_DEFAULT; in AudioTrack()
425 if ((format.getPropertySetMask() & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_ENCODING) != 0) { in AudioTrack()
[all …]
DAudioRecord.java229 (new AudioFormat.Builder()) in AudioRecord()
260 public AudioRecord(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioRecord()
297 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_SAMPLE_RATE) != 0) in AudioRecord()
307 int encoding = AudioFormat.ENCODING_DEFAULT; in AudioRecord()
308 if ((format.getPropertySetMask() & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_ENCODING) != 0) in AudioRecord()
315 mChannelCount = AudioFormat.channelCountFromInChannelMask(format.getChannelMask()); in AudioRecord()
344 case AudioFormat.CHANNEL_IN_DEFAULT: // AudioFormat.CHANNEL_CONFIGURATION_DEFAULT in getChannelMaskFromLegacyConfig()
345 case AudioFormat.CHANNEL_IN_MONO: in getChannelMaskFromLegacyConfig()
346 case AudioFormat.CHANNEL_CONFIGURATION_MONO: in getChannelMaskFromLegacyConfig()
347 mask = AudioFormat.CHANNEL_IN_MONO; in getChannelMaskFromLegacyConfig()
[all …]
DAudioFormat.java30 public class AudioFormat { class
263 public AudioFormat() in AudioFormat() method in AudioFormat
272 private AudioFormat(int ignoredArgument) { in AudioFormat() method in AudioFormat
280 private AudioFormat(int encoding, int sampleRate, int channelMask) { in AudioFormat() method in AudioFormat
374 public Builder(AudioFormat af) { in Builder()
386 public AudioFormat build() { in build()
387 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()
/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;
43 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags) { in AudioMix()
85 AudioFormat getFormat() { in getFormat()
126 private AudioFormat mFormat = null;
172 public Builder setFormat(AudioFormat format) in setFormat()
221 mFormat = new AudioFormat.Builder().setSampleRate(rate).build(); in build()
DAudioPolicy.java26 import android.media.AudioFormat;
332 AudioFormat mixFormat = new AudioFormat.Builder(mix.getFormat()) in createAudioRecordSink()
333 .setChannelMask(AudioFormat.inChannelMaskFromOutChannelMask( in createAudioRecordSink()
345 AudioFormat.CHANNEL_IN_STEREO, mix.getFormat().getEncoding()), in createAudioRecordSink()
DAudioPolicyConfig.java20 import android.media.AudioFormat;
107 final AudioFormat format = new AudioFormat.Builder().setSampleRate(sampleRate) in AudioPolicyConfig()
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java6 import android.media.AudioFormat;
86 mBytesPerFrame = AudioFormat.getBytesPerSample(mAudioFormat) * mChannelCount; in BlockingAudioTrack()
177 return AudioFormat.CHANNEL_OUT_MONO; in getChannelConfig()
179 return AudioFormat.CHANNEL_OUT_STEREO; in getChannelConfig()
218 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/docs/html/sdk/api_diff/5/
DmissingSinces.txt319 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_IN_BACK
320 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_IN_BACK_PROCESSED
321 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_IN_DEFAULT
322 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_IN_FRONT
323 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_IN_FRONT_PROCESSED
324 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_IN_LEFT
325 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_IN_LEFT_PROCESSED
326 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_IN_MONO
327 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_IN_PRESSURE
328 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_IN_RIGHT
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHardwareManager.java34 import android.media.AudioFormat;
688 private int mDesiredChannelMask = AudioFormat.CHANNEL_OUT_DEFAULT;
689 private int mDesiredFormat = AudioFormat.ENCODING_DEFAULT;
852 if (sinkChannelMask == AudioFormat.CHANNEL_OUT_DEFAULT) { in updateAudioConfigLocked()
855 if (sinkFormat == AudioFormat.ENCODING_DEFAULT) { in updateAudioConfigLocked()
870 sinkChannelMask = AudioFormat.CHANNEL_OUT_DEFAULT; in updateAudioConfigLocked()
873 sinkFormat = AudioFormat.ENCODING_DEFAULT; in updateAudioConfigLocked()
892 int sourceChannelMask = AudioFormat.CHANNEL_IN_DEFAULT; in updateAudioConfigLocked()
894 if (AudioFormat.channelCountFromOutChannelMask(sinkConfig.channelMask()) in updateAudioConfigLocked()
895 == AudioFormat.channelCountFromInChannelMask(inChannelMask)) { in updateAudioConfigLocked()
[all …]
/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/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/api/
Dremoved.txt3 public class AudioFormat {
4 ctor public AudioFormat();
Dsystem-removed.txt3 public class AudioFormat {
4 ctor public AudioFormat();
/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/docs/html/sdk/api_diff/preview-21/
DmissingSinces.txt11 NO DOC BLOCK: android.media.AudioFormat.Builder Class
93 …ia.AudioTrack Constructor (android.media.AudioAttributes, android.media.AudioFormat, int, int, int)
205 NO DOC BLOCK: android.media.AudioFormat Method getChannelMask()
236 NO DOC BLOCK: android.media.AudioFormat Method getEncoding()
320 NO DOC BLOCK: android.media.AudioFormat Method getSampleRate()
742 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_OUT_SIDE_LEFT
743 NO DOC BLOCK: android.media.AudioFormat Field CHANNEL_OUT_SIDE_RIGHT
794 NO DOC BLOCK: android.media.AudioFormat Field ENCODING_AC3
795 NO DOC BLOCK: android.media.AudioFormat Field ENCODING_E_AC3
/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/docs/html-intl/intl/ko/about/versions/
Dandroid-5.0.jd384 …<li>이제 앱에서 부동 소수점 형식({@link android.media.AudioFormat#ENCODING_PCM_FLOAT ENCODING_PCM_FLOAT})으로 오디…
/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/zh-cn/about/versions/
Dandroid-5.0.jd385 …<li>您的应用现在能够以浮点格式 ({@link android.media.AudioFormat#ENCODING_PCM_FLOAT ENCODING_PCM_FLOAT}) 提供音频数据…
/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…

12