Home
last modified time | relevance | path

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

/frameworks/base/media/tests/SoundPoolTest/src/com/android/
DSoundPoolTest.java69 private SoundPool mSoundPool = null; field in SoundPoolTest.TestThread
83 synchronized(mSoundPool) { in onLoadComplete()
89 mSoundPool.notify(); in onLoadComplete()
96 int id = mSoundPool.load(getApplicationContext(), resId, priority); in loadSound()
105 if (mSoundPool != null) { in initSoundPool()
107 mSoundPool.release(); in initSoundPool()
108 mSoundPool = null; in initSoundPool()
114 mSoundPool = new SoundPool(numStreams, AudioSystem.STREAM_MUSIC, 0); in initSoundPool()
115 mSoundPool.setOnLoadCompleteListener(new LoadCompleteCallback()); in initSoundPool()
120 synchronized(mSoundPool) { in initSoundPool()
[all …]
/frameworks/base/media/java/android/media/
DMediaActionSound.java47 private SoundPool mSoundPool; field in MediaActionSound
119 mSoundPool = new SoundPool.Builder() in MediaActionSound()
127 mSoundPool.setOnLoadCompleteListener(mLoadCompleteListener); in MediaActionSound()
135 int id = mSoundPool.load(SOUND_FILES[sound.name], 1); in loadSound()
224 mSoundPool.play(sound.id, 1.0f, 1.0f, 0, 0, 1.0f); in play()
278 if (mSoundPool != null) { in release()
285 mSoundPool.release(); in release()
286 mSoundPool = null; in release()
/frameworks/base/media/jni/soundpool/
DSoundPoolThread.cpp62 mSoundPool(soundPool) in SoundPoolThread()
106 sp <Sample> sample = mSoundPool->findSample(sampleID); in doLoadSample()
111 mSoundPool->notify(SoundPoolEvent(SoundPoolEvent::SAMPLE_LOADED, sampleID, status)); in doLoadSample()
DSoundPoolThread.h60 SoundPool* mSoundPool; variable
DSoundPool.cpp700 mSoundPool = soundPool; in init()
731 audio_stream_type_t streamType = audio_attributes_to_stream_type(mSoundPool->attributes()); in play()
781 NULL /*offloadInfo*/, -1 /*uid*/, -1 /*pid*/, mSoundPool->attributes()); in play()
787 NULL /*offloadInfo*/, -1 /*uid*/, -1 /*pid*/, mSoundPool->attributes()); in play()
927 mSoundPool->addToStopList(this); in process()
958 mSoundPool->done_l(this); in stop_l()
972 mSoundPool->done_l(this); in stop()
DSoundPool.h146 SoundPool* mSoundPool; variable
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DSearchBar.java151 SoundPool mSoundPool; field in SearchBar
339 mSoundPool = new SoundPool(2, AudioManager.STREAM_SYSTEM, 0); in onAttachedToWindow()
347 mSoundPool.release(); in onDetachedFromWindow()
781 mSoundMap.put(sound, mSoundPool.load(context, sound, 1)); in loadSounds()
790 mSoundPool.play(sound, FULL_LEFT_VOLUME, FULL_RIGHT_VOLUME, DEFAULT_PRIORITY, in play()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java249 private SoundPool mSoundPool; field in AudioService
2568 if (mSoundPool != null) { in run()
2570 mSoundPool.setOnLoadCompleteListener(mSoundPoolCallBack); in run()
4339 if (mSoundPool != null) { in onLoadSoundEffects()
4345 mSoundPool = new SoundPool.Builder() in onLoadSoundEffects()
4372 mSoundPool.release(); in onLoadSoundEffects()
4373 mSoundPool = null; in onLoadSoundEffects()
4402 int sampleId = mSoundPool.load(filePath, 0); in onLoadSoundEffects()
4447 mSoundPool.release(); in onLoadSoundEffects()
4448 mSoundPool = null; in onLoadSoundEffects()
[all …]