/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLRSAPrivateCrtKey.java | 85 modulus.toByteArray(), in init() 86 publicExponent == null ? null : publicExponent.toByteArray(), in init() 87 privateExponent.toByteArray(), in init() 88 primeP == null ? null : primeP.toByteArray(), in init() 89 primeQ == null ? null : primeQ.toByteArray(), in init() 90 primeExponentP == null ? null : primeExponentP.toByteArray(), in init() 91 primeExponentQ == null ? null : primeExponentQ.toByteArray(), in init() 92 crtCoefficient == null ? null : crtCoefficient.toByteArray())); in init() 131 modulus.toByteArray(), in getInstance() 132 publicExponent == null ? null : publicExponent.toByteArray(), in getInstance() [all …]
|
D | OpenSSLRSAPrivateKey.java | 79 modulus.toByteArray(), in init() 81 privateExponent.toByteArray(), in init() 107 .getModulus().toByteArray()), true); in wrapPlatformKey() 128 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly() 151 modulus.toByteArray(), in getInstance() 153 privateExponent.toByteArray(), in getInstance() 264 modulus.toByteArray(), in readObject() 266 privateExponent.toByteArray(), in readObject()
|
D | OpenSSLRSAPublicKey.java | 58 spec.getModulus().toByteArray(), in OpenSSLRSAPublicKey() 59 spec.getPublicExponent().toByteArray(), in OpenSSLRSAPublicKey() 74 rsaPublicKey.getModulus().toByteArray(), in getInstance() 75 rsaPublicKey.getPublicExponent().toByteArray(), in getInstance() 181 modulus.toByteArray(), in readObject() 182 publicExponent.toByteArray(), in readObject()
|
D | OpenSSLECGroupContext.java | 141 p.toByteArray(), a.toByteArray(), b.toByteArray(), x.toByteArray(), in getInstance() 142 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/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/core/src/test/java/com/google/protobuf/ |
D | CodedOutputStreamTest.java | 57 byte[] toByteArray(); in toByteArray() method 77 public byte[] toByteArray() { in toByteArray() method in CodedOutputStreamTest.OutputStreamCoder 78 return output.toByteArray(); in toByteArray() 102 public byte[] toByteArray() { in toByteArray() method in CodedOutputStreamTest.ArrayCoder 134 public byte[] toByteArray() { in toByteArray() method in CodedOutputStreamTest.NioHeapCoder 172 public byte[] toByteArray() { in toByteArray() method in CodedOutputStreamTest.NioDirectCoder 317 final byte[] expectedBytes = TestUtil.getGoldenMessage().toByteArray(); in testWriteWholeMessage() 324 byte[] rawBytes = coder.toByteArray(); in testWriteWholeMessage() 333 assertEqualBytes(OutputType.STREAM, expectedBytes, coder.toByteArray()); in testWriteWholeMessage() 342 byte[] expectedBytes = TestUtil.getGoldenPackedFieldsMessage().toByteArray(); in testWriteWholePackedFieldsMessage() [all …]
|
D | ByteStringTest.java | 95 isArrayRange(substring.toByteArray(), bytes, 500, bytes.length - 500)); in testSubstring_BeginIndex() 102 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_BytesOffsetSize() 109 isArray(byteString.toByteArray(), bytes)); in testCopyFrom_Bytes() 119 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_ByteBufferSize() 129 isArrayRange(byteString.toByteArray(), bytes, 500, bytes.length - 500)); in testCopyFrom_ByteBuffer() 137 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_StringEncoding() 145 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Utf8() 154 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Iterable() 192 byte[] originalValue = byteString.toByteArray(); in testReadFrom_mutating() 197 byte[] newValue = byteString.toByteArray(); in testReadFrom_mutating() [all …]
|
D | UnknownFieldSetLiteTest.java | 63 CodedInputStream input = CodedInputStream.newInstance(foo.toByteArray()); in testMergeFieldFrom() 76 CodedInputStream input = CodedInputStream.newInstance(foo.toByteArray()); in testSerializedSize() 89 CodedInputStream.newInstance(toByteString(unknownFields).toByteArray()); in testMergeVarintField() 103 CodedInputStream.newInstance(toByteString(builder).toByteArray()); in testMergeVarintField_negative() 132 CodedInputStream.newInstance(toByteString(unknownFields).toByteArray()); in testMutableCopyOf() 169 Foo copy = Foo.parseFrom(foo.toByteArray()); in testRoundTrips() 174 Foo secondCopy = Foo.parseFrom(foo.toByteArray()); in testRoundTrips() 179 Foo copyOfCopy = Foo.parseFrom(copy.toByteArray(), extensionRegistry); in testRoundTrips() 309 .build().toByteArray()) in testEndToEnd() 326 return ByteString.copyFrom(byteArrayOutputStream.toByteArray()); in toByteString()
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/instr/ |
D | InstrumenterTest.java | 166 buffer.toByteArray())).readObject(); in testSerialization() 190 new ByteArrayInputStream(buffer.toByteArray()), out, "Test"); in testInstrumentAll_Zip() 194 out.toByteArray())); in testInstrumentAll_Zip() 280 new ByteArrayInputStream(out.toByteArray()), in testInstrumentAll_BrokenZipEntry() 303 new ByteArrayInputStream(buffer.toByteArray()), out, in testInstrumentAll_BrokenClassFileInZip() 341 jarbuffer.toByteArray())), gzipOutput); in testInstrumentAll_Pack200() 346 pack200buffer.toByteArray()), out, "Test"); in testInstrumentAll_Pack200() 351 out.toByteArray())), new JarOutputStream(jarbuffer)); in testInstrumentAll_Pack200() 355 jarbuffer.toByteArray())); in testInstrumentAll_Pack200() 386 assertEquals("text", new String(out.toByteArray())); in testInstrumentAll_Other() [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 …]
|
D | LittleEndianDataOutputStreamTest.java | 58 byte[] data = baos.toByteArray(); in testWriteLittleEndian() 89 byte[] data = baos.toByteArray(); in testWriteBytes() 106 byte[] data = baos.toByteArray(); in testWriteBytes_discardHighOrderBytes() 123 byte[] data = baos.toByteArray(); in testWriteChars()
|
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/ |
D | NanoTest.java | 87 byte [] result = MessageNano.toByteArray(msg); in testSimpleMessageNano() 126 byte [] result = MessageNano.toByteArray(msg); in testRecursiveMessageNano() 144 assertEquals(0, MessageNano.toByteArray(msg).length); in testMessageNoFields() 156 byte [] result = MessageNano.toByteArray(msg); in testNanoRequiredInt32() 176 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt32() 197 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt64() 218 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint32() 239 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint64() 260 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint32() 281 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint64() [all …]
|
/external/protobuf/javanano/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/protobuf/javamicro/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
|
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/bsdiff/ |
D | BsPatchTest.java | 88 byte[] actual = newData.toByteArray(); in testTransformBytes() 595 int actualLength = outputStream.toByteArray().length; in testPipe() 600 actualLength = outputStream.toByteArray().length; in testPipe() 602 byte actualByte = outputStream.toByteArray()[0]; in testPipe() 608 actualLength = outputStream.toByteArray().length; in testPipe() 617 actualLength = outputStream.toByteArray().length; in testPipe() 642 int actualLength = out.toByteArray().length; in testPipe_CopyZeroBytes() 662 byte[] actualNewDataBytes = actualNewData.toByteArray(); in invokeApplyPatch() 711 return stripNewlineIfNecessary(result.toByteArray()); in readTestData() 769 return new ByteArrayInputStream(out.toByteArray()); in makePatch()
|
/external/volley/src/test/java/com/android/volley/toolbox/ |
D | DiskBasedCacheTest.java | 48 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in cacheHeaderSerialization() 67 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in serializeInt() 84 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in serializeLong() 99 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in serializeString() 120 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in serializeMap()
|