Home
last modified time | relevance | path

Searched refs:toByteArray (Results 1 – 25 of 1039) sorted by relevance

12345678910>>...42

/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLRSAPrivateCrtKey.java86 modulus.toByteArray(), in init()
87 publicExponent == null ? null : publicExponent.toByteArray(), in init()
88 privateExponent.toByteArray(), in init()
89 primeP == null ? null : primeP.toByteArray(), in init()
90 primeQ == null ? null : primeQ.toByteArray(), in init()
91 primeExponentP == null ? null : primeExponentP.toByteArray(), in init()
92 primeExponentQ == null ? null : primeExponentQ.toByteArray(), in init()
93 crtCoefficient == null ? null : crtCoefficient.toByteArray())); in init()
132 modulus.toByteArray(), in getInstance()
133 publicExponent == null ? null : publicExponent.toByteArray(), in getInstance()
[all …]
DOpenSSLRSAPrivateKey.java78 modulus.toByteArray(), in init()
80 privateExponent.toByteArray(), in init()
106 .getModulus().toByteArray()), true); in wrapPlatformKey()
127 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly()
150 modulus.toByteArray(), in getInstance()
152 privateExponent.toByteArray(), in getInstance()
272 modulus.toByteArray(), in readObject()
274 privateExponent.toByteArray(), in readObject()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLRSAPrivateCrtKey.java87 modulus.toByteArray(), in init()
88 publicExponent == null ? null : publicExponent.toByteArray(), in init()
89 privateExponent.toByteArray(), in init()
90 primeP == null ? null : primeP.toByteArray(), in init()
91 primeQ == null ? null : primeQ.toByteArray(), in init()
92 primeExponentP == null ? null : primeExponentP.toByteArray(), in init()
93 primeExponentQ == null ? null : primeExponentQ.toByteArray(), in init()
94 crtCoefficient == null ? null : crtCoefficient.toByteArray())); in init()
133 modulus.toByteArray(), in getInstance()
134 publicExponent == null ? null : publicExponent.toByteArray(), in getInstance()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/lz4/
DFramedLZ4CompressorInputStreamTest.java57 byte[] expected = IOUtils.toByteArray(e); in readBlaLz4()
58 byte[] actual = IOUtils.toByteArray(a); in readBlaLz4()
69 byte[] expected = IOUtils.toByteArray(e); in readBlaLz4ViaFactory()
70 byte[] actual = IOUtils.toByteArray(a); in readBlaLz4ViaFactory()
80 byte[] expected = IOUtils.toByteArray(e); in readBlaLz4ViaFactoryAutoDetection()
81 byte[] actual = IOUtils.toByteArray(a); in readBlaLz4ViaFactoryAutoDetection()
90 byte[] expected = IOUtils.toByteArray(e); in readBlaLz4WithDecompressConcatenated()
91 byte[] actual = IOUtils.toByteArray(a); in readBlaLz4WithDecompressConcatenated()
133 byte[] expected = IOUtils.toByteArray(e); in readBlaLz4ViaFactoryWithDecompressConcatenated()
134 byte[] actual = IOUtils.toByteArray(a); in readBlaLz4ViaFactoryWithDecompressConcatenated()
[all …]
/external/ukey2/src/main/javatest/com/google/security/cryptauth/lib/securemessage/
DSecureMessageSimpleTestVectorTest.java93 unverifiedHeader.toByteArray(), in testEcdsaOnly()
94 headerAndBody.getHeader().toByteArray())); in testEcdsaOnly()
95 assertTrue(Arrays.equals(TEST_MESSAGE, headerAndBody.getBody().toByteArray())); in testEcdsaOnly()
97 assertTrue(Arrays.equals(TEST_METADATA, unverifiedHeader.getPublicMetadata().toByteArray())); in testEcdsaOnly()
98 assertTrue(Arrays.equals(TEST_VKID, unverifiedHeader.getVerificationKeyId().toByteArray())); in testEcdsaOnly()
117 unverifiedHeader.toByteArray(), in testEcdsaAndAes()
118 headerAndBody.getHeader().toByteArray())); in testEcdsaAndAes()
119 assertTrue(Arrays.equals(TEST_MESSAGE, headerAndBody.getBody().toByteArray())); in testEcdsaAndAes()
121 assertTrue(Arrays.equals(TEST_METADATA, unverifiedHeader.getPublicMetadata().toByteArray())); in testEcdsaAndAes()
122 assertTrue(Arrays.equals(TEST_VKID, unverifiedHeader.getVerificationKeyId().toByteArray())); in testEcdsaAndAes()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/
DASN1InputStream.java148 return new DLApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in buildObject()
185 return new LazyEncodedSequence(defIn.toByteArray()); in buildObject()
390 return defIn.toByteArray(); in getBuffer()
473 return new ASN1GeneralizedTime(defIn.toByteArray()); in createPrimitiveDERObject()
475 return new DERGeneralString(defIn.toByteArray()); in createPrimitiveDERObject()
477 return new DERIA5String(defIn.toByteArray()); in createPrimitiveDERObject()
479 return new ASN1Integer(defIn.toByteArray(), false); in createPrimitiveDERObject()
483 return new DERNumericString(defIn.toByteArray()); in createPrimitiveDERObject()
487 return new DEROctetString(defIn.toByteArray()); in createPrimitiveDERObject()
489 return new DERPrintableString(defIn.toByteArray()); in createPrimitiveDERObject()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1InputStream.java146 return new DLApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in buildObject()
183 return new LazyEncodedSequence(defIn.toByteArray()); in buildObject()
388 return defIn.toByteArray(); in getBuffer()
471 return new ASN1GeneralizedTime(defIn.toByteArray()); in createPrimitiveDERObject()
473 return new DERGeneralString(defIn.toByteArray()); in createPrimitiveDERObject()
475 return new DERIA5String(defIn.toByteArray()); in createPrimitiveDERObject()
477 return new ASN1Integer(defIn.toByteArray(), false); in createPrimitiveDERObject()
481 return new DERNumericString(defIn.toByteArray()); in createPrimitiveDERObject()
485 return new DEROctetString(defIn.toByteArray()); in createPrimitiveDERObject()
487 return new DERPrintableString(defIn.toByteArray()); in createPrimitiveDERObject()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DASN1InputStream.java150 return new DLApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in buildObject()
187 return new LazyEncodedSequence(defIn.toByteArray()); in buildObject()
393 return defIn.toByteArray(); in getBuffer()
476 return new ASN1GeneralizedTime(defIn.toByteArray()); in createPrimitiveDERObject()
478 return new DERGeneralString(defIn.toByteArray()); in createPrimitiveDERObject()
480 return new DERIA5String(defIn.toByteArray()); in createPrimitiveDERObject()
482 return new ASN1Integer(defIn.toByteArray(), false); in createPrimitiveDERObject()
486 return new DERNumericString(defIn.toByteArray()); in createPrimitiveDERObject()
490 return new DEROctetString(defIn.toByteArray()); in createPrimitiveDERObject()
492 return new DERPrintableString(defIn.toByteArray()); in createPrimitiveDERObject()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DArrayDecodersTest.java53 ArrayDecoders.decodeString(NEGATIVE_SIZE_0.toByteArray(), 0, registers); in testException_decodeString()
61 ArrayDecoders.decodeStringRequireUtf8(NEGATIVE_SIZE_0.toByteArray(), 0, registers); in testException_decodeStringRequireUtf8()
69 ArrayDecoders.decodeBytes(NEGATIVE_SIZE_0.toByteArray(), 0, registers); in testException_decodeBytes()
79 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeStringList_first()
93 NEGATIVE_SIZE_1.toByteArray(), in testException_decodeStringList_second()
107 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeStringListRequireUtf8_first()
121 NEGATIVE_SIZE_1.toByteArray(), in testException_decodeStringListRequireUtf8_second()
135 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeBytesList_first()
149 NEGATIVE_SIZE_1.toByteArray(), in testException_decodeBytesList_second()
163 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeUnknownField()
DCodedOutputStreamTest.java55 byte[] toByteArray(); in toByteArray() method
75 public byte[] toByteArray() { in toByteArray() method in CodedOutputStreamTest.OutputStreamCoder
76 return output.toByteArray(); in toByteArray()
100 public byte[] toByteArray() { in toByteArray() method in CodedOutputStreamTest.ArrayCoder
132 public byte[] toByteArray() { in toByteArray() method in CodedOutputStreamTest.NioHeapCoder
175 public byte[] toByteArray() { in toByteArray() method in CodedOutputStreamTest.NioDirectCoder
340 final byte[] expectedBytes = TestUtil.getGoldenMessage().toByteArray(); in testWriteWholeMessage()
347 byte[] rawBytes = coder.toByteArray(); in testWriteWholeMessage()
356 assertEqualBytes(OutputType.STREAM, expectedBytes, coder.toByteArray()); in testWriteWholeMessage()
365 byte[] expectedBytes = TestUtil.getGoldenPackedFieldsMessage().toByteArray(); in testWriteWholePackedFieldsMessage()
[all …]
DWireFormatLiteTest.java101 message2 = TestAllExtensionsLite.parseFrom(message.toByteArray(), registryLite); in testParseExtensionsLite()
114 message2 = TestPackedExtensionsLite.parseFrom(message.toByteArray(), registry); in testParsePackedExtensionsLite()
181 TestPackedTypes message2 = TestPackedTypes.parseFrom(outputStream.toByteArray()); in testSerializationPackedWithoutGetSerializedSize()
220 ByteArrayInputStream input = new ByteArrayInputStream(output.toByteArray()); in testSerializeDelimited()
292 byte[] messageSetBytes = byteArrayOutputStream.toByteArray(); in testSerializeMessageSetWithFlag()
655 byte[] data = output.toByteArray(); in testUnmatchedWireType()
682 byte[] data = message.toByteArray(); in testParseTruncatedPackedFields()
769 TestAllTypes parsed = TestAllTypes.parseFrom(message.toByteArray()); in testParseVarintMinMax()
780 TestAllTypes parsed = TestAllTypes.parseFrom(message.toByteArray()); in testParseAllVarintBits()
786 TestAllTypes parsed = TestAllTypes.parseFrom(message.toByteArray()); in testParseAllVarintBits()
[all …]
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DCodedOutputStreamTest.java88 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 …]
DByteStringTest.java94 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 …]
/external/guava/android/guava-tests/test/com/google/common/io/
DByteStreamsTest.java51 assertThat(out.toByteArray()).isEqualTo(expected); in testCopyChannel()
69 byte[] actual = out.toByteArray(); in testCopyFileChannel()
313 assertEquals(0, out.toByteArray().length); in testNewDataOutput_empty()
320 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_writeInt()
327 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_sized()
333 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_writeLong()
339 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_writeByteArray()
346 assertThat(out.toByteArray()).isEqualTo(new byte[] {0x12, 0x34}); in testNewDataOutput_writeByte()
353 assertThat(out.toByteArray()).isEqualTo(expected); in testNewDataOutput_writeByteOffset()
361 assertThat(out.toByteArray()).isEqualTo(expected); in testNewDataOutput_writeBoolean()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DByteStreamsTest.java51 assertThat(out.toByteArray()).isEqualTo(expected); in testCopyChannel()
69 byte[] actual = out.toByteArray(); in testCopyFileChannel()
313 assertEquals(0, out.toByteArray().length); in testNewDataOutput_empty()
320 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_writeInt()
327 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_sized()
333 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_writeLong()
339 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_writeByteArray()
346 assertThat(out.toByteArray()).isEqualTo(new byte[] {0x12, 0x34}); in testNewDataOutput_writeByte()
353 assertThat(out.toByteArray()).isEqualTo(expected); in testNewDataOutput_writeByteOffset()
361 assertThat(out.toByteArray()).isEqualTo(expected); in testNewDataOutput_writeBoolean()
[all …]
/external/ukey2/src/main/javatest/com/google/security/cryptauth/lib/securegcm/
DUkey2HandshakeTest.java283 message.setMessageData(ByteString.copyFrom(clientInit.build().toByteArray())); in testClientInitUnsupportedVersion()
284 handshakeMessage = message.build().toByteArray(); in testClientInitUnsupportedVersion()
303 message.setMessageData(ByteString.copyFrom(clientInit.build().toByteArray())); in testClientInitUnsupportedVersion()
304 handshakeMessage = message.build().toByteArray(); in testClientInitUnsupportedVersion()
337 clientInit.getRandom().toByteArray(), in testWrongNonceLengthInClientInit()
339 message.setMessageData(ByteString.copyFrom(clientInit.build().toByteArray())); in testWrongNonceLengthInClientInit()
340 handshakeMessage = message.build().toByteArray(); in testWrongNonceLengthInClientInit()
378 message.setMessageData(ByteString.copyFrom(badClientInit.build().toByteArray())); in testServerCatchesMissingCommitmentInClientInit()
379 handshakeMessage = message.build().toByteArray(); in testServerCatchesMissingCommitmentInClientInit()
412 message.setMessageData(ByteString.copyFrom(serverInit.toByteArray())); in testServerInitUnsupportedVersion()
[all …]
/external/okio/okio/src/commonTest/kotlin/okio/
DByteStringTest.kt89 assertTrue(byteString.startsWith("".decodeHex().toByteArray())) in startsWithByteArray()
90 assertTrue(byteString.startsWith("11".decodeHex().toByteArray())) in startsWithByteArray()
91 assertTrue(byteString.startsWith("1122".decodeHex().toByteArray())) in startsWithByteArray()
92 assertTrue(byteString.startsWith("112233".decodeHex().toByteArray())) in startsWithByteArray()
93 assertFalse(byteString.startsWith("2233".decodeHex().toByteArray())) in startsWithByteArray()
94 assertFalse(byteString.startsWith("11223344".decodeHex().toByteArray())) in startsWithByteArray()
95 assertFalse(byteString.startsWith("112244".decodeHex().toByteArray())) in startsWithByteArray()
100 assertTrue(byteString.endsWith("".decodeHex().toByteArray())) in endsWithByteArray()
101 assertTrue(byteString.endsWith("33".decodeHex().toByteArray())) in endsWithByteArray()
102 assertTrue(byteString.endsWith("2233".decodeHex().toByteArray())) in endsWithByteArray()
[all …]
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/instr/
DInstrumenterTest.java116 return cw.toByteArray(); in createClass()
200 buffer.toByteArray())).readObject(); in testSerialization()
224 new ByteArrayInputStream(buffer.toByteArray()), out, "Test"); in testInstrumentAll_Zip()
228 out.toByteArray())); in testInstrumentAll_Zip()
314 new ByteArrayInputStream(out.toByteArray()), in testInstrumentAll_BrokenZipEntry()
337 new ByteArrayInputStream(buffer.toByteArray()), out, in testInstrumentAll_BrokenClassFileInZip()
375 jarbuffer.toByteArray())), gzipOutput); in testInstrumentAll_Pack200()
380 pack200buffer.toByteArray()), out, "Test"); in testInstrumentAll_Pack200()
385 out.toByteArray())), new JarOutputStream(jarbuffer)); in testInstrumentAll_Pack200()
389 jarbuffer.toByteArray())); in testInstrumentAll_Pack200()
[all …]
/external/okio/okio/src/jvmTest/java/okio/
DByteStringJavaTest.java161 assertTrue(byteString.startsWith(ByteString.decodeHex("").toByteArray())); in startsWithByteArray()
162 assertTrue(byteString.startsWith(ByteString.decodeHex("11").toByteArray())); in startsWithByteArray()
163 assertTrue(byteString.startsWith(ByteString.decodeHex("1122").toByteArray())); in startsWithByteArray()
164 assertTrue(byteString.startsWith(ByteString.decodeHex("112233").toByteArray())); in startsWithByteArray()
165 assertFalse(byteString.startsWith(ByteString.decodeHex("2233").toByteArray())); in startsWithByteArray()
166 assertFalse(byteString.startsWith(ByteString.decodeHex("11223344").toByteArray())); in startsWithByteArray()
167 assertFalse(byteString.startsWith(ByteString.decodeHex("112244").toByteArray())); in startsWithByteArray()
172 assertTrue(byteString.endsWith(ByteString.decodeHex("").toByteArray())); in endsWithByteArray()
173 assertTrue(byteString.endsWith(ByteString.decodeHex("33").toByteArray())); in endsWithByteArray()
174 assertTrue(byteString.endsWith(ByteString.decodeHex("2233").toByteArray())); in endsWithByteArray()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/
DGZipTestCase.java116 final byte[] data = ((ByteArrayOutputStream) out).toByteArray(); in testCorruptedInput()
146 content = IOUtils.toByteArray(fis); in testInteroperabilityWithGzipCompressorInputStream()
162 …ressorInputStream in = new GzipCompressorInputStream(new ByteArrayInputStream(bout.toByteArray())); in testInteroperabilityWithGzipCompressorInputStream()
163 final byte[] content2 = IOUtils.toByteArray(in); in testInteroperabilityWithGzipCompressorInputStream()
172 content = IOUtils.toByteArray(fis); in testInteroperabilityWithGZIPInputStream()
188 … final GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(bout.toByteArray())); in testInteroperabilityWithGZIPInputStream()
189 final byte[] content2 = IOUtils.toByteArray(in); in testInteroperabilityWithGZIPInputStream()
215 content = IOUtils.toByteArray(fis); in testExtraFlags()
227 assertEquals("extra flags (XFL)", flag, bout.toByteArray()[8]); in testExtraFlags()
273 new GzipCompressorInputStream(new ByteArrayInputStream(bout.toByteArray())); in testMetadataRoundTrip()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZipArchiveInputStreamTest.java145 assertArrayEquals(IOUtils.toByteArray(original), IOUtils.toByteArray(in)); in testUnshrinkEntry()
156 assertArrayEquals(IOUtils.toByteArray(original), IOUtils.toByteArray(in)); in testUnshrinkEntry()
175 IOUtils.toByteArray(in)); in testReadingOfFirstStoredEntry()
206 assertArrayEquals(expected, IOUtils.toByteArray(in)); in testUnzipBZip2CompressedEntry()
219 byte[] orig = IOUtils.toByteArray(in); in readDeflate64CompressedStream()
221 byte[] fromZip = IOUtils.toByteArray(zin); in readDeflate64CompressedStream()
234 byte[] fromZip = IOUtils.toByteArray(zin); in readDeflate64CompressedStreamWithDataDescriptor()
377 IOUtils.toByteArray(archive); in singleByteReadConsistentlyReturnsMinusOneAtEof()
418 IOUtils.toByteArray(archive); in multiByteReadConsistentlyReturnsMinusOneAtEof()
428 content = IOUtils.toByteArray(fs); in singleByteReadThrowsAtEofForCorruptedStoredEntry()
[all …]
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/
DEnrollmentCryptoOps.java143 if (!Arrays.equals(enrollmentInfo.getDeviceMasterKeyHash().toByteArray(), in encryptEnrollmentMessage()
152 .setVerificationKeyId(enrollmentInfo.getUserPublicKey().toByteArray()) in encryptEnrollmentMessage()
153 .buildSignedCleartextMessage(signingKey, sigType, enrollmentInfo.toByteArray()); in encryptEnrollmentMessage()
162 .toByteArray()) in encryptEnrollmentMessage()
164 masterKey, OUTER_SIG_TYPE, masterKey, OUTER_ENC_TYPE, innerMsg.toByteArray()); in encryptEnrollmentMessage()
165 return outerMsg.toByteArray(); in encryptEnrollmentMessage()
197 .getVerificationKeyId().toByteArray(); in decryptEnrollmentMessage()
215 && Arrays.equals(encodedUserPublicKey, enrollmentInfo.getUserPublicKey().toByteArray()) in decryptEnrollmentMessage()
217 enrollmentInfo.getDeviceMasterKeyHash().toByteArray()); in decryptEnrollmentMessage()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/propagation/
DTagContextDeserializationTest.java101 byte[] bytes = output.toByteArray(); in testDeserializeTooLargeByteArrayThrowException()
132 byte[] bytes = output.toByteArray(); in testDeserializeTooLargeByteArrayThrowException_WithDuplicateTagKeys()
145 final byte[] bytes = output.toByteArray(); in testDeserializeInvalidTagKey()
159 final byte[] bytes = output.toByteArray(); in testDeserializeInvalidTagValue()
173 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeOneTag()
188 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeMultipleTags()
199 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeDuplicateKeys()
219 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeNonConsecutiveDuplicateKeys()
230 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeDuplicateTags()
250 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeNonConsecutiveDuplicateTags()
[all …]
DTagContextBinarySerializerImplTest.java63 assertThat(serializer.toByteArray(tagContext)).isEmpty(); in toByteArray_TaggingDisabled()
69 final byte[] serialized = serializer.toByteArray(tagContext); in toByteArray_TaggingReenabled()
71 assertThat(serializer.toByteArray(tagContext)).isEmpty(); in toByteArray_TaggingReenabled()
73 assertThat(serializer.toByteArray(tagContext)).isEqualTo(serialized); in toByteArray_TaggingReenabled()
80 byte[] serialized = serializer.toByteArray(tagContext); in fromByteArray_TaggingDisabled()
88 byte[] serialized = serializer.toByteArray(tagContext); in fromByteArray_TaggingReenabled()
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java86 byte [] result = MessageNano.toByteArray(msg); in testSimpleMessageNano()
125 byte [] result = MessageNano.toByteArray(msg); in testRecursiveMessageNano()
143 assertEquals(0, MessageNano.toByteArray(msg).length); in testMessageNoFields()
155 byte [] result = MessageNano.toByteArray(msg); in testNanoRequiredInt32()
175 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt32()
196 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt64()
217 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint32()
238 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint64()
259 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint32()
280 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint64()
[all …]

12345678910>>...42