Home | History | Annotate | Download | only in cts

Lines Matching defs:soundPool

26 import android.media.SoundPool;
44 private SoundPool mSoundPool;
93 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, srcQuality);
142 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, srcQuality);
185 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, srcQuality);
214 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, 0);
237 // The number of possible SoundPool streams simultaneously active is limited by
241 // SoundPool should gracefully degrade to play those streams it can.
246 SoundPool soundPool = null;
248 soundPool = new SoundPool.Builder()
260 final SoundPool fpool = soundPool; // final reference in scope of try block
261 soundPool.setOnLoadCompleteListener(new SoundPool.OnLoadCompleteListener() {
263 public void onLoadComplete(SoundPool pool, int sampleId, int status) {
278 soundIds[i] = soundPool.load(mContext, sounds[i % sounds.length], PRIORITY);
304 streamIds[i] = soundPool.play(soundIds[i],
309 soundPool.autoPause();
311 soundPool.autoResume();
317 soundPool.stop(stream);
320 assertEquals(true, soundPool.unload(sound));
324 assertEquals(false, soundPool.unload(sound));
327 if (soundPool != null) {
328 soundPool.release();
329 soundPool = null;