/frameworks/base/core/java/android/os/ |
D | MemoryFile.java | 51 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException; in native_read() argument 53 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException; in native_write() argument 193 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) in readBytes() argument 200 || srcOffset < 0 || srcOffset > mLength in readBytes() 201 || count > mLength - srcOffset) { in readBytes() 204 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); in readBytes() 217 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) in writeBytes() argument 222 if (srcOffset < 0 || srcOffset > buffer.length || count < 0 in writeBytes() 223 || count > buffer.length - srcOffset in writeBytes() 228 native_write(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); in writeBytes()
|
/frameworks/base/media/libstagefright/ |
D | DRMExtractor.cpp | 165 size_t srcOffset = 0; in read() local 169 while (srcOffset < len) { in read() 170 CHECK(srcOffset + mNALLengthSize <= len); in read() 172 const uint8_t* data = (const uint8_t*)(&decryptedDrmBuffer.data[srcOffset]); in read() 192 srcOffset += mNALLengthSize; in read() 194 if (srcOffset + nalLength > len) { in read() 213 memcpy(&dstData[dstOffset], &decryptedDrmBuffer.data[srcOffset], nalLength); in read() 214 srcOffset += nalLength; in read() 218 CHECK_EQ(srcOffset, len); in read()
|
D | MPEG4Extractor.cpp | 2140 size_t srcOffset = 0; in read() local 2143 while (srcOffset < size) { in read() 2144 bool isMalFormed = (srcOffset + mNALLengthSize > size); in read() 2147 nalLength = parseNALSize(&mSrcBuffer[srcOffset]); in read() 2148 srcOffset += mNALLengthSize; in read() 2149 isMalFormed = srcOffset + nalLength > size; in read() 2169 memcpy(&dstData[dstOffset], &mSrcBuffer[srcOffset], nalLength); in read() 2170 srcOffset += nalLength; in read() 2173 CHECK_EQ(srcOffset, size); in read()
|
/frameworks/base/core/jni/ |
D | android_os_MemoryFile.cpp | 73 jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, in android_os_MemoryFile_read() argument 83 env->SetByteArrayRegion(buffer, destOffset, count, (const jbyte *)address + srcOffset); in android_os_MemoryFile_read() 92 jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, in android_os_MemoryFile_write() argument 102 env->GetByteArrayRegion(buffer, srcOffset, count, (jbyte *)address + destOffset); in android_os_MemoryFile_write()
|
/frameworks/base/media/libstagefright/matroska/ |
D | MatroskaExtractor.cpp | 448 size_t srcOffset = 0; in read() local 450 while (srcOffset + mNALSizeLen <= srcSize) { in read() 453 case 1: NALsize = srcPtr[srcOffset]; break; in read() 454 case 2: NALsize = U16_AT(srcPtr + srcOffset); break; in read() 455 case 3: NALsize = U24_AT(srcPtr + srcOffset); break; in read() 456 case 4: NALsize = U32_AT(srcPtr + srcOffset); break; in read() 461 if (srcOffset + mNALSizeLen + NALsize > srcSize) { in read() 469 &srcPtr[srcOffset + mNALSizeLen], in read() 476 srcOffset += mNALSizeLen + NALsize; in read() 479 if (srcOffset < srcSize) { in read()
|
/frameworks/base/media/libstagefright/rtsp/ |
D | ARTPWriter.cpp | 761 size_t srcOffset = 0; in sendAMRData() local 762 while (srcOffset < mediaLength) { in sendAMRData() 763 uint8_t toc = mediaData[srcOffset]; in sendAMRData() 769 srcOffset += getFrameSize(isWide, FT); in sendAMRData() 771 CHECK_EQ(srcOffset, mediaLength); in sendAMRData() 811 srcOffset = 0; in sendAMRData() 817 ++srcOffset; // skip toc in sendAMRData() 818 memcpy(&data[dstOffset], &mediaData[srcOffset], frameSize - 1); in sendAMRData() 819 srcOffset += frameSize - 1; in sendAMRData()
|
/frameworks/base/core/jni/android/graphics/ |
D | GraphicsJNI.h | 71 static bool SetPixels(JNIEnv* env, jintArray colors, int srcOffset,
|
D | Bitmap.cpp | 80 int srcOffset, int srcStride, in SetPixels() argument 92 const SkColor* src = (const SkColor*)array + srcOffset; in SetPixels()
|