Searched refs:vai (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/media/common/src/android/media/cts/ |
D | AudioHelper.java | 69 byte[] vai = new byte[bufferSamples]; in createSoundDataInByteArray() 70 sweep = Math.PI * sweep / ((double)sampleRate * vai.length); in createSoundDataInByteArray() 71 for (int j = 0; j < vai.length; j++) { in createSoundDataInByteArray() 74 vai[j] = (byte) unsigned; in createSoundDataInByteArray() 76 return vai; in createSoundDataInByteArray() 82 short[] vai = new short[bufferSamples]; in createSoundDataInShortArray() local 83 sweep = Math.PI * sweep / ((double)sampleRate * vai.length); in createSoundDataInShortArray() 84 for (int j = 0; j < vai.length; j++) { in createSoundDataInShortArray() 85 vai[j] = (short)(Math.sin(j * (rad + j * sweep)) * Short.MAX_VALUE); in createSoundDataInShortArray() 87 return vai; in createSoundDataInShortArray() [all …]
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioTrack_ListenerTest.java | 134 byte[] vai = AudioHelper.createSoundDataInByteArray( in doTest() 159 track.setLoopPoints(0, vai.length, TEST_LOOP_FACTOR - 1); in doTest() 162 assertEquals(vai.length, track.write(vai, 0 /* offsetInBytes */, vai.length)); in doTest()
|
D | AudioTrackTest.java | 2320 byte[] vai = AudioHelper.createSoundDataInByteArray(bufferSizeInBytes, TEST_SR, in testVariableRatePlayback() 2322 assertEquals(vai.length, track.write(vai, 0 /* offsetInBytes */, vai.length)); in testVariableRatePlayback()
|