Home
last modified time | relevance | path

Searched refs:fromByteArray (Results 1 – 25 of 153) sorted by relevance

1234567

/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImplTest.java56 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/
DTagContextDeserializationTest.java65 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 …]
DTagContextBinarySerializerImplTest.java82 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/
DBinaryFormat.java108 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/
DPrincipalUtil.java33 ASN1Primitive.fromByteArray(cert.getTBSCertificate())); in getIssuerX509Principal()
53 ASN1Primitive.fromByteArray(cert.getTBSCertificate())); in getSubjectX509Principal()
72 ASN1Primitive.fromByteArray(crl.getTBSCertList())); in getIssuerX509Principal()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/
DPrincipalUtil.java35 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/asn1/
DASN1ApplicationSpecific.java46 … return ASN1ApplicationSpecific.getInstance(ASN1Primitive.fromByteArray((byte[])obj)); in getInstance()
121 return ASN1Primitive.fromByteArray(getContents()); in getObject()
147 return ASN1Primitive.fromByteArray(tmp); in getObject()
DASN1GeneralizedTime.java72 return (ASN1GeneralizedTime)fromByteArray((byte[])obj); in getInstance()
184 return Strings.fromByteArray(time); in getTimeString()
202 String stime = Strings.fromByteArray(time); in getTime()
281 String stime = Strings.fromByteArray(time); in getDate()
DASN1UTCTime.java62 return (ASN1UTCTime)fromByteArray((byte[])obj); in getInstance()
221 String stime = Strings.fromByteArray(time); in getTime()
326 return Strings.fromByteArray(time); in toString()
DDERVideotexString.java37 return (DERVideotexString)fromByteArray((byte[])obj); in getInstance()
126 return Strings.fromByteArray(string); in getString()
DDERGraphicString.java37 return (DERGraphicString)fromByteArray((byte[])obj); in getInstance()
126 return Strings.fromByteArray(string); in getString()
DDERVisibleString.java41 return (DERVisibleString)fromByteArray((byte[])obj); in getInstance()
100 return Strings.fromByteArray(string); in getString()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1ApplicationSpecific.java44 … return ASN1ApplicationSpecific.getInstance(ASN1Primitive.fromByteArray((byte[])obj)); in getInstance()
119 return ASN1Primitive.fromByteArray(getContents()); in getObject()
145 return ASN1Primitive.fromByteArray(tmp); in getObject()
DASN1GeneralizedTime.java70 return (ASN1GeneralizedTime)fromByteArray((byte[])obj); in getInstance()
182 return Strings.fromByteArray(time); in getTimeString()
200 String stime = Strings.fromByteArray(time); in getTime()
279 String stime = Strings.fromByteArray(time); in getDate()
DASN1UTCTime.java60 return (ASN1UTCTime)fromByteArray((byte[])obj); in getInstance()
219 String stime = Strings.fromByteArray(time); in getTime()
324 return Strings.fromByteArray(time); in toString()
DDERVideotexString.java33 return (DERVideotexString)fromByteArray((byte[])obj); in getInstance()
122 return Strings.fromByteArray(string); in getString()
DDERGraphicString.java33 return (DERGraphicString)fromByteArray((byte[])obj); in getInstance()
122 return Strings.fromByteArray(string); in getString()
DDERVisibleString.java39 return (DERVisibleString)fromByteArray((byte[])obj); in getInstance()
98 return Strings.fromByteArray(string); in getString()
DDERT61String.java37 return (DERT61String)fromByteArray((byte[])obj); in getInstance()
102 return Strings.fromByteArray(string); in getString()
DDERGeneralString.java40 return (DERGeneralString)fromByteArray((byte[])obj); in getInstance()
100 return Strings.fromByteArray(string); in getString()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DAlgorithmParametersUtils.java35 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters()
39 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
DJcaJceUtils.java42 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/
DAlgorithmParametersUtils.java37 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters()
41 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
DJcaJceUtils.java44 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters()
48 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
/external/opencensus-java/api/src/test/java/io/opencensus/trace/propagation/
DBinaryFormatTest.java64 binaryFormat.fromByteArray(null); in fromByteArray_NullInput()
69 assertThat(binaryFormat.fromByteArray(new byte[0])).isEqualTo(SpanContext.INVALID); in fromByteArray_NotNullInput()

1234567