/external/conscrypt/src/main/java/org/conscrypt/ |
D | OpenSSLRSAPrivateCrtKey.java | 82 modulus.toByteArray(), in init() 83 publicExponent == null ? null : publicExponent.toByteArray(), in init() 84 privateExponent.toByteArray(), in init() 85 primeP == null ? null : primeP.toByteArray(), in init() 86 primeQ == null ? null : primeQ.toByteArray(), in init() 87 primeExponentP == null ? null : primeExponentP.toByteArray(), in init() 88 primeExponentQ == null ? null : primeExponentQ.toByteArray(), in init() 89 crtCoefficient == null ? null : crtCoefficient.toByteArray())); in init() 128 modulus.toByteArray(), in getInstance() 129 publicExponent == null ? null : publicExponent.toByteArray(), in getInstance() [all …]
|
D | OpenSSLRSAPublicKey.java | 51 spec.getModulus().toByteArray(), in OpenSSLRSAPublicKey() 52 spec.getPublicExponent().toByteArray(), in OpenSSLRSAPublicKey() 67 rsaPublicKey.getModulus().toByteArray(), in getInstance() 68 rsaPublicKey.getPublicExponent().toByteArray(), in getInstance() 174 modulus.toByteArray(), in readObject() 175 publicExponent.toByteArray(), in readObject()
|
D | OpenSSLRSAPrivateKey.java | 74 modulus.toByteArray(), in init() 76 privateExponent.toByteArray(), in init() 102 .getModulus().toByteArray()), true); in wrapPlatformKey() 123 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly() 146 modulus.toByteArray(), in getInstance() 148 privateExponent.toByteArray(), in getInstance() 288 modulus.toByteArray(), in readObject() 290 privateExponent.toByteArray(), in readObject()
|
D | OpenSSLECGroupContext.java | 145 p.toByteArray(), a.toByteArray(), b.toByteArray(), x.toByteArray(), in getInstance() 146 y.toByteArray(), order.toByteArray(), cofactor); in getInstance()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | ASN1InputStream.java | 146 return new DERApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in buildObject() 175 return new LazyEncodedSequence(defIn.toByteArray()); in buildObject() 396 return defIn.toByteArray(); in getBuffer() 441 return new ASN1GeneralizedTime(defIn.toByteArray()); in createPrimitiveDERObject() 443 return new DERGeneralString(defIn.toByteArray()); in createPrimitiveDERObject() 445 return new DERIA5String(defIn.toByteArray()); in createPrimitiveDERObject() 447 return new ASN1Integer(defIn.toByteArray(), false); in createPrimitiveDERObject() 451 return new DERNumericString(defIn.toByteArray()); in createPrimitiveDERObject() 455 return new DEROctetString(defIn.toByteArray()); in createPrimitiveDERObject() 457 return new DERPrintableString(defIn.toByteArray()); in createPrimitiveDERObject() [all …]
|
D | ASN1Object.java | 28 return bOut.toByteArray(); in getEncoded() 49 return bOut.toByteArray(); in getEncoded() 58 return bOut.toByteArray(); in getEncoded()
|
/external/v8/test/mjsunit/wasm/ |
D | unicode-validation.js | 10 function toByteArray(s) { function 114 checkAll(toByteArray("\xef\xb7\x8f"), false); 115 checkAll(toByteArray("a\xc2\x81\xe1\x80\xbf\xf1\x80\xa0\xbf"), false); 116 checkAll(toByteArray("\xff"), true); 117 checkAll(toByteArray("\xed\xa0\x8f"), true); // surrogate code points 118 checkAll(toByteArray("\xe0\x82\x80"), true); // overlong sequence 119 checkAll(toByteArray("\xf4\x90\x80\x80"), true); // beyond limit: U+110000 120 checkAll(toByteArray("\xef\xbf\xbe"), true); // non-character; U+FFFE 121 checkAll(toByteArray("with\x00null"), false);
|
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/ |
D | DeflateUncompressorTest.java | 62 compressedContent = compressedContentBuffer.toByteArray(); in setUp() 71 assertTrue(Arrays.equals(CONTENT, uncompressedContentOut.toByteArray())); in testUncompress() 92 compressedContent = compressedContentBuffer.toByteArray(); in testNowrap() 98 assertTrue(Arrays.equals(CONTENT, uncompressedContentOut.toByteArray())); in testNowrap() 107 Assert.assertArrayEquals(CONTENT, uncompressedContentOut.toByteArray()); in testSetInputBufferSize() 116 Assert.assertArrayEquals(CONTENT, uncompressedContentOut.toByteArray()); in testSetOutputBufferSize() 150 Assert.assertArrayEquals(CONTENT, uncompressedContentOut.toByteArray()); in testReusability() 156 Assert.assertArrayEquals(CONTENT, uncompressedContentOut.toByteArray()); in testReusability() 168 compressedContent = compressedContentBuffer.toByteArray(); in testReusability() 175 assertTrue(Arrays.equals(CONTENT, uncompressedContentOut.toByteArray())); in testReusability()
|
D | DeflateCompressorTest.java | 74 return uncompressedOut.toByteArray(); in uncompressWithJavaInflater() 90 uncompressWithJavaInflater(compressor.isNowrap(), compressedContentOut.toByteArray()); in testCompress() 109 byte[] compressedWithNowrapOn = compressedContentOut.toByteArray(); 120 byte[] compressedWithNowrapOff = compressedContentOut.toByteArray(); 141 content[strategy].compressed = compressedContentOut.toByteArray(); 170 content[level].compressed = compressedContentOut.toByteArray(); 195 uncompressWithJavaInflater(compressor.isNowrap(), compressedContentOut.toByteArray()); 206 uncompressWithJavaInflater(compressor.isNowrap(), compressedContentOut.toByteArray()); 242 uncompressWithJavaInflater(compressor.isNowrap(), compressedContentOut.toByteArray()); 250 uncompressWithJavaInflater(compressor.isNowrap(), compressedContentOut.toByteArray()); [all …]
|
D | PartiallyUncompressingPipeTest.java | 48 Assert.assertArrayEquals(expectedBytes, outBuffer.toByteArray()); in testWriteAll_Uncompressed() 56 Assert.assertArrayEquals(entry.getUncompressedBinaryContent(), outBuffer.toByteArray()); in testWriteAll_Compressed_NoWrapTrue() 72 stream.pipe(new ByteArrayInputStream(compressBuffer.toByteArray()), Mode.UNCOMPRESS_WRAPPED); in testWriteAll_Compressed_NoWrapFalse() 73 Assert.assertArrayEquals(entry.getUncompressedBinaryContent(), outBuffer.toByteArray()); in testWriteAll_Compressed_NoWrapFalse() 106 Assert.assertArrayEquals(expected.toByteArray(), outBuffer.toByteArray()); in testWriteAll_Multiple()
|
/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | CodedOutputStreamTest.java | 88 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint() 100 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint() 116 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint() 125 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint() 170 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian32() 178 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian32() 192 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian64() 200 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian64() 283 byte[] rawBytes = message.toByteArray(); in testWriteWholeMessage() 284 assertEqualBytes(TestUtil.getGoldenMessage().toByteArray(), rawBytes); in testWriteWholeMessage() [all …]
|
D | ByteStringTest.java | 94 isArrayRange(substring.toByteArray(), bytes, 500, bytes.length - 500)); in testSubstring_BeginIndex() 101 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_BytesOffsetSize() 108 isArray(byteString.toByteArray(), bytes)); in testCopyFrom_Bytes() 118 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_ByteBufferSize() 128 isArrayRange(byteString.toByteArray(), bytes, 500, bytes.length - 500)); in testCopyFrom_ByteBuffer() 136 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_StringEncoding() 144 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Utf8() 153 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Iterable() 190 byte[] originalValue = byteString.toByteArray(); in testReadFrom_mutating() 195 byte[] newValue = byteString.toByteArray(); in testReadFrom_mutating() [all …]
|
D | NanoTest.java | 104 byte [] result = MessageNano.toByteArray(msg); in testSimpleMessageNano() 143 byte [] result = MessageNano.toByteArray(msg); in testRecursiveMessageNano() 161 assertEquals(0, MessageNano.toByteArray(msg).length); in testMessageNoFields() 173 byte [] result = MessageNano.toByteArray(msg); in testNanoRequiredInt32() 193 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt32() 214 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt64() 235 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint32() 256 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint64() 277 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint32() 298 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint64() [all …]
|
D | MicroTest.java | 93 byte [] result = msg.toByteArray(); in testSimpleMessageMicro() 132 byte [] result = msg.toByteArray(); in testRecursiveMessageMicro() 169 byte [] result = msg.toByteArray(); in testMicroRequiredInt32() 196 byte [] result = msg.toByteArray(); in testMicroOptionalInt32() 222 byte [] result = msg.toByteArray(); in testMicroOptionalInt64() 248 byte [] result = msg.toByteArray(); in testMicroOptionalUint32() 274 byte [] result = msg.toByteArray(); in testMicroOptionalUint64() 300 byte [] result = msg.toByteArray(); in testMicroOptionalSint32() 326 byte [] result = msg.toByteArray(); in testMicroOptionalSint64() 352 byte [] result = msg.toByteArray(); in testMicroOptionalFixed32() [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/instr/ |
D | InstrumenterTest.java | 139 buffer.toByteArray())).readObject(); in testSerialization() 163 new ByteArrayInputStream(buffer.toByteArray()), out, "Test"); in testInstrumentAll_Zip() 167 out.toByteArray())); in testInstrumentAll_Zip() 185 new ByteArrayInputStream(buffer.toByteArray()), out, in testInstrumentAll_BrokenClassFileInZip() 207 jarbuffer.toByteArray())), gzipOutput); in testInstrumentAll_Pack200() 212 pack200buffer.toByteArray()), out, "Test"); in testInstrumentAll_Pack200() 217 out.toByteArray())), new JarOutputStream(jarbuffer)); in testInstrumentAll_Pack200() 221 jarbuffer.toByteArray())); in testInstrumentAll_Pack200() 234 assertEquals("text", new String(out.toByteArray())); in testInstrumentAll_Other() 247 new ByteArrayInputStream(buffer.toByteArray()), out, "Test"); in testInstrumentAll_RemoveSignatures() [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | ByteStreamsTest.java | 48 assertEquals(expected, out.toByteArray()); in testCopyChannel() 290 assertEquals(0, out.toByteArray().length); in testNewDataOutput_empty() 297 assertEquals(bytes, out.toByteArray()); in testNewDataOutput_writeInt() 304 assertEquals(bytes, out.toByteArray()); in testNewDataOutput_sized() 310 assertEquals(bytes, out.toByteArray()); in testNewDataOutput_writeLong() 316 assertEquals(bytes, out.toByteArray()); in testNewDataOutput_writeByteArray() 323 assertEquals(new byte[] {0x12, 0x34}, out.toByteArray()); in testNewDataOutput_writeByte() 330 assertEquals(expected, out.toByteArray()); in testNewDataOutput_writeByteOffset() 338 assertEquals(expected, out.toByteArray()); in testNewDataOutput_writeBoolean() 344 assertEquals(new byte[] {0, 97}, out.toByteArray()); in testNewDataOutput_writeChar() [all …]
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
D | CipherOutputStreamTest.java | 60 byte[] result = tos.toByteArray(); in testCipherOutputStream() 78 byte[] result = tos.toByteArray(); in testWrite1() 94 byte[] result = tos.toByteArray(); in testWrite2() 111 byte[] result = tos.toByteArray(); in testWrite3() 152 byte[] result = tos.toByteArray(); in testFlush() 168 byte[] result = tos.toByteArray(); in testClose()
|
/external/protobuf/java/src/main/java/com/google/protobuf/nano/ |
D | MessageNano.java | 99 public static final byte[] toByteArray(MessageNano msg) { in toByteArray() method in MessageNano 101 toByteArray(msg, result, 0, result.length); in toByteArray() 113 public static final void toByteArray(MessageNano msg, byte[] data, int offset, int length) { in toByteArray() method in MessageNano 174 toByteArray(a, aByteArray, 0, serializedSize); in messageNanoEquals() 175 toByteArray(b, bByteArray, 0, serializedSize); in messageNanoEquals()
|
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/ |
D | PartiallyCompressingOutputStreamTest.java | 72 return buffer.toByteArray(); in fuse() 90 Assert.assertArrayEquals(input, outBuffer.toByteArray()); in testWrite_Nothing() 103 Assert.assertArrayEquals(expected, outBuffer.toByteArray()); in testWrite_NoneCompressed() 116 Assert.assertArrayEquals(ENTRY1.getCompressedBinaryContent(), outBuffer.toByteArray()); in testWrite_AllCompressed() 129 Assert.assertArrayEquals(expected, outBuffer.toByteArray()); in testWrite_GapAndCompression() 142 Assert.assertArrayEquals(expected, outBuffer.toByteArray()); in testWrite_GapAndCompressionAndGap() 169 Assert.assertArrayEquals(expected, outBuffer.toByteArray()); in testWrite_MixedSequence_Thrash()
|
D | FileByFileV1DeltaApplierTest.java | 128 oldFileBytes = buffer.toByteArray(); in setUp() 139 expectedDeltaFriendlyOldFileBytes = buffer.toByteArray(); in setUp() 146 expectedNewBytes = buffer.toByteArray(); in setUp() 206 return buffer.toByteArray(); in writePatch() 252 Assert.assertArrayEquals(expectedNewBytes, actualNewBlobOut.toByteArray()); in testApplyDelta() 266 Assert.assertArrayEquals(expectedNewBytes, actualNewBlobOut.toByteArray()); in testApplyDelta_DoesntCloseStream()
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/ |
D | Pack200StreamsTest.java | 49 Pack200Streams.pack(jarbuffer.toByteArray(), new NoCloseOutputStream( in testPack() 54 new ByteArrayInputStream(pack200buffer.toByteArray()), in testPack() 58 jarbuffer.toByteArray())); in testPack() 74 jarbuffer.toByteArray())), pack200buffer); in testUnpack() 77 new ByteArrayInputStream(pack200buffer.toByteArray()))); in testUnpack()
|
/external/jmdns/src/javax/jmdns/impl/ |
D | DNSEntry.java | 222 protected void toByteArray(DataOutputStream dout) throws IOException { in toByteArray() method in DNSEntry 233 protected byte[] toByteArray() { in toByteArray() method in DNSEntry 237 this.toByteArray(dout); in toByteArray() 239 return bout.toByteArray(); in toByteArray() 252 byte[] thisBytes = this.toByteArray(); in compareTo() 253 byte[] thatBytes = that.toByteArray(); in compareTo()
|
/external/jmonkeyengine/engine/src/desktop/com/jme3/app/state/ |
D | MjpegFileWriter.java | 156 return baos.toByteArray(); in toBytes() 226 return baos.toByteArray(); in toBytes() 246 return baos.toByteArray(); in toBytes() 316 return baos.toByteArray(); in toBytes() 371 return baos.toByteArray(); in toBytes() 392 return baos.toByteArray(); in toBytes() 427 return baos.toByteArray(); in toBytes() 451 return baos.toByteArray(); in toBytes() 472 return baos.toByteArray(); in toBytes() 488 return baos.toByteArray(); in writeImageToBytes()
|
/external/protobuf/java/src/main/java/com/google/protobuf/micro/ |
D | MessageMicro.java | 74 public byte[] toByteArray() { in toByteArray() method in MessageMicro 76 toByteArray(result, 0, result.length); in toByteArray() 89 public void toByteArray(byte [] data, int offset, int length) { in toByteArray() method in MessageMicro
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/ |
D | HexDump.java | 96 return toHexString(toByteArray(b)); in toHexString() 121 return toHexString(toByteArray(i)); in toHexString() 124 public static byte[] toByteArray(byte b) in toByteArray() method in HexDump 131 public static byte[] toByteArray(int i) in toByteArray() method in HexDump
|