Home
last modified time | relevance | path

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

/frameworks/av/services/audioflinger/
DPlaybackTracks.h33 const sp<IMemory>& sharedBuffer,
105 sp<IMemory> sharedBuffer() const { return mSharedBuffer; } in sharedBuffer() function
174 const sp<IMemory>& sharedBuffer,
217 const sp<IMemory>& sharedBuffer,
DTracks.cpp382 const sp<IMemory>& sharedBuffer, in Track() argument
388 (sharedBuffer != 0) ? sharedBuffer->pointer() : buffer, in Track()
394 mSharedBuffer(sharedBuffer), in Track()
412 ALOG_ASSERT(!(client == 0 && sharedBuffer != 0)); in Track()
414 ALOGV_IF(sharedBuffer != 0, "sharedBuffer: %p, size: %d", sharedBuffer->pointer(), in Track()
415 sharedBuffer->size()); in Track()
421 if (sharedBuffer == 0) { in Track()
1140 const sp<IMemory>& sharedBuffer, in create() argument
1149 sharedBuffer, sessionId, uid); in create()
1160 const sp<IMemory>& sharedBuffer, in TimedTrack() argument
[all …]
DThreads.cpp1357 const sp<IMemory>& sharedBuffer, in createTrack_l() argument
1379 (sharedBuffer != 0) in createTrack_l()
1419 isTimed, sharedBuffer.get(), frameCount, mFrameCount, format, mFormat, in createTrack_l()
1509 channelMask, frameCount, NULL, sharedBuffer, in createTrack_l()
1513 channelMask, frameCount, sharedBuffer, sessionId, uid); in createTrack_l()
1649 track->mFillingUpStatus = track->sharedBuffer() != 0 ? Track::FS_FILLED : Track::FS_FILLING; in addTrack_l()
3284 if (track->sharedBuffer() == 0) { in prepareTracks_l()
3402 if ((track->sharedBuffer() == 0) && !track->isStopped() && !track->isPausing() && in prepareTracks_l()
3608 if ((track->sharedBuffer() != 0) || track->isTerminated() || in prepareTracks_l()
4058 if ((track->sharedBuffer() == 0) && !track->isStopping_1() && !track->isPausing() in prepareTracks_l()
[all …]
DAudioFlinger.cpp540 const sp<IMemory>& sharedBuffer, in createTrack() argument
582 if (sharedBuffer != 0 && sharedBuffer->pointer() == NULL) { in createTrack()
625 channelMask, frameCount, sharedBuffer, lSessionId, flags, tid, clientUid, &lStatus); in createTrack()
DAudioFlinger.h108 const sp<IMemory>& sharedBuffer,
DThreads.h537 const sp<IMemory>& sharedBuffer,
/frameworks/av/media/libmedia/
DAudioTrack.cpp161 const sp<IMemory>& sharedBuffer, in AudioTrack() argument
180 sharedBuffer, false /*threadCanCallJava*/, sessionId, transferType, offloadInfo, in AudioTrack()
218 const sp<IMemory>& sharedBuffer, in set() argument
234 if (sharedBuffer != 0) { in set()
243 if (cbf == NULL || sharedBuffer != 0) { in set()
250 if (sharedBuffer != 0) { in set()
256 if (sharedBuffer == 0) { in set()
265 mSharedBuffer = sharedBuffer; in set()
268 ALOGV_IF(sharedBuffer != 0, "sharedBuffer: %p, size: %d", sharedBuffer->pointer(), in set()
269 sharedBuffer->size()); in set()
[all …]
DIAudioFlinger.cpp103 const sp<IMemory>& sharedBuffer, in createTrack() argument
122 if (sharedBuffer != 0) { in createTrack()
124 data.writeStrongBinder(sharedBuffer->asBinder()); in createTrack()
/frameworks/av/include/media/
DAudioTrack.h209 const sp<IMemory>& sharedBuffer,
255 const sp<IMemory>& sharedBuffer = 0,
293 sp<IMemory> sharedBuffer() const { return mSharedBuffer; } in sharedBuffer() function
DIAudioFlinger.h70 const sp<IMemory>& sharedBuffer,
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp519 if (track->sharedBuffer() == 0) { in writeToTrack()
533 if ((size_t)sizeInBytes > track->sharedBuffer()->size()) { in writeToTrack()
534 sizeInBytes = track->sharedBuffer()->size(); in writeToTrack()
536 memcpy(track->sharedBuffer()->pointer(), data + offsetInBytes, sizeInBytes); in writeToTrack()
545 if (((size_t)sizeInBytes)*2 > track->sharedBuffer()->size()) { in writeToTrack()
546 sizeInBytes = track->sharedBuffer()->size() / 2; in writeToTrack()
549 int16_t *dst = (int16_t *)track->sharedBuffer()->pointer(); in writeToTrack()