/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | ByteBufferDataSource.java | 55 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()
|
D | ChainedDataSource.java | 70 public ByteBuffer getByteBuffer(long offset, int size) throws IOException { in getByteBuffer() method in ChainedDataSource 82 return mSources[i].getByteBuffer(offset, size); in getByteBuffer()
|
D | ByteArrayDataSink.java | 116 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/ |
D | DataSourceTestBase.java | 102 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 …]
|
D | InMemoryDataSinkTest.java | 40 return dataSink.getByteBuffer(0, (int) dataSink.size()); in getContents()
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | ChainedDataSourceTest.java | 58 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/ |
D | DataSource.java | 85 ByteBuffer getByteBuffer(long offset, int size) throws IOException; in getByteBuffer() method
|
/tools/apksig/src/main/java/com/android/apksig/internal/zip/ |
D | LocalFileRecord.java | 163 header = apk.getByteBuffer(headerStartOffset, headerSizeWithName); in getRecord() 244 extra = apk.getByteBuffer( in getRecord() 267 ByteBuffer dataDescriptorPotentialSig = apk.getByteBuffer(dataEndOffset, 4); in getRecord()
|
D | ZipUtils.java | 181 ByteBuffer buf = zip.getByteBuffer(bufOffsetInFile, maxEocdSize); in findZipEndOfCentralDirectoryRecord()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/ |
D | ZFileDataSource.java | 142 public ByteBuffer getByteBuffer(long offset, int size) throws IOException { in getByteBuffer() method in ZFileDataSource
|
/tools/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 208 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/ |
D | ApkSigningBlockUtils.java | 260 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/ |
D | SigningCertificateLineage.java | 136 ByteBuffer inBuff = dataSource.getByteBuffer(0, (int) dataSource.size()); in readFromDataSource()
|
D | ApkSigner.java | 671 ByteBuffer cd = apk.getByteBuffer(cdOffset, (int) cdSizeBytes); in getZipCentralDirectory()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 1749 ByteBuffer cd = apk.getByteBuffer(cdOffset, (int) cdSizeBytes); in parseZipCentralDirectory()
|