Home
last modified time | relevance | path

Searched refs:ZipEntry (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/tools/aapt/
DZipEntry.cpp40 status_t ZipEntry::initFromCDE(FILE* fp) in initFromCDE()
113 void ZipEntry::initNew(const char* fileName, const char* comment) in initNew()
145 status_t ZipEntry::initFromExternal(const ZipFile* /* pZipFile */, in initFromExternal()
146 const ZipEntry* pEntry) in initFromExternal()
181 status_t ZipEntry::addPadding(int padding) in addPadding()
217 void ZipEntry::copyCDEtoLFH(void) in copyCDEtoLFH()
242 void ZipEntry::setDataInfo(long uncompLen, long compLen, unsigned long crc32, in setDataInfo()
263 bool ZipEntry::compareHeaders(void) const in compareHeaders()
321 time_t ZipEntry::getModWhen(void) const in getModWhen()
340 void ZipEntry::setModWhen(time_t when) in setModWhen()
[all …]
DZipFile.h81 ZipEntry** ppEntry) in add()
86 int compressionMethod, ZipEntry** ppEntry) in add()
89 ZipEntry::kCompressStored, in add()
99 ZipEntry** ppEntry) in addGzip()
102 ZipEntry::kCompressDeflated, in addGzip()
103 ZipEntry::kCompressDeflated, ppEntry); in addGzip()
112 int compressionMethod, ZipEntry** ppEntry) in add()
115 ZipEntry::kCompressStored, in add()
126 status_t add(const ZipFile* pSourceZip, const ZipEntry* pSourceEntry,
127 int padding, ZipEntry** ppEntry);
[all …]
DZipFile.cpp135 ZipEntry* ZipFile::getEntryByIndex(int idx) const in getEntryByIndex()
146 ZipEntry* ZipFile::getEntryByName(const char* fileName) const in getEntryByName()
161 ZipEntry* pEntry = mEntries[idx]; in getEntryByName()
254 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature) in readCentralDir()
309 ZipEntry* pEntry = new ZipEntry; in readCentralDir()
332 if (ZipEntry::getLongLE(checkBuf) != EndOfCentralDir::kSignature) { in readCentralDir()
360 ZipEntry** ppEntry) in addCommon()
362 ZipEntry* pEntry = NULL; in addCommon()
372 assert(compressionMethod == ZipEntry::kCompressDeflated || in addCommon()
373 compressionMethod == ZipEntry::kCompressStored); in addCommon()
[all …]
DZipEntry.h47 class ZipEntry {
51 ZipEntry(void) in ZipEntry() function
54 ~ZipEntry(void) {} in ~ZipEntry()
175 status_t initFromExternal(const ZipFile* pZipFile, const ZipEntry* pEntry);
207 ZipEntry(const ZipEntry& src);
208 ZipEntry& operator=(const ZipEntry& src);
DPackage.cpp147 ZipEntry* entry = zip->getEntryByIndex(i); in writeAPK()
250 ZipEntry* entry; in processFile()
329 compressionMethod = ZipEntry::kCompressStored; in processFile()
340 if (entry->getCompressionMethod() == ZipEntry::kCompressStored) { in processFile()
408 ZipEntry* entry = jar->getEntryByIndex(i); in processJarFile()
/frameworks/base/core/java/android/util/jar/
DStrictJarFile.java36 import java.util.zip.ZipEntry;
148 public Iterator<ZipEntry> iterator() throws IOException { in iterator()
152 public ZipEntry findEntry(String name) { in findEntry()
164 public Certificate[][] getCertificateChains(ZipEntry ze) { in getCertificateChains()
183 public Certificate[] getCertificates(ZipEntry ze) { in getCertificates()
207 public InputStream getInputStream(ZipEntry ze) { in getInputStream()
246 private InputStream getZipInputStream(ZipEntry ze) { in getZipInputStream()
247 if (ze.getMethod() == ZipEntry.STORED) { in getZipInputStream()
259 static final class EntryIterator implements Iterator<ZipEntry> {
261 private ZipEntry nextEntry;
[all …]
/frameworks/multidex/library/test/src/androidx/multidex/
DZipUtilTest.java37 import java.util.zip.ZipEntry;
84 Map<String, ZipEntry> toCheck = new HashMap<String, ZipEntry>(); in testCrcRange()
88 ZipEntry entry = ZipEntryReader.readEntry(buffer); in testCrcRange()
94 Enumeration<? extends ZipEntry> ref = zip.entries(); in testCrcRange()
96 ZipEntry refEntry = ref.nextElement(); in testCrcRange()
97 ZipEntry checkEntry = toCheck.get(refEntry.getName()); in testCrcRange()
114 Enumeration<? extends ZipEntry> ref = zip.entries(); in testCrcValue()
117 ZipEntry refEntry = ref.nextElement(); in testCrcValue()
144 Enumeration<? extends ZipEntry> ref = zip.entries(); in testInvalidCrcValue()
147 ZipEntry refEntry = ref.nextElement(); in testInvalidCrcValue()
DZipEntryReader.java28 import java.util.zip.ZipEntry;
50 static ZipEntry readEntry(ByteBuffer in) throws IOException { in readEntry()
85 ZipEntry entry = new ZipEntry(name); in readEntry()
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DMain.java27 import java.util.zip.ZipEntry;
74 Enumeration<? extends ZipEntry> srcEntries = zipSrc.entries(); in main()
76 ZipEntry entry = srcEntries.nextElement(); in main()
77 ZipEntry newEntry = new ZipEntry(entry.getName()); in main()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DAbUpdateInstaller.java36 import java.util.zip.ZipEntry;
56 private Enumeration<? extends ZipEntry> mEntries;
217 ZipEntry entry = mEntries.nextElement(); in updateStateForPayload()
226 if (entry.getMethod() != ZipEntry.STORED) { in updateStateForPayload()
242 private long buildOffsetForEntry(ZipEntry entry, String name) { in buildOffsetForEntry()
247 private void updatePropertiesForEntry(ZipEntry entry) throws IOException { in updatePropertiesForEntry()
/frameworks/base/core/jni/
Dandroid_util_jar_StrictJarFile.cpp43 jobject newZipEntry(JNIEnv* env, const ZipEntry& entry, jstring entryName) { in newZipEntry()
114 ZipEntry data; in StrictJarFile_nativeNextEntry()
136 ZipEntry data; in StrictJarFile_nativeFindEntry()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DArtStatsLogUtils.java39 import java.util.zip.ZipEntry;
201 Iterator<ZipEntry> it = jarFile.iterator(); in getDexBytes()
205 ZipEntry entry = it.next(); in getDexBytes()
263 Iterator<ZipEntry> it = jarFile.iterator(); in findFileName()
265 ZipEntry entry = it.next(); in findFileName()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DArtStatsLogUtilsTest.java39 import java.util.zip.ZipEntry;
302 ZipEntry zipEntry = new ZipEntry(file.getFileName().toString()); in zipFiles()
317 ZipEntry zipEntry = new ZipEntry(entryName); in createDexMetadata()
/frameworks/base/libs/androidfw/
DZipFileRO.cpp41 ZipEntry entry;
121 const ZipEntry& ze = zipEntry->entry; in getEntryInfo()
216 const ZipEntry& ze = zipEntry->entry; in createEntryFileMap()
241 const ZipEntry& ze = zipEntry->entry; in createEntryIncFsFileMap()
/frameworks/base/core/java/android/util/apk/
DApkSignatureVerifier.java51 import java.util.zip.ZipEntry;
371 final List<ZipEntry> toVerify = new ArrayList<>(); in verifyV1Signature()
375 final ZipEntry manifestEntry = jarFile.findEntry( in verifyV1Signature()
391 final Iterator<ZipEntry> i = jarFile.iterator(); in verifyV1Signature()
393 final ZipEntry entry = i.next(); in verifyV1Signature()
403 for (ZipEntry entry : toVerify) { in verifyV1Signature()
435 private static Certificate[][] loadCertificates(StrictJarFile jarFile, ZipEntry entry) in loadCertificates()
/frameworks/base/tools/aapt2/io/
DZipArchive.h35 ZipFile(::ZipArchiveHandle handle, const ::ZipEntry& entry, const Source& source);
44 ::ZipEntry zip_entry_;
DZipArchive.cpp32 ZipFile::ZipFile(ZipArchiveHandle handle, const ZipEntry& entry, in ZipFile()
127 ZipEntry zip_data; in Create()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_smoke_test.cpp64 void GetEntry(const ZipArchiveHandle archive, const std::string_view entry_name, ZipEntry* data) { in GetEntry()
73 ZipEntry main_entry; in ExtractBugreport()
81 ZipEntry entry; in ExtractBugreport()
265 ZipEntry entry; in FileExists()
273 ZipEntry main_entry; in TEST_F()
287 ZipEntry entry; in TEST_F()
316 ZipEntry entry; in TEST_F()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java37 import java.util.zip.ZipEntry;
263 ZipEntry dexFile = apk.getEntry(DEX_PREFIX + secondaryNumber + DEX_SUFFIX); in performExtractions()
380 private static void extract(ZipFile apk, ZipEntry dexFile, File extractTo, in extract()
392 ZipEntry classesDex = new ZipEntry("classes.dex"); in extract()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DDumpTruck.java40 import java.util.zip.ZipEntry;
176 ZipEntry entry = new ZipEntry(filename); in zipUp()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DInstallationAsyncTask.java43 import java.util.zip.ZipEntry;
399 ZipEntry zipEntry = null; in installStreamingZipUpdate()
413 Enumeration<? extends ZipEntry> entries = mZipFile.entries(); in installLocalZipUpdate()
416 ZipEntry entry = entries.nextElement(); in installLocalZipUpdate()
425 private boolean installImageFromAnEntry(ZipEntry entry, InputStream is) in installImageFromAnEntry()
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DProtoLogTool.kt31 import java.util.zip.ZipEntry in <lambda>()
80 outJar.putNextEntry(ZipEntry(path)) in <lambda>()
93 outJar.putNextEntry(ZipEntry(cachePath)) in <lambda>()
/frameworks/base/packages/overlays/tests/src/com/android/theme/icon/
DIconPackOverlayTest.java48 import java.util.zip.ZipEntry;
274 Enumeration<? extends ZipEntry> entries = file.entries(); in getDrawablesFromOverlay()
276 ZipEntry element = entries.nextElement(); in getDrawablesFromOverlay()
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java31 import java.util.zip.ZipEntry;
158 final ZipEntry entry = new ZipEntry(name); in dumpAll()
/frameworks/base/libs/androidfw/tests/
DTestHelpers.cpp37 ::ZipEntry entry; in ReadFileFromZipToString()

123