Home
last modified time | relevance | path

Searched refs:sharedBuffer (Results 1 – 12 of 12) sorted by relevance

/frameworks/av/media/libmedia/
DAudioTrack.cpp124 const sp<IMemory>& sharedBuffer, in AudioTrack() argument
141 sharedBuffer, false /*threadCanCallJava*/, sessionId, transferType, offloadInfo, uid); in AudioTrack()
174 const sp<IMemory>& sharedBuffer, in set() argument
183 if (sharedBuffer != 0) { in set()
192 if (cbf == NULL || sharedBuffer != 0) { in set()
199 if (sharedBuffer != 0) { in set()
205 if (sharedBuffer == 0) { in set()
223 ALOGV_IF(sharedBuffer != 0, "sharedBuffer: %p, size: %d", sharedBuffer->pointer(), in set()
224 sharedBuffer->size()); in set()
267 if (format == AUDIO_FORMAT_PCM_8_BIT && sharedBuffer != 0) { in set()
[all …]
DIAudioFlinger.cpp94 const sp<IMemory>& sharedBuffer, in createTrack() argument
112 if (sharedBuffer != 0) { in createTrack()
114 data.writeStrongBinder(sharedBuffer->asBinder()); in createTrack()
/frameworks/av/services/audioflinger/
DPlaybackTracks.h32 const sp<IMemory>& sharedBuffer,
101 sp<IMemory> sharedBuffer() const { return mSharedBuffer; } in sharedBuffer() function
168 const sp<IMemory>& sharedBuffer,
212 const sp<IMemory>& sharedBuffer,
DTracks.cpp69 const sp<IMemory>& sharedBuffer, in TrackBase() argument
105 ALOG_ASSERT(!(client == 0 && sharedBuffer != 0)); in TrackBase()
107 ALOGV_IF(sharedBuffer != 0, "sharedBuffer: %p, size: %d", sharedBuffer->pointer(), in TrackBase()
108 sharedBuffer->size()); in TrackBase()
112 size_t bufferSize = (sharedBuffer == 0 ? roundup(frameCount) : frameCount) * mFrameSize; in TrackBase()
113 if (sharedBuffer == 0) { in TrackBase()
138 if (sharedBuffer == 0) { in TrackBase()
142 mBuffer = sharedBuffer->pointer(); in TrackBase()
327 const sp<IMemory>& sharedBuffer, in Track() argument
331 : TrackBase(thread, client, sampleRate, format, channelMask, frameCount, sharedBuffer, in Track()
[all …]
DTrackBase.h46 const sp<IMemory>& sharedBuffer,
DThreads.cpp1186 const sp<IMemory>& sharedBuffer, in createTrack_l() argument
1207 (sharedBuffer != 0) in createTrack_l()
1242 isTimed, sharedBuffer.get(), frameCount, mFrameCount, format, in createTrack_l()
1324 channelMask, frameCount, sharedBuffer, sessionId, uid, *flags); in createTrack_l()
1327 channelMask, frameCount, sharedBuffer, sessionId, uid); in createTrack_l()
1461 track->mFillingUpStatus = track->sharedBuffer() != 0 ? Track::FS_FILLED : Track::FS_FILLING; in addTrack_l()
2921 if (track->sharedBuffer() == 0) { in prepareTracks_l()
3037 if ((track->sharedBuffer() == 0) && !track->isStopped() && !track->isPausing() && in prepareTracks_l()
3210 if ((track->sharedBuffer() != 0) || track->isTerminated() || in prepareTracks_l()
3614 if ((track->sharedBuffer() == 0) && !track->isStopped() && !track->isPausing()) { in prepareTracks_l()
[all …]
DAudioFlinger.h107 const sp<IMemory>& sharedBuffer,
DThreads.h423 const sp<IMemory>& sharedBuffer,
DAudioFlinger.cpp446 const sp<IMemory>& sharedBuffer, in createTrack() argument
515 channelMask, frameCount, sharedBuffer, lSessionId, flags, tid, clientUid, &lStatus); in createTrack()
/frameworks/av/include/media/
DAudioTrack.h208 const sp<IMemory>& sharedBuffer,
249 const sp<IMemory>& sharedBuffer = 0,
285 sp<IMemory> sharedBuffer() const { return mSharedBuffer; } in sharedBuffer() function
640 const sp<IMemory>& sharedBuffer,
DIAudioFlinger.h69 const sp<IMemory>& sharedBuffer,
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp515 if (track->sharedBuffer() == 0) { in writeToTrack()
524 if ((size_t)sizeInBytes > track->sharedBuffer()->size()) { in writeToTrack()
525 sizeInBytes = track->sharedBuffer()->size(); in writeToTrack()
527 memcpy(track->sharedBuffer()->pointer(), data + offsetInBytes, sizeInBytes); in writeToTrack()
534 if (((size_t)sizeInBytes)*2 > track->sharedBuffer()->size()) { in writeToTrack()
535 sizeInBytes = track->sharedBuffer()->size() / 2; in writeToTrack()
538 int16_t *dst = (int16_t *)track->sharedBuffer()->pointer(); in writeToTrack()