Home
last modified time | relevance | path

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

12345678910

/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_platform/bcprov/src/main/java/com/android/internal/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/jce/
DPrincipalUtil.java35 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/
DCodedAdapterTest.java59 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
DExperimentalSerializationUtil.java75 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
DAbstractProto2LiteSchemaTest.java75 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()
DAbstractProto2SchemaTest.java74 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()
DAbstractProto3SchemaTest.java95 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/
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()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/util/
DAlgorithmParametersUtils.java37 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/
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()
DASN1UTCTime.java62 return (ASN1UTCTime)fromByteArray((byte[])obj); in getInstance()
229 String stime = Strings.fromByteArray(time); in getTime()
328 return Strings.fromByteArray(time); in toString()
DDERGraphicString.java37 return (DERGraphicString)fromByteArray((byte[])obj); in getInstance()
124 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()
DASN1UTCTime.java60 return (ASN1UTCTime)fromByteArray((byte[])obj); in getInstance()
227 String stime = Strings.fromByteArray(time); in getTime()
326 return Strings.fromByteArray(time); in toString()
DDERGraphicString.java33 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/
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()
DASN1UTCTime.java62 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/
DBinaryFormatTest.java64 binaryFormat.fromByteArray(null); in fromByteArray_NullInput()
69 assertThat(binaryFormat.fromByteArray(new byte[0])).isEqualTo(SpanContext.INVALID); in fromByteArray_NotNullInput()

12345678910