Searched refs:mSoundPool (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/media/tests/SoundPoolTest/src/com/android/ |
D | SoundPoolTest.java | 69 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/ |
D | MediaActionSound.java | 51 private SoundPool mSoundPool; field in MediaActionSound 148 mSoundPool = new SoundPool.Builder() in MediaActionSound() 156 mSoundPool.setOnLoadCompleteListener(mLoadCompleteListener); in MediaActionSound() 166 int id = mSoundPool.load(soundDir + soundFileName, 1); in loadSound() 257 mSoundPool.play(sound.id, 1.0f, 1.0f, 0, 0, 1.0f); in play() 311 if (mSoundPool != null) { in release() 318 mSoundPool.release(); in release() 319 mSoundPool = null; in release()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | SoundEffectsHelper.java | 112 private SoundPool mSoundPool; field in SoundEffectsHelper 182 if (mSoundPool != null) { in onLoadSoundEffects() 190 mSoundPool = new SoundPool.Builder() in onLoadSoundEffects() 197 mPlayerAvailableCb.accept(mSoundPool); in onLoadSoundEffects() 216 int sampleId = mSoundPool.load(filePath, 0); in onLoadSoundEffects() 236 if (mSoundPool == null) { in onUnloadSoundEffects() 251 mSoundPool.unload(res.mSampleId); in onUnloadSoundEffects() 255 mSoundPool.release(); in onUnloadSoundEffects() 256 mSoundPool = null; in onUnloadSoundEffects() 270 if (mSoundPool != null && res.mSampleId != EFFECT_NOT_IN_SOUND_POOL && res.mLoaded) { in onPlaySoundEffect() [all …]
|
/frameworks/base/media/jni/soundpool/ |
D | SoundManager.h | 76 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/ |
D | soundpool_stress.cpp | 75 mSoundPool = soundPool; in setSoundPool() 81 if (soundPool != mSoundPool) { in callback() 106 SoundPool *mSoundPool = nullptr; member in __anon5dbf6be30111::CallbackManager
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 26704 Landroid/media/MediaActionSound;->mSoundPool:Landroid/media/SoundPool;
|