/packages/apps/Camera2/src/com/android/camera/ |
SoundPlayer.java | 29 private final SoundPool mSoundPool; 39 mSoundPool = new SoundPool(1 /* max streams */, audioType, 0 /* quality */); 46 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */); 59 mSoundPool.play(soundId, volume, volume, 0 /* priority */, 0 /* loop */, 1 /* rate */); 70 mSoundPool.unload(soundId); 78 mSoundPool.release();
|
SoundClips.java | 128 // mSoundPool is created every time load() is called and cleared every 130 private SoundPool mSoundPool; 141 mSoundPool = new SoundPool(NUM_SOUND_STREAMS, getAudioTypeForSoundPool(), 0); 142 mSoundPool.setOnLoadCompleteListener(this); 147 mSoundIDs[i] = mSoundPool.load(mContext, SOUND_RES[i], 1); 154 if (mSoundPool != null) { 155 mSoundPool.release(); 156 mSoundPool = null; 170 mSoundIDs[index] = mSoundPool.load(mContext, SOUND_RES[index], 1); 176 mSoundPool.play(mSoundIDs[index], 1f, 1f, 0, 0, 1f) [all...] |
/frameworks/base/media/java/android/media/ |
MediaActionSound.java | 47 private SoundPool mSoundPool; 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;
|
SoundPool.java | 674 private SoundPool mSoundPool; 678 mSoundPool = soundPool; 688 mOnLoadCompleteListener.onLoadComplete(mSoundPool, msg.arg1, msg.arg2);
|
AudioService.java | 230 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...] |
/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/Nfc/src/com/android/nfc/handover/ |
HandoverService.java | 129 SoundPool mSoundPool; 205 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 206 mSuccessSound = mSoundPool.load(this, R.raw.end, 1); 220 if (mSoundPool != null) { 221 mSoundPool.release(); 525 mSoundPool.play(mSuccessSound, 1.0f, 1.0f, 0, 0, 1.0f);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
SearchBar.java | 127 private SoundPool mSoundPool; 313 mSoundPool = new SoundPool(2, AudioManager.STREAM_SYSTEM, 0); 320 mSoundPool.release(); 719 mSoundMap.put(sound, mSoundPool.load(context, sound, 1)); 728 mSoundPool.play(sound, FULL_LEFT_VOLUME, FULL_RIGHT_VOLUME, DEFAULT_PRIORITY,
|
/frameworks/av/include/media/ |
SoundPool.h | 153 SoundPool* mSoundPool;
|
/packages/apps/Nfc/src/com/android/nfc/ |
NfcService.java | 204 SoundPool mSoundPool; // playback synchronized on this 388 if (mSoundPool == null) { 389 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 390 mStartSound = mSoundPool.load(mContext, R.raw.start, 1); 391 mEndSound = mSoundPool.load(mContext, R.raw.end, 1); 392 mErrorSound = mSoundPool.load(mContext, R.raw.error, 1); 399 if (mSoundPool != null) { 400 mSoundPool.release(); 401 mSoundPool = null; 627 if (mSoundPool == null) [all...] |
/prebuilts/sdk/current/support/v17/leanback/libs/ |
android-support-v17-leanback.jar | |