Searched refs:SoundPool (Results 1 - 12 of 12) sorted by relevance

/frameworks/av/media/libmedia/
H A DSoundPoolThread.h24 #include <media/SoundPool.h>
39 * This class handles background requests from the SoundPool
43 SoundPoolThread(SoundPool* SoundPool);
60 SoundPool* mSoundPool;
H A DSoundPool.cpp18 #define LOG_TAG "SoundPool"
29 #include <media/SoundPool.h>
43 SoundPool::SoundPool(int maxChannels, const audio_attributes_t* pAttributes) function in class:android::SoundPool
45 ALOGV("SoundPool constructor: maxChannels=%d, attr.usage=%d, attr.flags=0x%x, attr.tags=%s",
78 SoundPool::~SoundPool()
80 ALOGV("SoundPool destructor");
97 void SoundPool::addToRestartList(SoundChannel* channel)
106 void SoundPool
[all...]
H A DSoundPoolThread.cpp61 SoundPoolThread::SoundPoolThread(SoundPool* soundPool) :
H A DAndroid.mk60 SoundPool.cpp \
/frameworks/base/media/java/android/media/
H A DMediaActionSound.java20 import android.media.SoundPool;
47 private SoundPool mSoundPool;
99 mSoundPool = new SoundPool(NUM_MEDIA_SOUND_STREAMS,
175 private SoundPool.OnLoadCompleteListener mLoadCompleteListener =
176 new SoundPool.OnLoadCompleteListener() {
177 public void onLoadComplete(SoundPool soundPool,
H A DSoundPool.java43 * The SoundPool class manages and plays audio resources for applications.
45 * <p>A SoundPool is a collection of samples that can be loaded into memory
47 * SoundPool library uses the MediaPlayer service to decode the audio
52 * <p>In addition to low-latency playback, SoundPool can also manage the number
53 * of audio streams being rendered at once. When the SoundPool object is
55 * that can be played at a time from this single SoundPool. SoundPool tracks
57 * SoundPool will automatically stop a previously playing stream based first
78 * the SoundPool was created. In this case, the stream allocator will stop
87 * by that level. In this case, the game logic should create a new SoundPool
114 public class SoundPool { class
132 public SoundPool(int maxStreams, int streamType, int srcQuality) { method in class:SoundPool
137 private SoundPool(int maxStreams, AudioAttributes attributes) { method in class:SoundPool
[all...]
H A DAudioService.java232 private SoundPool mSoundPool;
465 // listener for SoundPool sample load completion indication
467 // thread for SoundPool listener
469 // message looper for SoundPool listener
2383 android.media.SoundPool.OnLoadCompleteListener {
2394 // do not wait ack for samples rejected upfront by SoundPool
2401 public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {
3989 mSoundPool = new SoundPool.Builder()
4010 Log.w(TAG, "onLoadSoundEffects() SoundPool listener or thread creation error");
/frameworks/base/media/jni/soundpool/
H A Dandroid_media_SoundPool_SoundPoolImpl.cpp20 #define LOG_TAG "SoundPool-JNI"
26 #include <media/SoundPool.h>
35 static inline SoundPool* MusterSoundPool(JNIEnv *env, jobject thiz) {
36 return (SoundPool*)env->GetLongField(thiz, fields.mNativeContext);
52 SoundPool *ap = MusterSoundPool(env, thiz);
68 SoundPool *ap = MusterSoundPool(env, thiz);
77 SoundPool *ap = MusterSoundPool(env, thiz);
88 SoundPool *ap = MusterSoundPool(env, thiz);
97 SoundPool *ap = MusterSoundPool(env, thiz);
106 SoundPool *a
[all...]
/frameworks/av/include/media/
H A DSoundPool.h35 class SoundPool;
49 typedef void SoundPoolCallback(SoundPoolEvent event, SoundPool* soundPool, void* user);
127 void init(SoundPool* soundPool);
153 SoundPool* mSoundPool;
166 class SoundPool { class in namespace:android
170 SoundPool(int maxChannels, const audio_attributes_t* pAttributes);
171 ~SoundPool();
199 SoundPool() {} // no default constructor function in class:android::SoundPool
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
H A DSoundPoolTest.java29 import android.media.SoundPool;
30 import android.media.SoundPool.OnLoadCompleteListener;
69 private SoundPool mSoundPool = null;
77 super("SoundPool.TestThread");
81 android.media.SoundPool.OnLoadCompleteListener {
82 public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {
114 mSoundPool = new SoundPool(numStreams, AudioSystem.STREAM_MUSIC, 0);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DSearchBar.java23 import android.media.SoundPool;
128 private SoundPool mSoundPool;
315 mSoundPool = new SoundPool(2, AudioManager.STREAM_SYSTEM, 0);
321 if (DEBUG) Log.v(TAG, "Releasing SoundPool");
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
H A DKeyguardViewMediator.java34 import android.media.SoundPool;
281 private SoundPool mLockSounds;
551 mLockSounds = new SoundPool(1, AudioManager.STREAM_SYSTEM, 0);

Completed in 150 milliseconds