Home
last modified time | relevance | path

Searched refs:destOffset (Results 1 – 4 of 4) sorted by relevance

/cts/tests/sensor/jni/
Dandroid_hardware_cts_SensorDirectReportTest.cpp26 jobject hardwareBufferObj, jbyteArray buffer, jint srcOffset, jint destOffset, jint count) { in readHardwareBuffer() argument
28 srcOffset < 0 || destOffset < 0 || count <= 0) { in readHardwareBuffer()
32 if (env->GetArrayLength(buffer) < destOffset + count) { in readHardwareBuffer()
49 env->SetByteArrayRegion(buffer, destOffset, count, in readHardwareBuffer()
/cts/tests/tests/os/src/android/os/cts/
DMemoryFileTest.java53 private void checkWriteBytesInIllegalParameter(int srcOffset, int destOffset, int count) in checkWriteBytesInIllegalParameter() argument
57 mMemoryFile.writeBytes(data, srcOffset, destOffset, count); in checkWriteBytesInIllegalParameter()
136 private void checkReadBytesInIllegalParameter(int srcOffset, int destOffset, int count) in checkReadBytesInIllegalParameter() argument
140 mMemoryFile.readBytes(data, srcOffset, destOffset, count); in checkReadBytesInIllegalParameter()
/cts/tests/tests/proto/src/android/util/proto/cts/
DEncodedBufferTest.java316 private void testWriteFromThisBuffer(int chunkSize, int destOffset, int srcOffset, int size) in testWriteFromThisBuffer() argument
329 System.arraycopy(expected, srcOffset, expected, destOffset, size); in testWriteFromThisBuffer()
338 if (destOffset != 0) { in testWriteFromThisBuffer()
339 buffer.writeFromThisBuffer(0, destOffset); in testWriteFromThisBuffer()
348 assertEquals(destOffset+size, buffer.getWritePos()); in testWriteFromThisBuffer()
351 private void testWriteFromThisBufferFails(int chunkSize, int destOffset, int srcOffset, in testWriteFromThisBufferFails() argument
354 testWriteFromThisBuffer(chunkSize, destOffset, srcOffset, size); in testWriteFromThisBufferFails()
356 + " chunkSize=" + chunkSize + " destOffset=" + destOffset in testWriteFromThisBufferFails()
/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java143 byte[] buffer, int srcOffset, int destOffset, int count); in nativeReadHardwareBuffer() argument