Home
last modified time | relevance | path

Searched refs:srcOffset (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DArrayUtils.java69 public static int copy(byte[] src, int srcOffset, byte[] dst, int dstOffset, int length) { in copy() argument
76 if (length > src.length - srcOffset) { in copy()
77 length = src.length - srcOffset; in copy()
82 System.arraycopy(src, srcOffset, dst, dstOffset, length); in copy()
/frameworks/base/media/java/android/media/
DImageUtils.java153 int srcOffset = srcBuffer.position(); in imageCopy() local
162 int remainingBytes = srcBuffer.remaining() - srcOffset; in imageCopy()
167 directByteBufferCopy(srcBuffer, srcOffset, dstBuffer, dstOffset, srcByteCount); in imageCopy()
168 srcOffset += srcRowStride; in imageCopy()
277 private static void directByteBufferCopy(ByteBuffer srcBuffer, int srcOffset, in directByteBufferCopy() argument
279 Memory.memmove(dstBuffer, dstOffset, srcBuffer, srcOffset, srcByteCount); in directByteBufferCopy()
DMediaDescrambler.java250 @NonNull ByteBuffer srcBuf, int srcOffset, int srcLimit, in native_descramble() argument
/frameworks/base/core/java/android/util/proto/
DEncodedBuffer.java430 public void writeFromThisBuffer(int srcOffset, int size) {
434 if (srcOffset < getWritePos()) {
436 + " srcOffset=" + srcOffset + " size=" + size + " " + getDebugString());
438 if (srcOffset + size > mReadableSize) {
440 + " srcOffset=" + srcOffset + " size=" + size + " " + getDebugString());
445 if (srcOffset == ((mWriteBufIndex) * mChunkSize) + mWriteIndex /* write pos */) {
469 int readBufIndex = srcOffset / mChunkSize;
471 int readIndex = srcOffset % mChunkSize;
/frameworks/base/core/java/android/os/
DMemoryFile.java187 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) in readBytes() argument
191 mMapping.position(srcOffset); in readBytes()
209 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) in writeBytes() argument
214 mMapping.put(buffer, srcOffset, count); in writeBytes()
/frameworks/av/media/libstagefright/rtsp/
DARTPWriter.cpp763 size_t srcOffset = 0; in sendAMRData() local
764 while (srcOffset < mediaLength) { in sendAMRData()
765 uint8_t toc = mediaData[srcOffset]; in sendAMRData()
771 srcOffset += getFrameSize(isWide, FT); in sendAMRData()
773 CHECK_EQ(srcOffset, mediaLength); in sendAMRData()
813 srcOffset = 0; in sendAMRData()
819 ++srcOffset; // skip toc in sendAMRData()
820 memcpy(&data[dstOffset], &mediaData[srcOffset], frameSize - 1); in sendAMRData()
821 srcOffset += frameSize - 1; in sendAMRData()
/frameworks/base/media/jni/
Dandroid_media_MediaDescrambler.cpp58 jint srcOffset,
207 jint srcOffset, in descramble() argument
224 (const void*)((const uint8_t*)srcPtr + srcOffset), totalLength); in descramble()
380 jobject srcBuf, jint srcOffset, jint srcLimit, in android_media_MediaDescrambler_native_descramble() argument
402 env, srcBuf, srcOffset, srcLimit, totalLength, &srcPtr, &srcArray); in android_media_MediaDescrambler_native_descramble()
431 srcPtr, srcOffset, dstPtr, dstOffset, in android_media_MediaDescrambler_native_descramble()
/frameworks/native/headers/media_plugin/media/cas/
DDescramblerAPI.h93 int32_t srcOffset,
/frameworks/av/drm/mediacas/plugins/mock/
DMockCasPlugin.cpp252 int32_t srcOffset, in descramble() argument
260 srcPtr, dstPtr, srcOffset, dstOffset); in descramble()
DMockCasPlugin.h125 int32_t srcOffset,
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp1137 size_t srcOffset = 0; in read() local
1139 while (srcOffset + mNALSizeLen <= srcSize) { in read()
1142 case 1: NALsize = srcPtr[srcOffset]; break; in read()
1143 case 2: NALsize = U16_AT(srcPtr + srcOffset); break; in read()
1144 case 3: NALsize = U24_AT(srcPtr + srcOffset); break; in read()
1145 case 4: NALsize = U32_AT(srcPtr + srcOffset); break; in read()
1150 if (srcOffset + mNALSizeLen + NALsize <= srcOffset + mNALSizeLen) { in read()
1155 } else if (srcOffset + mNALSizeLen + NALsize > srcSize) { in read()
1164 &srcPtr[srcOffset + mNALSizeLen], in read()
1172 srcOffset += mNALSizeLen + NALsize; in read()
[all …]
/frameworks/av/drm/mediacas/plugins/clearkey/
DClearKeyCasPlugin.cpp498 int32_t srcOffset, in descramble() argument
507 srcPtr, dstPtr, srcOffset, dstOffset); in descramble()
519 (uint8_t*)srcPtr + srcOffset, in descramble()
DClearKeyCasPlugin.h135 int32_t srcOffset,
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp6255 size_t srcOffset = 0; in read() local
6258 while (srcOffset < size) { in read()
6259 bool isMalFormed = !isInRange((size_t)0u, size, srcOffset, mNALLengthSize); in read()
6262 nalLength = parseNALSize(&mSrcBuffer[srcOffset]); in read()
6263 srcOffset += mNALLengthSize; in read()
6264 isMalFormed = !isInRange((size_t)0u, size, srcOffset, nalLength); in read()
6270 srcOffset = size; in read()
6292 memcpy(&dstData[dstOffset], &mSrcBuffer[srcOffset], nalLength); in read()
6293 srcOffset += nalLength; in read()
6296 CHECK_EQ(srcOffset, size); in read()
[all …]
/frameworks/base/libs/hwui/jni/
DGraphicsJNI.h120 static bool SetPixels(JNIEnv* env, jintArray colors, int srcOffset,
DBitmap.cpp257 bool GraphicsJNI::SetPixels(JNIEnv* env, jintArray srcColors, int srcOffset, int srcStride, in SetPixels() argument
260 const SkColor* src = (const SkColor*)array + srcOffset; in SetPixels()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...