/frameworks/base/media/java/android/media/ |
D | AudioTrack.java | 231 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 …]
|
D | AudioRecord.java | 229 (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 …]
|
D | AudioFormat.java | 30 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()
|
D | JetPlayer.java | 97 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/ |
D | MediaAudioTrackTest.java | 22 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 …]
|
D | MediaAudioEffectTest.java | 23 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/ |
D | AudioMix.java | 21 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()
|
D | AudioPolicy.java | 26 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()
|
D | AudioPolicyConfig.java | 20 import android.media.AudioFormat; 107 final AudioFormat format = new AudioFormat.Builder().setSampleRate(sampleRate) in AudioPolicyConfig()
|
/frameworks/base/core/java/android/speech/tts/ |
D | BlockingAudioTrack.java | 6 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()
|
D | FileSynthesisCallback.java | 18 import android.media.AudioFormat; 281 int sampleSizeInBytes = AudioFormat.getBytesPerSample(audioFormat); in makeWavHeader()
|
/frameworks/base/media/java/android/media/audiofx/ |
D | Virtualizer.java | 21 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/ |
D | missingSinces.txt | 319 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/ |
D | TvInputHardwareManager.java | 34 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/ |
D | AlwaysOnHotwordDetector.java | 34 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/ |
D | SoundTriggerTest.java | 26 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/ |
D | removed.txt | 3 public class AudioFormat { 4 ctor public AudioFormat();
|
D | system-removed.txt | 3 public class AudioFormat { 4 ctor public AudioFormat();
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | SoundTrigger.java | 19 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/ |
D | missingSinces.txt | 11 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/ |
D | missingSinces.txt | 14 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/ |
D | android-5.0.jd | 384 …<li>이제 앱에서 부동 소수점 형식({@link android.media.AudioFormat#ENCODING_PCM_FLOAT ENCODING_PCM_FLOAT})으로 오디…
|
/frameworks/base/docs/html-intl/intl/ja/about/versions/ |
D | android-5.0.jd | 383 …<li>アプリから音声データを浮動小数点形式({@link android.media.AudioFormat#ENCODING_PCM_FLOAT ENCODING_PCM_FLOAT})で提供…
|
/frameworks/base/docs/html-intl/intl/zh-cn/about/versions/ |
D | android-5.0.jd | 385 …<li>您的应用现在能够以浮点格式 ({@link android.media.AudioFormat#ENCODING_PCM_FLOAT ENCODING_PCM_FLOAT}) 提供音频数据…
|
/frameworks/base/docs/html-intl/intl/zh-tw/about/versions/ |
D | android-5.0.jd | 383 …<li>您的應用程式現在可以透過浮點格式提供音訊資料 ({@link android.media.AudioFormat#ENCODING_PCM_FLOAT ENCODING_PCM_FLOAT…
|