HomeSort by relevance Sort by last modified time
    Searched full:sampleid (Results 1 - 13 of 13) sorted by null

  /frameworks/av/media/libmedia/
SoundPoolThread.cpp 101 void SoundPoolThread::loadSample(int sampleID) {
102 write(SoundPoolMsg(SoundPoolMsg::LOAD_SAMPLE, sampleID));
105 void SoundPoolThread::doLoadSample(int sampleID) {
106 sp <Sample> sample = mSoundPool->findSample(sampleID);
111 mSoundPool->notify(SoundPoolEvent(SoundPoolEvent::SAMPLE_LOADED, sampleID, status));
SoundPoolThread.h 45 void loadSample(int sampleID);
54 void doLoadSample(int sampleID);
SoundPool.cpp 207 mSamples.add(sample->sampleID(), sample);
209 return sample->sampleID();
218 mSamples.add(sample->sampleID(), sample);
220 return sample->sampleID();
225 ALOGV("doLoad: loading sample sampleID=%d", sample->sampleID());
227 mDecodeThread->loadSample(sample->sampleID());
230 bool SoundPool::unload(int sampleID)
232 ALOGV("unload: sampleID=%d", sampleID);
    [all...]
  /frameworks/av/include/media/
SoundPool.h 55 Sample(int sampleID, const char* url);
56 Sample(int sampleID, int fd, int64_t offset, int64_t length);
58 int sampleID() { return mSampleID; }
174 bool unload(int sampleID);
175 int play(int sampleID, float leftVolume, float rightVolume, int priority,
190 void sampleLoaded(int sampleID);
203 sp<Sample> findSample(int sampleID) { return mSamples.valueFor(sampleID); }
  /cts/tests/tests/media/src/android/media/cts/
SoundPoolTest.java 140 int sampleID = loadSampleSync(getSoundA(), PRIORITY);
148 int streamID = mSoundPool.play(sampleID, leftVolume, rightVolume, priority, loop, rate);
162 streamID = mSoundPool.play(sampleID, leftVolume, rightVolume, priority, loop, rate);
177 mSoundPool.unload(sampleID);
238 private int loadSampleSync(int sampleId, int prio) throws InterruptedException {
239 int sample = mSoundPool.load(mContext, sampleId, prio);
246 * @param sampleId The sample ID.
249 private void waitUntilLoaded(int sampleId) throws InterruptedException {
253 stream = mSoundPool.play(sampleId, SILENT, SILENT, 1, 0, 1);
  /frameworks/ml/bordeaux/learning/predictor_histogram/java/android/bordeaux/learning/
HistogramPredictor.java 46 // 3. Add function to remove sampleid (i.e. remove apps that are uninstalled).
274 public void addSample(String sampleId, Map<String, String> features) {
281 counter.addSample(sampleId, featureValue);
284 int sampleCount = (mClassCounts.containsKey(sampleId)) ?
285 mClassCounts.get(sampleId) + 1 : 1;
286 mClassCounts.put(sampleId, sampleCount);
  /frameworks/base/media/jni/soundpool/
android_media_SoundPool_SoundPoolImpl.cpp 68 android_media_SoundPool_SoundPoolImpl_unload(JNIEnv *env, jobject thiz, jint sampleID) {
72 return ap->unload(sampleID);
76 android_media_SoundPool_SoundPoolImpl_play(JNIEnv *env, jobject thiz, jint sampleID,
83 return ap->play(sampleID, leftVolume, rightVolume, priority, loop, rate);
  /frameworks/base/media/java/android/media/
MediaActionSound.java 174 int sampleId, int status) {
176 if (mSoundIdToPlay == sampleId) {
177 soundPool.play(sampleId, 1.0f, 1.0f, 0, 0, 1.0f);
SoundPool.java 377 * @param sampleId the sample ID of the sound loaded.
380 public void onLoadComplete(SoundPool soundPool, int sampleId, int status);
AudioService.java     [all...]
  /external/jmonkeyengine/engine/src/android/com/jme3/audio/android/
AndroidAudioRenderer.java 353 public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {
354 AudioNode src = soundpoolStillLoading.remove(sampleId);
358 + " had sampleId which was not in the HashMap of loading items");
  /frameworks/base/media/tests/SoundPoolTest/src/com/android/
SoundPoolTest.java 82 public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {
84 if (DEBUG) Log.d(LOG_TAG, "Sample " + sampleId + " load status = " + status);
88 if (sampleId == mLastSample) {
  /frameworks/av/media/libstagefright/
MPEG4Writer.cpp 297 void addOneStscTableEntry(size_t chunkId, size_t sampleId);
298 void addOneStssTableEntry(size_t sampleId);
    [all...]

Completed in 821 milliseconds