/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | ByteArrayUtil.java | 43 private static ByteBuffer getByteBuffer( in getByteBuffer() method in ByteArrayUtil 64 return getByteBuffer(bytes, offset, length, 4).getInt(); in getInt() 79 return getByteBuffer(bytes, offset, length, 8).getLong(); in getLong()
|
/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
|
D | FileChannelDataSource.java | 159 public ByteBuffer getByteBuffer(long offset, int size) throws IOException { in getByteBuffer() method in FileChannelDataSource
|
/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()
|
D | FileChannelDataSourceTest.java | 94 ByteBuffer result = dataSink.getByteBuffer(0, (int)dataSink.size()); in getDataSinkBytes()
|
/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 | 213 ByteBuffer footer = apk.getByteBuffer(centralDirStartOffset - 24, 24); in findApkSigningBlock() 233 ByteBuffer apkSigBlock = apk.getByteBuffer(apkSigBlockOffset, 8); in findApkSigningBlock()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 313 return getByteBuffer(pairs, len - 4); in findApkSignatureSchemeBlock() 370 private static ByteBuffer getByteBuffer(ByteBuffer source, int size) { in getByteBuffer() method in ApkSigningBlockUtils 405 return getByteBuffer(source, len); in getLengthPrefixedSlice() 991 apkSigningBlock.getByteBuffer(0, (int) apkSigningBlock.size()); in findSignature()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | SigningCertificateLineage.java | 140 ByteBuffer inBuff = dataSource.getByteBuffer(0, (int) dataSource.size()); in readFromDataSource()
|
D | ApkSigner.java | 829 ByteBuffer cd = apk.getByteBuffer(cdOffset, (int) cdSizeBytes); in getZipCentralDirectory()
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | ApkSignerTool.java | 874 int magicValue = apk.getByteBuffer(0, 4).order(ByteOrder.LITTLE_ENDIAN).getInt(); in getLineageFromInputFile()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkSignerTest.java | 1275 ByteBuffer actualOutBuf = out.getByteBuffer(0, (int) out.size()); in assertGolden()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 1248 ByteBuffer cd = apk.getByteBuffer(cdOffset, (int) cdSizeBytes); in parseZipCentralDirectory()
|