Searched refs:mTrack (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioHelper.java | 438 mTrack = new AudioTrack.Builder() in AudioRecordAudit() 450 Assert.assertEquals(AudioTrack.STATE_INITIALIZED, mTrack.getState()); in AudioRecordAudit() 462 if (mTrack != null) { in read() 463 Assert.assertEquals(samples, mTrack.write(audioData, offsetInBytes, samples)); in read() 464 mPosition += samples / mTrack.getChannelCount(); in read() 475 if (mTrack != null) { in read() 476 Assert.assertEquals(samples, mTrack.write(audioData, offsetInBytes, samples, in read() 478 mPosition += samples / mTrack.getChannelCount(); in read() 489 if (mTrack != null) { in read() 490 Assert.assertEquals(samples, mTrack.write(audioData, offsetInShorts, samples)); in read() [all …]
|
D | AudioTrackSurroundTest.java | 326 protected AudioTrack mTrack; field in AudioTrackSurroundTest.SamplePlayerBase 380 mTrack.setPreferredDevice(info); in usePreferredDevice() 404 mTrack = createAudioTrack(mSampleRate, mEncoding, mChannelConfig); in playAndMeasureRate() 408 mTrack.getState()); in playAndMeasureRate() 421 mTrack.play(); in playAndMeasureRate() 424 + mTrack.getNativeOutputSampleRate(mTrack.getStreamType())); in playAndMeasureRate() 430 mTimestampAnalyzer.addTimestamp(mTrack); in playAndMeasureRate() 435 int underrunCount1 = mTrack.getUnderrunCount(); in playAndMeasureRate() 449 mTrack.release(); in playAndMeasureRate() 485 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
|