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
124 mSoundPool = new SoundPool.Builder() in MediaActionSound()
132 mSoundPool.setOnLoadCompleteListener(mLoadCompleteListener); in MediaActionSound()
142 int id = mSoundPool.load(soundDir + soundFileName, 1); in loadSound()
233 mSoundPool.play(sound.id, 1.0f, 1.0f, 0, 0, 1.0f); in play()
287 if (mSoundPool != null) { in release()
294 mSoundPool.release(); in release()
295 mSoundPool = null; in release()
/frameworks/base/services/core/java/com/android/server/audio/
DSoundEffectsHelper.java97 private SoundPool mSoundPool; field in SoundEffectsHelper
164 if (mSoundPool != null) { in onLoadSoundEffects()
172 mSoundPool = new SoundPool.Builder() in onLoadSoundEffects()
197 int sampleId = mSoundPool.load(filePath, 0); in onLoadSoundEffects()
217 if (mSoundPool == null) { in onUnloadSoundEffects()
232 mSoundPool.unload(res.mSampleId); in onUnloadSoundEffects()
235 mSoundPool.release(); in onUnloadSoundEffects()
236 mSoundPool = null; in onUnloadSoundEffects()
251 mSoundPool.play(res.mSampleId, volFloat, volFloat, 0, 0, 1.0f); in onPlaySoundEffect()
469 mSoundPool.setOnLoadCompleteListener(this); in SoundPoolLoader()
[all …]
/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()
DSoundPool.cpp718 mSoundPool = soundPool; in init()
750 AudioSystem::attributesToStreamType(*mSoundPool->attributes()); in play()
804 NULL /*offloadInfo*/, -1 /*uid*/, -1 /*pid*/, mSoundPool->attributes()); in play()
810 NULL /*offloadInfo*/, -1 /*uid*/, -1 /*pid*/, mSoundPool->attributes()); in play()
956 mSoundPool->addToStopList(this); in process()
974 if (mSoundPool->attributes()->usage != AUDIO_USAGE_GAME) { in doStop_l()
997 mSoundPool->done_l(this); in stop_l()
1011 mSoundPool->done_l(this); in stop()
DSoundPoolThread.h60 SoundPool* mSoundPool; variable
DSoundPool.h149 SoundPool* mSoundPool; variable
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt36833 Landroid/media/MediaActionSound;->mSoundPool:Landroid/media/SoundPool;