Home
last modified time | relevance | path

Searched refs:headerId (Results 1 – 2 of 2) sorted by relevance

/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DExtraField.java123 public Segment getSingleSegment(int headerId) throws IOException { in getSingleSegment() argument
126 .filter(s -> s.getHeaderId() == headerId) in getSingleSegment()
133 throw new IOException(found.size() + " segments with header ID " + headerId + "found"); in getSingleSegment()
150 int headerId = LittleEndianUtils.readUnsigned2Le(buffer); in parseSegments() local
155 + headerId in parseSegments()
164 + headerId in parseSegments()
173 SegmentFactory factory = identifySegmentFactory(headerId); in parseSegments()
174 Segment seg = factory.make(headerId, data); in parseSegments()
225 private static SegmentFactory identifySegmentFactory(int headerId) { in identifySegmentFactory() argument
226 if (headerId == ALIGNMENT_ZIP_EXTRA_DATA_FIELD_HEADER_ID) { in identifySegmentFactory()
[all …]
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java765 short headerId = extra.getShort(); in getInputJarEntryDataAlignmentMultiple() local
771 if (headerId != ALIGNMENT_ZIP_EXTRA_DATA_FIELD_HEADER_ID) { in getInputJarEntryDataAlignmentMultiple()
809 short headerId = original.getShort(); in createExtraFieldToAlignData() local
815 if (((headerId == 0) && (dataSize == 0)) in createExtraFieldToAlignData()
816 || (headerId == ALIGNMENT_ZIP_EXTRA_DATA_FIELD_HEADER_ID)) { in createExtraFieldToAlignData()