/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/propagation/ |
D | BinaryFormatImplTest.java | 56 binaryFormat.fromByteArray(binaryFormat.toByteArray(spanContext)); in testSpanContextConversion() 90 assertThat(binaryFormat.fromByteArray(EXAMPLE_BYTES)).isEqualTo(EXAMPLE_SPAN_CONTEXT); in fromBinaryValue_BinaryExampleValue() 95 binaryFormat.fromByteArray(null); in fromBinaryValue_NullInput() 102 binaryFormat.fromByteArray(new byte[0]); in fromBinaryValue_EmptyInput() 109 binaryFormat.fromByteArray( in fromBinaryValue_UnsupportedVersionId() 121 binaryFormat.fromByteArray( in fromBinaryValue_UnsupportedFieldIdFirst() 133 binaryFormat.fromByteArray( in fromBinaryValue_UnsupportedFieldIdSecond() 144 .fromByteArray( in fromBinaryValue_UnsupportedFieldIdThird_skipped() 157 binaryFormat.fromByteArray( in fromBinaryValue_ShorterTraceId() 165 binaryFormat.fromByteArray(new byte[] {0, 1, 97, 98, 99, 100, 101, 102, 103}); in fromBinaryValue_ShorterSpanId() [all …]
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/propagation/ |
D | TagContextDeserializationTest.java | 65 serializer.fromByteArray( in testDeserializeNoTags() 75 serializer.fromByteArray(new byte[0]); in testDeserializeEmptyByteArrayThrowException() 104 serializer.fromByteArray(bytes); in testDeserializeTooLargeByteArrayThrowException() 135 serializer.fromByteArray(bytes); in testDeserializeTooLargeByteArrayThrowException_WithDuplicateTagKeys() 149 serializer.fromByteArray(bytes); in testDeserializeInvalidTagKey() 163 serializer.fromByteArray(bytes); 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() [all …]
|
D | TagContextBinarySerializerImplTest.java | 82 assertThat(TagsTestUtil.tagContextToList(serializer.fromByteArray(serialized))).isEmpty(); in fromByteArray_TaggingDisabled() 90 assertThat(TagsTestUtil.tagContextToList(serializer.fromByteArray(serialized))).isEmpty(); in fromByteArray_TaggingReenabled() 92 assertThat(serializer.fromByteArray(serialized)).isEqualTo(tagContext); in fromByteArray_TaggingReenabled()
|
/external/opencensus-java/api/src/main/java/io/opencensus/trace/propagation/ |
D | BinaryFormat.java | 108 return fromByteArray(bytes); in fromBinaryValue() 123 public SpanContext fromByteArray(byte[] bytes) throws SpanContextParseException { in fromByteArray() method in BinaryFormat 149 public SpanContext fromByteArray(byte[] bytes) { in fromByteArray() method in BinaryFormat.NoopBinaryFormat
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/ |
D | PrincipalUtil.java | 33 ASN1Primitive.fromByteArray(cert.getTBSCertificate())); in getIssuerX509Principal() 53 ASN1Primitive.fromByteArray(cert.getTBSCertificate())); in getSubjectX509Principal() 72 ASN1Primitive.fromByteArray(crl.getTBSCertList())); in getIssuerX509Principal()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jce/ |
D | PrincipalUtil.java | 35 ASN1Primitive.fromByteArray(cert.getTBSCertificate())); in getIssuerX509Principal() 55 ASN1Primitive.fromByteArray(cert.getTBSCertificate())); in getSubjectX509Principal() 74 ASN1Primitive.fromByteArray(crl.getTBSCertList())); in getIssuerX509Principal()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/ |
D | PrincipalUtil.java | 35 ASN1Primitive.fromByteArray(cert.getTBSCertificate())); in getIssuerX509Principal() 55 ASN1Primitive.fromByteArray(cert.getTBSCertificate())); in getSubjectX509Principal() 74 ASN1Primitive.fromByteArray(crl.getTBSCertList())); in getIssuerX509Principal()
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | CodedAdapterTest.java | 59 Proto3Message result = fromByteArray(expectedBytes, Proto3Message.class); in proto3Roundtrip() 76 Proto2Message result = fromByteArray(expectedBytes, Proto2Message.class); in proto2Roundtrip() 97 public static <T> T fromByteArray(byte[] data, Class<T> messageType) { in fromByteArray() method in CodedAdapterTest
|
D | ExperimentalSerializationUtil.java | 75 public static <T> T fromByteArray(byte[] data, Class<T> messageType) { in fromByteArray() method in ExperimentalSerializationUtil 79 return fromByteArray(data, messageType, ExtensionRegistryLite.getEmptyRegistry()); in fromByteArray() 87 public static <T> T fromByteArray( in fromByteArray() method in ExperimentalSerializationUtil
|
D | AbstractProto2LiteSchemaTest.java | 75 ExperimentalSerializationUtil.fromByteArray(data, Proto2MessageLite.class); in mergeOptionalMessageFields() 129 ExperimentalSerializationUtil.fromByteArray(serializedBytes, Proto2EmptyLite.class); in unknownFieldsUnrecognized() 135 ExperimentalSerializationUtil.fromByteArray(roundtripBytes, Proto2MessageLite.class); in unknownFieldsUnrecognized() 186 ExperimentalSerializationUtil.fromByteArray(output, Proto2MessageLite.class); in unknownEnum()
|
D | AbstractProto2SchemaTest.java | 74 Proto2Message merged = ExperimentalSerializationUtil.fromByteArray(data, Proto2Message.class); in mergeOptionalMessageFields() 123 ExperimentalSerializationUtil.fromByteArray(serializedBytes, Proto2Empty.class); in unknownFieldsUnrecognized() 130 ExperimentalSerializationUtil.fromByteArray(roundtripBytes, Proto2Message.class); in unknownFieldsUnrecognized() 179 Proto2Message parsed = ExperimentalSerializationUtil.fromByteArray(output, Proto2Message.class); in unknownEnum()
|
D | AbstractProto3SchemaTest.java | 95 Proto3Message merged = ExperimentalSerializationUtil.fromByteArray(data, Proto3Message.class); in mergeOptionalMessageFields() 125 ExperimentalSerializationUtil.fromByteArray( in preserveUnknownFields() 136 Proto3Empty empty = ExperimentalSerializationUtil.fromByteArray(payload, Proto3Empty.class); in preserveUnknownFieldsProto2()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/ |
D | AlgorithmParametersUtils.java | 35 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters() 39 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
|
D | JcaJceUtils.java | 42 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters() 46 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/util/ |
D | AlgorithmParametersUtils.java | 37 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters() 41 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/util/ |
D | AlgorithmParametersUtils.java | 37 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters() 41 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
D | ASN1ApplicationSpecific.java | 46 … return ASN1ApplicationSpecific.getInstance(ASN1Primitive.fromByteArray((byte[])obj)); in getInstance() 121 return ASN1Primitive.fromByteArray(getContents()); in getObject() 147 return ASN1Primitive.fromByteArray(tmp); in getObject()
|
D | ASN1UTCTime.java | 62 return (ASN1UTCTime)fromByteArray((byte[])obj); in getInstance() 229 String stime = Strings.fromByteArray(time); in getTime() 328 return Strings.fromByteArray(time); in toString()
|
D | DERGraphicString.java | 37 return (DERGraphicString)fromByteArray((byte[])obj); in getInstance() 124 return Strings.fromByteArray(string); in getString()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | ASN1ApplicationSpecific.java | 44 … return ASN1ApplicationSpecific.getInstance(ASN1Primitive.fromByteArray((byte[])obj)); in getInstance() 119 return ASN1Primitive.fromByteArray(getContents()); in getObject() 145 return ASN1Primitive.fromByteArray(tmp); in getObject()
|
D | ASN1UTCTime.java | 60 return (ASN1UTCTime)fromByteArray((byte[])obj); in getInstance() 227 String stime = Strings.fromByteArray(time); in getTime() 326 return Strings.fromByteArray(time); in toString()
|
D | DERGraphicString.java | 33 return (DERGraphicString)fromByteArray((byte[])obj); in getInstance() 120 return Strings.fromByteArray(string); in getString()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/ |
D | ASN1ApplicationSpecific.java | 46 … return ASN1ApplicationSpecific.getInstance(ASN1Primitive.fromByteArray((byte[])obj)); in getInstance() 121 return ASN1Primitive.fromByteArray(getContents()); in getObject() 147 return ASN1Primitive.fromByteArray(tmp); in getObject()
|
D | ASN1UTCTime.java | 62 return (ASN1UTCTime)fromByteArray((byte[])obj); in getInstance() 229 String stime = Strings.fromByteArray(time); in getTime() 328 return Strings.fromByteArray(time); in toString()
|
/external/opencensus-java/api/src/test/java/io/opencensus/trace/propagation/ |
D | BinaryFormatTest.java | 64 binaryFormat.fromByteArray(null); in fromByteArray_NullInput() 69 assertThat(binaryFormat.fromByteArray(new byte[0])).isEqualTo(SpanContext.INVALID); in fromByteArray_NotNullInput()
|