/aosp12/frameworks/base/media/tests/SoundPoolTest/src/com/android/ |
H A D | SoundPoolTest.java | 105 if (mSoundPool != null) { in initSoundPool() 107 mSoundPool.release(); in initSoundPool() 108 mSoundPool = null; in initSoundPool() 125 mSoundPool.wait(); in initSoundPool() 142 mSoundPool.stop(id); in TestSounds() 164 mSoundPool.stop(id); in TestScales() 191 mSoundPool.stop(id); in TestRates() 217 mSoundPool.stop(id); in TestPriority() 271 mSoundPool.stop(id); in TestPauseResume() 327 mSoundPool.stop(id); in TestVolume() [all …]
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
H A 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() 134 if (mSoundPool == null) { in releaseSoundPool() 137 mHandler.sendMessage(mHandler.obtainMessage(MSG_UNLOAD_SOUNDS, mSoundPool)); in releaseSoundPool() 138 mSoundPool.setOnLoadCompleteListener(null); in releaseSoundPool() 139 mSoundPool = null; in releaseSoundPool() [all …]
|
/aosp12/packages/apps/Camera2/src/com/android/camera/ |
H A 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()
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | MediaActionSound.java | 47 private SoundPool mSoundPool; field in MediaActionSound 124 mSoundPool = new SoundPool.Builder() in MediaActionSound() 132 mSoundPool.setOnLoadCompleteListener(mLoadCompleteListener); in MediaActionSound() 142 int id = mSoundPool.load(soundDir + soundFileName, 1); in loadSound() 233 mSoundPool.play(sound.id, 1.0f, 1.0f, 0, 0, 1.0f); in play() 287 if (mSoundPool != null) { in release() 294 mSoundPool.release(); in release() 295 mSoundPool = null; in release()
|
/aosp12/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | SoundEffectsHelper.java | 108 private SoundPool mSoundPool; field in SoundEffectsHelper 175 if (mSoundPool != null) { in onLoadSoundEffects() 183 mSoundPool = new SoundPool.Builder() in onLoadSoundEffects() 208 int sampleId = mSoundPool.load(filePath, 0); in onLoadSoundEffects() 228 if (mSoundPool == null) { in onUnloadSoundEffects() 243 mSoundPool.unload(res.mSampleId); in onUnloadSoundEffects() 247 mSoundPool.release(); in onUnloadSoundEffects() 248 mSoundPool = null; in onUnloadSoundEffects() 504 mSoundPool.setOnLoadCompleteListener(this); in SoundPoolLoader() 549 if (mSoundPool != null) { in onComplete() [all …]
|
/aosp12/frameworks/base/media/jni/soundpool/ |
H A D | SoundManager.h | 76 mSoundPool = soundPool; in setCallback() 84 mCallback(event, mSoundPool, mUserData); in notify() 97 SoundPool* mSoundPool = nullptr; // GUARDED_BY(mCallbackLock) variable
|
/aosp12/frameworks/base/media/jni/soundpool/tests/ |
H A D | soundpool_stress.cpp | 75 mSoundPool = soundPool; in setSoundPool() 81 if (soundPool != mSoundPool) { in callback() 106 SoundPool *mSoundPool = nullptr; member in __anon31cb02cf0110::CallbackManager
|
/aosp12/packages/apps/Nfc/src/com/android/nfc/ |
H A 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 …]
|
/aosp12/frameworks/base/boot/hiddenapi/ |
H A D | hiddenapi-max-target-o.txt | 29582 Landroid/media/MediaActionSound;->mSoundPool:Landroid/media/SoundPool;
|