/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/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/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 | ASN1GeneralizedTime.java | 72 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()
|
D | ASN1UTCTime.java | 62 return (ASN1UTCTime)fromByteArray((byte[])obj); in getInstance() 221 String stime = Strings.fromByteArray(time); in getTime() 326 return Strings.fromByteArray(time); in toString()
|
D | DERVideotexString.java | 37 return (DERVideotexString)fromByteArray((byte[])obj); in getInstance() 126 return Strings.fromByteArray(string); in getString()
|
D | DERGraphicString.java | 37 return (DERGraphicString)fromByteArray((byte[])obj); in getInstance() 126 return Strings.fromByteArray(string); in getString()
|
D | DERVisibleString.java | 41 return (DERVisibleString)fromByteArray((byte[])obj); in getInstance() 100 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 | ASN1GeneralizedTime.java | 70 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()
|
D | ASN1UTCTime.java | 60 return (ASN1UTCTime)fromByteArray((byte[])obj); in getInstance() 219 String stime = Strings.fromByteArray(time); in getTime() 324 return Strings.fromByteArray(time); in toString()
|
D | DERVideotexString.java | 33 return (DERVideotexString)fromByteArray((byte[])obj); in getInstance() 122 return Strings.fromByteArray(string); in getString()
|
D | DERGraphicString.java | 33 return (DERGraphicString)fromByteArray((byte[])obj); in getInstance() 122 return Strings.fromByteArray(string); in getString()
|
D | DERVisibleString.java | 39 return (DERVisibleString)fromByteArray((byte[])obj); in getInstance() 98 return Strings.fromByteArray(string); in getString()
|
D | DERT61String.java | 37 return (DERT61String)fromByteArray((byte[])obj); in getInstance() 102 return Strings.fromByteArray(string); in getString()
|
D | DERGeneralString.java | 40 return (DERGeneralString)fromByteArray((byte[])obj); in getInstance() 100 return Strings.fromByteArray(string); in getString()
|
/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()
|
D | JcaJceUtils.java | 44 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/ |
D | BinaryFormatTest.java | 64 binaryFormat.fromByteArray(null); in fromByteArray_NullInput() 69 assertThat(binaryFormat.fromByteArray(new byte[0])).isEqualTo(SpanContext.INVALID); in fromByteArray_NotNullInput()
|