/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...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowSoundPool.java | 9 import android.media.SoundPool; 15 @Implements(SoundPool.class) 18 SoundPool realObject; 25 invokeConstructor(SoundPool.class, realObject,
|
/frameworks/base/media/jni/soundpool/ |
SoundPoolThread.h | 24 #include "SoundPool.h" 39 * This class handles background requests from the SoundPool 43 explicit SoundPoolThread(SoundPool* SoundPool); 60 SoundPool* mSoundPool;
|
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...] |
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...] |
SoundPoolThread.cpp | 61 SoundPoolThread::SoundPoolThread(SoundPool* soundPool) : 62 mSoundPool(soundPool)
|
/packages/apps/Camera2/src/com/android/camera/ |
SoundPlayer.java | 21 import android.media.SoundPool; 32 private final SoundPool mSoundPool; 43 mSoundPool = new SoundPool(1 /* max streams */, audioType, 0 /* quality */);
|
/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);
|
/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...] |
/external/replicaisland/src/com/replica/replicaisland/ |
SoundSystem.java | 23 import android.media.SoundPool; 35 private SoundPool mSoundPool; 43 mSoundPool = new SoundPool(MAX_STREAMS, AudioManager.STREAM_MUSIC, 0); 131 // that SoundPool does internally here, I've opted to just pause looping
|
/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/support/leanback/src/main/java/androidx/leanback/widget/ |
SearchBar.java | 24 import android.media.SoundPool; 143 SoundPool mSoundPool; 332 if (DEBUG) Log.v(TAG, "Loading soundPool"); 333 mSoundPool = new SoundPool(2, AudioManager.STREAM_SYSTEM, 0); 340 if (DEBUG) Log.v(TAG, "Releasing SoundPool");
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
RVCVRecordActivity.java | 30 import android.media.SoundPool; 64 private SoundPool mSoundPool; 256 mSoundPool = new SoundPool(1 /*maxStreams*/, AudioManager.STREAM_MUSIC, 0); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
KeyguardViewMediator.java | 40 import android.media.SoundPool; 305 private SoundPool mLockSounds; 734 mLockSounds = new SoundPool(1, AudioManager.STREAM_SYSTEM, 0); [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
NfcService.java | 39 import android.media.SoundPool; 261 SoundPool mSoundPool; // playback synchronized on this 520 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); [all...] |
/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...] |
/prebuilts/sdk/21/ |
android.jar | |
/prebuilts/sdk/27/ |
android.jar | |
/prebuilts/sdk/28/ |
android.jar | |
/prebuilts/sdk/current/ |
android.jar | |
/prebuilts/sdk/system_23/ |
android.jar | |
/prebuilts/sdk/system_28/ |
android.jar | |