Searched refs:mTrack (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/media/common/src/android/media/cts/ |
D | AudioHelper.java | 565 mTrack = new AudioTrack.Builder() in AudioRecordAudit() 577 assertEquals(AudioTrack.STATE_INITIALIZED, mTrack.getState()); in AudioRecordAudit() 589 if (mTrack != null) { in read() 590 final int result = mTrack.write(audioData, offsetInBytes, samples, in read() 592 mTrackPosition += result / mTrack.getChannelCount(); in read() 603 if (mTrack != null) { in read() 604 final int result = mTrack.write(audioData, offsetInBytes, samples, in read() 606 mTrackPosition += result / mTrack.getChannelCount(); in read() 617 if (mTrack != null) { in read() 618 final int result = mTrack.write(audioData, offsetInShorts, samples, in read() [all …]
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioNativeTest.java | 406 mTrack = new AudioTrackNative(); in AudioRecordAuditNative() 411 if (!mTrack.open(numChannels, sampleRate, useFloat, 2 /* numBuffers */)) { in open() 412 mTrack = null; // remove track in open() 421 if (mTrack != null) { in close() 422 mTrack.close(); in close() 428 if (mTrack != null) { in start() 429 mTrack.start(); in start() 438 if (mTrack != null) { in stop() 439 mTrack.stop(); // doesn't allow remaining data to play out in stop() 448 if (mTrack != null) { in read() [all …]
|
D | AudioTrackSurroundTest.java | 323 protected AudioTrack mTrack; field in AudioTrackSurroundTest.SamplePlayerBase 366 mTrack = createAudioTrack(mSampleRate, mEncoding, mChannelConfig); in playAndMeasureRate() 370 mTrack.getState()); in playAndMeasureRate() 379 mTrack.play(); in playAndMeasureRate() 382 + mTrack.getNativeOutputSampleRate(mTrack.getStreamType())); in playAndMeasureRate() 388 mTimestampAnalyzer.addTimestamp(mTrack); in playAndMeasureRate() 393 int underrunCount1 = mTrack.getUnderrunCount(); in playAndMeasureRate() 408 mTrack.release(); in playAndMeasureRate() 444 result = mTrack.write(mData, mOffset, shortsToWrite); in writeBlock() 478 result = mTrack.write(mData, mOffset, bytesToWrite); in writeBlock()
|
D | AudioTrackLatencyTest.java | 184 private AudioTrack mTrack; field in AudioTrackLatencyTest.TestSetup 196 mTrack = new AudioTrack(streamType, sampleRate, config, format, in createTrack() 202 mActualSizeInFrames = mTrack.setBufferSizeInFrames(smallBuffSizeInFrames); in createTrack() 203 return mTrack; in createTrack() 212 samplesWritten = mTrack.write(mData, 0, mData.length); in primeAudioTrack() 231 … int samplesWritten = mTrack.write(mData, 0, mData.length, AudioTrack.WRITE_NON_BLOCKING); in writeSeconds()
|
D | VolumeShaperTest.java | 279 mTrack = createSineAudioTrack(allowOffload); in AudioTrackPlayer() 284 mTrack.play(); in start() 288 mTrack.pause(); in pause() 292 mTrack.flush(); in flush() 296 mTrack.stop(); in stop() 300 mTrack.release(); in close() 305 return mTrack.createVolumeShaper(configuration); in createVolumeShaper() 312 private final AudioTrack mTrack; field in VolumeShaperTest.AudioTrackPlayer
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | AudioPlaybackLoad.java | 38 private AudioTrack mTrack; field in AudioPlaybackLoad 51 mTrack = createAudioTrack(format); in doDecodeAndPlayback() 52 mTrack.play(); in doDecodeAndPlayback() 63 mTrack.pause(); in doDecodeAndPlayback() 64 mTrack.flush(); in doDecodeAndPlayback() 65 mTrack.release(); in doDecodeAndPlayback() 135 mTrack.write(audio, 0, audio.length); in releaseOutput()
|