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 96 if (mSoundPool == null || !querySoundEffectsEnabled()) { in playSoundEffect() 106 mSoundPool)); in playSoundEffect() 118 if (mSoundPool == null) { in prepareSoundPool() 119 mSoundPool = new SoundPool.Builder() in prepareSoundPool() 126 mSoundPool.setOnLoadCompleteListener(new SoundPoolLoadCompleteListener()); in prepareSoundPool() 127 mHandler.sendMessage(mHandler.obtainMessage(MSG_PRELOAD_SOUNDS, mSoundPool)); in prepareSoundPool() 135 if (mSoundPool == null) { in releaseSoundPool() 138 mHandler.sendMessage(mHandler.obtainMessage(MSG_UNLOAD_SOUNDS, mSoundPool)); in releaseSoundPool() 139 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 | 395 SoundPool mSoundPool; // playback synchronized on this field in NfcService 1066 if (mSoundPool == null) { in initSoundPool() 1067 mSoundPool = new SoundPool.Builder() in initSoundPool() 1075 mStartSound = mSoundPool.load(mContext, R.raw.start, 1); in initSoundPool() 1076 mEndSound = mSoundPool.load(mContext, R.raw.end, 1); in initSoundPool() 1077 mErrorSound = mSoundPool.load(mContext, R.raw.error, 1); in initSoundPool() 1084 if (mSoundPool != null) { in releaseSoundPool() 1085 mSoundPool.release(); in releaseSoundPool() 1086 mSoundPool = null; in releaseSoundPool() 1554 if (mSoundPool == null) { in playSound() [all …]
|