/libcore/luni/src/main/java/java/nio/ |
ReadWriteHeapByteBuffer.java | 112 public ByteBuffer put(byte[] src, int srcOffset, int byteCount) { 113 checkPutBounds(1, src.length, srcOffset, byteCount); 114 System.arraycopy(src, srcOffset, backingArray, offset + position, byteCount); 119 final void put(char[] src, int srcOffset, int charCount) { 120 int byteCount = checkPutBounds(SizeOf.CHAR, src.length, srcOffset, charCount); 121 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.CHAR, order.needsSwap); 125 final void put(double[] src, int srcOffset, int doubleCount) { 126 int byteCount = checkPutBounds(SizeOf.DOUBLE, src.length, srcOffset, doubleCount); 127 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.DOUBLE, order.needsSwap); 131 final void put(float[] src, int srcOffset, int floatCount) [all...] |
ReadWriteDirectByteBuffer.java | 99 public ByteBuffer put(byte[] src, int srcOffset, int byteCount) { 100 checkPutBounds(1, src.length, srcOffset, byteCount); 101 this.block.pokeByteArray(offset + position, src, srcOffset, byteCount); 106 final void put(char[] src, int srcOffset, int charCount) { 107 int byteCount = checkPutBounds(SizeOf.CHAR, src.length, srcOffset, charCount); 108 this.block.pokeCharArray(offset + position, src, srcOffset, charCount, order.needsSwap); 112 final void put(double[] src, int srcOffset, int doubleCount) { 113 int byteCount = checkPutBounds(SizeOf.DOUBLE, src.length, srcOffset, doubleCount); 114 this.block.pokeDoubleArray(offset + position, src, srcOffset, doubleCount, order.needsSwap); 118 final void put(float[] src, int srcOffset, int floatCount) [all...] |
MemoryBlock.java | 152 public final void pokeByteArray(int offset, byte[] src, int srcOffset, int byteCount) { 153 Memory.pokeByteArray(address + offset, src, srcOffset, byteCount); 156 public final void pokeCharArray(int offset, char[] src, int srcOffset, int charCount, boolean swap) { 157 Memory.pokeCharArray(address + offset, src, srcOffset, charCount, swap); 160 public final void pokeDoubleArray(int offset, double[] src, int srcOffset, int doubleCount, boolean swap) { 161 Memory.pokeDoubleArray(address + offset, src, srcOffset, doubleCount, swap); 164 public final void pokeFloatArray(int offset, float[] src, int srcOffset, int floatCount, boolean swap) { 165 Memory.pokeFloatArray(address + offset, src, srcOffset, floatCount, swap); 168 public final void pokeIntArray(int offset, int[] src, int srcOffset, int intCount, boolean swap) { 169 Memory.pokeIntArray(address + offset, src, srcOffset, intCount, swap) [all...] |
CharArrayBuffer.java | 67 public final CharBuffer get(char[] dst, int srcOffset, int charCount) { 71 System.arraycopy(backingArray, offset + position, dst, srcOffset, charCount);
|
ReadWriteCharArrayBuffer.java | 110 public CharBuffer put(char[] src, int srcOffset, int charCount) { 114 System.arraycopy(src, srcOffset, backingArray, offset + position, charCount);
|
ReadWriteDoubleArrayBuffer.java | 111 public DoubleBuffer put(double[] src, int srcOffset, int doubleCount) { 115 System.arraycopy(src, srcOffset, backingArray, offset + position, doubleCount);
|
ReadWriteFloatArrayBuffer.java | 111 public FloatBuffer put(float[] src, int srcOffset, int floatCount) { 115 System.arraycopy(src, srcOffset, backingArray, offset + position, floatCount);
|
ReadWriteIntArrayBuffer.java | 110 public IntBuffer put(int[] src, int srcOffset, int intCount) { 114 System.arraycopy(src, srcOffset, backingArray, offset + position, intCount);
|
ReadWriteLongArrayBuffer.java | 110 public LongBuffer put(long[] src, int srcOffset, int longCount) { 114 System.arraycopy(src, srcOffset, backingArray, offset + position, longCount);
|
ReadWriteShortArrayBuffer.java | 112 public ShortBuffer put(short[] src, int srcOffset, int shortCount) { 116 System.arraycopy(src, srcOffset, backingArray, offset + position, shortCount);
|
CharToByteBufferAdapter.java | 160 public CharBuffer put(char[] src, int srcOffset, int charCount) { 164 ((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, charCount); 166 ((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, charCount);
|
DoubleToByteBufferAdapter.java | 160 public DoubleBuffer put(double[] src, int srcOffset, int doubleCount) { 164 ((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, doubleCount); 166 ((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, doubleCount);
|
FloatToByteBufferAdapter.java | 159 public FloatBuffer put(float[] src, int srcOffset, int floatCount) { 163 ((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, floatCount); 165 ((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, floatCount);
|
IntToByteBufferAdapter.java | 160 public IntBuffer put(int[] src, int srcOffset, int intCount) { 164 ((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, intCount); 166 ((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, intCount);
|
LongToByteBufferAdapter.java | 160 public LongBuffer put(long[] src, int srcOffset, int longCount) { 164 ((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, longCount); 166 ((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, longCount);
|
ShortToByteBufferAdapter.java | 159 public ShortBuffer put(short[] src, int srcOffset, int shortCount) { 163 ((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, shortCount); 165 ((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, shortCount);
|
/frameworks/base/core/java/android/os/ |
MemoryFile.java | 51 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException; 53 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException; 187 * @param srcOffset offset into the memory file to read from. 193 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) 200 || srcOffset < 0 || srcOffset > mLength 201 || count > mLength - srcOffset) { 204 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); 212 * @param srcOffset offset into the byte array buffer to write from. 217 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count [all...] |
/libcore/luni/src/main/native/ |
libcore_io_Memory.cpp | 80 static void Memory_memmove(JNIEnv* env, jclass, jobject dstObject, jint dstOffset, jobject srcObject, jint srcOffset, jlong length) { 89 memmove(dstBytes.get() + dstOffset, srcBytes.get() + srcOffset, length); 166 const SWAP_TYPE* src = reinterpret_cast<const SWAP_TYPE*>(elements.get()) + srcOffset; \ 169 env->Get ## JNI_NAME ## ArrayRegion(src, srcOffset, count, cast<SCALAR_TYPE*>(dstAddress)); \ 173 static void Memory_pokeCharArray(JNIEnv* env, jclass, jint dstAddress, jcharArray src, jint srcOffset, jint count, jboolean swap) { 177 static void Memory_pokeDoubleArray(JNIEnv* env, jclass, jint dstAddress, jdoubleArray src, jint srcOffset, jint count, jboolean swap) { 181 static void Memory_pokeFloatArray(JNIEnv* env, jclass, jint dstAddress, jfloatArray src, jint srcOffset, jint count, jboolean swap) { 185 static void Memory_pokeIntArray(JNIEnv* env, jclass, jint dstAddress, jintArray src, jint srcOffset, jint count, jboolean swap) { 189 static void Memory_pokeLongArray(JNIEnv* env, jclass, jint dstAddress, jlongArray src, jint srcOffset, jint count, jboolean swap) { 193 static void Memory_pokeShortArray(JNIEnv* env, jclass, jint dstAddress, jshortArray src, jint srcOffset, jint count, jboolean swap) [all...] |
/frameworks/base/media/libstagefright/ |
DRMExtractor.cpp | 165 size_t srcOffset = 0; 169 while (srcOffset < len) { 170 CHECK(srcOffset + mNALLengthSize <= len); 172 const uint8_t* data = (const uint8_t*)(&decryptedDrmBuffer.data[srcOffset]); 192 srcOffset += mNALLengthSize; 194 if (srcOffset + nalLength > len) { 213 memcpy(&dstData[dstOffset], &decryptedDrmBuffer.data[srcOffset], nalLength); 214 srcOffset += nalLength; 218 CHECK_EQ(srcOffset, len);
|
/frameworks/base/core/jni/ |
android_os_MemoryFile.cpp | 73 jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, 83 env->SetByteArrayRegion(buffer, destOffset, count, (const jbyte *)address + srcOffset); 92 jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, 102 env->GetByteArrayRegion(buffer, srcOffset, count, (jbyte *)address + destOffset);
|
/cts/tests/tests/os/src/android/os/cts/ |
MemoryFileTest.java | 81 private void checkWriteBytesInIllegalParameter(int srcOffset, int destOffset, int count) 85 mMemoryFile.writeBytes(data, srcOffset, destOffset, count); 206 private void checkReadBytesInIllegalParameter(int srcOffset, int destOffset, int count) 210 mMemoryFile.readBytes(data, srcOffset, destOffset, count);
|
/frameworks/base/media/libstagefright/matroska/ |
MatroskaExtractor.cpp | 448 size_t srcOffset = 0; 450 while (srcOffset + mNALSizeLen <= srcSize) { 453 case 1: NALsize = srcPtr[srcOffset]; break; 454 case 2: NALsize = U16_AT(srcPtr + srcOffset); break; 455 case 3: NALsize = U24_AT(srcPtr + srcOffset); break; 456 case 4: NALsize = U32_AT(srcPtr + srcOffset); break; 461 if (srcOffset + mNALSizeLen + NALsize > srcSize) { 469 &srcPtr[srcOffset + mNALSizeLen], 476 srcOffset += mNALSizeLen + NALsize; 479 if (srcOffset < srcSize) [all...] |
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
Texture.cpp | 125 uint32_t* srcOffset = src + srcX + srcY * srcStride; 128 return srcOffset; 134 uint32_t pixel = srcOffset[x + y * srcStride]; 141 memcpy(dst + y * width, srcOffset + y * srcStride, 4 * width);
|
/libcore/luni/src/main/java/libcore/io/ |
Memory.java | 36 byte[] src, int srcOffset, int sizeofElements, boolean swap); 40 * 'srcOffset' is measured in units of 'sizeofElements' bytes. 43 Object src, int srcOffset, int sizeofElements, boolean swap); 151 public static native void memmove(Object dstObject, int dstOffset, Object srcObject, int srcOffset, long byteCount);
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
FontCustomPlatformData.cpp | 138 size_t srcOffset = max<int>(0, m_offset - m_overlayDst); 139 size_t bytesToCopy = min(bytesFromData - dstOffset, m_overlayLength - srcOffset); 140 memcpy(reinterpret_cast<char*>(buffer) + dstOffset, m_fontData->data() + m_overlaySrc + srcOffset, bytesToCopy);
|