Searched refs:bytesToCopy (Results 1 – 4 of 4) sorted by relevance
117 int bytesToCopy = Math.min(len, mBytes.remaining()); in read() local118 if (bytesToCopy <= 0) { in read()122 return bytesToCopy; in read()
330 size_t bytesToCopy = availSink < availSource ? availSink : availSource; in audioRecorder_handleMoreData_lockRecord() local332 memcpy(pDest, buffer.data(), bytesToCopy); in audioRecorder_handleMoreData_lockRecord()333 bytesRead = bytesToCopy; in audioRecorder_handleMoreData_lockRecord()334 if (bytesToCopy < availSink) { in audioRecorder_handleMoreData_lockRecord()
1271 size_t bytesToCopy = availSource < availSink ? availSource : availSink; in audioTrack_handleMoreData_lockPlay() local1273 memcpy(buffer.data(), pSrc, bytesToCopy); in audioTrack_handleMoreData_lockPlay()1274 bytesWritten = bytesToCopy; in audioTrack_handleMoreData_lockPlay()1275 if (bytesToCopy < availSource) { in audioTrack_handleMoreData_lockPlay()1276 ap->mBufferQueue.mSizeConsumed += bytesToCopy; in audioTrack_handleMoreData_lockPlay()
695 const size_t bytesToCopy = std::min(mRecycledBitmap->info().minRowBytes(), in copyIfNecessary() local700 memcpy(dst, mSkiaBitmap->getAddr(0, y), bytesToCopy); in copyIfNecessary()