Searched refs:mSoundPool (Results 1 – 9 of 9) 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 | 47 private SoundPool mSoundPool; field in MediaActionSound 99 mSoundPool = new SoundPool(NUM_MEDIA_SOUND_STREAMS, in MediaActionSound() 101 mSoundPool.setOnLoadCompleteListener(mLoadCompleteListener); in MediaActionSound() 127 mSoundPool.load(SOUND_FILES[soundName], 1); in load() 168 mSoundPool.load(SOUND_FILES[soundName], 1); in play() 171 mSoundPool.play(mSoundIds[soundName], 1.0f, 1.0f, 0, 0, 1.0f); in play() 197 if (mSoundPool != null) { in release() 198 mSoundPool.release(); in release() 199 mSoundPool = null; in release()
|
D | SoundPool.java | 674 private SoundPool mSoundPool; field in SoundPool.SoundPoolImpl.EventHandler 678 mSoundPool = soundPool; in EventHandler() 688 mOnLoadCompleteListener.onLoadComplete(mSoundPool, msg.arg1, msg.arg2); in handleMessage()
|
D | AudioService.java | 232 private SoundPool mSoundPool; field in AudioService 2372 if (mSoundPool != null) { in run() 2374 mSoundPool.setOnLoadCompleteListener(mSoundPoolCallBack); in run() 3983 if (mSoundPool != null) { in onLoadSoundEffects() 3989 mSoundPool = new SoundPool.Builder() in onLoadSoundEffects() 4016 mSoundPool.release(); in onLoadSoundEffects() 4017 mSoundPool = null; in onLoadSoundEffects() 4046 int sampleId = mSoundPool.load(filePath, 0); in onLoadSoundEffects() 4091 mSoundPool.release(); in onLoadSoundEffects() 4092 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 | 553 mSoundPool = soundPool; in init() 583 audio_stream_type_t streamType = audio_attributes_to_stream_type(mSoundPool->attributes()); in play() 764 mSoundPool->addToStopList(this); in process() 792 mSoundPool->done_l(this); in stop_l() 806 mSoundPool->done_l(this); in stop()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | SearchBar.java | 128 private SoundPool mSoundPool; field in SearchBar 315 mSoundPool = new SoundPool(2, AudioManager.STREAM_SYSTEM, 0); in onAttachedToWindow() 322 mSoundPool.release(); in onDetachedFromWindow() 731 mSoundMap.put(sound, mSoundPool.load(context, sound, 1)); in loadSounds() 740 mSoundPool.play(sound, FULL_LEFT_VOLUME, FULL_RIGHT_VOLUME, DEFAULT_PRIORITY, in play()
|
/frameworks/av/include/media/ |
D | SoundPool.h | 153 SoundPool* mSoundPool; variable
|