Lines Matching refs:srcBuffer
84 const SharedBuffer& srcBuffer, int64_t srcOffset, in descramble() argument
92 if (srcBuffer.heapBase.size > SIZE_MAX) { in descramble()
93 ALOGE("Invalid memory size: %" PRIu64 "", srcBuffer.heapBase.size); in descramble()
98 void* srcPtr = mmap(NULL, srcBuffer.heapBase.size, PROT_READ | PROT_WRITE, MAP_SHARED, in descramble()
99 srcBuffer.heapBase.fd.get(), 0); in descramble()
107 if (!validateRangeForSize(srcBuffer.offset, srcBuffer.size, srcBuffer.heapBase.size)) { in descramble()
111 srcBuffer.offset, srcBuffer.size, srcBuffer.heapBase.size); in descramble()
125 if (!validateRangeForSize(srcOffset, totalBytesInSubSamples, srcBuffer.size)) { in descramble()
130 srcOffset, totalBytesInSubSamples, srcBuffer.size); in descramble()
134 srcPtr = (uint8_t*)srcPtr + srcBuffer.offset; in descramble()
144 if (!validateRangeForSize(dstOffset, totalBytesInSubSamples, srcBuffer.size)) { in descramble()
149 dstOffset, totalBytesInSubSamples, srcBuffer.size); in descramble()