Home
last modified time | relevance | path

Searched refs:getByteBuffer (Results 1 – 15 of 15) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/util/
DByteBufferDataSource.java55 public ByteBuffer getByteBuffer(long offset, int size) { in getByteBuffer() method in ByteBufferDataSource
79 dest.put(getByteBuffer(offset, size)); in copyTo()
87 sink.consume(getByteBuffer(offset, (int) size)); in feed()
99 getByteBuffer(offset, (int) size), in slice()
DChainedDataSource.java70 public ByteBuffer getByteBuffer(long offset, int size) throws IOException { in getByteBuffer() method in ChainedDataSource
82 return mSources[i].getByteBuffer(offset, size); in getByteBuffer()
DByteArrayDataSink.java116 public ByteBuffer getByteBuffer(long offset, int size) { in getByteBuffer() method in ByteArrayDataSink
194 public ByteBuffer getByteBuffer(long offset, int size) throws IOException { in getByteBuffer() method in ByteArrayDataSink.SliceDataSource
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSourceTestBase.java102 assertEquals(0, ds.getByteBuffer(0, 0).capacity()); in testGetByteBuffer()
103 assertEquals(0, ds.getByteBuffer(ds.size(), 0).capacity()); in testGetByteBuffer()
104 assertEquals(0, ds.getByteBuffer(ds.size() - 1, 0).capacity()); in testGetByteBuffer()
105 assertEquals(0, ds.getByteBuffer(ds.size() - 2, 0).capacity()); in testGetByteBuffer()
106 assertEquals(0, slice.getByteBuffer(0, 0).capacity()); in testGetByteBuffer()
107 assertEquals(0, slice.getByteBuffer(slice.size(), 0).capacity()); in testGetByteBuffer()
108 assertEquals(0, slice.getByteBuffer(slice.size() - 1, 0).capacity()); in testGetByteBuffer()
109 assertEquals(0, slice.getByteBuffer(slice.size() - 2, 0).capacity()); in testGetByteBuffer()
238 ByteBuffer buf = ds.getByteBuffer(offset, size); in assertGetByteBufferEquals()
248 ds.getByteBuffer(offset, size); in assertGetByteBufferThrowsIOOB()
[all …]
DInMemoryDataSinkTest.java40 return dataSink.getByteBuffer(0, (int) dataSink.size()); in getContents()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DChainedDataSourceTest.java58 sink.getByteBuffer(0, size)); in feedAllPossibleRanges()
72 ByteBuffer buffer = mChain.getByteBuffer(begin, size); in getByteBufferFromAllPossibleRanges()
82 mChain.getByteBuffer(0, (int) mChain.size() + 1); in getByteBufferForMoreThanAvailable()
107 ByteBuffer buffer = mChain.slice(begin, size).getByteBuffer(0, size); in slice()
/tools/apksig/src/main/java/com/android/apksig/util/
DDataSource.java85 ByteBuffer getByteBuffer(long offset, int size) throws IOException; in getByteBuffer() method
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DLocalFileRecord.java163 header = apk.getByteBuffer(headerStartOffset, headerSizeWithName); in getRecord()
244 extra = apk.getByteBuffer( in getRecord()
267 ByteBuffer dataDescriptorPotentialSig = apk.getByteBuffer(dataEndOffset, 4); in getRecord()
DZipUtils.java181 ByteBuffer buf = zip.getByteBuffer(bufOffsetInFile, maxEocdSize); in findZipEndOfCentralDirectoryRecord()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DZFileDataSource.java142 public ByteBuffer getByteBuffer(long offset, int size) throws IOException { in getByteBuffer() method in ZFileDataSource
/tools/apksig/src/main/java/com/android/apksig/apk/
DApkUtils.java208 ByteBuffer footer = apk.getByteBuffer(centralDirStartOffset - 24, 24); in findApkSigningBlock()
228 ByteBuffer apkSigBlock = apk.getByteBuffer(apkSigBlockOffset, 8); in findApkSigningBlock()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java260 return getByteBuffer(pairs, len - 4); in findApkSignatureSchemeBlock()
317 private static ByteBuffer getByteBuffer(ByteBuffer source, int size) { in getByteBuffer() method in ApkSigningBlockUtils
352 return getByteBuffer(source, len); in getLengthPrefixedSlice()
642 apkSigningBlock.getByteBuffer(0, (int) apkSigningBlock.size()); in findSignature()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java136 ByteBuffer inBuff = dataSource.getByteBuffer(0, (int) dataSource.size()); in readFromDataSource()
DApkSigner.java671 ByteBuffer cd = apk.getByteBuffer(cdOffset, (int) cdSizeBytes); in getZipCentralDirectory()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java1749 ByteBuffer cd = apk.getByteBuffer(cdOffset, (int) cdSizeBytes); in parseZipCentralDirectory()