/packages/apps/Camera2/src/com/android/camera/ |
SoundPlayer.java | 32 private final SoundPool mSoundPool; 43 mSoundPool = new SoundPool(1 /* max streams */, audioType, 0 /* quality */); 50 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */); 63 mSoundPool.play(soundId, volume, volume, 0 /* priority */, 0 /* loop */, 1 /* rate */); 74 mSoundPool.unload(soundId); 83 mSoundPool.release();
|
/frameworks/base/media/tests/SoundPoolTest/src/com/android/ |
SoundPoolTest.java | 69 private SoundPool mSoundPool = null; 83 synchronized(mSoundPool) { 89 mSoundPool.notify(); 96 int id = mSoundPool.load(getApplicationContext(), resId, priority); 105 if (mSoundPool != null) { 107 mSoundPool.release(); 108 mSoundPool = null; 114 mSoundPool = new SoundPool(numStreams, AudioSystem.STREAM_MUSIC, 0); 115 mSoundPool.setOnLoadCompleteListener(new LoadCompleteCallback()); 120 synchronized(mSoundPool) { [all...] |
/frameworks/base/media/java/android/media/ |
MediaActionSound.java | 47 private SoundPool mSoundPool; 119 mSoundPool = new SoundPool.Builder() 127 mSoundPool.setOnLoadCompleteListener(mLoadCompleteListener); 135 int id = mSoundPool.load(SOUND_FILES[sound.name], 1); 224 mSoundPool.play(sound.id, 1.0f, 1.0f, 0, 0, 1.0f); 278 if (mSoundPool != null) { 285 mSoundPool.release(); 286 mSoundPool = null;
|
/frameworks/base/media/jni/soundpool/ |
SoundPoolThread.h | 60 SoundPool* mSoundPool;
|
SoundPool.h | 147 SoundPool* mSoundPool;
|
/cts/tests/tests/media/src/android/media/cts/ |
SoundPoolTest.java | 44 private SoundPool mSoundPool; 84 if (mSoundPool != null) { 85 mSoundPool.release(); 86 mSoundPool = null; 93 mSoundPool = new SoundPool(SOUNDPOOL_STREAMS, AudioManager.STREAM_MUSIC, srcQuality); 94 int sampleId1 = mSoundPool.load(mContext, getSoundA(), PRIORITY); 97 mSoundPool.unload(sampleId1); 101 sampleId2 = mSoundPool.load(afd, PRIORITY); 103 mSoundPool.unload(sampleId2); 109 sampleId3 = mSoundPool.load(fd, offset, length, PRIORITY) [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
SoundSystem.java | 35 private SoundPool mSoundPool; 43 mSoundPool = new SoundPool(MAX_STREAMS, AudioManager.STREAM_MUSIC, 0); 54 mSoundPool.release(); 71 result.soundId = mSoundPool.load(context, resource, 1); 85 stream = mSoundPool.play(sound.soundId, 1.0f, 1.0f, priority, loop ? -1 : 0, 1.0f); 97 stream = mSoundPool.play(sound.soundId, volume, volume, priority, loop ? -1 : 0, rate); 107 mSoundPool.stop(stream); 112 mSoundPool.pause(stream); 116 mSoundPool.resume(stream);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
SearchBar.java | 150 SoundPool mSoundPool; 340 mSoundPool = new SoundPool(2, AudioManager.STREAM_SYSTEM, 0); 348 mSoundPool.release(); 806 mSoundMap.put(sound, mSoundPool.load(context, sound, 1)); 815 mSoundPool.play(sound, FULL_LEFT_VOLUME, FULL_RIGHT_VOLUME, DEFAULT_PRIORITY,
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
RVCVRecordActivity.java | 64 private SoundPool mSoundPool; 229 mSoundPool = new SoundPool(1 /*maxStreams*/, AudioManager.STREAM_MUSIC, 0); 233 mSoundMap.put("start", mSoundPool.load(this, R.raw.start_axis, 1)); 234 mSoundMap.put("end", mSoundPool.load(this, R.raw.next_axis, 1)); 235 mSoundMap.put("half-way", mSoundPool.load(this, R.raw.half_way, 1)); 238 mSoundPool.release(); 248 mSoundPool.play(id.intValue(), 0.75f/*left vol*/, 0.75f/*right vol*/, 0 /*priority*/, [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
NfcService.java | 255 SoundPool mSoundPool; // playback synchronized on this 501 if (mSoundPool == null) { 502 mSoundPool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 0); 503 mStartSound = mSoundPool.load(mContext, R.raw.start, 1); 504 mEndSound = mSoundPool.load(mContext, R.raw.end, 1); 505 mErrorSound = mSoundPool.load(mContext, R.raw.error, 1); 512 if (mSoundPool != null) { 513 mSoundPool.release(); 514 mSoundPool = null; 736 if (mSoundPool == null) [all...] |
/frameworks/base/services/core/java/com/android/server/audio/ |
AudioService.java | 270 private SoundPool mSoundPool; [all...] |
/prebuilts/sdk/current/support/v17/leanback/libs/ |
android-support-v17-leanback.jar | |