Home
last modified time | relevance | path

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

123

/frameworks/base/tools/aapt/
DZipEntry.cpp42 status_t ZipEntry::initFromCDE(FILE* fp) in initFromCDE()
115 void ZipEntry::initNew(const char* fileName, const char* comment) in initNew()
147 status_t ZipEntry::initFromExternal(const ZipFile* /* pZipFile */, in initFromExternal()
148 const ZipEntry* pEntry) in initFromExternal()
183 status_t ZipEntry::addPadding(int padding) in addPadding()
219 void ZipEntry::copyCDEtoLFH(void) in copyCDEtoLFH()
244 void ZipEntry::setDataInfo(long uncompLen, long compLen, unsigned long crc32, in setDataInfo()
265 bool ZipEntry::compareHeaders(void) const in compareHeaders()
323 time_t ZipEntry::getModWhen(void) const in getModWhen()
342 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.cpp149 ZipEntry* entry = zip->getEntryByIndex(i); in writeAPK()
252 ZipEntry* entry; in processFile()
331 compressionMethod = ZipEntry::kCompressStored; in processFile()
342 if (entry->getCompressionMethod() == ZipEntry::kCompressStored) { in processFile()
410 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/apct-tests/perftests/core/src/android/libcore/
DZipFileReadPerfTest.java40 import java.util.zip.ZipEntry;
60 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in setUp()
61 ZipEntry zipEntry = e.nextElement(); in setUp()
73 ZipEntry ze = new ZipEntry(Integer.toHexString(entry)); in writeEntries()
97 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in timeZipFileRead()
98 ZipEntry zipEntry = e.nextElement(); in timeZipFileRead()
DZipFilePerfTest.java38 import java.util.zip.ZipEntry;
58 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) { in setUp()
59 ZipEntry zipEntry = e.nextElement(); in setUp()
84 ZipEntry ze = new ZipEntry(Integer.toHexString(entry)); in writeEntries()
DBufferedZipFilePerfTest.java35 import java.util.zip.ZipEntry;
56 out.putNextEntry(new ZipEntry("entry.data" + mCompressedSize[i])); in setUp()
75 ZipEntry entry = zipFile.getEntry("entry.data" + mCompressedSize[i]); in timeUnbufferedRead()
95 ZipEntry entry = zipFile.getEntry("entry.data" + mCompressedSize[i]); in timeBufferedRead()
/frameworks/base/tools/traceinjection/src/com/android/traceinjection/
DMain.java28 import java.util.zip.ZipEntry;
90 Enumeration<? extends ZipEntry> srcEntries = zipSrc.entries(); in main()
92 ZipEntry entry = srcEntries.nextElement(); in main()
93 ZipEntry newEntry = new ZipEntry(entry.getName()); in main()
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DMain.java27 import java.util.zip.ZipEntry;
77 Enumeration<? extends ZipEntry> srcEntries = zipSrc.entries(); in main()
79 ZipEntry entry = srcEntries.nextElement(); in main()
80 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/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/
DHostStubGen.kt42 import java.util.zip.ZipEntry in <lambda>()
251 entry: ZipEntry, in <lambda>()
300 entry: ZipEntry, in <lambda>()
305 val outEntry = ZipEntry(entry.name) in <lambda>()
319 entry: ZipEntry, in <lambda>()
340 val newEntry = ZipEntry(entry.name) in <lambda>()
353 val newEntry = ZipEntry(entry.name) in <lambda>()
/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.java41 import java.util.zip.ZipEntry;
305 ZipEntry zipEntry = new ZipEntry(file.getFileName().toString()); in zipFiles()
320 ZipEntry zipEntry = new ZipEntry(entryName); in createDexMetadata()
/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/tools/aapt2/io/
DZipArchive.h35 ZipFile(::ZipArchiveHandle handle, const ::ZipEntry& entry, const android::Source& source);
45 ::ZipEntry zip_entry_;
/frameworks/base/libs/androidfw/
DZipFileRO.cpp41 ZipEntry entry;
126 const ZipEntry& ze = zipEntry->entry; in getEntryInfo()
239 const ZipEntry& ze = zipEntry->entry; in createEntryFileMap()
264 const ZipEntry& ze = zipEntry->entry; in createEntryIncFsFileMap()
/frameworks/base/core/java/android/util/apk/
DApkSignatureVerifier.java60 import java.util.zip.ZipEntry;
436 final List<ZipEntry> toVerify = new ArrayList<>(); in verifyV1Signature()
440 final ZipEntry manifestEntry = jarFile.findEntry( in verifyV1Signature()
461 final Iterator<ZipEntry> i = jarFile.iterator(); in verifyV1Signature()
463 final ZipEntry entry = i.next(); in verifyV1Signature()
473 for (ZipEntry entry : toVerify) { in verifyV1Signature()
512 StrictJarFile jarFile, ZipEntry entry) { in loadCertificates()
/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/DynamicSystemInstallationService/src/com/android/dynsystem/
DInstallationAsyncTask.java53 import java.util.zip.ZipEntry;
568 Enumeration<? extends ZipEntry> entries = zipFile.entries(); in calculateNumberOfImagesInLocalZip()
570 ZipEntry entry = entries.nextElement(); in calculateNumberOfImagesInLocalZip()
583 ZipEntry entry = null; in installStreamingZipUpdate()
603 Enumeration<? extends ZipEntry> entries = mZipFile.entries(); in installLocalZipUpdate()
606 ZipEntry entry = entries.nextElement(); in installLocalZipUpdate()
620 private void installImageFromAnEntry(ZipEntry entry, InputStream is) in installImageFromAnEntry()
/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()

123