/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | WireFormatTest.java | 63 ByteString rawBytes = message.toByteString(); in testSerialization() 74 ByteString rawBytes = message.toByteString(); in testSerializationPacked() 88 ByteString rawBytes = message.toByteString(); in testSerializeExtensions() 100 ByteString rawBytes = message.toByteString(); in testSerializePackedExtensions() 103 ByteString rawBytes2 = message2.toByteString(); in testSerializePackedExtensions() 136 ByteString rawBytes = message.toByteString(); in testSerializeExtensionsLite() 148 ByteString rawBytes = message.toByteString(); in testSerializePackedExtensionsLite() 151 ByteString rawBytes2 = message2.toByteString(); in testSerializePackedExtensionsLite() 162 ByteString rawBytes = message.toByteString(); in testParseExtensions() 175 ByteString rawBytes = message.toByteString(); in testParsePackedExtensions() [all …]
|
D | UnknownFieldSetTest.java | 57 allFieldsData = allFields.toByteString(); in setUp() 90 return bizarroFields.build().toByteString(); in getBizarroData() 154 ByteString data = emptyMessage.toByteString(); in testSerialize() 228 ByteString data = fields.toByteString(); in testParseKnownAndUnknown() 262 assertEquals(allFieldsData, message.toByteString()); in testUnknownExtensions() 303 .toByteString(); in testParseUnknownEnumValue() 349 .toByteString(); in testLargeVarint() 455 ByteString data = emptyMessageLite.toByteString(); in testSerializeLite() 463 ByteString allExtensionsData = allExtensions.toByteString(); in testAllExtensionsLite() 466 ByteString data = emptyMessageLite.toByteString(); in testAllExtensionsLite() [all …]
|
D | UnknownFieldSetLiteTest.java | 55 assertEquals(ByteString.EMPTY, toByteString(unknownFields)); in testDefaultInstance() 68 assertEquals(foo.toByteString(), toByteString(instance)); in testMergeFieldFrom() 81 assertEquals(foo.toByteString().size(), instance.getSerializedSize()); 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() 152 assertEquals(ByteString.EMPTY, toByteString(unknownFields)); in testMutableCopyOf_empty() 201 Foo.parseFrom(byteStringOutput.toByteString()); in testMissingStartGroupTag() 216 Foo.parseFrom(byteStringOutput.toByteString()); in testMissingEndGroupTag() 232 Foo.parseFrom(byteStringOutput.toByteString()); in testMismatchingGroupTags() [all …]
|
D | AbstractMessageTest.java | 241 TestAllTypes.parseFrom(abstractMessage.toByteString())); in testSerialization() 243 assertEquals(TestUtil.getAllSet().toByteString(), in testSerialization() 244 abstractMessage.toByteString()); in testSerialization() 251 builder.mergeFrom(TestUtil.getAllSet().toByteString()).build(); in testParsing() 258 ByteString bytes = builder.buildPartial().toByteString(); in testParsingUninitialized() 288 TestPackedTypes.parseFrom(abstractMessage.toByteString())); in testPackedSerialization() 290 assertEquals(TestUtil.getPackedSet().toByteString(), in testPackedSerialization() 291 abstractMessage.toByteString()); in testPackedSerialization() 298 builder.mergeFrom(TestUtil.getPackedSet().toByteString()).build(); in testPackedParsing() 307 TestUnpackedTypes.parseFrom(abstractMessage.toByteString())); in testUnpackedSerialization() [all …]
|
D | LazyFieldLiteTest.java | 105 assertEquals(message.toByteString(), lazyField.toByteString()); in testGetByteString() 107 assertNotEqual(message.toByteString(), lazyField.toByteString()); in testGetByteString() 113 assertEquals(message.toByteString(), lazyField.toByteString()); in testGetByteStringEx() 115 assertNotEqual(message.toByteString(), lazyField.toByteString()); in testGetByteStringEx() 131 assertEquals(ByteString.EMPTY, field.toByteString()); in testEmptyLazyField() 141 assertEquals(ByteString.EMPTY, field.toByteString()); in testInvalidProto() 256 ByteString bytes = message.toByteString(); in createLazyFieldLiteFromMessage()
|
D | ParserTest.java | 78 message.toByteString(), registry)); in assertRoundTripEquals() 98 assertMessageEquals(message, parser.parseFrom(message.toByteString())); in assertRoundTripEquals() 111 assertEquals(expected.toByteString(), actual.toByteString()); in assertMessageEquals() 139 partialMessage.toByteString())); in assertParsePartial() 155 parser.parseFrom(partialMessage.toByteString()); in assertParsePartial() 218 TestEmptyMessage.parser().parseFrom(TestUtil.getAllSet().toByteString()); in testParseUnknownFields() 220 TestUtil.getAllSet().toByteString(), in testParseUnknownFields() 221 emptyMessage.toByteString()); in testParseUnknownFields() 294 .build().toByteString(); in testParsingMerge() 356 .build().toByteString(); in testParsingMergeLite()
|
D | LazyStringEndToEndTest.java | 63 .toByteString(); in setUp() 73 ByteString bytes = tV2.toByteString(); in testParseAndSerialize() 77 bytes = tV2.toByteString(); in testParseAndSerialize() 110 proto.toByteString(); in testCaching()
|
D | DynamicMessageTest.java | 105 newBuilder.mergeFrom(message.toByteString()); in testUnknownFields() 172 ByteString rawBytes = message.toByteString(); in testDynamicMessageSerialization() 178 assertEquals(TestUtil.getAllSet().toByteString(), rawBytes); in testDynamicMessageSerialization() 186 ByteString rawBytes = message.toByteString(); in testDynamicMessageParsing() 198 ByteString rawBytes = TestUtil.getAllExtensionsSet().toByteString(); in testDynamicMessageExtensionParsing() 216 ByteString rawBytes = message.toByteString(); in testDynamicMessagePackedSerialization() 222 assertEquals(TestUtil.getPackedSet().toByteString(), rawBytes); in testDynamicMessagePackedSerialization() 230 ByteString rawBytes = message.toByteString(); in testDynamicMessagePackedParsing()
|
D | FieldPresenceTest.java | 268 ByteString data = builder.build().toByteString(); in testSerializeAndParse() 294 ByteString data = builder.build().toByteString(); in testRepeatedFields() 350 ByteString data = message.toByteString(); in testUnknownFields() 356 0, optionalOnlyMessage.getUnknownFields().toByteString().size()); in testUnknownFields() 358 message = TestAllTypes.parseFrom(optionalOnlyMessage.toByteString()); in testUnknownFields() 369 0, dynamicOptionalOnlyMessage.getUnknownFields().toByteString().size()); in testUnknownFields() 370 assertEquals(optionalOnlyMessage.toByteString(), in testUnknownFields() 371 dynamicOptionalOnlyMessage.toByteString()); in testUnknownFields()
|
D | CodedInputStreamTest.java | 408 TestAllTypes.parseFrom(message.toByteString().newInput()); in testReadHugeBlob() 429 CodedInputStream input = rawOutput.toByteString().newCodedInput(); in testReadMaliciouslyLargeBlob() 460 ByteString data100 = makeRecursiveMessage(100).toByteString(); in testMaliciousRecursion() 461 ByteString data101 = makeRecursiveMessage(101).toByteString(); in testMaliciousRecursion() 491 TestUtil.getAllSet().toByteString().newInput(), 16)); in testSizeLimit() 571 new ByteArrayInputStream(rawOutput.toByteString().toByteArray())); in testReadString() 596 new ByteArrayInputStream(rawOutput.toByteString().toByteArray())); in testReadStringRequireUtf8() 617 CodedInputStream input = rawOutput.toByteString().newCodedInput(); in testReadStringInvalidUtf8() 637 CodedInputStream input = rawOutput.toByteString().newCodedInput(); in testReadStringRequireUtf8InvalidUtf8() 694 CodedInputStream inputStream = rawOutput.toByteString().newCodedInput(); in testReadByteArray() [all …]
|
D | CheckUtf8Test.java | 61 BytesWrapper.newBuilder().setReq(UTF8_BYTE_STRING).build().toByteString(); in testParseRequiredStringWithGoodUtf8() 94 BytesWrapper.newBuilder().setReq(NON_UTF8_BYTE_STRING).build().toByteString(); in testParseRequiredStringWithBadUtf8() 132 BytesWrapperSize.newBuilder().setReq(NON_UTF8_BYTE_STRING).build().toByteString(); in testParseRequiredStringWithBadUtf8Size()
|
D | MapForProto2LiteTest.java | 357 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 358 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 364 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 365 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 371 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 372 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 420 ByteString data = builder.build().toByteString(); in testUnknownEnumValues() 428 data = message.toByteString(); in testUnknownEnumValues()
|
D | MapForProto2Test.java | 336 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 337 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 343 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 344 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 350 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 351 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 559 .newBuilderForType().mergeFrom(message.toByteString()).build(); in testDynamicMessage() 602 ByteString data = builder.build().toByteString(); in testUnknownEnumValues() 612 data = message.toByteString(); in testUnknownEnumValues() 640 ByteString data = builder.build().toByteString(); in testRecursiveMap()
|
D | ByteStringTest.java | 415 ByteString byteString = output.toByteString(); in testNewOutput_InitialCapacity() 437 ByteString byteString = output.toByteString(); in testNewOutput_ArrayWrite() 457 ByteString byteString = output.toByteString(); in testNewOutput_WriteChar() 489 isArrayRange(output.toByteString().toByteArray(), in testNewOutput_Mixed() 492 ByteString byteString = output.toByteString(); in testNewOutput_Mixed() 500 ByteString byteString = ByteString.newOutput().toByteString(); in testNewOutputEmpty() 510 ByteString byteString = os.toByteString(); in testNewOutput_Mutating()
|
D | MapTest.java | 353 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 354 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 360 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 361 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 367 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse() 368 message = TestMap.parser().parseFrom(message.toByteString()); in testSerializeAndParse() 652 .newBuilderForType().mergeFrom(message.toByteString()).build(); in testDynamicMessage() 709 message = TestMap.parseFrom(message.toByteString()); in testUnknownEnumValues()
|
D | UnknownEnumValueTest.java | 64 ByteString data = message.toByteString(); in testUnknownEnumValues() 203 ByteString data = message.toByteString(); in testUnknownEnumValueWithDynamicMessage()
|
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/ |
D | SegmentedByteString.java | 86 return toByteString().utf8(); in utf8() 90 return toByteString().base64(); in base64() 94 return toByteString().hex(); in hex() 98 return toByteString().toAsciiLowercase(); in toAsciiLowercase() 102 return toByteString().toAsciiUppercase(); in toAsciiUppercase() 106 return toByteString().md5(); in md5() 110 return toByteString().sha256(); in sha256() 114 return toByteString().base64Url(); in base64Url() 118 return toByteString().substring(beginIndex); in substring() 122 return toByteString().substring(beginIndex, endIndex); in substring() [all …]
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | SegmentedByteString.java | 85 return toByteString().utf8(); in utf8() 89 return toByteString().base64(); in base64() 93 return toByteString().hex(); in hex() 97 return toByteString().toAsciiLowercase(); in toAsciiLowercase() 101 return toByteString().toAsciiUppercase(); in toAsciiUppercase() 105 return toByteString().md5(); in md5() 109 return toByteString().sha256(); in sha256() 113 return toByteString().base64Url(); in base64Url() 117 return toByteString().substring(beginIndex); in substring() 121 return toByteString().substring(beginIndex, endIndex); in substring() [all …]
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | LazyFieldLite.java | 157 return toByteString().equals(other.toByteString()); in equals() 300 setValue(mergeValueAndBytes(this.value, other.toByteString(), other.extensionRegistry)); in merge() 303 setValue(mergeValueAndBytes(other.value, this.toByteString(), this.extensionRegistry)); in merge() 307 setValue(mergeValueAndBytes(this.value, other.toByteString(), EMPTY_REGISTRY)); in merge() 396 public ByteString toByteString() { in toByteString() method in LazyFieldLite 412 memoizedBytes = value.toByteString(); in toByteString()
|
D | AbstractMessage.java | 139 private static ByteString toByteString(Object value) { in toByteString() method in AbstractMessage 155 return toByteString(a).equals(toByteString(b)); in compareBytes()
|
D | MessageLite.java | 96 ByteString toByteString(); in toByteString() method
|
/external/grpc-grpc-java/services/src/test/java/io/grpc/protobuf/services/ |
D | ProtoReflectionServiceTest.java | 178 ReflectionTestDepthThreeProto.getDescriptor().toProto().toByteString()) in fileByFilename() 205 DynamicReflectionTestDepthTwoProto.getDescriptor().toProto().toByteString()) in fileByFilenameConsistentForMutableServices() 246 ReflectionTestProto.getDescriptor().toProto().toByteString(), in fileContainingSymbol() 247 ReflectionTestDepthTwoProto.getDescriptor().toProto().toByteString(), in fileContainingSymbol() 248 ReflectionTestDepthTwoAlternateProto.getDescriptor().toProto().toByteString(), in fileContainingSymbol() 249 ReflectionTestDepthThreeProto.getDescriptor().toProto().toByteString()); in fileContainingSymbol() 282 ReflectionTestDepthThreeProto.getDescriptor().toProto().toByteString()) in fileContainingNestedSymbol() 308 DynamicReflectionTestDepthTwoProto.getDescriptor().toProto().toByteString()) in fileContainingSymbolForMutableServices() 353 ReflectionTestProto.getDescriptor().toProto().toByteString(), in fileContainingExtension() 354 ReflectionTestDepthTwoProto.getDescriptor().toProto().toByteString(), in fileContainingExtension() [all …]
|
/external/opencensus-java/exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/ |
D | TraceProtoUtils.java | 113 .setTraceId(toByteString(traceId.getBytes())) in toSpanProto() 114 .setSpanId(toByteString(spanId.getBytes())) in toSpanProto() 150 spanBuilder.setParentSpanId(toByteString(parentSpanId.getBytes())); in toSpanProto() 157 static ByteString toByteString(byte[] bytes) { in toByteString() method in TraceProtoUtils 298 .setTraceId(toByteString(link.getTraceId().getBytes())) in toLinkProto() 299 .setSpanId(toByteString(link.getSpanId().getBytes())) in toLinkProto()
|
/external/opencensus-java/exporters/trace/ocagent/src/test/java/io/opencensus/exporter/trace/ocagent/ |
D | TraceProtoUtilsTest.java | 20 import static io.opencensus.exporter.trace.ocagent.TraceProtoUtils.toByteString; 220 .setTraceId(toByteString(traceId.getBytes())) in toSpanProto() 221 .setSpanId(toByteString(spanId.getBytes())) in toSpanProto() 245 assertThat(span.getTraceId()).isEqualTo(toByteString(traceId.getBytes())); in toSpanProto() 246 assertThat(span.getSpanId()).isEqualTo(toByteString(spanId.getBytes())); in toSpanProto() 247 assertThat(span.getParentSpanId()).isEqualTo(toByteString(parentSpanId.getBytes())); in toSpanProto()
|
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | JsonFormat.java | 610 private ByteString toByteString(MessageOrBuilder message) { in toByteString() method in JsonFormat.PrinterImpl 612 return ((Message) message).toByteString(); in toByteString() 614 return ((Message.Builder) message).build().toByteString(); in toByteString() 620 Timestamp value = Timestamp.parseFrom(toByteString(message)); in printTimestamp() 626 Duration value = Duration.parseFrom(toByteString(message)); in printDuration() 633 FieldMask value = FieldMask.parseFrom(toByteString(message)); in printFieldMask() 1185 builder.setField(valueField, contentBuilder.build().toByteString()); in mergeAny() 1191 builder.mergeFrom(value.toByteString()); in mergeFieldMask() 1198 builder.mergeFrom(value.toByteString()); in mergeTimestamp() 1209 builder.mergeFrom(value.toByteString()); in mergeDuration() [all …]
|