/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | BoundedByteStringTest.java | 52 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()
|
D | RopeByteStringSubstringTest.java | 47 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/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/ |
D | SSLEngineVersionCompatibilityTest.java | 97 private static void assertSendsCorrectly(final byte[] sourceBytes, SSLEngine source, in assertSendsCorrectly() argument 99 ByteBuffer sourceOut = ByteBuffer.wrap(sourceBytes); in assertSendsCorrectly() 106 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectly() 127 assertEquals(sourceCipherSuite, Arrays.toString(sourceBytes), Arrays.toString(actual)); in assertSendsCorrectly() 133 assertSendsCorrectlyWhenSplit(sourceBytes, source, dest); in assertSendsCorrectly() 137 private static void assertSendsCorrectlyWhenSplit(final byte[] sourceBytes, SSLEngine source, in assertSendsCorrectlyWhenSplit() argument 143 int sourceLen = sourceBytes.length; in assertSendsCorrectlyWhenSplit() 144 sourceBufs[0] = ByteBuffer.wrap(sourceBytes, 0, sourceLen / 3); in assertSendsCorrectlyWhenSplit() 145 sourceBufs[1] = ByteBuffer.wrap(sourceBytes, sourceLen / 3, sourceLen / 3); in assertSendsCorrectlyWhenSplit() 147 sourceBytes, 2 * (sourceLen / 3), sourceLen - 2 * (sourceLen / 3)); in assertSendsCorrectlyWhenSplit() [all …]
|
D | SSLEngineTest.java | 301 private static void assertSendsCorrectly(final byte[] sourceBytes, SSLEngine source, in assertSendsCorrectly() argument 303 ByteBuffer sourceOut = ByteBuffer.wrap(sourceBytes); in assertSendsCorrectly() 310 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectly() 331 assertEquals(sourceCipherSuite, Arrays.toString(sourceBytes), Arrays.toString(actual)); in assertSendsCorrectly() 337 assertSendsCorrectlyWhenSplit(sourceBytes, source, dest); in assertSendsCorrectly() 341 private static void assertSendsCorrectlyWhenSplit(final byte[] sourceBytes, SSLEngine source, in assertSendsCorrectlyWhenSplit() argument 347 int sourceLen = sourceBytes.length; in assertSendsCorrectlyWhenSplit() 348 sourceBufs[0] = ByteBuffer.wrap(sourceBytes, 0, sourceLen / 3); in assertSendsCorrectlyWhenSplit() 349 sourceBufs[1] = ByteBuffer.wrap(sourceBytes, sourceLen / 3, sourceLen / 3); in assertSendsCorrectlyWhenSplit() 351 sourceBytes, 2 * (sourceLen / 3), sourceLen - 2 * (sourceLen / 3)); in assertSendsCorrectlyWhenSplit() [all …]
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
D | SSLEngineVersionCompatibilityTest.java | 95 private static void assertSendsCorrectly(final byte[] sourceBytes, SSLEngine source, in assertSendsCorrectly() argument 97 ByteBuffer sourceOut = ByteBuffer.wrap(sourceBytes); in assertSendsCorrectly() 104 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectly() 125 assertEquals(sourceCipherSuite, Arrays.toString(sourceBytes), Arrays.toString(actual)); in assertSendsCorrectly() 131 assertSendsCorrectlyWhenSplit(sourceBytes, source, dest); in assertSendsCorrectly() 135 private static void assertSendsCorrectlyWhenSplit(final byte[] sourceBytes, SSLEngine source, in assertSendsCorrectlyWhenSplit() argument 141 int sourceLen = sourceBytes.length; in assertSendsCorrectlyWhenSplit() 142 sourceBufs[0] = ByteBuffer.wrap(sourceBytes, 0, sourceLen / 3); in assertSendsCorrectlyWhenSplit() 143 sourceBufs[1] = ByteBuffer.wrap(sourceBytes, sourceLen / 3, sourceLen / 3); in assertSendsCorrectlyWhenSplit() 145 sourceBytes, 2 * (sourceLen / 3), sourceLen - 2 * (sourceLen / 3)); in assertSendsCorrectlyWhenSplit() [all …]
|
D | SSLEngineTest.java | 297 private static void assertSendsCorrectly(final byte[] sourceBytes, SSLEngine source, in assertSendsCorrectly() argument 299 ByteBuffer sourceOut = ByteBuffer.wrap(sourceBytes); in assertSendsCorrectly() 306 assertEquals(sourceCipherSuite, sourceBytes.length, sourceOutRes.bytesConsumed()); in assertSendsCorrectly() 327 assertEquals(sourceCipherSuite, Arrays.toString(sourceBytes), Arrays.toString(actual)); in assertSendsCorrectly() 333 assertSendsCorrectlyWhenSplit(sourceBytes, source, dest); in assertSendsCorrectly() 337 private static void assertSendsCorrectlyWhenSplit(final byte[] sourceBytes, SSLEngine source, in assertSendsCorrectlyWhenSplit() argument 343 int sourceLen = sourceBytes.length; in assertSendsCorrectlyWhenSplit() 344 sourceBufs[0] = ByteBuffer.wrap(sourceBytes, 0, sourceLen / 3); in assertSendsCorrectlyWhenSplit() 345 sourceBufs[1] = ByteBuffer.wrap(sourceBytes, sourceLen / 3, sourceLen / 3); in assertSendsCorrectlyWhenSplit() 347 sourceBytes, 2 * (sourceLen / 3), sourceLen - 2 * (sourceLen / 3)); in assertSendsCorrectlyWhenSplit() [all …]
|
/external/protobuf/js/binary/ |
D | utils_test.js | 643 var sourceBytes = new Uint8Array(sourceData); 644 var sourceBuffer = sourceBytes.buffer; 657 assertEquals(sourceBytes, convert(sourceBytes));
|
/external/swiftshader/src/OpenGL/libGLES_CM/ |
D | Device.cpp | 416 …unsigned char *sourceBytes = (unsigned char*)source->lockInternal(sRect.x0, sRect.y0, sRect.slice,… in stretchRect() local 427 memcpy(destBytes, sourceBytes, bytes); in stretchRect() 437 sourceBytes += sourcePitch; in stretchRect()
|
/external/swiftshader/src/OpenGL/libGLESv2/ |
D | Device.cpp | 595 …byte *sourceBytes = (byte*)source->lockInternal((int)sRect.x0, (int)sRect.y0, sourceRect->slice, L… in stretchRect() local 601 …copyBuffer(sourceBytes, destBytes, width, height, sourcePitchB, destPitchB, Surface::bytes(source-… in stretchRect() 677 … unsigned char *sourceBytes = (unsigned char*)source->lockInternal(0, 0, z, LOCK_READONLY, PUBLIC); in stretchCube() local 682 memcpy(destBytes, sourceBytes, bytes); in stretchCube() 692 sourceBytes += sourcePitch; in stretchCube()
|
/external/conscrypt/common/src/jni/main/cpp/conscrypt/ |
D | native_crypto.cc | 153 ScopedByteArrayRO sourceBytes(env, source); in arrayToBignum() local 154 if (sourceBytes.get() == nullptr) { in arrayToBignum() 158 const unsigned char* tmp = reinterpret_cast<const unsigned char*>(sourceBytes.get()); in arrayToBignum() 159 size_t tmpSize = sourceBytes.size(); in arrayToBignum() 209 ScopedByteArrayRO sourceBytes(env, source); in arrayToBignumSize() local 210 if (sourceBytes.get() == nullptr) { in arrayToBignumSize() 214 const uint8_t* tmp = reinterpret_cast<const uint8_t*>(sourceBytes.get()); in arrayToBignumSize() 215 size_t tmpSize = sourceBytes.size(); in arrayToBignumSize()
|
/external/swiftshader/src/D3D9/ |
D | Direct3DDevice9.cpp | 6296 …unsigned char *sourceBytes = (unsigned char*)source->lockInternal(sRect.x0, sRect.y0, 0, sw::LOCK_… in stretchRect() local 6307 memcpy(destBytes, sourceBytes, bytes); in stretchRect() 6317 sourceBytes += sourcePitch; in stretchRect()
|