Home
last modified time | relevance | path

Searched refs:sourceBytes (Results 1 – 9 of 9) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DBoundedByteStringTest.java52 byte[] sourceBytes = ByteStringTest.getTestBytes(2341, 11337766L); in setUp()
54 int to = sourceBytes.length - 100; in setUp()
55 stringUnderTest = ByteString.copyFrom(sourceBytes).substring(from, to); in setUp()
57 System.arraycopy(sourceBytes, from, referenceBytes, 0, to - from); in setUp()
DRopeByteStringSubstringTest.java47 byte[] sourceBytes = ByteStringTest.getTestBytes(22341, 22337766L); in setUp()
48 Iterator<ByteString> iter = ByteStringTest.makeConcretePieces(sourceBytes).iterator(); in setUp()
55 int to = sourceBytes.length - 5555; in setUp()
58 System.arraycopy(sourceBytes, from, referenceBytes, 0, to - from); in setUp()
/external/protobuf/js/binary/
Dutils_test.js643 var sourceBytes = new Uint8Array(sourceData);
644 var sourceBuffer = sourceBytes.buffer;
657 assertEquals(sourceBytes, convert(sourceBytes));
/external/swiftshader/src/OpenGL/libGLESv2/
DDevice.cpp636 …unsigned char *sourceBytes = (unsigned char*)source->lockInternal(sRect.x0, sRect.y0, sourceRect->… in stretchRect() local
644 …copyBuffer(sourceBytes, destBytes, width, height, sourcePitch, destPitch, egl::Image::bytes(source… in stretchRect()
714 … unsigned char *sourceBytes = (unsigned char*)source->lockInternal(0, 0, z, LOCK_READONLY, PUBLIC); in stretchCube() local
718 memcpy(destBytes, sourceBytes, bytes); in stretchCube()
728 sourceBytes += sourcePitch; in stretchCube()
/external/swiftshader/src/OpenGL/libGLES_CM/
DDevice.cpp479 …unsigned char *sourceBytes = (unsigned char*)source->lockInternal(sRect.x0, sRect.y0, sRect.slice,… in stretchRect() local
490 memcpy(destBytes, sourceBytes, bytes); in stretchRect()
500 sourceBytes += sourcePitch; in stretchRect()
/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
DSSLEngineTest.java273 private static void assertSendsCorrectly(final byte[] sourceBytes, SSLEngine source, in assertSendsCorrectly() argument
275 ByteBuffer sourceOut = ByteBuffer.wrap(sourceBytes); in assertSendsCorrectly()
282 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectly()
303 assertEquals(sourceCipherSuite, Arrays.toString(sourceBytes), Arrays.toString(actual)); in assertSendsCorrectly()
/external/swiftshader/src/OpenGL/libGL/
DDevice.cpp594 …unsigned char *sourceBytes = (unsigned char*)source->lockInternal(sRect.x0, sRect.y0, sRect.slice,… in stretchRect() local
605 memcpy(destBytes, sourceBytes, bytes); in stretchRect()
615 sourceBytes += sourcePitch; in stretchRect()
/external/conscrypt/common/src/jni/main/cpp/
DNativeCrypto.cpp140 ScopedByteArrayRO sourceBytes(env, source); in arrayToBignum() local
141 if (sourceBytes.get() == nullptr) { in arrayToBignum()
145 const unsigned char* tmp = reinterpret_cast<const unsigned char*>(sourceBytes.get()); in arrayToBignum()
146 size_t tmpSize = sourceBytes.size(); in arrayToBignum()
195 ScopedByteArrayRO sourceBytes(env, source); in arrayToBignumSize() local
196 if (sourceBytes.get() == nullptr) { in arrayToBignumSize()
200 const uint8_t* tmp = reinterpret_cast<const uint8_t*>(sourceBytes.get()); in arrayToBignumSize()
201 size_t tmpSize = sourceBytes.size(); in arrayToBignumSize()
/external/swiftshader/src/D3D9/
DDirect3DDevice9.cpp6295 …unsigned char *sourceBytes = (unsigned char*)source->lockInternal(sRect.x0, sRect.y0, 0, sw::LOCK_… in stretchRect() local
6306 memcpy(destBytes, sourceBytes, bytes); in stretchRect()
6316 sourceBytes += sourcePitch; in stretchRect()