Home
last modified time | relevance | path

Searched refs:containerClass (Results 1 – 3 of 3) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1BerParser.java60 public static <T> T parse(ByteBuffer encoded, Class<T> containerClass) in parse() argument
71 return parse(containerDataValue, containerClass); in parse()
110 private static <T> T parse(BerDataValue container, Class<T> containerClass) in parse() argument
115 if (containerClass == null) { in parse()
119 Asn1Type dataType = getContainerAsn1Type(containerClass); in parse()
122 return parseChoice(container, containerClass); in parse()
131 "Unexpected data value read as " + containerClass.getName() in parse()
137 return parseSequence(container, containerClass); in parse()
140 return parseSequence(container, containerClass, true); in parse()
146 private static <T> T parseChoice(BerDataValue dataValue, Class<T> containerClass) in parseChoice() argument
[all …]
DAsn1DerEncoder.java55 Class<?> containerClass = container.getClass(); in encode() local
56 Asn1Class containerAnnotation = containerClass.getDeclaredAnnotation(Asn1Class.class); in encode()
59 containerClass.getName() + " not annotated with " + Asn1Class.class.getName()); in encode()
76 Class<?> containerClass = container.getClass(); in toChoice() local
81 + " in CHOICE class " + containerClass.getName()); in toChoice()
90 "Multiple non-null fields in CHOICE class " + containerClass.getName() in toChoice()
100 "No non-null fields in CHOICE class " + containerClass.getName()); in toChoice()
112 Class<?> containerClass = container.getClass(); in toSequence() local
122 "Fields have the same index: " + containerClass.getName() in toSequence()
138 "Failed to encode " + containerClass.getName() in toSequence()
[all …]
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1BerParserTest.java303 private static <T> T parse(String hexEncodedInput, Class<T> containerClass) in parse() argument
308 return parse(input, containerClass); in parse()
311 private static <T> T parse(ByteBuffer input, Class<T> containerClass) in parse() argument
313 return Asn1BerParser.parse(input, containerClass); in parse()