/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaAudioTrackTest.java | 24 import android.media.AudioTrack; 87 AudioTrack track = null; in constructorTestMultiSampleRate() 89 track = new AudioTrack( in constructorTestMultiSampleRate() 94 AudioTrack.getMinBufferSize(testSampleRates[i], in constructorTestMultiSampleRate() 119 +", bufferSizeInBytes=" + AudioTrack.getMinBufferSize(testSampleRates[i], in constructorTestMultiSampleRate() 142 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, in testConstructorMono16MusicStream() 144 AudioTrack.STATE_INITIALIZED); in testConstructorMono16MusicStream() 155 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, in testConstructorStereo16MusicStream() 157 AudioTrack.STATE_INITIALIZED); in testConstructorStereo16MusicStream() 168 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, in testConstructorMono16MusicStatic() [all …]
|
/frameworks/base/core/java/android/speech/tts/ |
D | BlockingAudioTrack.java | 6 import android.media.AudioTrack; 73 private AudioTrack mAudioTrack; 95 AudioTrack track = createStreamingAudioTrack(); in init() 117 AudioTrack track = null; in write() 132 AudioTrack track = null; in waitAndRelease() 191 private static int writeToAudioTrack(AudioTrack audioTrack, byte[] bytes) { in writeToAudioTrack() 192 if (audioTrack.getPlayState() != AudioTrack.PLAYSTATE_PLAYING) { in writeToAudioTrack() 210 private AudioTrack createStreamingAudioTrack() { in createStreamingAudioTrack() 214 = AudioTrack.getMinBufferSize(mSampleRateInHz, channelConfig, mAudioFormat); in createStreamingAudioTrack() 221 AudioTrack audioTrack = new AudioTrack(mAudioParams.mAudioAttributes, in createStreamingAudioTrack() [all …]
|
D | SynthesisPlaybackQueueItem.java | 18 import android.media.AudioTrack; 35 implements AudioTrack.OnPlaybackPositionUpdateListener { 244 public void onMarkerReached(AudioTrack track) { in onMarkerReached() 258 public void onPeriodicNotification(AudioTrack track) {} in onPeriodicNotification()
|
/frameworks/base/core/java/android/companion/virtual/audio/ |
D | AudioInjection.java | 19 import static android.media.AudioTrack.PLAYSTATE_PLAYING; 20 import static android.media.AudioTrack.PLAYSTATE_STOPPED; 21 import static android.media.AudioTrack.STATE_INITIALIZED; 22 import static android.media.AudioTrack.WRITE_BLOCKING; 29 import android.media.AudioTrack; 53 private AudioTrack mAudioTrack; 75 void setAudioTrack(@Nullable AudioTrack audioTrack) { in setAudioTrack() 127 @AudioTrack.WriteMode int writeMode) { in write() 154 @AudioTrack.WriteMode int writeMode, long timestamp) { in write() 168 @AudioTrack.WriteMode int writeMode) { in write() [all …]
|
/frameworks/av/media/libaudioclient/ |
D | AudioTrack.cpp | 113 status_t AudioTrack::getMinFrameCount( in getMinFrameCount() 169 bool AudioTrack::isDirectOutputSupported(const audio_config_base_t& config, in isDirectOutputSupported() 190 void AudioTrack::MediaMetrics::gather(const AudioTrack *track) in gather() 222 status_t AudioTrack::getMetrics(mediametrics::Item * &item) in getMetrics() 233 AudioTrack::AudioTrack() : AudioTrack(AttributionSourceState()) in AudioTrack() function in android::AudioTrack 237 AudioTrack::AudioTrack(const AttributionSourceState& attributionSource) in AudioTrack() function in android::AudioTrack 254 AudioTrack::AudioTrack( in AudioTrack() function in android::AudioTrack 289 class LegacyCallbackWrapper : public AudioTrack::IAudioTrackCallback { 290 const AudioTrack::legacy_callback_t mCallback; 293 LegacyCallbackWrapper(AudioTrack::legacy_callback_t callback, void* user) in LegacyCallbackWrapper() [all …]
|
/frameworks/base/core/jni/ |
D | android_media_AudioTrack.cpp | 67 class AudioTrackCallbackImpl : public AudioTrack::IAudioTrackCallback { 101 size_t onCanWriteMoreData(const AudioTrack::Buffer& buffer) override { in onCanWriteMoreData() 232 sp<AudioTrack> getAudioTrack(JNIEnv* env, jobject thiz) { in getAudioTrack() 233 return getFieldSp<AudioTrack>(env, thiz, javaAudioTrackFields.nativeTrackInJavaObj); in getAudioTrack() 239 sp<AudioTrack> android_media_AudioTrack_getAudioTrack(JNIEnv* env, jobject audioTrackObj) { in android_media_AudioTrack_getAudioTrack() 280 sp<AudioTrack> lpTrack; in android_media_AudioTrack_setup() 330 lpTrack = sp<AudioTrack>::make(attributionSource); in android_media_AudioTrack_setup() 382 offload ? AudioTrack::TRANSFER_SYNC_NOTIF_CALLBACK in android_media_AudioTrack_setup() 383 : AudioTrack::TRANSFER_SYNC, in android_media_AudioTrack_setup() 409 AudioTrack::TRANSFER_SHARED, in android_media_AudioTrack_setup() [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | test_create_audiotrack.cpp | 43 sp<AudioTrack> track = new AudioTrack(AUDIO_STREAM_DEFAULT, in testTrack() 112 sp<AudioTrack> track = new AudioTrack(); in testTrack() 113 const auto emptyCallback = sp<AudioTrack::IAudioTrackCallback>::make(); in testTrack() 126 AudioTrack::TRANSFER_CALLBACK : AudioTrack::TRANSFER_DEFAULT, in testTrack()
|
D | track_test_output_v1.0_ref_walleye.txt | 3 AudioTrack::dump 14 AudioTrack::dump 25 AudioTrack::dump 36 AudioTrack::dump 47 AudioTrack::dump 58 AudioTrack::dump 69 AudioTrack::dump 80 AudioTrack::dump 91 AudioTrack::dump 102 AudioTrack::dump [all …]
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioTrack.h | 50 class AudioTrack : public AudioSystem::AudioDeviceCallback 98 friend AudioTrack; variable 153 friend AudioTrack; variable 168 virtual size_t onMoreData([[maybe_unused]] const AudioTrack::Buffer& buffer) { return 0; } in onMoreData() 220 virtual size_t onCanWriteMoreData([[maybe_unused]] const AudioTrack::Buffer& buffer) { in onCanWriteMoreData() 260 AudioTrack(); 262 AudioTrack(const AttributionSourceState& attributionSourceState); 328 AudioTrack( audio_stream_type_t streamType, 347 AudioTrack( audio_stream_type_t streamType, 377 AudioTrack( audio_stream_type_t streamType, [all …]
|
D | TrackPlayerBase.h | 31 void init(const sp<AudioTrack>& pat, const sp<AudioTrack::IAudioTrackCallback>& callback, 41 sp<AudioTrack> mAudioTrack; 69 sp<AudioTrack::IAudioTrackCallback> mCallbackHandle;
|
D | ToneGenerator.h | 31 class ToneGenerator : public AudioTrack::IAudioTrackCallback { 312 sp<AudioTrack> mpAudioTrack; // Pointer to audio track used for playback 321 size_t onMoreData(const AudioTrack::Buffer& buffer) override;
|
/frameworks/base/media/java/android/media/ |
D | AudioDevicePort.java | 50 @AudioTrack.EncapsulationMetadataType int[] encapsulationMetadataTypes) { in AudioDevicePort() 63 @AudioTrack.EncapsulationMetadataType int[] encapsulationMetadataTypes, in AudioDevicePort() 103 public @NonNull @AudioTrack.EncapsulationMode int[] encapsulationModes() { in encapsulationModes() 108 .filter(mode -> mode != AudioTrack.ENCAPSULATION_MODE_HANDLE) in encapsulationModes() 115 public @NonNull @AudioTrack.EncapsulationMetadataType int[] encapsulationMetadataTypes() { in encapsulationMetadataTypes()
|
D | MediaSync.java | 22 import android.media.AudioTrack; 200 private AudioTrack mAudioTrack = null; 333 public void setAudioTrack(@Nullable AudioTrack audioTrack) { in setAudioTrack() 341 private native final void native_setAudioTrack(@Nullable AudioTrack audioTrack); in native_setAudioTrack() 539 if (size > 0 && mAudioTrack.getPlayState() != AudioTrack.PLAYSTATE_PLAYING) { in postRenderAudio() 549 AudioTrack.WRITE_NON_BLOCKING); in postRenderAudio()
|
D | AudioTrack.java | 91 public class AudioTrack extends PlayerBase class 644 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() method in AudioTrack 702 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() method in AudioTrack 749 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack() method in AudioTrack 756 private AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack() method in AudioTrack 822 int initResult = native_setup(new WeakReference<AudioTrack>(this), mAttributes, in AudioTrack() 868 /*package*/ AudioTrack(long nativeTrackInJavaObj) { in AudioTrack() method in AudioTrack 901 int initResult = native_setup(new WeakReference<AudioTrack>(this), in deferred_connect() 1277 private @NonNull AudioTrack buildCallInjectionTrack() { in buildCallInjectionTrack() 1295 AudioTrack track = audioPolicy.createAudioTrackSource(audioMix); in buildCallInjectionTrack() [all …]
|
/frameworks/av/media/libmedia/docs/ |
D | paused.dot | 13 ATstop [label="AudioTrack::stop()"]; 16 ATpause [label="AudioTrack::pause()"]; 19 ATstart [label="AudioTrack::start()"]; 20 destructor [label="~AudioTrack()"]; 25 ATsetMarkerPosition [label="AudioTrack::setMarkerPosition()\n[sets marker variables]"]; 28 ATsetPositionUpdatePeriod [label="AudioTrack::setPositionUpdatePeriod()\n[sets update period variab…
|
/frameworks/wilhelm/src/android/ |
D | AudioTrackCallback.h | 31 const android::AudioTrack::Buffer& buffer); 34 class AudioTrackCallback : public AudioTrack::IAudioTrackCallback { 38 size_t onMoreData(const AudioTrack::Buffer& buffer) override { in onMoreData() 88 size_t onCanWriteMoreData([[maybe_unused]] const AudioTrack::Buffer& buffer) { in onCanWriteMoreData()
|
/frameworks/av/cmds/stagefright/ |
D | AudioPlayer.h | 32 class AudioPlayer : AudioTrack::IAudioTrackCallback { 70 size_t onMoreData(const AudioTrack::Buffer& buffer) override; 73 sp<AudioTrack> mAudioTrack;
|
D | SimplePlayer.h | 25 class AudioTrack; variable 82 sp<AudioTrack> mAudioTrack;
|
/frameworks/base/media/jni/soundpool/ |
D | Stream.h | 132 class StreamCallback : public AudioTrack::IAudioTrackCallback { 135 size_t onMoreData(const AudioTrack::Buffer& buffer) override; 143 size_t onCanWriteMoreData(const AudioTrack::Buffer& buffer) override; 184 sp<AudioTrack> mAudioTrack GUARDED_BY(mLock);
|
/frameworks/base/media/jni/ |
D | android_media_MediaSync.h | 28 class AudioTrack; variable 37 status_t setAudioTrack(const sp<AudioTrack> &audioTrack);
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaSync.h | 33 class AudioTrack; variable 83 status_t setAudioTrack(const sp<AudioTrack> &audioTrack); 202 sp<AudioTrack> mAudioTrack;
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioPolicy.java | 35 import android.media.AudioTrack; 89 @Nullable private ArrayList<WeakReference<AudioTrack>> mInjectors; 824 public AudioTrack createAudioTrackSource(AudioMix mix) throws IllegalArgumentException { in createAudioTrackSource() 837 AudioTrack at = new AudioTrack(ab.build(), in createAudioTrackSource() 839 AudioTrack.getMinBufferSize(mix.getFormat().getSampleRate(), in createAudioTrackSource() 841 AudioTrack.MODE_STREAM, in createAudioTrackSource() 848 mInjectors.add(new WeakReference<AudioTrack>(at)); in createAudioTrackSource() 862 for (final WeakReference<AudioTrack> weakTrack : mInjectors) { in invalidateCaptorsAndInjectors() 863 final AudioTrack track = weakTrack.get(); in invalidateCaptorsAndInjectors()
|
/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamTrack.cpp | 106 wp<AudioTrack::IAudioTrackCallback> callback; in open() 108 AudioTrack::transfer_type streamTransferType = AudioTrack::transfer_type::TRANSFER_SYNC; in open() 110 streamTransferType = AudioTrack::transfer_type::TRANSFER_CALLBACK; in open() 111 callback = wp<AudioTrack::IAudioTrackCallback>::fromExisting(this); in open() 148 mAudioTrack = new AudioTrack(); in open()
|
D | AudioStreamLegacy.h | 61 protected android::AudioTrack::IAudioTrackCallback, 86 size_t onMoreData(const android::AudioTrack::Buffer& buffer) override;
|
/frameworks/base/media/tests/audiotests/ |
D | shared_mem_test.cpp | 98 sp<AudioTrack> track = new AudioTrack(AUDIO_STREAM_MUSIC,// stream type in Test01()
|