Home
last modified time | relevance | path

Searched refs:getCentralDirectoryHeader (Results 1 – 12 of 12) sorted by relevance

/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zfile/
DApkAlignmentTest.java69 soEntry.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in soFilesUncompressedAndAligned()
71 soEntry.getCentralDirectoryHeader().getOffset() + soEntry.getLocalHeaderSize(); in soFilesUncompressedAndAligned()
90 zeroSo.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in soFilesMergedFromZipsCanBeUncompressedAndAligned()
92 zeroSo.getCentralDirectoryHeader().getOffset() + zeroSo.getLocalHeaderSize(); in soFilesMergedFromZipsCanBeUncompressedAndAligned()
122 soEntry.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in soFilesMergedFromZipsCanBeUncompressedAndAligned()
124 soEntry.getCentralDirectoryHeader().getOffset() + soEntry.getLocalHeaderSize(); in soFilesMergedFromZipsCanBeUncompressedAndAligned()
166 soEntry.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in soFilesUncompressedAndNotAligned()
168 soEntry.getCentralDirectoryHeader().getOffset() + soEntry.getLocalHeaderSize(); in soFilesUncompressedAndNotAligned()
187 zeroSo.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in soFilesMergedFromZipsCanBeUncompressedAndNotAligned()
189 zeroSo.getCentralDirectoryHeader().getOffset() + zeroSo.getLocalHeaderSize(); in soFilesMergedFromZipsCanBeUncompressedAndNotAligned()
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DZFile.java547 entries.put(entry.getCentralDirectoryHeader().getName(), entry); in entries()
555 entries.put(uncompressed.getCentralDirectoryHeader().getName(), uncompressed); in entries()
574 if (stillUncompressed.getCentralDirectoryHeader().getName().equals(path)) { in get()
613 long start = entry.getCentralDirectoryHeader().getOffset(); in readData()
651 e.getCentralDirectoryHeader().getName(), in readData()
652 e.getCentralDirectoryHeader().getOffset(), in readData()
675 entries.put(entry.getCentralDirectoryHeader().getName(), mapEntry); in readData()
952 String path = entry.getCentralDirectoryHeader().getName(); in delete()
1063 String name = storedEntry.getCentralDirectoryHeader().getName(); in update()
1107 storedEntry.getCentralDirectoryHeader().setOffset(-1); in update()
[all …]
DStoredEntry.java70 String name1 = o1.getCentralDirectoryHeader().getName();
71 String name2 = o2.getCentralDirectoryHeader().getName();
358 if (bytes.length < getCentralDirectoryHeader().getUncompressedSize()) { in read()
360 "Buffer to small while reading {}" + getCentralDirectoryHeader().getName()); in read()
418 public CentralDirectoryHeader getCentralDirectoryHeader() { in getCentralDirectoryHeader() method in StoredEntry
DCentralDirectory.java262 CentralDirectoryHeader cdr = entry.getCentralDirectoryHeader(); in makeFromEntries()
438 cdhs[idx] = entry.getCentralDirectoryHeader(); in computeByteRepresentation()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileTest.java327 assertEquals(3, file2.getCentralDirectoryHeader().getUncompressedSize());
367 assertEquals(6, file3.getCentralDirectoryHeader().getUncompressedSize());
410 assertEquals(5, file1.getCentralDirectoryHeader().getUncompressedSize());
461 assertEquals(6, file3.getCentralDirectoryHeader().getUncompressedSize());
653 boomEntry.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in addDirectoryRecursively()
660 .getCentralDirectoryHeader() in addDirectoryRecursively()
672 choc.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in addDirectoryRecursively()
679 .getCentralDirectoryHeader() in addDirectoryRecursively()
688 .getCentralDirectoryHeader() in addDirectoryRecursively()
954 entry.getCentralDirectoryHeader().getName()); in utf8NamesSupportedOnReading()
[all …]
DZipMergeTest.java107 assertTrue(wStored.getCentralDirectoryHeader().getGpBit().isDeferredCrc()); in mergeZipWithDeferredCrc()
109 wStored.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in mergeZipWithDeferredCrc()
117 assertFalse(wmStored.getCentralDirectoryHeader().getGpBit().isDeferredCrc()); in mergeZipWithDeferredCrc()
119 wmStored.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in mergeZipWithDeferredCrc()
146 wStored.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in mergeZipKeepsDeflatedAndStored()
150 lStored.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in mergeZipKeepsDeflatedAndStored()
158 assertFalse(wmStored.getCentralDirectoryHeader().getGpBit().isDeferredCrc()); in mergeZipKeepsDeflatedAndStored()
160 wmStored.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in mergeZipKeepsDeflatedAndStored()
166 lmStored.getCentralDirectoryHeader().getCompressionInfoWithWait().getMethod()); in mergeZipKeepsDeflatedAndStored()
DAlignmentTest.java96 offset0 = se0.getCentralDirectoryHeader().getOffset();
114 assertEquals(offset0, se0.getCentralDirectoryHeader().getOffset());
118 assertTrue(se1.getCentralDirectoryHeader().getOffset() > 950);
119 assertTrue(se1.getCentralDirectoryHeader().getOffset() < 1024);
157 if (se1.getCentralDirectoryHeader().getOffset() <
158 se0.getCentralDirectoryHeader().getOffset()) {
270 assertEquals(0, entry.getCentralDirectoryHeader().getOffset());
298 assertEquals(991, entry.getCentralDirectoryHeader().getOffset());
330 middleEntry.getCentralDirectoryHeader().getOffset());
360 assertEquals(2013, entry.getCentralDirectoryHeader().getOffset());
[all …]
DZFileSortTest.java90 mMaryOffset = mMaryEntry.getCentralDirectoryHeader().getOffset(); in readEntries()
95 mAndrewOffset = mAndrewEntry.getCentralDirectoryHeader().getOffset(); in readEntries()
100 mBethOffset = mBethEntry.getCentralDirectoryHeader().getOffset(); in readEntries()
105 mPeterOffset = mPeterEntry.getCentralDirectoryHeader().getOffset(); in readEntries()
DExtraFieldTest.java76 se -> se.getCentralDirectoryHeader().getExtraField(); in getParameters()
79 se.getCentralDirectoryHeader().setExtraField(ef); in getParameters()
100 assertEquals(3, foo.getCentralDirectoryHeader().getUncompressedSize()); in readEntryWithNoExtraField()
128 assertEquals(3, foo.getCentralDirectoryHeader().getUncompressedSize()); in readSingleExtraField()
175 assertEquals(3, foo.getCentralDirectoryHeader().getUncompressedSize()); in readMultipleExtraFields()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DSigningExtension.java169 String entryName = entry.getCentralDirectoryHeader().getName(); in register()
246 String entryName = entry.getCentralDirectoryHeader().getName(); in onZipEntryOutput()
278 String entryName = entry.getCentralDirectoryHeader().getName(); in onOutputZipReadyForUpdate()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/compress/
DMultiCompressorTest.java70 entry.getCentralDirectoryHeader().getCompressionInfoWithWait(); in storeIsBest()
89 entry.getCentralDirectoryHeader().getCompressionInfoWithWait(); in sameCompressionResultButBetterThanStore()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zfile/
DApkZFileCreator.java133 String path = toMergeEntry.getCentralDirectoryHeader().getName(); in writeZip()