/frameworks/base/media/java/android/media/ |
D | AudioRecord.java | 281 (new AudioFormat.Builder()) in AudioRecord() 312 public AudioRecord(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioRecord() 348 if (rate == AudioFormat.SAMPLE_RATE_UNSPECIFIED) { 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() 480 private AudioFormat mFormat; [all …]
|
D | AudioTrack.java | 261 private int mChannelMask = AudioFormat.CHANNEL_OUT_MONO; 281 private int mChannelConfiguration = AudioFormat.CHANNEL_OUT_MONO; 425 (new AudioFormat.Builder()) in AudioTrack() 464 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack() 481 if (rate == AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in AudioTrack() 487 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_INDEX_MASK) != 0) { in AudioTrack() 492 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_MASK) != 0) { in AudioTrack() 495 channelMask = AudioFormat.CHANNEL_OUT_FRONT_LEFT in AudioTrack() 496 | AudioFormat.CHANNEL_OUT_FRONT_RIGHT; in AudioTrack() 498 int encoding = AudioFormat.ENCODING_DEFAULT; in AudioTrack() [all …]
|
D | AudioFormat.java | 215 public final class AudioFormat implements Parcelable { class 577 public AudioFormat() in AudioFormat() method in AudioFormat 586 private AudioFormat(int ignoredArgument) { in AudioFormat() method in AudioFormat 594 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() method in AudioFormat 728 public Builder(AudioFormat af) { in Builder() 741 public AudioFormat build() { in build() 742 AudioFormat af = new AudioFormat(1980/*ignored*/); in build() 913 AudioFormat that = (AudioFormat) o; in equals() 948 private AudioFormat(Parcel in) { in AudioFormat() method in AudioFormat 956 public static final Parcelable.Creator<AudioFormat> CREATOR = [all …]
|
D | AudioRecordingConfiguration.java | 52 private final AudioFormat mDeviceFormat; 53 private final AudioFormat mClientFormat; 60 public AudioRecordingConfiguration(int session, int source, AudioFormat clientFormat, in AudioRecordingConfiguration() 61 AudioFormat devFormat, int patchHandle) { in AudioRecordingConfiguration() 113 public AudioFormat getFormat() { return mDeviceFormat; } in getFormat() 120 public AudioFormat getClientFormat() { return mClientFormat; } in getClientFormat() 193 mClientFormat = AudioFormat.CREATOR.createFromParcel(in); in AudioRecordingConfiguration() 194 mDeviceFormat = AudioFormat.CREATOR.createFromParcel(in); in AudioRecordingConfiguration()
|
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()
|
D | AudioFormat.aidl | 19 parcelable AudioFormat;
|
D | AudioDeviceInfo.java | 207 AudioFormat.channelCountFromOutChannelMask(mask) in getChannelCounts() 208 : AudioFormat.channelCountFromInChannelMask(mask)); in getChannelCounts() 238 return AudioFormat.filterPublicFormats(mPort.formats()); in getEncodings()
|
/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/core/java/android/speech/tts/ |
D | SynthesisCallback.java | 20 import android.media.AudioFormat; 45 @IntDef({AudioFormat.ENCODING_PCM_8BIT, AudioFormat.ENCODING_PCM_16BIT, 46 AudioFormat.ENCODING_PCM_FLOAT})
|
D | BlockingAudioTrack.java | 5 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()
|
D | FileSynthesisCallback.java | 19 import android.media.AudioFormat; 107 if (audioFormat != AudioFormat.ENCODING_PCM_8BIT && in start() 108 audioFormat != AudioFormat.ENCODING_PCM_16BIT && in start() 109 audioFormat != AudioFormat.ENCODING_PCM_FLOAT) { in start() 286 int sampleSizeInBytes = AudioFormat.getBytesPerSample(audioFormat); in makeWavHeader()
|
D | PlaybackSynthesisCallback.java | 19 import android.media.AudioFormat; 128 if (audioFormat != AudioFormat.ENCODING_PCM_8BIT && in start() 129 audioFormat != AudioFormat.ENCODING_PCM_16BIT && in start() 130 audioFormat != AudioFormat.ENCODING_PCM_FLOAT) { in start()
|
D | UtteranceProgressListener.java | 5 import android.media.AudioFormat;
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioMix.java | 23 import android.media.AudioFormat; 37 private AudioFormat mFormat; 52 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, in AudioMix() 142 AudioFormat getFormat() { in getFormat() 183 private AudioFormat mFormat = null; 262 public Builder setFormat(AudioFormat format) in setFormat() 344 mFormat = new AudioFormat.Builder().setSampleRate(rate).build(); in build()
|
D | AudioPolicy.java | 26 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()
|
D | AudioPolicyConfig.java | 19 import android.media.AudioFormat; 118 final AudioFormat format = new AudioFormat.Builder().setSampleRate(sampleRate) in AudioPolicyConfig()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | RecordingActivityMonitor.java | 19 import android.media.AudioFormat; 136 final AudioFormat clientFormat = new AudioFormat.Builder() in updateSnapshot() 142 final AudioFormat deviceFormat = new AudioFormat.Builder() in updateSnapshot()
|
/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/media/java/android/media/soundtrigger/ |
D | SoundTriggerDetector.java | 27 import android.media.AudioFormat; 116 private final AudioFormat mAudioFormat; 122 AudioFormat audioFormat, int captureSession, byte[] data) { in EventPayload() 135 public AudioFormat getCaptureAudioFormat() { in getCaptureAudioFormat()
|
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/ |
D | SoundTriggerTestService.java | 28 import android.media.AudioFormat; 526 AudioFormat format = mEvent.getCaptureAudioFormat(); in run() 544 case AudioFormat.ENCODING_PCM_8BIT: in run() 548 case AudioFormat.ENCODING_PCM_16BIT: in run() 552 case AudioFormat.ENCODING_PCM_FLOAT: in run() 571 int channelConfig = AudioFormat.CHANNEL_OUT_MONO; in run() 573 channelConfig = AudioFormat.CHANNEL_OUT_STEREO; in run() 681 AudioFormat format = event.getCaptureAudioFormat(); in eventPayloadToString()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputHardwareManager.java | 35 import android.media.AudioFormat; 765 private int mDesiredChannelMask = AudioFormat.CHANNEL_OUT_DEFAULT; 766 private int mDesiredFormat = AudioFormat.ENCODING_DEFAULT; 928 if (sinkChannelMask == AudioFormat.CHANNEL_OUT_DEFAULT) { in updateAudioConfigLocked() 931 if (sinkFormat == AudioFormat.ENCODING_DEFAULT) { in updateAudioConfigLocked() 946 sinkChannelMask = AudioFormat.CHANNEL_OUT_DEFAULT; in updateAudioConfigLocked() 949 sinkFormat = AudioFormat.ENCODING_DEFAULT; in updateAudioConfigLocked() 968 int sourceChannelMask = AudioFormat.CHANNEL_IN_DEFAULT; in updateAudioConfigLocked() 970 if (AudioFormat.channelCountFromOutChannelMask(sinkConfig.channelMask()) in updateAudioConfigLocked() 971 == AudioFormat.channelCountFromInChannelMask(inChannelMask)) { in updateAudioConfigLocked() [all …]
|
/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/core/java/android/service/voice/ |
D | AlwaysOnHotwordDetector.java | 35 import android.media.AudioFormat; 212 private final AudioFormat mAudioFormat; 218 AudioFormat audioFormat, int captureSession, byte[] data) { in EventPayload() 231 public AudioFormat getCaptureAudioFormat() { in getCaptureAudioFormat()
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | SoundTrigger.java | 19 import android.media.AudioFormat; 568 public AudioFormat captureFormat; 575 boolean triggerInData, AudioFormat captureFormat, byte[] data) { in RecognitionEvent() 606 AudioFormat captureFormat = null; in fromParcel() 611 captureFormat = (new AudioFormat.Builder()) in fromParcel() 980 boolean triggerInData, AudioFormat captureFormat, byte[] data, in KeyphraseRecognitionEvent() 1006 AudioFormat captureFormat = null; in fromParcelForKeyphrase() 1011 captureFormat = (new AudioFormat.Builder()) in fromParcelForKeyphrase() 1098 int capturePreambleMs, boolean triggerInData, AudioFormat captureFormat, in GenericRecognitionEvent()
|