Home
last modified time | relevance | path

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

12

/frameworks/base/media/java/android/media/
DAudioRecord.java281 (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 …]
DAudioTrack.java261 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 …]
DAudioFormat.java215 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 …]
DAudioRecordingConfiguration.java52 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()
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()
DAudioFormat.aidl19 parcelable AudioFormat;
DAudioDeviceInfo.java207 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/
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/core/java/android/speech/tts/
DSynthesisCallback.java20 import android.media.AudioFormat;
45 @IntDef({AudioFormat.ENCODING_PCM_8BIT, AudioFormat.ENCODING_PCM_16BIT,
46 AudioFormat.ENCODING_PCM_FLOAT})
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.java19 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()
DPlaybackSynthesisCallback.java19 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()
DUtteranceProgressListener.java5 import android.media.AudioFormat;
/frameworks/base/media/java/android/media/audiopolicy/
DAudioMix.java23 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()
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;
118 final AudioFormat format = new AudioFormat.Builder().setSampleRate(sampleRate) in AudioPolicyConfig()
/frameworks/base/services/core/java/com/android/server/audio/
DRecordingActivityMonitor.java19 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/
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/media/java/android/media/soundtrigger/
DSoundTriggerDetector.java27 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/
DSoundTriggerTestService.java28 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/
DTvInputHardwareManager.java35 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/
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.java35 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/
DSoundTrigger.java19 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()

12