/packages/apps/Camera2/src/com/android/camera/ |
H A D | SoundPlayer.java | 29 private final SoundPool mSoundPool; field in class:SoundPlayer 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();
|
H A D | SoundClips.java | 128 // mSoundPool is created every time load() is called and cleared every 130 private SoundPool mSoundPool; field in class:SoundClips.SoundPoolPlayer 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 [all...] |
/packages/apps/Camera/src/com/android/camera/ |
H A D | SoundClips.java | 113 // mSoundPool is created every time load() is called and cleared every 115 private SoundPool mSoundPool; field in class:SoundClips.SoundPoolPlayer 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 [all...] |
/packages/apps/Camera/src/com/android/camera/ui/ |
H A D | CountDownView.java | 44 private SoundPool mSoundPool; field in class:CountDownView 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/beam/ |
H A D | BeamReceiveService.java | 36 private SoundPool mSoundPool; field in class:BeamReceiveService 89 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 90 mSuccessSound = mSoundPool.load(this, R.raw.end, 1); 100 if (mSoundPool != null) { 101 mSoundPool.release(); 156 mSoundPool.play(mSuccessSound, 1.0f, 1.0f, 0, 0, 1.0f);
|
H A D | BeamSendService.java | 50 SoundPool mSoundPool; field in class:BeamSendService 72 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 73 mSuccessSound = mSoundPool.load(this, R.raw.end, 1); 83 if (mSoundPool != null) { 84 mSoundPool.release(); 187 mSoundPool.play(mSuccessSound, 1.0f, 1.0f, 0, 0, 1.0f);
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
H A D | PeripheralHandoverService.java | 57 SoundPool mSoundPool; field in class:PeripheralHandoverService 125 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 126 mSuccessSound = mSoundPool.load(this, R.raw.end, 1); 136 if (mSoundPool != null) { 137 mSoundPool.release();
|
/packages/apps/Nfc/src/com/android/nfc/ |
H A D | NfcService.java | 208 SoundPool mSoundPool; // playback synchronized on this field in class:NfcService 395 if (mSoundPool == null) { 396 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 397 mStartSound = mSoundPool.load(mContext, R.raw.start, 1); 398 mEndSound = mSoundPool.load(mContext, R.raw.end, 1); 399 mErrorSound = mSoundPool.load(mContext, R.raw.error, 1); 406 if (mSoundPool != null) { 407 mSoundPool.release(); 408 mSoundPool = null; 634 if (mSoundPool [all...] |