Home
last modified time | relevance | path

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

12

/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 …]
/frameworks/base/media/java/android/media/
DAudioRecord.java287 (new AudioFormat.Builder()) in AudioRecord()
318 public AudioRecord(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioRecord()
354 if (rate == AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in AudioRecord()
358 int encoding = AudioFormat.ENCODING_DEFAULT; in AudioRecord()
359 if ((format.getPropertySetMask() & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_ENCODING) != 0) in AudioRecord()
367 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_INDEX_MASK) != 0) { in AudioRecord()
372 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_MASK) != 0) { in AudioRecord()
376 mChannelMask = getChannelMaskFromLegacyConfig(AudioFormat.CHANNEL_IN_DEFAULT, false); in AudioRecord()
377 mChannelCount = AudioFormat.channelCountFromInChannelMask(mChannelMask); in AudioRecord()
486 private AudioFormat mFormat;
[all …]
DAudioTrack.java345 private int mChannelMask = AudioFormat.CHANNEL_OUT_MONO;
365 private int mChannelConfiguration = AudioFormat.CHANNEL_OUT_MONO;
519 (new AudioFormat.Builder()) in AudioTrack()
559 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack()
565 private AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack()
591 if (rate == AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in AudioTrack()
597 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_INDEX_MASK) != 0) { in AudioTrack()
602 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_MASK) != 0) { in AudioTrack()
605 channelMask = AudioFormat.CHANNEL_OUT_FRONT_LEFT in AudioTrack()
606 | AudioFormat.CHANNEL_OUT_FRONT_RIGHT; in AudioTrack()
[all …]
DAudioFormat.java216 public final class AudioFormat implements Parcelable { class
649 public AudioFormat() in AudioFormat() method in AudioFormat
658 private AudioFormat(int ignoredArgument) { in AudioFormat() method in AudioFormat
666 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() method in AudioFormat
806 public Builder(AudioFormat af) { in Builder()
819 public AudioFormat build() { in build()
820 AudioFormat af = new AudioFormat(1980/*ignored*/); in build()
992 AudioFormat that = (AudioFormat) o; in equals()
1027 private AudioFormat(Parcel in) { in AudioFormat() method in AudioFormat
1035 public static final Parcelable.Creator<AudioFormat> CREATOR =
[all …]
DAudioRecordingConfiguration.java54 private final AudioFormat mDeviceFormat;
55 private final AudioFormat mClientFormat;
65 public AudioRecordingConfiguration(int uid, int session, int source, AudioFormat clientFormat, in AudioRecordingConfiguration()
66 AudioFormat devFormat, int patchHandle, String packageName) { in AudioRecordingConfiguration()
156 public AudioFormat getFormat() { return mDeviceFormat; } in getFormat()
163 public AudioFormat getClientFormat() { return mClientFormat; } in getClientFormat()
262 mClientFormat = AudioFormat.CREATOR.createFromParcel(in); in AudioRecordingConfiguration()
263 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.java294 AudioFormat.channelCountFromOutChannelMask(mask) in getChannelCounts()
295 : AudioFormat.channelCountFromInChannelMask(mask)); in getChannelCounts()
325 return AudioFormat.filterPublicFormats(mPort.formats()); in getEncodings()
/frameworks/base/core/java/android/speech/tts/
DSynthesisCallback.java20 import android.media.AudioFormat;
45 AudioFormat.ENCODING_PCM_8BIT,
46 AudioFormat.ENCODING_PCM_16BIT,
47 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()
201 private AudioFormat mFormat = null;
280 public Builder setFormat(AudioFormat format) in setFormat()
362 mFormat = new AudioFormat.Builder().setSampleRate(rate).build(); in build()
DAudioPolicyConfig.java20 import android.media.AudioFormat;
126 final AudioFormat format = new AudioFormat.Builder().setSampleRate(sampleRate) in AudioPolicyConfig()
DAudioPolicy.java26 import android.media.AudioFormat;
478 AudioFormat mixFormat = new AudioFormat.Builder(mix.getFormat()) in createAudioRecordSink()
479 .setChannelMask(AudioFormat.inChannelMaskFromOutChannelMask( in createAudioRecordSink()
492 AudioFormat.CHANNEL_IN_STEREO, mix.getFormat().getEncoding()), in createAudioRecordSink()
/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/audio/
DRecordingActivityMonitor.java21 import android.media.AudioFormat;
201 final AudioFormat clientFormat = new AudioFormat.Builder() in updateSnapshot()
207 final AudioFormat deviceFormat = new AudioFormat.Builder() in updateSnapshot()
/frameworks/base/media/java/android/media/soundtrigger/
DSoundTriggerDetector.java28 import android.media.AudioFormat;
117 private final AudioFormat mAudioFormat;
123 AudioFormat audioFormat, int captureSession, byte[] data) { in EventPayload()
136 public AudioFormat getCaptureAudioFormat() { in getCaptureAudioFormat()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java28 import android.media.AudioFormat;
535 AudioFormat format = mEvent.getCaptureAudioFormat(); in run()
553 case AudioFormat.ENCODING_PCM_8BIT: in run()
557 case AudioFormat.ENCODING_PCM_16BIT: in run()
561 case AudioFormat.ENCODING_PCM_FLOAT: in run()
580 int channelConfig = AudioFormat.CHANNEL_OUT_MONO; in run()
582 channelConfig = AudioFormat.CHANNEL_OUT_STEREO; in run()
690 AudioFormat format = event.getCaptureAudioFormat(); in eventPayloadToString()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHardwareManager.java36 import android.media.AudioFormat;
779 private int mDesiredChannelMask = AudioFormat.CHANNEL_OUT_DEFAULT;
780 private int mDesiredFormat = AudioFormat.ENCODING_DEFAULT;
942 if (sinkChannelMask == AudioFormat.CHANNEL_OUT_DEFAULT) { in updateAudioConfigLocked()
945 if (sinkFormat == AudioFormat.ENCODING_DEFAULT) { in updateAudioConfigLocked()
960 sinkChannelMask = AudioFormat.CHANNEL_OUT_DEFAULT; in updateAudioConfigLocked()
963 sinkFormat = AudioFormat.ENCODING_DEFAULT; in updateAudioConfigLocked()
982 int sourceChannelMask = AudioFormat.CHANNEL_IN_DEFAULT; in updateAudioConfigLocked()
984 if (AudioFormat.channelCountFromOutChannelMask(sinkConfig.channelMask()) in updateAudioConfigLocked()
985 == 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;
210 private final AudioFormat mAudioFormat;
216 AudioFormat audioFormat, int captureSession, byte[] data) { in EventPayload()
229 public AudioFormat getCaptureAudioFormat() { in getCaptureAudioFormat()
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTrigger.java27 import android.media.AudioFormat;
655 public final AudioFormat captureFormat;
667 boolean triggerInData, AudioFormat captureFormat, byte[] data) { in RecognitionEvent()
694 @Nullable public AudioFormat getCaptureFormat() { in getCaptureFormat()
739 AudioFormat captureFormat = null; in fromParcel()
744 captureFormat = (new AudioFormat.Builder()) in fromParcel()
1121 boolean triggerInData, AudioFormat captureFormat, byte[] data, in KeyphraseRecognitionEvent()
1147 AudioFormat captureFormat = null; in fromParcelForKeyphrase()
1152 captureFormat = (new AudioFormat.Builder()) in fromParcelForKeyphrase()
1241 int capturePreambleMs, boolean triggerInData, AudioFormat captureFormat, in GenericRecognitionEvent()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerService.java50 import android.media.AudioFormat;
1040 AudioFormat originalFormat = event.getCaptureFormat(); in createAudioRecordForEvent()
1041 AudioFormat captureFormat = (new AudioFormat.Builder()) in createAudioRecordForEvent()
1048 captureFormat.getSampleRate() == AudioFormat.SAMPLE_RATE_UNSPECIFIED in createAudioRecordForEvent()
1049 ? AudioFormat.SAMPLE_RATE_HZ_MAX in createAudioRecordForEvent()
1052 ? AudioFormat.CHANNEL_IN_STEREO in createAudioRecordForEvent()
1053 : AudioFormat.CHANNEL_IN_MONO, in createAudioRecordForEvent()

12