/tools/apksig/src/test/java/com/android/apksig/util/ |
D | DataSourceTestBase.java | 50 DataSource ds = c.getDataSource(); in testSize() 58 DataSource ds = c.getDataSource(); in testSlice() 60 DataSource slice = ds.slice(3, 5); in testSlice() 96 DataSource ds = c.getDataSource(); in testGetByteBuffer() 98 DataSource slice = ds.slice(3, 4); // "t123" in testGetByteBuffer() 132 DataSource ds = c.getDataSource(); in testFeed() 134 DataSource slice = ds.slice(1, 5); // "est12" in testFeed() 170 DataSource ds = c.getDataSource(); in testCopyTo() 172 DataSource slice = ds.slice(2, 7); // "cdefghi" in testCopyTo() 223 String expectedContents, DataSource ds, long offset, int size) throws IOException { in assertSliceEquals() [all …]
|
D | DataSourceFromRAFFactory.java | 23 @Override DataSource create(RandomAccessFile file) { in create() 27 @Override DataSource create(RandomAccessFile file, long offset, long size) { in create() 32 @Override DataSource create(RandomAccessFile file) { in create() 36 @Override DataSource create(RandomAccessFile file, long offset, long size) { in create() 41 abstract DataSource create(RandomAccessFile file); in create() 42 abstract DataSource create(RandomAccessFile file, long offset, long size); in create()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkSignerEngine.java | 21 import com.android.apksig.util.DataSource; 149 void inputApkSigningBlock(DataSource apkSigningBlock) in inputApkSigningBlock() 259 DataSource zipEntries, in outputZipSections() 260 DataSource zipCentralDirectory, in outputZipSections() 261 DataSource zipEocd) in outputZipSections() 294 DataSource zipEntries, in outputZipSections2() 295 DataSource zipCentralDirectory, in outputZipSections2() 296 DataSource zipEocd) in outputZipSections2() 324 void signV4(DataSource data, File outputFile, boolean ignoreFailures) in signV4()
|
D | ApkSigner.java | 32 import com.android.apksig.util.DataSource; 105 private final DataSource mInputApkDataSource; 109 private final DataSource mOutputApkDataSource; 132 DataSource inputApkDataSource, in ApkSigner() 135 DataSource outputApkDataSource, in ApkSigner() 185 DataSource inputApk; in sign() 200 DataSource outputApkIn; in sign() 227 private void sign(DataSource inputApk, DataSink outputApkOut, DataSource outputApkIn) in sign() 238 DataSource inputApkSigningBlock = null; in sign() 249 DataSource inputApkLfhSection = in sign() [all …]
|
D | SourceStampVerifier.java | 44 import com.android.apksig.util.DataSource; 77 private final DataSource mApkDataSource; 84 DataSource apkDataSource, in SourceStampVerifier() 129 DataSource apk; in verifySourceStamp() 161 private SourceStampVerifier.Result verifySourceStamp(DataSource apk, in verifySourceStamp() 429 DataSource apk, in getApkContentDigestFromV1SigningScheme() 810 private final DataSource mApkDataSource; 831 public Builder(DataSource apk) { in Builder()
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | ChainedDataSource.java | 20 import com.android.apksig.util.DataSource; 27 public class ChainedDataSource implements DataSource { 29 private final DataSource[] mSources; 32 public ChainedDataSource(DataSource... sources) { in ChainedDataSource() 48 for (DataSource src : mSources) { in feed() 102 public DataSource slice(long offset, long size) { in slice() 107 DataSource beginSource = mSources[beginIndex]; in slice() 114 ArrayList<DataSource> sources = new ArrayList<>(); in slice() 127 return new ChainedDataSource(sources.toArray(new DataSource[0])); in slice()
|
D | VerityTreeBuilder.java | 23 import com.android.apksig.util.DataSource; 103 public byte[] generateVerityTreeRootHash(DataSource beforeApkSigningBlock, in generateVerityTreeRootHash() 104 DataSource centralDir, DataSource eocd) throws IOException { in generateVerityTreeRootHash() 127 public byte[] generateVerityTreeRootHash(DataSource fileSource) throws IOException { in generateVerityTreeRootHash() 145 public ByteBuffer generateVerityTree(DataSource fileSource) throws IOException { in generateVerityTree() 158 DataSource src; in generateVerityTree() 222 private void digestDataByChunks(DataSource dataSource, DataSink dataSink) throws IOException { in digestDataByChunks()
|
D | ByteArrayDataSink.java | 20 import com.android.apksig.util.DataSource; 162 public DataSource slice(long offset, long size) { in slice() 171 private class SliceDataSource implements DataSource { 210 public DataSource slice(long offset, long size) { in slice()
|
/tools/apksig/src/main/java/com/android/apksig/util/ |
D | DataSources.java | 36 public static DataSource asDataSource(ByteBuffer buffer) { in asDataSource() 47 public static DataSource asDataSource(RandomAccessFile file) { in asDataSource() 55 public static DataSource asDataSource(RandomAccessFile file, long offset, long size) { in asDataSource() 63 public static DataSource asDataSource(FileChannel channel) { in asDataSource() 74 public static DataSource asDataSource(FileChannel channel, long offset, long size) { in asDataSource()
|
D | DataSource.java | 53 public interface DataSource { interface 109 DataSource slice(long offset, long size); in slice()
|
/tools/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtilsLite.java | 21 import com.android.apksig.util.DataSource; 44 public static ZipSections findZipSections(DataSource apk) in findZipSections() 95 public static ApkSigningBlock findApkSigningBlock(DataSource apk, ZipSections zipSections) in findApkSigningBlock() 159 private final DataSource mContents; 168 public ApkSigningBlock(long startOffsetInApk, DataSource contents) { in ApkSigningBlock() 184 public DataSource getContents() { in getContents()
|
D | ApkUtils.java | 26 import com.android.apksig.util.DataSource; 58 public static ZipSections findZipSections(DataSource apk) in findZipSections() 109 public static ApkSigningBlock findApkSigningBlock(DataSource apk) in findApkSigningBlock() 129 public static ApkSigningBlock findApkSigningBlock(DataSource apk, ZipSections zipSections) in findApkSigningBlock() 147 public ApkSigningBlock(long startOffsetInApk, DataSource contents) { in ApkSigningBlock() 158 public static ByteBuffer getAndroidManifest(DataSource apk) in getAndroidManifest() 178 DataSource lfhSection = apk.slice(0, zipSections.getZipCentralDirectoryOffset()); in getAndroidManifest()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 51 import com.android.apksig.util.DataSource; 132 DataSource beforeApkSigningBlock, in verifyIntegrity() 133 DataSource centralDir, in verifyIntegrity() 260 DataSource beforeCentralDir, in computeContentDigests() 261 DataSource centralDir, in computeContentDigests() 262 DataSource eocd) throws IOException, NoSuchAlgorithmException, DigestException { in computeContentDigests() 274 new DataSource[] { beforeCentralDir, centralDir, eocd }, in computeContentDigests() 285 DataSource[] contents, in computeOneMbChunkContentDigests() 299 for (DataSource input : contents) { in computeOneMbChunkContentDigests() 341 for (DataSource input : contents) { in computeOneMbChunkContentDigests() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 29 import com.android.apksig.util.DataSource; 146 DataSource beforeCentralDir, in generateApkSignatureSchemeV2Block() 147 DataSource centralDir, in generateApkSignatureSchemeV2Block() 148 DataSource eocd, in generateApkSignatureSchemeV2Block() 160 DataSource beforeCentralDir, in generateApkSignatureSchemeV2Block() 161 DataSource centralDir, in generateApkSignatureSchemeV2Block() 162 DataSource eocd, in generateApkSignatureSchemeV2Block()
|
D | V2SchemeVerifier.java | 29 import com.android.apksig.util.DataSource; 89 DataSource apk, in verify() 103 DataSource beforeApkSigningBlock = apk.slice(0, signatureInfo.apkSigningBlockOffset); in verify() 104 DataSource centralDir = in verify() 134 DataSource beforeApkSigningBlock, in verify() 136 DataSource centralDir, in verify()
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | FileChannelDataSourceTest.java | 21 import com.android.apksig.util.DataSource; 41 DataSource rafDataSource = new FileChannelDataSource(raf.getChannel()); in testFeedsCorrectData_whenFilePartiallyReadFromBeginning() 59 DataSource rafDataSource = new FileChannelDataSource(raf.getChannel()); in testFeedsCorrectData_whenFilePartiallyReadWithOffset() 78 DataSource rafDataSource = new FileChannelDataSource(raf.getChannel()); in testFeedsCorrectData_whenSeveralMbRead()
|
D | Resources.java | 21 import com.android.apksig.util.DataSource; 132 public static DataSource toDataSource(Class<?> cls, String dataSourceResourceName) in toDataSource() 140 DataSource lineageDataSource = toDataSource(cls, fileResourceName); in toSigningCertificateLineage()
|
/tools/apksig/src/main/java/com/android/apksig/internal/zip/ |
D | LocalFileRecord.java | 21 import com.android.apksig.util.DataSource; 124 DataSource apk, in getRecord() 142 DataSource apk, in getRecord() 299 public long outputRecord(DataSource sourceApk, DataSink output) throws IOException { in outputRecord() 310 DataSource sourceApk, in outputRecordWithModifiedExtra() 378 DataSource lfhSection, in outputUncompressedData() 418 DataSource source, in outputUncompressedData() 441 DataSource source, in getUncompressedData()
|
D | ZipUtils.java | 21 import com.android.apksig.util.DataSource; 118 public static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord(DataSource zip) in findZipEndOfCentralDirectoryRecord() 162 DataSource zip, int maxCommentSize) throws IOException { in findZipEndOfCentralDirectoryRecord() 257 DataSource apk, in parseZipCentralDirectory()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeSigner.java | 33 import com.android.apksig.util.DataSource; 98 DataSource apkContent, SignerConfig signerConfig, File outputFile) in generateV4Signature() 112 DataSource apkContent, in generateV4Signature() 196 private static byte[] getApkDigest(DataSource apk) throws IOException { in getApkDigest() 223 private static byte[] getBestV3Digest(DataSource apk, ApkUtils.ZipSections zipSections) in getBestV3Digest() 253 private static byte[] getBestV2Digest(DataSource apk, ApkUtils.ZipSections zipSections) in getBestV2Digest()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/ |
D | ZFileDataSource.java | 20 import com.android.apksig.util.DataSource; 31 class ZFileDataSource implements DataSource { 90 public DataSource slice(long offset, long size) { in slice()
|
D | SigningExtension.java | 22 import com.android.apksig.util.DataSource; 350 DataSource centralDir = DataSources.asDataSource(ByteBuffer.wrap(centralDirBytes)); in onOutputZipEntriesWritten() 351 DataSource eocd = DataSources.asDataSource(ByteBuffer.wrap(eocdBytes)); in onOutputZipEntriesWritten() 354 DataSource zipEntries = new ZFileDataSource(zFile, 0, zipEntriesSizeBytes); in onOutputZipEntriesWritten()
|
/tools/apksig/src/test/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtilsTest.java | 6 import com.android.apksig.util.DataSource; 36 DataSource[] dataSource; 62 dataSource = new DataSource[] { in setUp()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 35 import com.android.apksig.util.DataSource; 96 DataSource apk, in verify() 107 DataSource beforeApkSigningBlock = apk.slice(0, signatureInfo.apkSigningBlockOffset); in verify() 108 DataSource centralDir = in verify() 142 DataSource beforeApkSigningBlock, in verify() 144 DataSource centralDir, in verify()
|
D | V3SchemeSigner.java | 31 import com.android.apksig.util.DataSource; 135 DataSource beforeCentralDir, in generateApkSignatureSchemeV3Block() 136 DataSource centralDir, in generateApkSignatureSchemeV3Block() 137 DataSource eocd, in generateApkSignatureSchemeV3Block()
|