/frameworks/base/media/java/android/media/ |
MediaActionSound.java | 45 private SoundPool mSoundPool; 97 mSoundPool = new SoundPool(NUM_MEDIA_SOUND_STREAMS, 99 mSoundPool.setOnLoadCompleteListener(mLoadCompleteListener); 125 mSoundPool.load(SOUND_FILES[soundName], 1); 164 mSoundPool.load(SOUND_FILES[soundName], 1); 167 mSoundPool.play(mSoundIds[soundName], 1.0f, 1.0f, 0, 0, 1.0f); 193 if (mSoundPool != null) { 194 mSoundPool.release(); 195 mSoundPool = null;
|
SoundPool.java | 444 private SoundPool mSoundPool; 448 mSoundPool = soundPool; 458 mOnLoadCompleteListener.onLoadComplete(mSoundPool, msg.arg1, msg.arg2);
|
AudioService.java | 193 private SoundPool mSoundPool; [all...] |
/packages/apps/Camera/src/com/android/camera/ |
SoundClips.java | 113 // mSoundPool is created every time load() is called and cleared every 115 private SoundPool mSoundPool; 128 mSoundPool = new SoundPool(NUM_SOUND_STREAMS, audioType, 0); 129 mSoundPool.setOnLoadCompleteListener(this); 134 mSoundIDs[i] = mSoundPool.load(mContext, SOUND_RES[i], 1); 141 if (mSoundPool != null) { 142 mSoundPool.release(); 143 mSoundPool = null; 157 mSoundIDs[index] = mSoundPool.load(mContext, SOUND_RES[index], 1); 163 mSoundPool.play(mSoundIDs[index], 1f, 1f, 0, 0, 1f) [all...] |
/packages/apps/Gallery2/src/com/android/camera/ |
SoundClips.java | 119 // mSoundPool is created every time load() is called and cleared every 121 private SoundPool mSoundPool; 132 mSoundPool = new SoundPool(NUM_SOUND_STREAMS, getAudioTypeForSoundPool(), 0); 133 mSoundPool.setOnLoadCompleteListener(this); 138 mSoundIDs[i] = mSoundPool.load(mContext, SOUND_RES[i], 1); 145 if (mSoundPool != null) { 146 mSoundPool.release(); 147 mSoundPool = null; 161 mSoundIDs[index] = mSoundPool.load(mContext, SOUND_RES[index], 1); 167 mSoundPool.play(mSoundIDs[index], 1f, 1f, 0, 0, 1f) [all...] |
/frameworks/base/media/tests/SoundPoolTest/src/com/android/ |
SoundPoolTest.java | 69 private SoundPool mSoundPool = null; 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...] |
/cts/tests/tests/media/src/android/media/cts/ |
SoundPoolTest.java | 41 private SoundPool mSoundPool; 81 if (mSoundPool != null) { 82 mSoundPool.release(); 83 mSoundPool = null; 90 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, srcQuality); 91 int sampleId1 = mSoundPool.load(mContext, getSoundA(), PRIORITY); 94 mSoundPool.unload(sampleId1); 98 sampleId2 = mSoundPool.load(afd, PRIORITY); 100 mSoundPool.unload(sampleId2); 106 sampleId3 = mSoundPool.load(fd, offset, length, PRIORITY) [all...] |
/frameworks/av/media/libmedia/ |
SoundPoolThread.h | 60 SoundPool* mSoundPool;
|
/external/replicaisland/src/com/replica/replicaisland/ |
SoundSystem.java | 35 private SoundPool mSoundPool; 43 mSoundPool = new SoundPool(MAX_STREAMS, AudioManager.STREAM_MUSIC, 0); 54 mSoundPool.release(); 71 result.soundId = mSoundPool.load(context, resource, 1); 85 stream = mSoundPool.play(sound.soundId, 1.0f, 1.0f, priority, loop ? -1 : 0, 1.0f); 97 stream = mSoundPool.play(sound.soundId, volume, volume, priority, loop ? -1 : 0, rate); 107 mSoundPool.stop(stream); 112 mSoundPool.pause(stream); 116 mSoundPool.resume(stream);
|
/packages/apps/Camera/src/com/android/camera/ui/ |
CountDownView.java | 44 private SoundPool mSoundPool; 54 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 55 mBeepOnce = mSoundPool.load(context, R.raw.beep_once, 1); 56 mBeepTwice = mSoundPool.load(context, R.raw.beep_twice, 1); 85 mSoundPool.play(mBeepTwice, 1.0f, 1.0f, 0, 0, 1.0f); 87 mSoundPool.play(mBeepOnce, 1.0f, 1.0f, 0, 0, 1.0f);
|
/packages/apps/Gallery2/src/com/android/camera/ui/ |
CountDownView.java | 44 private SoundPool mSoundPool; 54 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 55 mBeepOnce = mSoundPool.load(context, R.raw.beep_once, 1); 56 mBeepTwice = mSoundPool.load(context, R.raw.beep_twice, 1); 85 mSoundPool.play(mBeepTwice, 1.0f, 1.0f, 0, 0, 1.0f); 87 mSoundPool.play(mBeepOnce, 1.0f, 1.0f, 0, 0, 1.0f);
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
HandoverService.java | 107 SoundPool mSoundPool; 131 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 132 mSuccessSound = mSoundPool.load(this, R.raw.end, 1); 145 if (mSoundPool != null) { 146 mSoundPool.release(); 409 mSoundPool.play(mSuccessSound, 1.0f, 1.0f, 0, 0, 1.0f);
|
/frameworks/av/include/media/ |
SoundPool.h | 150 SoundPool* mSoundPool;
|
/packages/apps/Nfc/src/com/android/nfc/ |
NfcService.java | 240 SoundPool mSoundPool; // playback synchronized on this 450 if (mSoundPool == null) { 451 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 452 mStartSound = mSoundPool.load(mContext, R.raw.start, 1); 453 mEndSound = mSoundPool.load(mContext, R.raw.end, 1); 454 mErrorSound = mSoundPool.load(mContext, R.raw.error, 1); 461 if (mSoundPool != null) { 462 mSoundPool.release(); 463 mSoundPool = null; 813 if (mSoundPool == null) [all...] |