/frameworks/base/media/java/android/media/ |
D | AudioRecord.java | 281 (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 …]
|
D | AudioTrack.java | 326 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 …]
|
D | AudioFormat.java | 215 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 …]
|
D | AudioRecordingConfiguration.java | 54 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()
|
D | JetPlayer.java | 97 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()
|
D | AudioFormat.aidl | 19 parcelable AudioFormat;
|
D | AudioDeviceInfo.java | 211 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/ |
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/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()
|
D | UtteranceProgressListener.java | 5 import android.media.AudioFormat;
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioMix.java | 23 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()
|
D | AudioPolicy.java | 26 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()
|
D | AudioPolicyConfig.java | 19 import android.media.AudioFormat; 118 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/services/core/java/com/android/server/audio/ |
D | RecordingActivityMonitor.java | 21 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/ |
D | SoundTriggerDetector.java | 28 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/ |
D | SoundTriggerTestService.java | 28 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/ |
D | TvInputHardwareManager.java | 36 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/ |
D | AlwaysOnHotwordDetector.java | 35 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/ |
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/core/java/android/hardware/soundtrigger/ |
D | SoundTrigger.java | 19 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()
|