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

/packages/apps/Camera/src/com/android/camera/
H A DSoundClips.java113 // 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/Gallery2/src/com/android/camera/
H A DSoundClips.java119 // mSoundPool is created every time load() is called and cleared every
121 private SoundPool mSoundPool; field in class:SoundClips.SoundPoolPlayer
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
[all...]
/packages/apps/Camera/src/com/android/camera/ui/
H A DCountDownView.java44 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/Gallery2/src/com/android/camera/ui/
H A DCountDownView.java44 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/handover/
H A DHandoverService.java107 SoundPool mSoundPool; field in class:HandoverService
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);
/packages/apps/Nfc/src/com/android/nfc/
H A DNfcService.java240 SoundPool mSoundPool; // playback synchronized on this field in class:NfcService
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
[all...]

Completed in 213 milliseconds