/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 | DataSourceFromRAFTest.java | 41 DataSource ds = c.getDataSource(); in testFileSizeChangesVisible() 42 DataSource slice = ds.slice(3, 2); in testFileSizeChangesVisible()
|
D | DataSourceFromRAFChunkTest.java | 39 DataSource ds = c.getDataSource(); in testFileSizeChangesNotVisible() 40 DataSource slice = ds.slice(3, 2); in testFileSizeChangesNotVisible()
|
D | DataSourceFromByteBufferTest.java | 37 DataSource ds = DataSources.asDataSource(buf); in testChangesToBufferPosAndLimitNotVisible()
|
/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 | 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()
|
D | ByteBufferDataSource.java | 20 import com.android.apksig.util.DataSource; 27 public class ByteBufferDataSource implements DataSource {
|
/tools/apksig/src/main/java/com/android/apksig/util/ |
D | DataSources.java | 35 public static DataSource asDataSource(ByteBuffer buffer) { in asDataSource() 46 public static DataSource asDataSource(RandomAccessFile file) { in asDataSource() 57 public static DataSource asDataSource(RandomAccessFile file, long offset, long size) { in asDataSource()
|
D | DataSource.java | 53 public interface DataSource { interface 109 DataSource slice(long offset, long size); in slice()
|
D | ReadableDataSink.java | 23 public interface ReadableDataSink extends DataSink, DataSource {
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkSigner.java | 30 import com.android.apksig.util.DataSource; 98 private final DataSource mInputApkDataSource; 102 private final DataSource mOutputApkDataSource; 117 DataSource inputApkDataSource, in ApkSigner() 120 DataSource outputApkDataSource, in ApkSigner() 161 DataSource inputApk; in sign() 176 DataSource outputApkIn; in sign() 204 DataSource inputApk, in sign() 206 DataSource outputApkIn) in sign() 217 DataSource inputApkSigningBlock = null; in sign() [all …]
|
D | ApkVerifier.java | 30 import com.android.apksig.util.DataSource; 75 private final DataSource mApkDataSource; 82 DataSource apkDataSource, in ApkVerifier() 114 DataSource apk; in verify() 144 private Result verify(DataSource apk) in verify() 405 DataSource apk, ApkUtils.ZipSections zipSections) in getAndroidManifestFromApk() 1810 private final DataSource mApkDataSource; 1829 public Builder(DataSource apk) { in Builder()
|
D | SigningCertificateLineage.java | 31 import com.android.apksig.util.DataSource; 131 public static SigningCertificateLineage readFromDataSource(DataSource dataSource) in readFromDataSource()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 31 import com.android.apksig.util.DataSource; 150 DataSource beforeApkSigningBlock, in verifyIntegrity() 151 DataSource centralDir, in verifyIntegrity() 382 DataSource beforeCentralDir, in computeContentDigests() 383 DataSource centralDir, in computeContentDigests() 384 DataSource eocd) throws IOException, NoSuchAlgorithmException, DigestException { in computeContentDigests() 391 new DataSource[] { beforeCentralDir, centralDir, eocd }, in computeContentDigests() 402 DataSource[] contents, in computeOneMbChunkContentDigests() 416 for (DataSource input : contents) { in computeOneMbChunkContentDigests() 458 for (DataSource input : contents) { in computeOneMbChunkContentDigests() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 25 import com.android.apksig.util.DataSource; 52 public static ZipSections findZipSections(DataSource apk) in findZipSections() 180 public static ApkSigningBlock findApkSigningBlock(DataSource apk, ZipSections zipSections) in findApkSigningBlock() 244 private final DataSource mContents; 253 public ApkSigningBlock(long startOffsetInApk, DataSource contents) { in ApkSigningBlock() 269 public DataSource getContents() { in getContents() 280 public static ByteBuffer getAndroidManifest(DataSource apk) in getAndroidManifest() 300 DataSource lfhSection = apk.slice(0, zipSections.getZipCentralDirectoryOffset()); in getAndroidManifest()
|
/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 | 20 import com.android.apksig.util.DataSource; 112 public static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord(DataSource zip) in findZipEndOfCentralDirectoryRecord() 156 DataSource zip, int maxCommentSize) throws IOException { in findZipEndOfCentralDirectoryRecord()
|
/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/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 29 import com.android.apksig.util.DataSource; 142 DataSource beforeCentralDir, in generateApkSignatureSchemeV2Block() 143 DataSource centralDir, in generateApkSignatureSchemeV2Block() 144 DataSource eocd, in generateApkSignatureSchemeV2Block()
|
D | V2SchemeVerifier.java | 28 import com.android.apksig.util.DataSource; 90 DataSource apk, in verify() 104 DataSource beforeApkSigningBlock = apk.slice(0, signatureInfo.apkSigningBlockOffset); in verify() 105 DataSource centralDir = in verify() 133 DataSource beforeApkSigningBlock, in verify() 135 DataSource centralDir, in verify()
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | VerityTreeBuilderTest.java | 24 import com.android.apksig.util.DataSource; 79 private DataSource makeStringDataSource(String data) { in makeStringDataSource()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 34 import com.android.apksig.util.DataSource; 97 DataSource apk, in verify() 108 DataSource beforeApkSigningBlock = apk.slice(0, signatureInfo.apkSigningBlockOffset); in verify() 109 DataSource centralDir = in verify() 141 DataSource beforeApkSigningBlock, in verify() 143 DataSource centralDir, in verify()
|
D | V3SchemeSigner.java | 31 import com.android.apksig.util.DataSource; 131 DataSource beforeCentralDir, in generateApkSignatureSchemeV3Block() 132 DataSource centralDir, in generateApkSignatureSchemeV3Block() 133 DataSource eocd, in generateApkSignatureSchemeV3Block()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 45 import com.android.apksig.util.DataSource; 105 DataSource apk, in verify() 175 DataSource apk, in verify() 438 DataSource apk, long cdStartOffset, int minSdkVersion, int maxSdkVersion) in verifySigBlockAgainstSigFile() 1740 DataSource apk, in parseZipCentralDirectory() 1795 DataSource apk, in verifyJarEntriesAgainstManifestAndSigners()
|