Home
last modified time | relevance | path

Searched refs:mSoundPool (Results 1 – 6 of 6) 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.java108 private SoundPool mSoundPool; field in SoundEffectsHelper
175 if (mSoundPool != null) { in onLoadSoundEffects()
183 mSoundPool = new SoundPool.Builder() in onLoadSoundEffects()
208 int sampleId = mSoundPool.load(filePath, 0); in onLoadSoundEffects()
228 if (mSoundPool == null) { in onUnloadSoundEffects()
243 mSoundPool.unload(res.mSampleId); in onUnloadSoundEffects()
247 mSoundPool.release(); in onUnloadSoundEffects()
248 mSoundPool = null; in onUnloadSoundEffects()
262 if (mSoundPool != null && res.mSampleId != EFFECT_NOT_IN_SOUND_POOL && res.mLoaded) { in onPlaySoundEffect()
263 mSoundPool.play(res.mSampleId, volFloat, volFloat, 0, 0, 1.0f); in onPlaySoundEffect()
[all …]
/frameworks/base/media/jni/soundpool/
DSoundManager.h76 mSoundPool = soundPool; in setCallback()
84 mCallback(event, mSoundPool, mUserData); in notify()
97 SoundPool* mSoundPool = nullptr; // GUARDED_BY(mCallbackLock) variable
/frameworks/base/media/jni/soundpool/tests/
Dsoundpool_stress.cpp75 mSoundPool = soundPool; in setSoundPool()
81 if (soundPool != mSoundPool) { in callback()
106 SoundPool *mSoundPool = nullptr; member in __anonbcb8f30a0111::CallbackManager
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt29582 Landroid/media/MediaActionSound;->mSoundPool:Landroid/media/SoundPool;