Searched refs:mSoundPool (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/media/src/android/media/cts/ |
D | SoundPoolTest.java | 56 private SoundPool mSoundPool; field in SoundPoolTest 103 if (mSoundPool != null) { in tearDown() 104 mSoundPool.release(); in tearDown() 105 mSoundPool = null; in tearDown() 112 mSoundPool = new SoundPool.Builder().setMaxStreams(SOUNDPOOL_STREAMS) in testLoad() 114 int sampleId1 = mSoundPool.load(getContext(), getSoundA(), PRIORITY); in testLoad() 117 mSoundPool.unload(sampleId1); in testLoad() 121 sampleId2 = mSoundPool.load(afd, PRIORITY); in testLoad() 123 mSoundPool.unload(sampleId2); in testLoad() 129 sampleId3 = mSoundPool.load(fd, offset, length, PRIORITY); in testLoad() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVRecordActivity.java | 66 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()
|