Home
last modified time | relevance | path

Searched refs:mSoundPool (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DSoundPoolTest.java66 private SoundPool mSoundPool; field in SoundPoolTest
113 if (mSoundPool != null) { in tearDown()
114 mSoundPool.release(); in tearDown()
115 mSoundPool = null; in tearDown()
122 mSoundPool = new SoundPool.Builder().setMaxStreams(SOUNDPOOL_STREAMS) in testLoad()
124 int sampleId1 = mSoundPool.load(getContext(), getSoundA(), PRIORITY); in testLoad()
127 mSoundPool.unload(sampleId1); in testLoad()
131 sampleId2 = mSoundPool.load(afd, PRIORITY); in testLoad()
133 mSoundPool.unload(sampleId2); in testLoad()
139 sampleId3 = mSoundPool.load(fd, offset, length, PRIORITY); in testLoad()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java65 private SoundPool mSoundPool; field in RVCVRecordActivity
267 mSoundPool = new SoundPool(1 /*maxStreams*/, AudioManager.STREAM_MUSIC, 0); in initSoundPool()
271 mSoundMap.put("start", mSoundPool.load(this, R.raw.start_axis, 1)); in initSoundPool()
272 mSoundMap.put("end", mSoundPool.load(this, R.raw.next_axis, 1)); in initSoundPool()
273 mSoundMap.put("half-way", mSoundPool.load(this, R.raw.half_way, 1)); in initSoundPool()
276 mSoundPool.release(); in endSoundPool()
286 mSoundPool.play(id.intValue(), 0.75f/*left vol*/, 0.75f/*right vol*/, 0 /*priority*/, in playNotifySound()