Searched refs:mSoundPool (Results 1 – 8 of 8) 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 | 45 private SoundPool mSoundPool; field in MediaActionSound 97 mSoundPool = new SoundPool(NUM_MEDIA_SOUND_STREAMS, in MediaActionSound() 99 mSoundPool.setOnLoadCompleteListener(mLoadCompleteListener); in MediaActionSound() 125 mSoundPool.load(SOUND_FILES[soundName], 1); in load() 164 mSoundPool.load(SOUND_FILES[soundName], 1); in play() 167 mSoundPool.play(mSoundIds[soundName], 1.0f, 1.0f, 0, 0, 1.0f); in play() 193 if (mSoundPool != null) { in release() 194 mSoundPool.release(); in release() 195 mSoundPool = null; in release()
|
D | SoundPool.java | 574 private SoundPool mSoundPool; field in SoundPool.SoundPoolImpl.EventHandler 578 mSoundPool = soundPool; in EventHandler() 588 mOnLoadCompleteListener.onLoadComplete(mSoundPool, msg.arg1, msg.arg2); in handleMessage()
|
D | AudioService.java | 190 private SoundPool mSoundPool; field in AudioService 1844 if (mSoundPool != null) { in run() 1846 mSoundPool.setOnLoadCompleteListener(mSoundPoolCallBack); in run() 3288 if (mSoundPool != null) { in onLoadSoundEffects() 3294 mSoundPool = new SoundPool(NUM_SOUNDPOOL_CHANNELS, AudioSystem.STREAM_SYSTEM, 0); in onLoadSoundEffects() 3315 mSoundPool.release(); in onLoadSoundEffects() 3316 mSoundPool = null; in onLoadSoundEffects() 3345 int sampleId = mSoundPool.load(filePath, 0); in onLoadSoundEffects() 3390 mSoundPool.release(); in onLoadSoundEffects() 3391 mSoundPool = null; in onLoadSoundEffects() [all …]
|
/frameworks/av/media/libmedia/ |
D | SoundPoolThread.cpp | 62 mSoundPool(soundPool) in SoundPoolThread() 106 sp <Sample> sample = mSoundPool->findSample(sampleID); in doLoadSample() 111 mSoundPool->notify(SoundPoolEvent(SoundPoolEvent::SAMPLE_LOADED, sampleID, status)); in doLoadSample()
|
D | SoundPoolThread.h | 60 SoundPool* mSoundPool; variable
|
D | SoundPool.cpp | 541 mSoundPool = soundPool; in init() 571 audio_stream_type_t streamType = mSoundPool->streamType(); in play() 752 mSoundPool->addToStopList(this); in process() 780 mSoundPool->done_l(this); in stop_l() 794 mSoundPool->done_l(this); in stop()
|
/frameworks/av/include/media/ |
D | SoundPool.h | 153 SoundPool* mSoundPool; variable
|