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/
DApkSigner.java27 import com.android.apksig.internal.zip.ZipUtils;
452 ZipUtils.DeflateResult deflateResult = in sign()
453 ZipUtils.deflate(ByteBuffer.wrap(uncompressedData)); in sign()
494 ZipUtils.DeflateResult deflateResult = in sign()
495 ZipUtils.deflate(ByteBuffer.wrap(uncompressedData)); in sign()
559 ZipUtils.setZipEocdCentralDirectoryOffset(outputEocd, in sign()
654 int dataSize = ZipUtils.getUnsignedInt16(extra); in getInputJarEntryDataAlignmentMultiple()
673 return ZipUtils.getUnsignedInt16(extra); in getInputJarEntryDataAlignmentMultiple()
700 int dataSize = ZipUtils.getUnsignedInt16(original); in createExtraFieldToAlignData()
735 ZipUtils.putUnsignedInt16(result, 2 + paddingSizeBytes); in createExtraFieldToAlignData()
[all …]
/tools/apksig/src/main/java/com/android/apksig/apk/
DApkUtils.java24 import com.android.apksig.internal.zip.ZipUtils;
55 ZipUtils.findZipEndOfCentralDirectoryRecord(apk); in findZipSections()
63 long cdStartOffset = ZipUtils.getZipEocdCentralDirectoryOffset(eocdBuf); in findZipSections()
70 long cdSizeBytes = ZipUtils.getZipEocdCentralDirectorySizeBytes(eocdBuf); in findZipSections()
79 int cdRecordCount = ZipUtils.getZipEocdCentralDirectoryTotalRecordCount(eocdBuf); in findZipSections()
164 ZipUtils.setZipEocdCentralDirectoryOffset(eocd, offset); in setZipEocdCentralDirectoryOffset()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java34 import com.android.apksig.internal.zip.ZipUtils;
183 ZipUtils.setZipEocdCentralDirectoryOffset(modifiedEocd, beforeApkSigningBlock.size()); in verifyIntegrity()
201 long centralDirOffset = ZipUtils.getZipEocdCentralDirectoryOffset(eocd); in verifyIntegrity()
981 ZipUtils.setZipEocdCentralDirectoryOffset(eocdBuf, centralDirOffsetForDigesting); in copyWithModifiedCDOffset()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DVerityTreeBuilder.java19 import com.android.apksig.internal.zip.ZipUtils;
76 ZipUtils.setZipEocdCentralDirectoryOffset(eocdBuf, centralDirOffsetForDigesting); in generateVerityTreeRootHash()