/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/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 | 574 private SoundPool mSoundPool; 578 mSoundPool = soundPool; 588 mOnLoadCompleteListener.onLoadComplete(mSoundPool, msg.arg1, msg.arg2);
|
AudioService.java | 184 private SoundPool mSoundPool; [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...] |
/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/Camera2/src/com/android/camera/ |
SoundClips.java | 126 // mSoundPool is created every time load() is called and cleared every 128 private SoundPool mSoundPool; 139 mSoundPool = new SoundPool(NUM_SOUND_STREAMS, getAudioTypeForSoundPool(), 0); 140 mSoundPool.setOnLoadCompleteListener(this); 145 mSoundIDs[i] = mSoundPool.load(mContext, SOUND_RES[i], 1); 152 if (mSoundPool != null) { 153 mSoundPool.release(); 154 mSoundPool = null; 168 mSoundIDs[index] = mSoundPool.load(mContext, SOUND_RES[index], 1); 174 mSoundPool.play(mSoundIDs[index], 1f, 1f, 0, 0, 1f) [all...] |
/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/Camera2/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);
|
/frameworks/av/media/libmedia/ |
SoundPoolThread.cpp | 62 mSoundPool(soundPool) 106 sp <Sample> sample = mSoundPool->findSample(sampleID); 111 mSoundPool->notify(SoundPoolEvent(SoundPoolEvent::SAMPLE_LOADED, sampleID, status));
|
SoundPoolThread.h | 60 SoundPool* mSoundPool;
|
SoundPool.cpp | 541 mSoundPool = soundPool; 571 audio_stream_type_t streamType = mSoundPool->streamType(); 752 mSoundPool->addToStopList(this); 780 mSoundPool->done_l(this); 794 mSoundPool->done_l(this);
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
HandoverService.java | 123 SoundPool mSoundPool; 147 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 148 mSuccessSound = mSoundPool.load(this, R.raw.end, 1); 161 if (mSoundPool != null) { 162 mSoundPool.release(); 439 mSoundPool.play(mSuccessSound, 1.0f, 1.0f, 0, 0, 1.0f);
|
/packages/apps/Nfc/src/com/android/nfc/ |
NfcService.java | 260 SoundPool mSoundPool; // playback synchronized on this 538 if (mSoundPool == null) { 539 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 540 mStartSound = mSoundPool.load(mContext, R.raw.start, 1); 541 mEndSound = mSoundPool.load(mContext, R.raw.end, 1); 542 mErrorSound = mSoundPool.load(mContext, R.raw.error, 1); 549 if (mSoundPool != null) { 550 mSoundPool.release(); 551 mSoundPool = null; [all...] |
/frameworks/av/include/media/ |
SoundPool.h | 153 SoundPool* mSoundPool;
|