Home | History | Annotate | Download | only in cts

Lines Matching refs:soundPool

26 import android.media.SoundPool;
46 private SoundPool mSoundPool;
95 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, srcQuality);
144 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, srcQuality);
187 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, srcQuality);
216 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, 0);
239 // The number of possible SoundPool streams simultaneously active is limited by
243 // SoundPool should gracefully degrade to play those streams it can.
248 SoundPool soundPool = null;
250 soundPool = new SoundPool.Builder()
262 final SoundPool fpool = soundPool; // final reference in scope of try block
263 soundPool.setOnLoadCompleteListener(new SoundPool.OnLoadCompleteListener() {
265 public void onLoadComplete(SoundPool pool, int sampleId, int status) {
280 soundIds[i] = soundPool.load(mContext, sounds[i % sounds.length], PRIORITY);
307 streamIds[i] = soundPool.play(soundIds[i],
312 soundPool.autoPause();
314 soundPool.autoResume();
320 soundPool.stop(stream);
323 assertEquals(true, soundPool.unload(sound));
327 assertEquals(false, soundPool.unload(sound));
330 if (soundPool != null) {
331 soundPool.release();
332 soundPool = null;