Home
last modified time | relevance | path

Searched refs:AudioFormat (Results 1 – 25 of 38) 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.java326 private int mChannelMask = AudioFormat.CHANNEL_OUT_MONO;
346 private int mChannelConfiguration = AudioFormat.CHANNEL_OUT_MONO;
500 (new AudioFormat.Builder()) in AudioTrack()
540 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack()
566 if (rate == AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in AudioTrack()
572 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_INDEX_MASK) != 0) { in AudioTrack()
577 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_MASK) != 0) { in AudioTrack()
580 channelMask = AudioFormat.CHANNEL_OUT_FRONT_LEFT in AudioTrack()
581 | AudioFormat.CHANNEL_OUT_FRONT_RIGHT; in AudioTrack()
583 int encoding = AudioFormat.ENCODING_DEFAULT; in AudioTrack()
[all …]
DAudioFormat.java215 public final class AudioFormat implements Parcelable { class
613 public AudioFormat() in AudioFormat() method in AudioFormat
622 private AudioFormat(int ignoredArgument) { in AudioFormat() method in AudioFormat
630 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() method in AudioFormat
770 public Builder(AudioFormat af) { in Builder()
783 public AudioFormat build() { in build()
784 AudioFormat af = new AudioFormat(1980/*ignored*/); in build()
955 AudioFormat that = (AudioFormat) o; in equals()
990 private AudioFormat(Parcel in) { in AudioFormat() method in AudioFormat
998 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.java211 AudioFormat.channelCountFromOutChannelMask(mask) in getChannelCounts()
212 : AudioFormat.channelCountFromInChannelMask(mask)); in getChannelCounts()
242 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 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()
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;
371 AudioFormat mixFormat = new AudioFormat.Builder(mix.getFormat()) in createAudioRecordSink()
372 .setChannelMask(AudioFormat.inChannelMaskFromOutChannelMask( in createAudioRecordSink()
384 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/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;
195 final AudioFormat clientFormat = new AudioFormat.Builder() in updateSnapshot()
201 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;
534 AudioFormat format = mEvent.getCaptureAudioFormat(); in run()
552 case AudioFormat.ENCODING_PCM_8BIT: in run()
556 case AudioFormat.ENCODING_PCM_16BIT: in run()
560 case AudioFormat.ENCODING_PCM_FLOAT: in run()
579 int channelConfig = AudioFormat.CHANNEL_OUT_MONO; in run()
581 channelConfig = AudioFormat.CHANNEL_OUT_STEREO; in run()
689 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/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/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/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