Searched refs:mTrack (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioHelper.java | 523 mTrack = new AudioTrack.Builder() in AudioRecordAudit() 535 Assert.assertEquals(AudioTrack.STATE_INITIALIZED, mTrack.getState()); in AudioRecordAudit() 547 if (mTrack != null) { in read() 548 Assert.assertEquals(samples, mTrack.write(audioData, offsetInBytes, samples)); in read() 549 mPosition += samples / mTrack.getChannelCount(); in read() 560 if (mTrack != null) { in read() 561 Assert.assertEquals(samples, mTrack.write(audioData, offsetInBytes, samples, in read() 563 mPosition += samples / mTrack.getChannelCount(); in read() 574 if (mTrack != null) { in read() 575 Assert.assertEquals(samples, mTrack.write(audioData, offsetInShorts, samples)); in read() [all …]
|
D | AudioTrackSurroundTest.java | 338 protected AudioTrack mTrack; field in AudioTrackSurroundTest.SamplePlayerBase 392 mTrack.setPreferredDevice(info); in usePreferredDevice() 415 mTrack = createAudioTrack(mSampleRate, mEncoding, mChannelConfig); in playAndMeasureRate() 419 mTrack.getState()); in playAndMeasureRate() 432 mTrack.play(); in playAndMeasureRate() 435 + mTrack.getNativeOutputSampleRate(mTrack.getStreamType())); in playAndMeasureRate() 441 mTimestampAnalyzer.addTimestamp(mTrack); in playAndMeasureRate() 446 int underrunCount1 = mTrack.getUnderrunCount(); in playAndMeasureRate() 460 mTrack.release(); in playAndMeasureRate() 496 result = mTrack.write(mData, mOffset, shortsToWrite); in writeBlock() [all …]
|
D | AudioTrackLatencyTest.java | 135 private AudioTrack mTrack; field in AudioTrackLatencyTest.TestSetup 147 mTrack = new AudioTrack(streamType, sampleRate, config, format, in createTrack() 153 mActualSizeInFrames = mTrack.setBufferSizeInFrames(smallBuffSizeInFrames); in createTrack() 154 return mTrack; in createTrack() 163 samplesWritten = mTrack.write(mData, 0, mData.length); in primeAudioTrack() 182 … int samplesWritten = mTrack.write(mData, 0, mData.length, AudioTrack.WRITE_NON_BLOCKING); in writeSeconds()
|
D | VolumeShaperTest.java | 245 mTrack = createSineAudioTrack(); in AudioTrackPlayer() 250 mTrack.play(); in start() 254 mTrack.pause(); in pause() 258 mTrack.stop(); in stop() 262 mTrack.release(); in close() 267 return mTrack.createVolumeShaper(configuration); in createVolumeShaper() 274 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 50 mTrack = createAudioTrack(format); in doDecodeAndPlayback() 51 mTrack.play(); in doDecodeAndPlayback() 62 mTrack.pause(); in doDecodeAndPlayback() 63 mTrack.flush(); in doDecodeAndPlayback() 64 mTrack.release(); in doDecodeAndPlayback() 140 mTrack.write(audio, 0, audio.length); in dequeueOutput()
|