Searched refs:mSoundPool (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/media/java/android/media/
H A DMediaActionSound.java47 private SoundPool mSoundPool; field in class:MediaActionSound
99 mSoundPool = new SoundPool(NUM_MEDIA_SOUND_STREAMS,
101 mSoundPool.setOnLoadCompleteListener(mLoadCompleteListener);
127 mSoundPool.load(SOUND_FILES[soundName], 1);
168 mSoundPool.load(SOUND_FILES[soundName], 1);
171 mSoundPool.play(mSoundIds[soundName], 1.0f, 1.0f, 0, 0, 1.0f);
197 if (mSoundPool != null) {
198 mSoundPool.release();
199 mSoundPool = null;
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
H A DSoundPoolTest.java69 private SoundPool mSoundPool = null; field in class:SoundPoolTest.TestThread
83 synchronized(mSoundPool) {
89 mSoundPool.notify();
96 int id = mSoundPool.load(getApplicationContext(), resId, priority);
105 if (mSoundPool != null) {
107 mSoundPool.release();
108 mSoundPool = null;
114 mSoundPool = new SoundPool(numStreams, AudioSystem.STREAM_MUSIC, 0);
115 mSoundPool.setOnLoadCompleteListener(new LoadCompleteCallback());
120 synchronized(mSoundPool) {
[all...]
/frameworks/base/media/jni/soundpool/
H A DSoundPoolThread.cpp62 mSoundPool(soundPool)
106 sp <Sample> sample = mSoundPool->findSample(sampleID);
111 mSoundPool->notify(SoundPoolEvent(SoundPoolEvent::SAMPLE_LOADED, sampleID, status));
H A DSoundPoolThread.h60 SoundPool* mSoundPool; member in class:android::SoundPoolThread
H A DSoundPool.cpp663 mSoundPool = soundPool;
694 audio_stream_type_t streamType = audio_attributes_to_stream_type(mSoundPool->attributes());
744 NULL /*offloadInfo*/, -1 /*uid*/, -1 /*pid*/, mSoundPool->attributes());
750 NULL /*offloadInfo*/, -1 /*uid*/, -1 /*pid*/, mSoundPool->attributes());
890 mSoundPool->addToStopList(this);
921 mSoundPool->done_l(this);
935 mSoundPool->done_l(this);
H A DSoundPool.h146 SoundPool* mSoundPool; member in class:android::SoundChannel
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DSearchBar.java128 private SoundPool mSoundPool; field in class:SearchBar
315 mSoundPool = new SoundPool(2, AudioManager.STREAM_SYSTEM, 0);
323 mSoundPool.release();
736 mSoundMap.put(sound, mSoundPool.load(context, sound, 1));
745 mSoundPool.play(sound, FULL_LEFT_VOLUME, FULL_RIGHT_VOLUME, DEFAULT_PRIORITY,
/frameworks/base/services/core/java/com/android/server/audio/
H A DAudioService.java248 private SoundPool mSoundPool; field in class:AudioService
2385 if (mSoundPool != null) {
2387 mSoundPool.setOnLoadCompleteListener(mSoundPoolCallBack);
4091 if (mSoundPool != null) {
4097 mSoundPool = new SoundPool.Builder()
4124 mSoundPool.release();
4125 mSoundPool = null;
4154 int sampleId = mSoundPool.load(filePath, 0);
4199 mSoundPool.release();
4200 mSoundPool
[all...]

Completed in 282 milliseconds