Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/
DSoundPlayer.java32 private final SoundPool mSoundPool; field in SoundPlayer
43 mSoundPool = new SoundPool(1 /* max streams */, audioType, 0 /* quality */); in SoundPlayer()
50 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */); in loadSound()
63 mSoundPool.play(soundId, volume, volume, 0 /* priority */, 0 /* loop */, 1 /* rate */); in play()
74 mSoundPool.unload(soundId); in unloadSound()
83 mSoundPool.release(); in release()
/packages/apps/Nfc/src/com/android/nfc/beam/
DBeamReceiveService.java36 private SoundPool mSoundPool; field in BeamReceiveService
89 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); in onCreate()
90 mSuccessSound = mSoundPool.load(this, R.raw.end, 1); in onCreate()
100 if (mSoundPool != null) { in onDestroy()
101 mSoundPool.release(); in onDestroy()
156 mSoundPool.play(mSuccessSound, 1.0f, 1.0f, 0, 0, 1.0f); in onTransferComplete()
DBeamSendService.java50 SoundPool mSoundPool; field in BeamSendService
72 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); in onCreate()
73 mSuccessSound = mSoundPool.load(this, R.raw.end, 1); in onCreate()
83 if (mSoundPool != null) { in onDestroy()
84 mSoundPool.release(); in onDestroy()
187 mSoundPool.play(mSuccessSound, 1.0f, 1.0f, 0, 0, 1.0f); in onTransferComplete()
/packages/apps/Nfc/src/com/android/nfc/handover/
DPeripheralHandoverService.java61 SoundPool mSoundPool; field in PeripheralHandoverService
132 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); in onCreate()
133 mSuccessSound = mSoundPool.load(this, R.raw.end, 1); in onCreate()
143 if (mSoundPool != null) { in onDestroy()
144 mSoundPool.release(); in onDestroy()
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java221 SoundPool mSoundPool; // playback synchronized on this field in NfcService
411 if (mSoundPool == null) { in initSoundPool()
412 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); in initSoundPool()
413 mStartSound = mSoundPool.load(mContext, R.raw.start, 1); in initSoundPool()
414 mEndSound = mSoundPool.load(mContext, R.raw.end, 1); in initSoundPool()
415 mErrorSound = mSoundPool.load(mContext, R.raw.error, 1); in initSoundPool()
422 if (mSoundPool != null) { in releaseSoundPool()
423 mSoundPool.release(); in releaseSoundPool()
424 mSoundPool = null; in releaseSoundPool()
632 if (mSoundPool == null) { in playSound()
[all …]