Home
last modified time | relevance | path

Searched refs:getEncodedContents (Results 1 – 4 of 4) sorted by relevance

/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/
DBerDataValueReaderTestBase.java114 assertByteBufferEquals(new byte[0], readDataValue("3000").getEncodedContents()); in testShortFormLength()
116 HexEncoding.decode("010203"), readDataValue("3003010203").getEncodedContents()); in testShortFormLength()
121 assertByteBufferEquals(new byte[0], readDataValue("308100").getEncodedContents()); in testLongFormLength()
123 HexEncoding.decode("010203"), readDataValue("30820003010203").getEncodedContents()); in testLongFormLength()
127 .getEncodedContents().remaining()); in testLongFormLength()
131 .getEncodedContents().remaining()); in testLongFormLength()
151 assertByteBufferEquals(new byte[0], readDataValue("30800000").getEncodedContents()); in testIndefiniteFormLength()
153 HexEncoding.decode("020103"), readDataValue("30800201030000").getEncodedContents()); in testIndefiniteFormLength()
193 ).getEncodedContents()); in testIndefiniteFormLength()
218 assertByteBufferEquals(new byte[0], readDataValue("3000").getEncodedContents()); in testEmptyDefiniteLengthContents()
[all …]
DBerDataValueTest.java87 assertByteBufferEquals(HexEncoding.decode("bb"), TEST_VALUE1.getEncodedContents()); in testGetEncodedContents()
88 assertByteBufferEquals(HexEncoding.decode("dd"), TEST_VALUE2.getEncodedContents()); in testGetEncodedContents()
95 ByteBuffer encoded = TEST_VALUE1.getEncodedContents(); in testGetEncodedContentsReturnsSlice()
98 assertByteBufferEquals(HexEncoding.decode("bb"), TEST_VALUE1.getEncodedContents()); in testGetEncodedContentsReturnsSlice()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DBerDataValue.java79 public ByteBuffer getEncodedContents() { in getEncodedContents() method in BerDataValue
87 return new ByteBufferBerDataValueReader(getEncodedContents()); in contentsReader()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1BerParser.java290 element = (T) dataValue.getEncodedContents(); in parseSetOf()
582 return (T) dataValue.getEncodedContents(); in convert()
584 ByteBuffer resultBuf = dataValue.getEncodedContents(); in convert()
595 ByteBuffer encodedContents = dataValue.getEncodedContents(); in convert()