Home
last modified time | relevance | path

Searched refs:soundPool (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/media/jni/soundpool/
Dandroid_media_SoundPool.cpp183 JNIEnv *env, jobject thiz, const std::shared_ptr<SoundPool>& soundPool) { in setSoundPool() argument
184 return getSoundPoolManager().set(env, thiz, soundPool); in setSoundPool()
353 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_load_FD() local
354 if (soundPool == nullptr) return 0; in android_media_SoundPool_load_FD()
355 return (jint) soundPool->load(jniGetFDFromFileDescriptor(env, fileDescriptor), in android_media_SoundPool_load_FD()
362 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_unload() local
363 if (soundPool == nullptr) return JNI_FALSE; in android_media_SoundPool_unload()
364 return soundPool->unload(sampleID) ? JNI_TRUE : JNI_FALSE; in android_media_SoundPool_unload()
373 auto soundPool = getSoundPool(env, thiz); in android_media_SoundPool_play() local
374 if (soundPool == nullptr) return 0; in android_media_SoundPool_play()
[all …]
DSoundManager.h42 typedef void SoundPoolCallback(SoundPoolEvent event, SoundPool* soundPool, void* user);
57 void setCallback(SoundPool* soundPool, SoundPoolCallback* callback, void* user);
73 void setCallback(SoundPool *soundPool, SoundPoolCallback* callback, void* userData) in setCallback() argument
76 mSoundPool = soundPool; in setCallback()
DSoundManager.cpp89 void SoundManager::setCallback(SoundPool *soundPool, SoundPoolCallback* callback, void* user) in setCallback() argument
91 mCallbackHandler.setCallback(soundPool, callback, user); in setCallback()
/frameworks/base/media/jni/soundpool/tests/
Dsoundpool_stress.cpp73 void setSoundPool(SoundPool* soundPool) { in setSoundPool() argument
75 mSoundPool = soundPool; in setSoundPool()
78 void callback(SoundPoolEvent event, const SoundPool *soundPool) { in callback() argument
81 if (soundPool != mSoundPool) { in callback()
82 printf("ERROR: mismatched soundpool: %p\n", soundPool); in callback()
111 void StaticCallbackManager(SoundPoolEvent event, SoundPool* soundPool, void* user) { in StaticCallbackManager() argument
112 ((CallbackManager *)user)->callback(event, soundPool); in StaticCallbackManager()
115 void testStreams(SoundPool *soundPool, const std::vector<const char *> &filenames, in testStreams() argument
133 const int32_t soundID = soundPool->load( in testStreams()
160 soundPool->play(soundID, silentVol, silentVol, priority, 0 /*loop*/, rate); in testStreams()
[all …]
/frameworks/base/media/java/android/media/
DMediaActionSound.java268 public void onLoadComplete(SoundPool soundPool,
298 soundPool.play(playSoundId, 1.0f, 1.0f, 0, 0, 1.0f);
DSoundPool.java491 public void onLoadComplete(SoundPool soundPool, int sampleId, int status); in onLoadComplete() argument
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
DSoundPoolTest.java82 public void onLoadComplete(SoundPool soundPool, int sampleId, int status) { in onLoadComplete() argument
/frameworks/base/services/core/java/com/android/server/audio/
DSoundEffectsHelper.java522 public void onLoadComplete(SoundPool soundPool, int sampleId, int status) { in onLoadComplete() argument