/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | ConversionUtil.java | 20 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/ |
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 …]
|
/frameworks/base/media/java/android/media/ |
D | AudioRecord.java | 304 (new AudioFormat.Builder()) in AudioRecord() 335 public AudioRecord(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioRecord() 371 if (rate == AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in AudioRecord() 375 int encoding = AudioFormat.ENCODING_DEFAULT; in AudioRecord() 376 if ((format.getPropertySetMask() & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_ENCODING) != 0) in AudioRecord() 384 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_INDEX_MASK) != 0) { in AudioRecord() 389 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_MASK) != 0) { in AudioRecord() 393 mChannelMask = getChannelMaskFromLegacyConfig(AudioFormat.CHANNEL_IN_DEFAULT, false); in AudioRecord() 394 mChannelCount = AudioFormat.channelCountFromInChannelMask(mChannelMask); in AudioRecord() 527 private AudioFormat mFormat; [all …]
|
D | AudioTrack.java | 501 private int mChannelMask = AudioFormat.CHANNEL_OUT_MONO; 522 private int mChannelConfiguration = AudioFormat.CHANNEL_OUT_MONO; 694 (new AudioFormat.Builder()) in AudioTrack() 734 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack() 741 private AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack() 770 if (rate == AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in AudioTrack() 776 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_INDEX_MASK) != 0) { in AudioTrack() 781 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_MASK) != 0) { in AudioTrack() 784 channelMask = AudioFormat.CHANNEL_OUT_FRONT_LEFT in AudioTrack() 785 | AudioFormat.CHANNEL_OUT_FRONT_RIGHT; in AudioTrack() [all …]
|
D | AudioFormat.java | 220 public final class AudioFormat implements Parcelable { class 678 public AudioFormat() in AudioFormat() method in AudioFormat 689 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { in AudioFormat() method in AudioFormat 699 private AudioFormat(int propertySetMask, in AudioFormat() method in AudioFormat 875 public Builder(AudioFormat af) { in Builder() 888 public AudioFormat build() { in build() 889 AudioFormat af = new AudioFormat( in build() 1063 AudioFormat that = (AudioFormat) o; in equals() 1098 private AudioFormat(Parcel in) { in AudioFormat() method in AudioFormat 1108 public static final @android.annotation.NonNull Parcelable.Creator<AudioFormat> CREATOR = [all …]
|
D | AudioRecordingConfiguration.java | 61 private final AudioFormat mDeviceFormat; 62 private final AudioFormat mClientFormat; 83 public AudioRecordingConfiguration(int uid, int session, int source, AudioFormat clientFormat, in AudioRecordingConfiguration() 84 AudioFormat devFormat, int patchHandle, String packageName, int clientPortId, in AudioRecordingConfiguration() 106 AudioFormat clientFormat, AudioFormat devFormat, in AudioRecordingConfiguration() 205 public AudioFormat getFormat() { return mDeviceFormat; } in getFormat() 212 public AudioFormat getClientFormat() { return mClientFormat; } in getClientFormat() 380 mClientFormat = AudioFormat.CREATOR.createFromParcel(in); in AudioRecordingConfiguration() 381 mDeviceFormat = AudioFormat.CREATOR.createFromParcel(in); in AudioRecordingConfiguration()
|
D | JetPlayer.java | 97 AudioFormat.CHANNEL_OUT_STEREO; // NUM_OUTPUT_CHANNELS=2 in Android.mk 169 JET_OUTPUT_CHANNEL_CONFIG, AudioFormat.ENCODING_PCM_16BIT); in JetPlayer() 179 (AudioFormat.getBytesPerSample(AudioFormat.ENCODING_PCM_16BIT) * in JetPlayer()
|
D | AudioFormat.aidl | 19 parcelable AudioFormat;
|
/frameworks/base/core/java/android/speech/tts/ |
D | SynthesisCallback.java | 20 import android.media.AudioFormat; 45 AudioFormat.ENCODING_PCM_8BIT, 46 AudioFormat.ENCODING_PCM_16BIT, 47 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()
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioMix.java | 25 import android.media.AudioFormat; 42 private AudioFormat mFormat; 62 private AudioMix(AudioMixingRule rule, AudioFormat format, int routeFlags, int callbackFlags, in AudioMix() 167 public AudioFormat getFormat() { in getFormat() 222 public static String canBeUsedForPrivilegedCapture(AudioFormat format) { in canBeUsedForPrivilegedCapture() 274 private AudioFormat mFormat = null; 351 public Builder setFormat(AudioFormat format) in setFormat() 425 mFormat = new AudioFormat.Builder().setSampleRate(rate).build(); in build()
|
D | AudioPolicyConfig.java | 20 import android.media.AudioFormat; 128 final AudioFormat format = new AudioFormat.Builder().setSampleRate(sampleRate) in AudioPolicyConfig()
|
/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/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenInternalAudioRecorder.java | 20 import android.media.AudioFormat; 66 public int channelOutMask = AudioFormat.CHANNEL_OUT_MONO; 67 public int channelInMask = AudioFormat.CHANNEL_IN_MONO; 68 public int encoding = AudioFormat.ENCODING_PCM_16BIT; 94 AudioFormat format = new AudioFormat.Builder() in setupSimple() 114 mConfig.sampleRate, AudioFormat.CHANNEL_IN_MONO, mConfig.encoding, size); in setupSimple()
|
/frameworks/base/media/java/android/media/audio/common/ |
D | AudioConfig.aidl | 22 import android.media.audio.common.AudioFormat; 33 AudioFormat format;
|
D | AudioOffloadInfo.aidl | 22 import android.media.audio.common.AudioFormat; 34 AudioFormat format;
|
D | AudioFormat.aidl | 36 enum AudioFormat { enum
|
/frameworks/base/media/java/android/media/soundtrigger/ |
D | SoundTriggerDetector.java | 30 import android.media.AudioFormat; 145 private final AudioFormat mAudioFormat; 151 AudioFormat audioFormat, int captureSession, byte[] data) { in EventPayload() 164 public AudioFormat getCaptureAudioFormat() { in getCaptureAudioFormat()
|
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/ |
D | SoundTriggerTestService.java | 28 import android.media.AudioFormat; 541 AudioFormat format = mEvent.getCaptureAudioFormat(); in run() 559 case AudioFormat.ENCODING_PCM_8BIT: in run() 563 case AudioFormat.ENCODING_PCM_16BIT: in run() 567 case AudioFormat.ENCODING_PCM_FLOAT: in run() 586 int channelConfig = AudioFormat.CHANNEL_OUT_MONO; in run() 588 channelConfig = AudioFormat.CHANNEL_OUT_STEREO; in run() 698 AudioFormat format = event.getCaptureAudioFormat(); in eventPayloadToString()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputHardwareManager.java | 35 import android.media.AudioFormat; 803 private int mDesiredChannelMask = AudioFormat.CHANNEL_OUT_DEFAULT; 804 private int mDesiredFormat = AudioFormat.ENCODING_DEFAULT; 966 if (sinkChannelMask == AudioFormat.CHANNEL_OUT_DEFAULT) { in updateAudioConfigLocked() 969 if (sinkFormat == AudioFormat.ENCODING_DEFAULT) { in updateAudioConfigLocked() 984 sinkChannelMask = AudioFormat.CHANNEL_OUT_DEFAULT; in updateAudioConfigLocked() 987 sinkFormat = AudioFormat.ENCODING_DEFAULT; in updateAudioConfigLocked() 1006 int sourceChannelMask = AudioFormat.CHANNEL_IN_DEFAULT; in updateAudioConfigLocked() 1008 if (AudioFormat.channelCountFromOutChannelMask(sinkConfig.channelMask()) in updateAudioConfigLocked() 1009 == AudioFormat.channelCountFromInChannelMask(inChannelMask)) { in updateAudioConfigLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | RecordingActivityMonitor.java | 22 import android.media.AudioFormat; 397 final AudioFormat clientFormat = new AudioFormat.Builder() in createRecordingConfiguration() 403 final AudioFormat deviceFormat = new AudioFormat.Builder() in createRecordingConfiguration()
|
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/ |
D | SoundTriggerTest.java | 25 import android.media.AudioFormat; 279 (new AudioFormat.Builder()) in testRecognitionEventParcelUnparcel_largeAudioData() 280 .setChannelMask(AudioFormat.CHANNEL_IN_MONO) in testRecognitionEventParcelUnparcel_largeAudioData() 281 .setEncoding(AudioFormat.ENCODING_PCM_16BIT) in testRecognitionEventParcelUnparcel_largeAudioData()
|
/frameworks/base/core/java/android/service/voice/ |
D | AlwaysOnHotwordDetector.java | 34 import android.media.AudioFormat; 295 private final AudioFormat mAudioFormat; 301 AudioFormat audioFormat, int captureSession, byte[] data) { in EventPayload() 314 public AudioFormat getCaptureAudioFormat() { in getCaptureAudioFormat()
|