HomeSort by relevance Sort by last modified time
    Searched refs:soundPool (Results 1 - 11 of 11) sorted by null

  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowSoundPoolTest.java 9 import android.media.SoundPool;
21 SoundPool soundPool = new SoundPool.Builder().build();
22 assertThat(soundPool).isNotNull();
24 SoundPool.OnLoadCompleteListener listener = mock(SoundPool.OnLoadCompleteListener.class);
25 soundPool.setOnLoadCompleteListener(listener);
31 SoundPool soundPool = new SoundPool(1, AudioManager.STREAM_MUSIC, 0)
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
SoundPoolTest.java 26 import android.media.SoundPool;
46 private SoundPool mSoundPool;
95 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, srcQuality);
144 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, srcQuality);
187 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, srcQuality);
216 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, 0);
239 // The number of possible SoundPool streams simultaneously active is limited by
243 // SoundPool should gracefully degrade to play those streams it can.
248 SoundPool soundPool = null
    [all...]
AudioPlaybackConfigurationTest.java 23 import android.media.SoundPool;
45 private SoundPool mSp;
299 // query how many active players before starting the SoundPool
313 mSp = new SoundPool.Builder()
318 final SoundPool zepool = mSp;
320 mSp.setOnLoadCompleteListener(new SoundPool.OnLoadCompleteListener() {
322 public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {
323 assertEquals("Receiving load completion for wrong SoundPool", zepool, mSp);
336 // FIXME SoundPool activity is not reported yet, but exercise creation/release wit
    [all...]
  /frameworks/base/media/jni/soundpool/
SoundPoolThread.cpp 61 SoundPoolThread::SoundPoolThread(SoundPool* soundPool) :
62 mSoundPool(soundPool)
SoundPool.h 35 class SoundPool;
49 typedef void SoundPoolCallback(SoundPoolEvent event, SoundPool* soundPool, void* user);
119 void init(SoundPool* soundPool);
147 SoundPool* mSoundPool;
162 class SoundPool {
166 SoundPool(int maxChannels, const audio_attributes_t* pAttributes);
167 ~SoundPool();
196 SoundPool() {} // no default constructo
    [all...]
android_media_SoundPool.cpp 20 #define LOG_TAG "SoundPool-JNI"
26 #include "SoundPool.h"
35 static inline SoundPool* MusterSoundPool(JNIEnv *env, jobject thiz) {
36 return (SoundPool*)env->GetLongField(thiz, fields.mNativeContext);
54 SoundPool *ap = MusterSoundPool(env, thiz);
63 SoundPool *ap = MusterSoundPool(env, thiz);
74 SoundPool *ap = MusterSoundPool(env, thiz);
83 SoundPool *ap = MusterSoundPool(env, thiz);
92 SoundPool *ap = MusterSoundPool(env, thiz);
101 SoundPool *ap = MusterSoundPool(env, thiz)
    [all...]
SoundPool.cpp 18 #define LOG_TAG "SoundPool"
27 #include "SoundPool.h"
44 SoundPool::SoundPool(int maxChannels, const audio_attributes_t* pAttributes)
46 ALOGV("SoundPool constructor: maxChannels=%d, attr.usage=%d, attr.flags=0x%x, attr.tags=%s",
80 SoundPool::~SoundPool()
82 ALOGV("SoundPool destructor");
99 void SoundPool::addToRestartList(SoundChannel* channel)
108 void SoundPool::addToStopList(SoundChannel* channel
    [all...]
  /frameworks/base/media/java/android/media/
SoundPool.java 43 * 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
    [all...]
MediaActionSound.java 20 import android.media.SoundPool;
47 private SoundPool mSoundPool;
124 mSoundPool = new SoundPool.Builder()
242 private SoundPool.OnLoadCompleteListener mLoadCompleteListener =
243 new SoundPool.OnLoadCompleteListener() {
244 public void onLoadComplete(SoundPool soundPool,
274 soundPool.play(playSoundId, 1.0f, 1.0f, 0, 0, 1.0f);
  /frameworks/base/media/tests/SoundPoolTest/src/com/android/
SoundPoolTest.java 29 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/base/services/core/java/com/android/server/audio/
AudioService.java 90 import android.media.SoundPool;
294 private SoundPool mSoundPool;
304 * uses soundpool (second column) */
561 // listener for SoundPool sample load completion indication
563 // thread for SoundPool listener
565 // message looper for SoundPool listener
    [all...]

Completed in 220 milliseconds