Home
last modified time | relevance | path

Searched refs:mSoundPool (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/
DSoundPlayer.java33 private final SoundPool mSoundPool; field in SoundPlayer
43 mSoundPool = new SoundPool.Builder() in SoundPlayer()
57 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */); in loadSound()
70 mSoundPool.play(soundId, volume, volume, 0 /* priority */, 0 /* loop */, 1 /* rate */); in play()
81 mSoundPool.unload(soundId); in unloadSound()
90 mSoundPool.release(); in release()
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java299 SoundPool mSoundPool; // playback synchronized on this field in NfcService
590 if (mSoundPool == null) { in initSoundPool()
591 mSoundPool = new SoundPool.Builder() in initSoundPool()
599 mStartSound = mSoundPool.load(mContext, R.raw.start, 1); in initSoundPool()
600 mEndSound = mSoundPool.load(mContext, R.raw.end, 1); in initSoundPool()
601 mErrorSound = mSoundPool.load(mContext, R.raw.error, 1); in initSoundPool()
608 if (mSoundPool != null) { in releaseSoundPool()
609 mSoundPool.release(); in releaseSoundPool()
610 mSoundPool = null; in releaseSoundPool()
862 if (mSoundPool == null) { in playSound()
[all …]