Home
last modified time | relevance | path

Searched refs:CentralDirectoryRecord (Results 1 – 7 of 7) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DCentralDirectoryRecord.java29 public class CentralDirectoryRecord { class
35 public static final Comparator<CentralDirectoryRecord> BY_LOCAL_FILE_HEADER_OFFSET_COMPARATOR =
57 private CentralDirectoryRecord( in CentralDirectoryRecord() method in CentralDirectoryRecord
130 public static CentralDirectoryRecord getRecord(ByteBuffer buf) throws ZipFormatException { in getRecord()
179 return new CentralDirectoryRecord( in getRecord()
197 public CentralDirectoryRecord createWithModifiedLocalFileHeaderOffset( in createWithModifiedLocalFileHeaderOffset()
204 return new CentralDirectoryRecord( in createWithModifiedLocalFileHeaderOffset()
218 public static CentralDirectoryRecord createWithDeflateCompressedData( in createWithDeflateCompressedData()
255 return new CentralDirectoryRecord( in createWithDeflateCompressedData()
290 implements Comparator<CentralDirectoryRecord> {
[all …]
DLocalFileRecord.java125 CentralDirectoryRecord cdRecord, in getRecord()
143 CentralDirectoryRecord cdRecord, in getRecord()
218 String name = CentralDirectoryRecord.getName(header, NAME_OFFSET, nameLength); in getRecord()
419 CentralDirectoryRecord cdRecord, in outputUncompressedData()
442 CentralDirectoryRecord cdRecord, in getUncompressedData()
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java26 import com.android.apksig.internal.zip.CentralDirectoryRecord;
255 List<CentralDirectoryRecord> inputCdRecords = in sign()
319 List<CentralDirectoryRecord> inputCdRecordsSortedByLfhOffset = in sign()
323 CentralDirectoryRecord.BY_LOCAL_FILE_HEADER_OFFSET_COMPARATOR); in sign()
329 Map<String, CentralDirectoryRecord> outputCdRecordsByName = in sign()
331 for (final CentralDirectoryRecord inputCdRecord : inputCdRecordsSortedByLfhOffset) { in sign()
441 CentralDirectoryRecord outputCdRecord; in sign()
465 List<CentralDirectoryRecord> outputCdRecords = new ArrayList<>(inputCdRecords.size() + 10); in sign()
466 for (CentralDirectoryRecord inputCdRecord : inputCdRecords) { in sign()
468 CentralDirectoryRecord outputCdRecord = outputCdRecordsByName.get(entryName); in sign()
[all …]
DApkVerifier.java38 import com.android.apksig.internal.zip.CentralDirectoryRecord;
313 List<CentralDirectoryRecord> cdRecords = in verify()
340 CentralDirectoryRecord sourceStampCdRecord = null; in verify()
341 for (CentralDirectoryRecord cdRecord : cdRecords) { in verify()
612 List<CentralDirectoryRecord> cdRecords, in getApkContentDigestFromV1SigningScheme()
616 CentralDirectoryRecord manifestCdRecord = null; in getApkContentDigestFromV1SigningScheme()
618 for (CentralDirectoryRecord cdRecord : cdRecords) { in getApkContentDigestFromV1SigningScheme()
659 List<CentralDirectoryRecord> cdRecords = in getAndroidManifestFromApk()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java47 import com.android.apksig.internal.zip.CentralDirectoryRecord;
122 List<CentralDirectoryRecord> cdRecords = parseZipCentralDirectory(apk, apkSections); in verify()
148 List<CentralDirectoryRecord> cdRecords, Result result) { in checkForDuplicateEntries()
151 for (CentralDirectoryRecord cdRecord : cdRecords) { in checkForDuplicateEntries()
217 List<CentralDirectoryRecord> cdRecords, in verify()
226 CentralDirectoryRecord manifestEntry = null; in verify()
227 Map<String, CentralDirectoryRecord> sigFileEntries = new HashMap<>(1); in verify()
228 List<CentralDirectoryRecord> sigBlockEntries = new ArrayList<>(1); in verify()
229 for (CentralDirectoryRecord cdRecord : cdRecords) { in verify()
279 for (CentralDirectoryRecord sigBlockEntry : sigBlockEntries) { in verify()
[all …]
/tools/apksig/src/main/java/com/android/apksig/apk/
DApkUtils.java22 import com.android.apksig.internal.zip.CentralDirectoryRecord;
293 List<CentralDirectoryRecord> cdRecords = in getAndroidManifest()
295 CentralDirectoryRecord androidManifestCdRecord = null; in getAndroidManifest()
296 for (CentralDirectoryRecord cdRecord : cdRecords) { in getAndroidManifest()
/tools/apksig/src/test/java/com/android/apksig/
DApkSignerTest.java43 import com.android.apksig.internal.zip.CentralDirectoryRecord;
1020 List<CentralDirectoryRecord> cdRecords = in testSignApk_stampFile()
1022 CentralDirectoryRecord stampCdRecord = null; in testSignApk_stampFile()
1023 for (CentralDirectoryRecord cdRecord : cdRecords) { in testSignApk_stampFile()