Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/hardware/soundtrigger/
DConversionUtil.java20 import android.media.AudioFormat;
200 AudioFormat audioFormat = aidl2apiAudioFormatWithDefault(aidlEvent.audioConfig); in aidl2apiRecognitionEvent()
218 AudioFormat audioFormat = aidl2apiAudioFormatWithDefault(aidlEvent.common.audioConfig); in aidl2apiPhraseRecognitionEvent()
227 public static AudioFormat aidl2apiAudioFormat(AudioConfig audioConfig) { in aidl2apiAudioFormat()
228 AudioFormat.Builder apiBuilder = new AudioFormat.Builder(); in aidl2apiAudioFormat()
236 public static AudioFormat aidl2apiAudioFormatWithDefault(@Nullable AudioConfig audioConfig) { in aidl2apiAudioFormatWithDefault()
240 return new AudioFormat.Builder().build(); in aidl2apiAudioFormatWithDefault()
245 case android.media.audio.common.AudioFormat.PCM in aidl2apiEncoding()
246 | android.media.audio.common.AudioFormat.PCM_SUB_16_BIT: in aidl2apiEncoding()
247 return AudioFormat.ENCODING_PCM_16BIT; in aidl2apiEncoding()
[all …]
/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/
DAudioTrack.java505 private int mChannelMask = AudioFormat.CHANNEL_OUT_MONO;
526 private int mChannelConfiguration = AudioFormat.CHANNEL_OUT_MONO;
704 (new AudioFormat.Builder()) in AudioTrack()
744 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack()
751 private AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack()
780 if (rate == AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in AudioTrack()
786 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_INDEX_MASK) != 0) { in AudioTrack()
791 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_MASK) != 0) { in AudioTrack()
794 channelMask = AudioFormat.CHANNEL_OUT_FRONT_LEFT in AudioTrack()
795 | AudioFormat.CHANNEL_OUT_FRONT_RIGHT; in AudioTrack()
[all …]
DAudioRecord.java328 (new AudioFormat.Builder()) in AudioRecord()
360 public AudioRecord(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioRecord()
388 private AudioRecord(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioRecord()
425 if (rate == AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in AudioRecord()
429 int encoding = AudioFormat.ENCODING_DEFAULT; in AudioRecord()
430 if ((format.getPropertySetMask() & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_ENCODING) != 0) in AudioRecord()
438 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_INDEX_MASK) != 0) { in AudioRecord()
443 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_MASK) != 0) { in AudioRecord()
447 mChannelMask = getChannelMaskFromLegacyConfig(AudioFormat.CHANNEL_IN_DEFAULT, false); in AudioRecord()
448 mChannelCount = AudioFormat.channelCountFromInChannelMask(mChannelMask); in AudioRecord()
[all …]
DAudioFormat.java239 public final class AudioFormat implements Parcelable { class
822 public AudioFormat() in AudioFormat() method in AudioFormat
833 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() method in AudioFormat
843 private AudioFormat(int propertySetMask, in AudioFormat() method in AudioFormat
1019 public Builder(AudioFormat af) { in Builder()
1032 public AudioFormat build() { in build()
1033 AudioFormat af = new AudioFormat( in build()
1215 AudioFormat that = (AudioFormat) o; in equals()
1250 private AudioFormat(Parcel in) { in AudioFormat() method in AudioFormat
1260 public static final @android.annotation.NonNull Parcelable.Creator<AudioFormat> CREATOR =
[all …]
DAudioRecordingConfiguration.java62 private final AudioFormat mDeviceFormat;
63 private final AudioFormat mClientFormat;
84 public AudioRecordingConfiguration(int uid, int session, int source, AudioFormat clientFormat, in AudioRecordingConfiguration()
85 AudioFormat devFormat, int patchHandle, String packageName, int clientPortId, in AudioRecordingConfiguration()
107 AudioFormat clientFormat, AudioFormat devFormat, in AudioRecordingConfiguration()
206 public AudioFormat getFormat() { return mDeviceFormat; } in getFormat()
213 public AudioFormat getClientFormat() { return mClientFormat; } in getClientFormat()
375 mClientFormat = AudioFormat.CREATOR.createFromParcel(in); in AudioRecordingConfiguration()
376 mDeviceFormat = AudioFormat.CREATOR.createFromParcel(in); in AudioRecordingConfiguration()
/frameworks/base/media/java/android/media/musicrecognition/
DRecognitionRequest.java20 import static android.media.AudioFormat.ENCODING_PCM_16BIT;
27 import android.media.AudioFormat;
41 @NonNull private final AudioFormat mAudioFormat;
60 public AudioFormat getAudioFormat() { in getAudioFormat()
84 private AudioFormat mAudioFormat = new AudioFormat.Builder()
104 public Builder setAudioFormat(@NonNull AudioFormat audioFormat) { in setAudioFormat()
155 mAudioFormat = in.readParcelable(AudioFormat.class.getClassLoader()); in RecognitionRequest()
DIMusicRecognitionService.aidl3 import android.media.AudioFormat;
17 in AudioFormat audioFormat, in onAudioStreamStarted()
/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()
/frameworks/base/media/java/android/media/audiopolicy/
DAudioMix.java24 import android.media.AudioFormat;
41 private AudioFormat mFormat;
61 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, in AudioMix()
166 public AudioFormat getFormat() { in getFormat()
221 public static String canBeUsedForPrivilegedMediaCapture(AudioFormat format) { in canBeUsedForPrivilegedMediaCapture()
273 private AudioFormat mFormat = null;
350 public Builder setFormat(AudioFormat format) in setFormat()
424 mFormat = new AudioFormat.Builder().setSampleRate(rate).build(); in build()
/frameworks/base/core/java/android/service/voice/
DIHotwordDetectionService.aidl21 import android.media.AudioFormat;
38 in AudioFormat audioFormat, in detectFromDspSource()
45 in AudioFormat audioFormat, in detectFromMicrophoneSource()
DIMicrophoneHotwordDetectionVoiceInteractionCallback.aidl19 import android.media.AudioFormat;
34 in AudioFormat audioFormat, in onDetected()
DSoftwareHotwordDetector.java26 import android.media.AudioFormat;
54 private final AudioFormat mAudioFormat;
59 AudioFormat audioFormat, in SoftwareHotwordDetector()
132 @Nullable AudioFormat audioFormat, in onDetected()
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioConfigBase.aidl19 import android.media.audio.common.AudioFormat;
28 AudioFormat format;
DAudioConfig.aidl20 import android.media.audio.common.AudioFormat;
32 AudioFormat format;
DIAudioPolicyService.aidl21 import android.media.audio.common.AudioFormat;
66 in AudioFormat encodedFormat); in setDeviceConnectionState()
72 in AudioFormat encodedFormat); in handleDeviceConfigChange()
282 out AudioFormat[] formats, in getSurroundFormats()
294 out AudioFormat[] formats); in getReportedSurroundFormats()
296 AudioFormat[] getHwOffloadEncodingFormatsSupportedForA2DP(); in getHwOffloadEncodingFormatsSupportedForA2DP()
298 void setSurroundFormatEnabled(AudioFormat audioFormat, boolean enabled); in setSurroundFormatEnabled()
DAudioIoDescriptor.aidl20 import android.media.audio.common.AudioFormat;
30 AudioFormat format;
DAudioProfile.aidl20 import android.media.audio.common.AudioFormat;
28 AudioFormat format;
DAudioPortConfig.aidl25 import android.media.audio.common.AudioFormat;
53 AudioFormat format;
/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/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenInternalAudioRecorder.java20 import android.media.AudioFormat;
67 public int channelOutMask = AudioFormat.CHANNEL_OUT_MONO;
68 public int channelInMask = AudioFormat.CHANNEL_IN_MONO;
69 public int encoding = AudioFormat.ENCODING_PCM_16BIT;
95 AudioFormat format = new AudioFormat.Builder() in setupSimple()
115 mConfig.sampleRate, AudioFormat.CHANNEL_IN_MONO, mConfig.encoding, size); in setupSimple()
/frameworks/av/media/libaaudio/src/binding/aidl/aaudio/
DStreamParameters.aidl19 import android.media.audio.common.AudioFormat;
26 AudioFormat audioFormat; // = AUDIO_FORMAT_DEFAULT;
/frameworks/base/media/aidl/android/media/audio/common/
DAudioConfig.aidl22 import android.media.audio.common.AudioFormat;
33 AudioFormat format;
DAudioOffloadInfo.aidl22 import android.media.audio.common.AudioFormat;
34 AudioFormat format;

1234