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 | 47 private SoundPool mSoundPool; field in MediaActionSound 119 mSoundPool = new SoundPool.Builder() in MediaActionSound() 127 mSoundPool.setOnLoadCompleteListener(mLoadCompleteListener); in MediaActionSound() 135 int id = mSoundPool.load(SOUND_FILES[sound.name], 1); in loadSound() 224 mSoundPool.play(sound.id, 1.0f, 1.0f, 0, 0, 1.0f); in play() 278 if (mSoundPool != null) { in release() 285 mSoundPool.release(); in release() 286 mSoundPool = null; in release()
|
/frameworks/base/media/jni/soundpool/ |
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 | 714 mSoundPool = soundPool; in init() 745 audio_stream_type_t streamType = audio_attributes_to_stream_type(mSoundPool->attributes()); in play() 795 NULL /*offloadInfo*/, -1 /*uid*/, -1 /*pid*/, mSoundPool->attributes()); in play() 801 NULL /*offloadInfo*/, -1 /*uid*/, -1 /*pid*/, mSoundPool->attributes()); in play() 941 mSoundPool->addToStopList(this); in process() 972 mSoundPool->done_l(this); in stop_l() 986 mSoundPool->done_l(this); in stop()
|
D | SoundPool.h | 147 SoundPool* mSoundPool; variable
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | SearchBar.java | 150 SoundPool mSoundPool; field in SearchBar 340 mSoundPool = new SoundPool(2, AudioManager.STREAM_SYSTEM, 0); in onAttachedToWindow() 348 mSoundPool.release(); in onDetachedFromWindow() 806 mSoundMap.put(sound, mSoundPool.load(context, sound, 1)); in loadSounds() 815 mSoundPool.play(sound, FULL_LEFT_VOLUME, FULL_RIGHT_VOLUME, DEFAULT_PRIORITY, in play()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 270 private SoundPool mSoundPool; field in AudioService 2791 if (mSoundPool != null) { in run() 2793 mSoundPool.setOnLoadCompleteListener(mSoundPoolCallBack); in run() 4712 if (mSoundPool != null) { in onLoadSoundEffects() 4718 mSoundPool = new SoundPool.Builder() in onLoadSoundEffects() 4745 mSoundPool.release(); in onLoadSoundEffects() 4746 mSoundPool = null; in onLoadSoundEffects() 4775 int sampleId = mSoundPool.load(filePath, 0); in onLoadSoundEffects() 4820 mSoundPool.release(); in onLoadSoundEffects() 4821 mSoundPool = null; in onLoadSoundEffects() [all …]
|