Home
last modified time | relevance | path

Searched refs:ZipUtils (Results 1 – 8 of 8) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DCentralDirectoryRecord.java131 ZipUtils.assertByteOrderLittleEndian(buf); in getRecord()
148 int lastModificationTime = ZipUtils.getUnsignedInt16(buf); in getRecord()
149 int lastModificationDate = ZipUtils.getUnsignedInt16(buf); in getRecord()
150 long crc32 = ZipUtils.getUnsignedInt32(buf); in getRecord()
151 long compressedSize = ZipUtils.getUnsignedInt32(buf); in getRecord()
152 long uncompressedSize = ZipUtils.getUnsignedInt32(buf); in getRecord()
153 int nameSize = ZipUtils.getUnsignedInt16(buf); in getRecord()
154 int extraSize = ZipUtils.getUnsignedInt16(buf); in getRecord()
155 int commentSize = ZipUtils.getUnsignedInt16(buf); in getRecord()
157 long localFileHeaderOffset = ZipUtils.getUnsignedInt32(buf); in getRecord()
[all …]
DLocalFileRecord.java176 boolean dataDescriptorUsed = (gpFlags & ZipUtils.GP_FLAG_DATA_DESCRIPTOR_USED) != 0; in getRecord()
178 (cdRecord.getGpFlags() & ZipUtils.GP_FLAG_DATA_DESCRIPTOR_USED) != 0; in getRecord()
189 long crc32 = ZipUtils.getUnsignedInt32(header, CRC32_OFFSET); in getRecord()
196 long compressedSize = ZipUtils.getUnsignedInt32(header, COMPRESSED_SIZE_OFFSET); in getRecord()
203 long uncompressedSize = ZipUtils.getUnsignedInt32(header, UNCOMPRESSED_SIZE_OFFSET); in getRecord()
211 int nameLength = ZipUtils.getUnsignedInt16(header, NAME_LENGTH_OFFSET); in getRecord()
224 int extraLength = ZipUtils.getUnsignedInt16(header, EXTRA_LENGTH_OFFSET); in getRecord()
228 (cdRecord.getCompressionMethod() != ZipUtils.COMPRESSION_METHOD_STORED); in getRecord()
250 if ((dataDescriptorIncluded) && ((gpFlags & ZipUtils.GP_FLAG_DATA_DESCRIPTOR_USED) != 0)) { in getRecord()
322 ZipUtils.setUnsignedInt16(header, EXTRA_LENGTH_OFFSET, extraSizeBytes); in outputRecordWithModifiedExtra()
[all …]
DEocdRecord.java40 ZipUtils.setUnsignedInt16( in createWithModifiedCentralDirectoryInfo()
42 ZipUtils.setUnsignedInt16( in createWithModifiedCentralDirectoryInfo()
44 ZipUtils.setUnsignedInt32(result, CD_SIZE_OFFSET, centralDirectorySizeBytes); in createWithModifiedCentralDirectoryInfo()
45 ZipUtils.setUnsignedInt32(result, CD_OFFSET_OFFSET, centralDirectoryOffset); in createWithModifiedCentralDirectoryInfo()
DZipUtils.java34 public abstract class ZipUtils { class
35 private ZipUtils() {} in ZipUtils() method in ZipUtils
/tools/apksig/src/main/java/com/android/apksig/apk/
DApkUtils.java24 import com.android.apksig.internal.zip.ZipUtils;
60 ZipUtils.findZipEndOfCentralDirectoryRecord(apk); in findZipSections()
68 long cdStartOffset = ZipUtils.getZipEocdCentralDirectoryOffset(eocdBuf); in findZipSections()
75 long cdSizeBytes = ZipUtils.getZipEocdCentralDirectorySizeBytes(eocdBuf); in findZipSections()
84 int cdRecordCount = ZipUtils.getZipEocdCentralDirectoryTotalRecordCount(eocdBuf); in findZipSections()
169 ZipUtils.setZipEocdCentralDirectoryOffset(eocd, offset); in setZipEocdCentralDirectoryOffset()
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java29 import com.android.apksig.internal.zip.ZipUtils;
595 ZipUtils.setZipEocdCentralDirectoryOffset( in sign()
621 ZipUtils.DeflateResult deflateResult = ZipUtils.deflate(ByteBuffer.wrap(uncompressedData)); in outputDataToOutputApk()
733 int dataSize = ZipUtils.getUnsignedInt16(extra); in getInputJarEntryDataAlignmentMultiple()
752 return ZipUtils.getUnsignedInt16(extra); in getInputJarEntryDataAlignmentMultiple()
777 int dataSize = ZipUtils.getUnsignedInt16(original); in createExtraFieldToAlignData()
813 ZipUtils.putUnsignedInt16(result, 2 + paddingSizeBytes); in createExtraFieldToAlignData()
814 ZipUtils.putUnsignedInt16(result, dataAlignmentMultiple); in createExtraFieldToAlignData()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DVerityTreeBuilder.java21 import com.android.apksig.internal.zip.ZipUtils;
118 ZipUtils.setZipEocdCentralDirectoryOffset(eocdBuf, centralDirOffsetForDigesting); in generateVerityTreeRootHash()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java47 import com.android.apksig.internal.zip.ZipUtils;
202 ZipUtils.setZipEocdCentralDirectoryOffset(modifiedEocd, beforeApkSigningBlock.size()); in verifyIntegrity()
220 long centralDirOffset = ZipUtils.getZipEocdCentralDirectoryOffset(eocd); in verifyIntegrity()
1044 ZipUtils.setZipEocdCentralDirectoryOffset(eocdBuf, centralDirOffsetForDigesting); in copyWithModifiedCDOffset()