/frameworks/base/media/jni/soundpool/ |
D | SoundPool.cpp | 138 const int32_t streamID = mStreamManager.queueForPlay( in play() local 140 ALOGV("%s returned %d", __func__, streamID); in play() 141 return streamID; in play() 165 void SoundPool::pause(int32_t streamID) in pause() argument 167 ALOGV("%s(%d)", __func__, streamID); in pause() 169 if (soundpool::Stream* stream = mStreamManager.findStream(streamID)) { in pause() 170 stream->pause(streamID); in pause() 174 void SoundPool::resume(int32_t streamID) in resume() argument 176 ALOGV("%s(%d)", __func__, streamID); in resume() 178 if (soundpool::Stream* stream = mStreamManager.findStream(streamID)) { in resume() [all …]
|
D | SoundPool.h | 43 void pause(int32_t streamID); 45 void resume(int32_t streamID); 47 void stop(int32_t streamID); 48 void setVolume(int32_t streamID, float leftVolume, float rightVolume); 49 void setPriority(int32_t streamID, int32_t priority); 50 void setLoop(int32_t streamID, int32_t loop); 51 void setRate(int32_t streamID, float rate);
|
D | Stream.h | 84 bool requestStop(int32_t streamID); 87 void pause(int32_t streamID); 89 void resume(int32_t streamID); 100 void setVolume(int32_t streamID, float leftVolume, float rightVolume); 101 void setRate(int32_t streamID, float rate); 102 void setPriority(int32_t streamID, int priority); 103 void setLoop(int32_t streamID, int loop); 104 void setPlay(int32_t streamID, const std::shared_ptr<Sound> &sound, int32_t soundID, 158 void play_l(const std::shared_ptr<Sound>& sound, int streamID,
|
D | Stream.cpp | 75 void Stream::pause(int32_t streamID) in pause() argument 78 if (streamID == mStreamID) { in pause() 80 ALOGV("%s: track streamID: %d", __func__, streamID); in pause() 89 void Stream::resume(int32_t streamID) in resume() argument 92 if (streamID == mStreamID) { in resume() 94 ALOGV("%s: track streamID: %d", __func__, streamID); in resume() 104 void Stream::setRate(int32_t streamID, float rate) in setRate() argument 107 if (streamID == mStreamID) { in setRate() 125 void Stream::setVolume(int32_t streamID, float leftVolume, float rightVolume) in setVolume() argument 128 if (streamID == mStreamID) { in setVolume() [all …]
|
D | StreamManager.cpp | 71 Stream* StreamMap::findStream(int32_t streamID) const in findStream() 73 Stream *stream = lookupStreamFromId(streamID); in findStream() 74 return stream != nullptr && stream->getStreamID() == streamID ? stream : nullptr; in findStream() 85 Stream* StreamMap::lookupStreamFromId(int32_t streamID) const in lookupStreamFromId() 87 return streamID > 0 ? mPerfectHash->getValue(streamID).load() : nullptr; in lookupStreamFromId() 159 int32_t streamID = 0; in queueForPlay() local 238 streamID = getNextIdForStream(pairStream); in queueForPlay() 240 __func__, newStream, pairStream, streamID); in queueForPlay() 242 streamID, sound, soundID, leftVolume, rightVolume, priority, loop, rate); in queueForPlay() 254 streamID = 0; in queueForPlay() [all …]
|
D | StreamManager.h | 299 Stream* findStream(int32_t streamID) const; 338 Stream* lookupStreamFromId(int32_t streamID) const;
|
/frameworks/base/media/java/android/media/ |
D | SoundPool.java | 328 public native final void pause(int streamID); in pause() argument 340 public native final void resume(int streamID); in resume() argument 371 public native final void stop(int streamID); in stop() argument 385 public final void setVolume(int streamID, float leftVolume, float rightVolume) { in setVolume() argument 390 _setVolume(streamID, leftVolume, rightVolume); in setVolume() 436 public void setVolume(int streamID, float volume) { in setVolume() argument 437 setVolume(streamID, volume, volume); in setVolume() 450 public native final void setPriority(int streamID, int priority); in setPriority() argument 463 public native final void setLoop(int streamID, int loop); in setLoop() argument 477 public native final void setRate(int streamID, float rate); in setRate() argument [all …]
|
/frameworks/base/media/jni/soundpool/tests/ |
D | soundpool_stress.cpp | 159 const int32_t streamID = in testStreams() local 161 if (streamID != 0) { in testStreams() 165 " but callback events(%d) != 1\n", streamID, soundID, events); in testStreams() 168 soundPool->stop(streamID); in testStreams() 186 const int32_t streamID = in testStreams() local 188 if (streamID == 0) { in testStreams() 192 printf(" streamID=%d", streamID); in testStreams() 193 streamIDs.emplace_back(streamID); in testStreams() 206 for (int32_t streamID : streamIDs) { in testStreams() local 207 soundPool->stop(streamID); in testStreams()
|
/frameworks/hardware/interfaces/cameraservice/device/2.0/ |
D | ICameraDeviceUser.hal | 148 * @return streamID new stream ID generated. 151 generates (Status status, int32_t streamID);
|