Home
last modified time | relevance | path

Searched refs:tocopy (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/media/libaudiojni/
Daudio-record-native.cpp332 size_t tocopy = min(size, b->mSize - b->mOffset); in read() local
335 memcpy(buffer, (char *)b->mData + b->mOffset, tocopy); in read()
336 buffer = (char *)buffer + tocopy; in read()
337 size -= tocopy; in read()
338 b->mOffset += tocopy; in read()
405 size_t tocopy = min(mReadBlob->mSize - mReadBlob->mOffset, b->mSize - b->mOffset); in bufferQueueCallback() local
407 (char *)b->mData + b->mOffset, tocopy); in bufferQueueCallback()
408 b->mOffset += tocopy; in bufferQueueCallback()
409 mReadBlob->mOffset += tocopy; in bufferQueueCallback()
/cts/tests/tests/media/src/android/media/cts/
DMediaExtractorTest.java543 final int tocopy = Math.min(size, bb.remaining()); in readAt() local
544 if (tocopy == 0) { in readAt()
547 bb.get(buffer, offset, tocopy); in readAt()
548 copied += tocopy; in readAt()
549 size -= tocopy; in readAt()
550 offset += tocopy; in readAt()
551 position += tocopy; in readAt()