Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DSoundPoolTest.java46 private SoundPool mSoundPool; field in SoundPoolTest
91 if (mSoundPool != null) { in tearDown()
92 mSoundPool.release(); in tearDown()
93 mSoundPool = null; in tearDown()
99 mSoundPool = new SoundPool.Builder().setMaxStreams(SOUNDPOOL_STREAMS) in testLoad()
101 int sampleId1 = mSoundPool.load(mContext, getSoundA(), PRIORITY); in testLoad()
104 mSoundPool.unload(sampleId1); in testLoad()
108 sampleId2 = mSoundPool.load(afd, PRIORITY); in testLoad()
110 mSoundPool.unload(sampleId2); in testLoad()
116 sampleId3 = mSoundPool.load(fd, offset, length, PRIORITY); in testLoad()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java66 private SoundPool mSoundPool; field in RVCVRecordActivity
268 mSoundPool = new SoundPool(1 /*maxStreams*/, AudioManager.STREAM_MUSIC, 0); in initSoundPool()
272 mSoundMap.put("start", mSoundPool.load(this, R.raw.start_axis, 1)); in initSoundPool()
273 mSoundMap.put("end", mSoundPool.load(this, R.raw.next_axis, 1)); in initSoundPool()
274 mSoundMap.put("half-way", mSoundPool.load(this, R.raw.half_way, 1)); in initSoundPool()
277 mSoundPool.release(); in endSoundPool()
287 mSoundPool.play(id.intValue(), 0.75f/*left vol*/, 0.75f/*right vol*/, 0 /*priority*/, in playNotifySound()