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 | 323 protected AudioTrack mTrack; field in AudioTrackSurroundTest.SamplePlayerBase 377 mTrack.setPreferredDevice(info); in usePreferredDevice() 401 mTrack = createAudioTrack(mSampleRate, mEncoding, mChannelConfig); in playAndMeasureRate() 405 mTrack.getState()); in playAndMeasureRate() 418 mTrack.play(); in playAndMeasureRate() 421 + mTrack.getNativeOutputSampleRate(mTrack.getStreamType())); in playAndMeasureRate() 427 mTimestampAnalyzer.addTimestamp(mTrack); in playAndMeasureRate() 432 int underrunCount1 = mTrack.getUnderrunCount(); in playAndMeasureRate() 446 mTrack.release(); in playAndMeasureRate() 482 result = mTrack.write(mData, mOffset, shortsToWrite); in writeBlock() [all …]
|
D | AudioTrackLatencyTest.java | 134 private AudioTrack mTrack; field in AudioTrackLatencyTest.TestSetup 146 mTrack = new AudioTrack(streamType, sampleRate, config, format, in createTrack() 152 mActualSizeInFrames = mTrack.setBufferSizeInFrames(smallBuffSizeInFrames); in createTrack() 153 return mTrack; in createTrack() 162 samplesWritten = mTrack.write(mData, 0, mData.length); in primeAudioTrack() 181 … 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
|