Searched refs:mAudioTrack (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/media/src/android/media/cts/ |
D | NonBlockingAudioTrack.java | 42 private AudioTrack mAudioTrack; field in NonBlockingAudioTrack 73 mAudioTrack = new AudioTrack( in NonBlockingAudioTrack() 92 mAudioTrack = new AudioTrack(audioAttributes, audioFormat, bufferSize, in NonBlockingAudioTrack() 100 int numFramesPlayed = mAudioTrack.getPlaybackHeadPosition(); in getAudioTimeUs() 110 mAudioTrack.play(); in play() 114 mAudioTrack.stop(); in stop() 121 mAudioTrack.pause(); in pause() 125 if (mAudioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING) { in flush() 128 mAudioTrack.flush(); in flush() 136 mAudioTrack.release(); in release() [all …]
|
D | CodecState.java | 52 private NonBlockingAudioTrack mAudioTrack; field in CodecState 106 if (mAudioTrack != null) { in release() 107 mAudioTrack.release(); in release() 108 mAudioTrack = null; in release() 119 if (mAudioTrack != null) { in start() 120 mAudioTrack.play(); in start() 125 if (mAudioTrack != null) { in pause() 126 mAudioTrack.pause(); in pause() 144 if (mAudioTrack != null in flush() 145 && mAudioTrack.getPlayState() != AudioTrack.PLAYSTATE_PLAYING) { in flush() [all …]
|
D | MediaSyncTest.java | 76 private AudioTrack mAudioTrack = null; field in MediaSyncTest 173 mAudioTrack = mDecoderAudio.getAudioTrack(); in testSetPlaybackParamsFail() 175 mMediaSync.setAudioTrack(mAudioTrack); in testSetPlaybackParamsFail() 224 mAudioTrack = mDecoderAudio.getAudioTrack(); in runCheckAudioBuffer() 226 mMediaSync.setAudioTrack(mAudioTrack); in runCheckAudioBuffer() 285 mAudioTrack = mDecoderAudio.getAudioTrack(); in runFlush() 287 mMediaSync.setAudioTrack(mAudioTrack); in runFlush() 430 mAudioTrack = mDecoderAudio.getAudioTrack(); in runPlayAV() 432 mMediaSync.setAudioTrack(mAudioTrack); in runPlayAV() 536 private AudioTrack mAudioTrack = null; field in MediaSyncTest.Decoder [all …]
|
D | AudioTrack_ListenerTest.java | 230 mAudioTrack = track; in MockOnPlaybackPositionUpdateListener() 235 mAudioTrack = track; in MockOnPlaybackPositionUpdateListener() 241 int position = mAudioTrack.getPlaybackHeadPosition(); in onMarkerReached() 246 mAudioTrack.setNotificationMarkerPosition(mMarkerPosition)); in onMarkerReached() 255 mOnPeriodicNotificationCalled.add(mAudioTrack.getPlaybackHeadPosition()); in onPeriodicNotification() 274 mAudioTrack.setPlaybackPositionUpdateListener(null); in release() 275 mAudioTrack = null; in release() 279 private AudioTrack mAudioTrack; field in AudioTrack_ListenerTest.MockOnPlaybackPositionUpdateListener
|
D | RoutingTest.java | 227 AudioTrack mAudioTrack; field in RoutingTest.AudioTrackFiller 235 mAudioTrack = audioTrack; in AudioTrackFiller() 251 while (mAudioTrack != null && mPlaying) { in run() 252 mAudioTrack.write(mAudioData, 0, mBufferSize); in run()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | TrivialPlayer.java | 28 AudioTrack mAudioTrack; field in TrivialPlayer 44 mAudioTrack = in TrivialPlayer() 67 public AudioTrack getAudioTrack() { return mAudioTrack; } in getAudioTrack() 94 mAudioTrack.release(); in shutDown() 99 mAudioTrack.play(); in run() 103 while (mAudioTrack != null && mPlay) { in run() 104 mAudioTrack.write(mAudioData, 0, mBufferSize); in run() 109 mAudioTrack.stop(); in run()
|
D | SoundPlayerObject.java | 41 public AudioTrack mAudioTrack; field in SoundPlayerObject 76 mAudioTrack.write(mAudioShortArray, 0, valuesOfInterest); in run() 137 mAudioTrack = new AudioTrack(mStreamType, in setSoundWithResId() 160 if (mAudioTrack != null) { in isPlaying() 161 result = mAudioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING; in isPlaying() 177 if (mAudioTrack != null && isInitialized) { in play() 180 mAudioTrack.flush(); in play() 181 mAudioTrack.play(); in play() 183 mAudioTrack.pause(); in play() 201 if (mAudioTrack != null) { in releasePlayer() [all …]
|