Home
last modified time | relevance | path

Searched refs:DataSource (Results 1 – 25 of 25) sorted by relevance

/tools/apksig/src/test/java/com/android/apksig/util/
DDataSourceTestBase.java50 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 …]
DDataSourceFromRAFTest.java41 DataSource ds = c.getDataSource(); in testFileSizeChangesVisible()
42 DataSource slice = ds.slice(3, 2); in testFileSizeChangesVisible()
DDataSourceFromRAFChunkTest.java39 DataSource ds = c.getDataSource(); in testFileSizeChangesNotVisible()
40 DataSource slice = ds.slice(3, 2); in testFileSizeChangesNotVisible()
DDataSourceFromByteBufferTest.java37 DataSource ds = DataSources.asDataSource(buf); in testChangesToBufferPosAndLimitNotVisible()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DChainedDataSource.java20 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()
DByteArrayDataSink.java20 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()
DByteBufferDataSource.java20 import com.android.apksig.util.DataSource;
27 public class ByteBufferDataSource implements DataSource {
/tools/apksig/src/main/java/com/android/apksig/util/
DDataSources.java35 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()
DDataSource.java53 public interface DataSource { interface
109 DataSource slice(long offset, long size); in slice()
DReadableDataSink.java23 public interface ReadableDataSink extends DataSink, DataSource {
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java30 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 …]
DApkVerifier.java30 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()
DSigningCertificateLineage.java31 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/
DApkSigningBlockUtils.java31 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/
DApkUtils.java25 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/
DLocalFileRecord.java21 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()
DZipUtils.java20 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/
DZFileDataSource.java20 import com.android.apksig.util.DataSource;
31 class ZFileDataSource implements DataSource {
90 public DataSource slice(long offset, long size) { in slice()
DSigningExtension.java22 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/
DV2SchemeSigner.java29 import com.android.apksig.util.DataSource;
142 DataSource beforeCentralDir, in generateApkSignatureSchemeV2Block()
143 DataSource centralDir, in generateApkSignatureSchemeV2Block()
144 DataSource eocd, in generateApkSignatureSchemeV2Block()
DV2SchemeVerifier.java28 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/
DVerityTreeBuilderTest.java24 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/
DV3SchemeVerifier.java34 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()
DV3SchemeSigner.java31 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/
DV1SchemeVerifier.java45 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()