Home
last modified time | relevance | path

Searched refs:BerEncoding (Results 1 – 7 of 7) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1DerEncoder.java19 import com.android.apksig.internal.asn1.ber.BerEncoding;
158 BerEncoding.TAG_CLASS_UNIVERSAL, true, BerEncoding.TAG_NUMBER_SEQUENCE, in toSequence()
182 tagNumber = BerEncoding.TAG_NUMBER_SET; in toSequenceOrSetOf()
184 tagNumber = BerEncoding.TAG_NUMBER_SEQUENCE; in toSequenceOrSetOf()
187 BerEncoding.TAG_CLASS_UNIVERSAL, true, tagNumber, in toSequenceOrSetOf()
253 BerEncoding.TAG_CLASS_UNIVERSAL, false, BerEncoding.TAG_NUMBER_INTEGER, in toInteger()
266 … return createTag(BerEncoding.TAG_CLASS_UNIVERSAL, false, BerEncoding.TAG_NUMBER_BOOLEAN, result); in toBoolean()
332 BerEncoding.TAG_CLASS_UNIVERSAL, false, BerEncoding.TAG_NUMBER_OBJECT_IDENTIFIER, in toOid()
375 mDerTagClass = BerEncoding.getTagClass(mTagClass); in AnnotatedField()
383 tagNumber = BerEncoding.getTagNumber(mDataType); in AnnotatedField()
[all …]
DAsn1BerParser.java22 import com.android.apksig.internal.asn1.ber.BerEncoding;
126 int expectedTagClass = BerEncoding.TAG_CLASS_UNIVERSAL; in parse()
127 int expectedTagNumber = BerEncoding.getTagNumber(dataType); in parse()
132 + ". Expected " + BerEncoding.tagClassAndNumberToString( in parse()
134 + ", but read: " + BerEncoding.tagClassAndNumberToString( in parse()
374 mBerTagClass = BerEncoding.getTagClass(mTagClass); in AnnotatedField()
382 tagNumber = BerEncoding.getTagNumber(mDataType); in AnnotatedField()
423 + BerEncoding.tagClassAndNumberToString(mBerTagClass, mBerTagNumber) in setValueFrom()
425 + BerEncoding.tagClassAndNumberToString(readTagClass, readTagNumber)); in setValueFrom()
431 + BerEncoding.tagClassToString(mBerTagClass) in setValueFrom()
[all …]
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/
DBerDataValueTest.java39 BerEncoding.TAG_CLASS_UNIVERSAL,
41 BerEncoding.TAG_NUMBER_SEQUENCE);
47 BerEncoding.TAG_CLASS_CONTEXT_SPECIFIC,
49 BerEncoding.TAG_NUMBER_OCTET_STRING);
53 assertEquals(BerEncoding.TAG_CLASS_UNIVERSAL, TEST_VALUE1.getTagClass()); in testGetTagClass()
54 assertEquals(BerEncoding.TAG_CLASS_CONTEXT_SPECIFIC, TEST_VALUE2.getTagClass()); in testGetTagClass()
65 assertEquals(BerEncoding.TAG_NUMBER_SEQUENCE, TEST_VALUE1.getTagNumber()); in testGetTagNumber()
66 assertEquals(BerEncoding.TAG_NUMBER_OCTET_STRING, TEST_VALUE2.getTagNumber()); in testGetTagNumber()
115 BerEncoding.TAG_CLASS_UNIVERSAL, in testContentsReader()
117 BerEncoding.TAG_NUMBER_SEQUENCE); in testContentsReader()
DBerDataValueReaderTestBase.java60 assertEquals(BerEncoding.TAG_CLASS_UNIVERSAL, dataValue.getTagClass()); in testSingleByteTagId()
65 assertEquals(BerEncoding.TAG_CLASS_UNIVERSAL, dataValue.getTagClass()); in testSingleByteTagId()
70 assertEquals(BerEncoding.TAG_CLASS_APPLICATION, dataValue.getTagClass()); in testSingleByteTagId()
75 assertEquals(BerEncoding.TAG_CLASS_CONTEXT_SPECIFIC, dataValue.getTagClass()); in testSingleByteTagId()
80 assertEquals(BerEncoding.TAG_CLASS_PRIVATE, dataValue.getTagClass()); in testSingleByteTagId()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DByteBufferBerDataValueReader.java43 boolean constructed = BerEncoding.isConstructed(firstIdentifierByte); in readDataValue()
88 BerEncoding.getTagClass(firstIdentifierByte), in readDataValue()
94 int tagNumber = BerEncoding.getTagNumber(firstIdentifierByte); in readTagNumber()
DInputStreamBerDataValueReader.java66 boolean constructed = BerEncoding.isConstructed((byte) firstIdentifierByte); in readDataValue()
94 BerEncoding.getTagClass((byte) firstIdentifierByte), in readDataValue()
104 int tagNumber = BerEncoding.getTagNumber((byte) firstIdentifierByte); in readTagNumber()
DBerEncoding.java25 public abstract class BerEncoding { class
26 private BerEncoding() {} in BerEncoding() method in BerEncoding