Home
last modified time | relevance | path

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

123456789

/third_party/flutter/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/conversion/eot/
DGlyfEncoderTest.java39 byte[] actual = os.toByteArray(); in test255UShort1()
47 byte[] actual = os.toByteArray(); in test255UShort2()
55 byte[] actual = os.toByteArray(); in test255UShort3()
63 byte[] actual = os.toByteArray(); in test255UShort4()
71 byte[] actual = os.toByteArray(); in test255Short1()
79 byte[] actual = os.toByteArray(); in test255Short2()
87 byte[] actual = os.toByteArray(); in test255Short3()
95 byte[] actual = os.toByteArray(); in test255Short4()
103 byte[] actual = os.toByteArray(); in test255Short5()
111 byte[] actual = os.toByteArray(); in test255Short6()
[all …]
DBitIOWriterTest.java45 byte[] result = writer.toByteArray(); in testBitIOBit()
55 byte[] result = writer.toByteArray(); in testBitIOValues()
72 byte[] result = writer.toByteArray(); in testBitIOBool()
DMagnitudeDependentWriterTest.java51 byte[] result = writer.toByteArray(); in testMagnitudeDependent()
64 byte[] result = writer.toByteArray(); in testMagnitudeDependentValues()
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/conversion/eot/
DGlyfEncoderTest.java39 byte[] actual = os.toByteArray(); in test255UShort1()
47 byte[] actual = os.toByteArray(); in test255UShort2()
55 byte[] actual = os.toByteArray(); in test255UShort3()
63 byte[] actual = os.toByteArray(); in test255UShort4()
71 byte[] actual = os.toByteArray(); in test255Short1()
79 byte[] actual = os.toByteArray(); in test255Short2()
87 byte[] actual = os.toByteArray(); in test255Short3()
95 byte[] actual = os.toByteArray(); in test255Short4()
103 byte[] actual = os.toByteArray(); in test255Short5()
111 byte[] actual = os.toByteArray(); in test255Short6()
[all …]
DBitIOWriterTest.java45 byte[] result = writer.toByteArray(); in testBitIOBit()
55 byte[] result = writer.toByteArray(); in testBitIOValues()
72 byte[] result = writer.toByteArray(); in testBitIOBool()
DMagnitudeDependentWriterTest.java51 byte[] result = writer.toByteArray(); in testMagnitudeDependent()
64 byte[] result = writer.toByteArray(); in testMagnitudeDependentValues()
/third_party/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 …]
DByteStringTest.java129 isArrayRange(substring.toByteArray(), bytes, 500, bytes.length - 500)); in testSubstring_BeginIndex()
137 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_BytesOffsetSize()
144 "copyFrom must contain the expected bytes", isArray(byteString.toByteArray(), bytes)); in testCopyFrom_Bytes()
155 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_ByteBufferSize()
166 isArrayRange(byteString.toByteArray(), bytes, 500, bytes.length - 500)); in testCopyFrom_ByteBuffer()
175 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_StringEncoding()
184 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Utf8()
194 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Iterable()
263 byte[] originalValue = byteString.toByteArray(); in testReadFrom_mutating()
268 byte[] newValue = byteString.toByteArray(); in testReadFrom_mutating()
[all …]
DCachedFieldSizeTest.java50 UnittestProto3.TestPackedTypes.parseFrom(TestUtil.getPackedSet().toByteArray())); in testCachedFieldSize()
55 message.toByteArray(); in testCachedFieldSize()
58 byte[] data2 = message.getProto2Child().toByteArray(); in testCachedFieldSize()
59 byte[] data3 = message.getProto3Child().toByteArray(); in testCachedFieldSize()
DCodedAdapterTest.java56 byte[] expectedBytes = expected.toByteArray(); in proto3Roundtrip()
63 byte[] actualBytes = toByteArray(result, expectedBytes.length); in proto3Roundtrip()
73 byte[] expectedBytes = expected.toByteArray(); in proto2Roundtrip()
80 byte[] actualBytes = toByteArray(result, expectedBytes.length); in proto2Roundtrip()
87 public static <T> byte[] toByteArray(T msg, int size) throws Exception { in toByteArray() method in CodedAdapterTest
DBinaryProtocolTest.java56 byte[] expectedBytes = expected.toByteArray(); in proto3Roundtrip()
64 byte[] actualBytes = ExperimentalSerializationUtil.toByteArray(result); in proto3Roundtrip()
75 byte[] expectedBytes = expected.toByteArray(); in proto2Roundtrip()
83 byte[] actualBytes = ExperimentalSerializationUtil.toByteArray(result); in proto2Roundtrip()
DParserTest.java63 final byte[] data = message.toByteArray(); in assertRoundTripEquals()
81 final byte[] data = message.toByteArray(); in assertRoundTripEquals()
124 byte[] data = partialMessage.toByteArray(); in assertParsePartial()
132 parser.parseFrom(partialMessage.toByteArray()); in assertParsePartial()
148 parser.parseFrom(new ByteArrayInputStream(partialMessage.toByteArray())); in assertParsePartial()
156 parser.parseFrom(CodedInputStream.newInstance(partialMessage.toByteArray())); in assertParsePartial()
179 InputStream input = new ByteArrayInputStream(output.toByteArray()); in testParseDelimitedTo()
DCodedInputStreamTest.java371 byte[] rawBytes = message.toByteArray(); in testReadWholeMessage()
386 byte[] rawBytes = message.toByteArray(); in testSkipWholeMessage()
497 byte[] data = message.toByteArray(); in testReadHugeBlob()
525 byte[] data = rawOutput.toByteString().toByteArray(); in testReadMaliciouslyLargeBlob()
584 return TestAllTypes.newBuilder().setOptionalBytes(bsValue).build().toByteArray(); in getBigSerializedMessage()
635 byte[] data100 = makeRecursiveMessage(100).toByteArray(); in testMaliciousRecursion()
636 byte[] data101 = makeRecursiveMessage(101).toByteArray(); in testMaliciousRecursion()
668 new SmallBlockInputStream(TestUtil.getAllSet().toByteArray(), 16)); in testSizeLimit()
728 byte[] rawInput = rawOutput.toByteArray(); in testRefillBufferWithCorrectSize()
770 byte[] rawInput = rawOutput.toByteArray(); in testCurrentLimitExceeded()
[all …]
DExperimentalSerializationUtil.java43 public static <T> byte[] toByteArray(T msg) throws IOException { in toByteArray() method in ExperimentalSerializationUtil
44 return toByteArray(msg, Protobuf.getInstance().schemaFor(msg)); in toByteArray()
51 public static <T> byte[] toByteArray(T msg, Schema<T> schema) throws IOException { in toByteArray() method in ExperimentalSerializationUtil
/third_party/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 …]
DParserTest.java67 final byte[] data = message.toByteArray(); in assertRoundTripEquals()
85 final byte[] data = message.toByteArray(); in assertRoundTripEquals()
130 byte[] data = partialMessage.toByteArray(); in testParsePartial()
141 parser.parseFrom(partialMessage.toByteArray()); in testParsePartial()
157 parser.parseFrom(new ByteArrayInputStream(partialMessage.toByteArray())); in testParsePartial()
166 partialMessage.toByteArray())); in testParsePartial()
179 InputStream input = new ByteArrayInputStream(output.toByteArray()); in testParseDelimitedTo()
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/localedistance/
DTrieTest.java22 assertThat(getRawTrieTable(trie.toByteArray())).containsExactly("answer", 42); in testSimple()
29 assertThat(getRawTrieTable(trie.toByteArray())).containsExactly("foo-bar", 42); in testSubSpan()
44 assertThat(getRawTrieTable(trie.toByteArray())) in testHierarchyAndOrdering()
73 assertThat(getRawTrieTable(trie.toByteArray())) in testStarOrdering()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
DMagnitudeDependentWriter.java69 public byte[] toByteArray() { in toByteArray() method in MagnitudeDependentWriter
70 return buf.toByteArray(); in toByteArray()
DBitIOWriter.java64 public byte[] toByteArray() { in toByteArray() method in BitIOWriter
65 return buf.toByteArray(); in toByteArray()
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
DBitIOWriter.java64 public byte[] toByteArray() { in toByteArray() method in BitIOWriter
65 return buf.toByteArray(); in toByteArray()
DMagnitudeDependentWriter.java69 public byte[] toByteArray() { in toByteArray() method in MagnitudeDependentWriter
70 return buf.toByteArray(); in toByteArray()
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
DCollationKeyICU.java48 public byte[] toByteArray() { in toByteArray() method in CollationKeyICU
49 return fIcuCollKey.toByteArray(); in toByteArray()

123456789