Home
last modified time | relevance | path

Searched refs:vai (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DAudioHelper.java38 byte[] vai = new byte[bufferSamples]; in createSoundDataInByteArray()
39 sweep = Math.PI * sweep / ((double)sampleRate * vai.length); in createSoundDataInByteArray()
40 for (int j = 0; j < vai.length; j++) { in createSoundDataInByteArray()
43 vai[j] = (byte) unsigned; in createSoundDataInByteArray()
45 return vai; in createSoundDataInByteArray()
51 short[] vai = new short[bufferSamples]; in createSoundDataInShortArray() local
52 sweep = Math.PI * sweep / ((double)sampleRate * vai.length); in createSoundDataInShortArray()
53 for (int j = 0; j < vai.length; j++) { in createSoundDataInShortArray()
54 vai[j] = (short)(Math.sin(j * (rad + j * sweep)) * Short.MAX_VALUE); in createSoundDataInShortArray()
56 return vai; in createSoundDataInShortArray()
DAudioTrack_ListenerTest.java123 byte[] vai = AudioHelper.createSoundDataInByteArray( in doTest()
148 track.setLoopPoints(0, vai.length, TEST_LOOP_FACTOR - 1); in doTest()
151 assertEquals(vai.length, track.write(vai, 0 /* offsetInBytes */, vai.length)); in doTest()
DAudioTrackTest.java2116 byte[] vai = AudioHelper.createSoundDataInByteArray(bufferSizeInBytes, TEST_SR, in testVariableRatePlayback()
2118 assertEquals(vai.length, track.write(vai, 0 /* offsetInBytes */, vai.length)); in testVariableRatePlayback()