Home
last modified time | relevance | path

Searched refs:SoundPool (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/media/jni/soundpool/
DSoundPool.cpp87 SoundPool::SoundPool( in SoundPool() function in android::SoundPool
97 SoundPool::~SoundPool() in ~SoundPool()
102 int32_t SoundPool::load(int fd, int64_t offset, int64_t length, int32_t priority) in load()
110 bool SoundPool::unload(int32_t soundID) in unload()
117 int32_t SoundPool::play(int32_t soundID, float leftVolume, float rightVolume, in play()
144 void SoundPool::autoPause() in autoPause()
151 void SoundPool::autoResume() in autoResume()
158 void SoundPool::mute(bool muting) in mute()
165 void SoundPool::pause(int32_t streamID) in pause()
174 void SoundPool::resume(int32_t streamID) in resume()
[all …]
DSoundManager.h28 class SoundPool; variable
42 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()
97 SoundPool* mSoundPool = nullptr; // GUARDED_BY(mCallbackLock)
DSoundPool.h32 class SoundPool {
34 SoundPool(int32_t maxStreams, const audio_attributes_t& attributes,
36 ~SoundPool();
Dandroid_media_SoundPool.cpp170 static ObjectManager<std::shared_ptr<SoundPool>> soundPoolManager(fields.mNativeContext); in getSoundPoolManager()
181 JNIEnv *env, jobject thiz, const std::shared_ptr<SoundPool>& soundPool) { in setSoundPool()
277 static ConcurrentHashMap<SoundPool *, std::shared_ptr<JWeakValue>> concurrentHashMap; in getSoundPoolJavaRefManager()
469 static void android_media_callback(SoundPoolEvent event, SoundPool* soundPool, void* user) in android_media_callback()
522 auto soundPool = std::make_shared<SoundPool>( in android_media_SoundPool_native_setup()
DSoundManager.cpp89 void SoundManager::setCallback(SoundPool *soundPool, SoundPoolCallback* callback, void* user) in setCallback()
DAndroid.bp118 "SoundPool.cpp",
/frameworks/base/media/java/android/media/
DMediaActionSound.java20 import android.media.SoundPool;
51 private SoundPool mSoundPool;
148 mSoundPool = new SoundPool.Builder() in MediaActionSound()
266 private SoundPool.OnLoadCompleteListener mLoadCompleteListener =
267 new SoundPool.OnLoadCompleteListener() {
268 public void onLoadComplete(SoundPool soundPool,
DSoundPool.java114 public class SoundPool extends PlayerBase { class
148 public SoundPool(int maxStreams, int streamType, int srcQuality) { in SoundPool() method in SoundPool
154 private SoundPool(int maxStreams, AudioAttributes attributes) { in SoundPool() method in SoundPool
487 public void onLoadComplete(SoundPool soundPool, int sampleId, int status); in onLoadComplete()
548 mOnLoadCompleteListener.onLoadComplete(SoundPool.this, msg.arg1, msg.arg2); in handleMessage()
599 public SoundPool build() { in build()
604 return new SoundPool(mMaxStreams, mAudioAttributes); in build()
/frameworks/base/media/jni/soundpool/tests/
Dsoundpool_stress.cpp73 void setSoundPool(SoundPool* soundPool) { in setSoundPool()
78 void callback(SoundPoolEvent event, const SoundPool *soundPool) { in callback()
106 SoundPool *mSoundPool = nullptr;
111 void StaticCallbackManager(SoundPoolEvent event, SoundPool* soundPool, void* user) { in StaticCallbackManager()
115 void testStreams(SoundPool *soundPool, const std::vector<const char *> &filenames, in testStreams()
277 auto soundPool = std::make_unique<SoundPool>(maxStreams, aa); in main()
/frameworks/base/media/tests/SoundPoolTest/src/com/android/
DSoundPoolTest.java29 import android.media.SoundPool;
30 import android.media.SoundPool.OnLoadCompleteListener;
69 private SoundPool mSoundPool = null;
81 android.media.SoundPool.OnLoadCompleteListener {
82 public void onLoadComplete(SoundPool soundPool, int sampleId, int status) { in onLoadComplete()
114 mSoundPool = new SoundPool(numStreams, AudioSystem.STREAM_MUSIC, 0); in initSoundPool()
/frameworks/base/services/core/java/com/android/server/audio/
DSoundEffectsHelper.java29 import android.media.SoundPool;
110 private SoundPool mSoundPool;
188 mSoundPool = new SoundPool.Builder() in onLoadSoundEffects()
499 android.media.SoundPool.OnLoadCompleteListener {
520 public void onLoadComplete(SoundPool soundPool, int sampleId, int status) { in onLoadComplete()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java60 import android.media.SoundPool;
409 private SoundPool mLockSounds;
1313 mLockSounds = new SoundPool.Builder() in setupLocked()
/frameworks/base/boot/
Dpreloaded-classes4934 android.media.SoundPool$Builder
4935 android.media.SoundPool$EventHandler
4936 android.media.SoundPool$OnLoadCompleteListener
4937 android.media.SoundPool
Dboot-image-profile.txt11083 HSPLandroid/media/SoundPool$Builder;-><init>()V
11084 HSPLandroid/media/SoundPool$Builder;->build()Landroid/media/SoundPool;
11085 HSPLandroid/media/SoundPool$Builder;->setAudioAttributes(Landroid/media/AudioAttributes;)Landroid/m…
11086 HSPLandroid/media/SoundPool$Builder;->setMaxStreams(I)Landroid/media/SoundPool$Builder;
11087 HSPLandroid/media/SoundPool$EventHandler;->handleMessage(Landroid/os/Message;)V
11088 HSPLandroid/media/SoundPool;-><init>(ILandroid/media/AudioAttributes;)V
11089 HSPLandroid/media/SoundPool;->postEventFromNative(IIILjava/lang/Object;)V
11090 HSPLandroid/media/SoundPool;->setOnLoadCompleteListener(Landroid/media/SoundPool$OnLoadCompleteList…
27404 Landroid/media/SoundPool$Builder;
27405 Landroid/media/SoundPool$EventHandler;
[all …]
/frameworks/base/config/
Dpreloaded-classes4938 android.media.SoundPool$Builder
4939 android.media.SoundPool$EventHandler
4940 android.media.SoundPool$OnLoadCompleteListener
4941 android.media.SoundPool
Dboot-image-profile.txt11085 HSPLandroid/media/SoundPool$Builder;-><init>()V
11086 HSPLandroid/media/SoundPool$Builder;->build()Landroid/media/SoundPool;
11087 HSPLandroid/media/SoundPool$Builder;->setAudioAttributes(Landroid/media/AudioAttributes;)Landroid/m…
11088 HSPLandroid/media/SoundPool$Builder;->setMaxStreams(I)Landroid/media/SoundPool$Builder;
11089 HSPLandroid/media/SoundPool$EventHandler;->handleMessage(Landroid/os/Message;)V
11090 HSPLandroid/media/SoundPool;-><init>(ILandroid/media/AudioAttributes;)V
11091 HSPLandroid/media/SoundPool;->postEventFromNative(IIILjava/lang/Object;)V
11092 HSPLandroid/media/SoundPool;->setOnLoadCompleteListener(Landroid/media/SoundPool$OnLoadCompleteList…
37372 Landroid/media/SoundPool$Builder;
37373 Landroid/media/SoundPool$EventHandler;
[all …]
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt26703 Landroid/media/MediaActionSound;->mLoadCompleteListener:Landroid/media/SoundPool$OnLoadCompleteList…
26704 Landroid/media/MediaActionSound;->mSoundPool:Landroid/media/SoundPool;
30400 Landroid/media/SoundPool$Builder;->mAudioAttributes:Landroid/media/AudioAttributes;
30401 Landroid/media/SoundPool$Builder;->mMaxStreams:I
30402 Landroid/media/SoundPool;-><init>(ILandroid/media/AudioAttributes;)V
30403 Landroid/media/SoundPool;->DEBUG:Z
30404 Landroid/media/SoundPool;->mAttributes:Landroid/media/AudioAttributes;
30405 Landroid/media/SoundPool;->mEventHandler:Landroid/media/SoundPool$EventHandler;
30406 Landroid/media/SoundPool;->mHasAppOpsPlayAudio:Z
30407 Landroid/media/SoundPool;->mLock:Ljava/lang/Object;
[all …]
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt15660 public class SoundPool {
15661 ctor public deprecated SoundPool(int, int, int);
15673 method public void setOnLoadCompleteListener(android.media.SoundPool.OnLoadCompleteListener);
15681 public static class SoundPool.Builder {
15682 ctor public SoundPool.Builder();
15683 method public android.media.SoundPool build();
15684 …method public android.media.SoundPool.Builder setAudioAttributes(android.media.AudioAttributes) th…
15685 …method public android.media.SoundPool.Builder setMaxStreams(int) throws java.lang.IllegalArgumentE…
15688 public static abstract interface SoundPool.OnLoadCompleteListener {
15689 method public abstract void onLoadComplete(android.media.SoundPool, int, int);
/frameworks/base/core/api/
Dcurrent.txt23537 public class SoundPool {
23538 ctor @Deprecated public SoundPool(int, int, int);
23551 method public void setOnLoadCompleteListener(android.media.SoundPool.OnLoadCompleteListener);
23559 public static class SoundPool.Builder {
23560 ctor public SoundPool.Builder();
23561 method public android.media.SoundPool build();
23562 …method public android.media.SoundPool.Builder setAudioAttributes(android.media.AudioAttributes) th…
23563 …method public android.media.SoundPool.Builder setMaxStreams(int) throws java.lang.IllegalArgumentE…
23566 public static interface SoundPool.OnLoadCompleteListener {
23567 method public void onLoadComplete(android.media.SoundPool, int, int);
/frameworks/base/services/
Dart-profile12861 …roid/server/audio/SoundEffectsHelper$SoundPoolLoader;->onLoadComplete(Landroid/media/SoundPool;II)V
12863 …er;->-$$Nest$fgetmSoundPool(Lcom/android/server/audio/SoundEffectsHelper;)Landroid/media/SoundPool;