/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 …]
|
D | MediaAudioEffectTest.java | 23 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/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 | 359 private int mChannelMask = AudioFormat.CHANNEL_OUT_MONO; 380 private int mChannelConfiguration = AudioFormat.CHANNEL_OUT_MONO; 552 (new AudioFormat.Builder()) in AudioTrack() 592 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack() 598 private AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack() 626 if (rate == AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in AudioTrack() 632 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_INDEX_MASK) != 0) { in AudioTrack() 637 & AudioFormat.AUDIO_FORMAT_HAS_PROPERTY_CHANNEL_MASK) != 0) { in AudioTrack() 640 channelMask = AudioFormat.CHANNEL_OUT_FRONT_LEFT in AudioTrack() 641 | 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 | 59 private final AudioFormat mDeviceFormat; 60 private final AudioFormat mClientFormat; 81 public AudioRecordingConfiguration(int uid, int session, int source, AudioFormat clientFormat, in AudioRecordingConfiguration() 82 AudioFormat devFormat, int patchHandle, String packageName, int clientPortId, in AudioRecordingConfiguration() 104 AudioFormat clientFormat, AudioFormat devFormat, in AudioRecordingConfiguration() 203 public AudioFormat getFormat() { return mDeviceFormat; } in getFormat() 210 public AudioFormat getClientFormat() { return mClientFormat; } in getClientFormat() 371 mClientFormat = AudioFormat.CREATOR.createFromParcel(in); in AudioRecordingConfiguration() 372 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;
|
D | AudioDeviceInfo.java | 368 AudioFormat.channelCountFromOutChannelMask(mask) in getChannelCounts() 369 : AudioFormat.channelCountFromInChannelMask(mask)); in getChannelCounts() 399 return AudioFormat.filterPublicFormats(mPort.formats()); in getEncodings()
|
/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() 212 public static String canBeUsedForPrivilegedCapture(AudioFormat format) { in canBeUsedForPrivilegedCapture() 264 private AudioFormat mFormat = null; 341 public Builder setFormat(AudioFormat format) in setFormat() 415 mFormat = new AudioFormat.Builder().setSampleRate(rate).build(); in build()
|
D | AudioPolicyConfig.java | 20 import android.media.AudioFormat; 126 final AudioFormat format = new AudioFormat.Builder().setSampleRate(sampleRate) in AudioPolicyConfig()
|
D | AudioPolicy.java | 30 import android.media.AudioFormat; 644 AudioFormat mixFormat = new AudioFormat.Builder(mix.getFormat()) in createAudioRecordSink() 645 .setChannelMask(AudioFormat.inChannelMaskFromOutChannelMask( in createAudioRecordSink() 658 AudioFormat.CHANNEL_IN_STEREO, mix.getFormat().getEncoding()), in createAudioRecordSink()
|
/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/media/java/android/media/soundtrigger/ |
D | SoundTriggerDetector.java | 29 import android.media.AudioFormat; 118 private final AudioFormat mAudioFormat; 124 AudioFormat audioFormat, int captureSession, byte[] data) { in EventPayload() 137 public AudioFormat getCaptureAudioFormat() { in getCaptureAudioFormat()
|
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/ |
D | SoundTriggerTestService.java | 28 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/audio/ |
D | RecordingActivityMonitor.java | 21 import android.media.AudioFormat; 345 final AudioFormat clientFormat = new AudioFormat.Builder() in createRecordingConfiguration() 351 final AudioFormat deviceFormat = new AudioFormat.Builder() in createRecordingConfiguration()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputHardwareManager.java | 35 import android.media.AudioFormat; 780 private int mDesiredChannelMask = AudioFormat.CHANNEL_OUT_DEFAULT; 781 private int mDesiredFormat = AudioFormat.ENCODING_DEFAULT; 943 if (sinkChannelMask == AudioFormat.CHANNEL_OUT_DEFAULT) { in updateAudioConfigLocked() 946 if (sinkFormat == AudioFormat.ENCODING_DEFAULT) { in updateAudioConfigLocked() 961 sinkChannelMask = AudioFormat.CHANNEL_OUT_DEFAULT; in updateAudioConfigLocked() 964 sinkFormat = AudioFormat.ENCODING_DEFAULT; in updateAudioConfigLocked() 983 int sourceChannelMask = AudioFormat.CHANNEL_IN_DEFAULT; in updateAudioConfigLocked() 985 if (AudioFormat.channelCountFromOutChannelMask(sinkConfig.channelMask()) in updateAudioConfigLocked() 986 == AudioFormat.channelCountFromInChannelMask(inChannelMask)) { in updateAudioConfigLocked() [all …]
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | SoundTrigger.java | 30 import android.media.AudioFormat; 685 public final AudioFormat captureFormat; 699 boolean triggerInData, AudioFormat captureFormat, byte[] data) { in RecognitionEvent() 726 @Nullable public AudioFormat getCaptureFormat() { in getCaptureFormat() 771 AudioFormat captureFormat = null; in fromParcel() 776 captureFormat = (new AudioFormat.Builder()) in fromParcel() 1168 boolean triggerInData, AudioFormat captureFormat, byte[] data, in KeyphraseRecognitionEvent() 1194 AudioFormat captureFormat = null; in fromParcelForKeyphrase() 1199 captureFormat = (new AudioFormat.Builder()) in fromParcelForKeyphrase() 1289 int capturePreambleMs, boolean triggerInData, AudioFormat captureFormat, in GenericRecognitionEvent()
|
/frameworks/base/core/java/android/service/voice/ |
D | AlwaysOnHotwordDetector.java | 35 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/tests/SoundTriggerTests/src/android/hardware/soundtrigger/ |
D | SoundTriggerTest.java | 26 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/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerService.java | 49 import android.media.AudioFormat; 1162 AudioFormat originalFormat = event.getCaptureFormat(); in createAudioRecordForEvent() 1163 AudioFormat captureFormat = (new AudioFormat.Builder()) in createAudioRecordForEvent() 1170 captureFormat.getSampleRate() == AudioFormat.SAMPLE_RATE_UNSPECIFIED in createAudioRecordForEvent() 1171 ? AudioFormat.SAMPLE_RATE_HZ_MAX in createAudioRecordForEvent() 1174 ? AudioFormat.CHANNEL_IN_STEREO in createAudioRecordForEvent() 1175 : AudioFormat.CHANNEL_IN_MONO, in createAudioRecordForEvent()
|