Searched refs:mSoundPool (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Camera2/src/com/android/camera/ |
D | SoundPlayer.java | 33 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/ |
D | NfcService.java | 296 SoundPool mSoundPool; // playback synchronized on this field in NfcService 584 if (mSoundPool == null) { in initSoundPool() 585 mSoundPool = new SoundPool.Builder() in initSoundPool() 593 mStartSound = mSoundPool.load(mContext, R.raw.start, 1); in initSoundPool() 594 mEndSound = mSoundPool.load(mContext, R.raw.end, 1); in initSoundPool() 595 mErrorSound = mSoundPool.load(mContext, R.raw.error, 1); in initSoundPool() 602 if (mSoundPool != null) { in releaseSoundPool() 603 mSoundPool.release(); in releaseSoundPool() 604 mSoundPool = null; in releaseSoundPool() 854 if (mSoundPool == null) { in playSound() [all …]
|