Searched refs:mSoundPool (Results 1 – 3 of 3) sorted by relevance
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | SystemSoundsPlayer.java | 74 private SoundPool mSoundPool; field in SystemSoundsPlayer 95 if (mSoundPool == null || !querySoundEffectsEnabled()) { in playSoundEffect() 105 mSoundPool)); in playSoundEffect() 117 if (mSoundPool == null) { in prepareSoundPool() 118 mSoundPool = new SoundPool.Builder() in prepareSoundPool() 125 mSoundPool.setOnLoadCompleteListener(new SoundPoolLoadCompleteListener()); in prepareSoundPool() 126 mHandler.sendMessage(mHandler.obtainMessage(MSG_PRELOAD_SOUNDS, mSoundPool)); in prepareSoundPool() 134 if (mSoundPool == null) { in releaseSoundPool() 137 mHandler.sendMessage(mHandler.obtainMessage(MSG_UNLOAD_SOUNDS, mSoundPool)); in releaseSoundPool() 138 mSoundPool.setOnLoadCompleteListener(null); in releaseSoundPool() [all …]
|
/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 | 316 SoundPool mSoundPool; // playback synchronized on this field in NfcService 631 if (mSoundPool == null) { in initSoundPool() 632 mSoundPool = new SoundPool.Builder() in initSoundPool() 640 mStartSound = mSoundPool.load(mContext, R.raw.start, 1); in initSoundPool() 641 mEndSound = mSoundPool.load(mContext, R.raw.end, 1); in initSoundPool() 642 mErrorSound = mSoundPool.load(mContext, R.raw.error, 1); in initSoundPool() 649 if (mSoundPool != null) { in releaseSoundPool() 650 mSoundPool.release(); in releaseSoundPool() 651 mSoundPool = null; in releaseSoundPool() 1043 if (mSoundPool == null) { in playSound() [all …]
|