Home
last modified time | relevance | path

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

12

/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.java24 import java.util.zip.ZipEntry;
73 Enumeration<? extends ZipEntry> srcEntries = zipSrc.entries(); in main()
75 ZipEntry entry = srcEntries.nextElement(); in main()
76 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/java/android/util/apk/
DApkSignatureVerifier.java48 import java.util.zip.ZipEntry;
177 final List<ZipEntry> toVerify = new ArrayList<>(); in verifyV1Signature()
181 final ZipEntry manifestEntry = jarFile.findEntry( in verifyV1Signature()
197 final Iterator<ZipEntry> i = jarFile.iterator(); in verifyV1Signature()
199 final ZipEntry entry = i.next(); in verifyV1Signature()
209 for (ZipEntry entry : toVerify) { in verifyV1Signature()
240 private static Certificate[][] loadCertificates(StrictJarFile jarFile, ZipEntry entry) in loadCertificates()
/frameworks/base/cmds/idmap2/libidmap2/
DZipFile.cpp47 ::ZipEntry entry; in Uncompress()
61 ::ZipEntry entry; in Crc()
/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/base/core/jni/
Dandroid_util_jar_StrictJarFile.cpp43 jobject newZipEntry(JNIEnv* env, const ZipEntry& entry, jstring entryName) { in newZipEntry()
122 ZipEntry data; in StrictJarFile_nativeNextEntry()
147 ZipEntry data; in StrictJarFile_nativeFindEntry()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java36 import java.util.zip.ZipEntry;
258 ZipEntry dexFile = apk.getEntry(DEX_PREFIX + secondaryNumber + DEX_SUFFIX); in performExtractions()
375 private static void extract(ZipFile apk, ZipEntry dexFile, File extractTo, in extract()
387 ZipEntry classesDex = new ZipEntry("classes.dex"); in extract()
/frameworks/base/libs/androidfw/
DZipFileRO.cpp41 ZipEntry entry;
121 const ZipEntry& ze = zipEntry->entry; in getEntryInfo()
219 const ZipEntry& ze = zipEntry->entry; in createEntryFileMap()
DApkAssets.cpp129 ::ZipEntry entry; in LoadImpl()
169 ::ZipEntry entry; in Open()
223 ::ZipEntry entry; in ForEachFile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DDumpTruck.java39 import java.util.zip.ZipEntry;
177 ZipEntry entry = new ZipEntry(filename); in zipUp()
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java30 import java.util.zip.ZipEntry;
157 final ZipEntry entry = new ZipEntry(name); in dumpAll()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_smoke_test.cpp210 ZipEntry entry; in FileExists()
218 ZipEntry mainEntryLoc; in TEST_F()
231 ZipEntry entry; in TEST_F()
/frameworks/base/libs/androidfw/tests/
DTestHelpers.cpp38 ::ZipEntry entry; in ReadFileFromZipToString()
/frameworks/base/core/java/android/os/
DRecoverySystem.java63 import java.util.zip.ZipEntry;
164 Enumeration<? extends ZipEntry> entries = zip.entries(); in getTrustedCerts()
166 ZipEntry entry = entries.nextElement(); in getTrustedCerts()
363 ZipEntry entry; in verifyPackageCompatibility()
389 ZipEntry entry = zip.getEntry("compatibility.zip"); in readAndVerifyPackageCompatibilityEntry()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DDexManager.java58 import java.util.zip.ZipEntry;
758 Iterator<ZipEntry> it = jarFile.iterator(); in auditUncompressedDexInApk()
761 ZipEntry entry = it.next(); in auditUncompressedDexInApk()
763 if (entry.getMethod() != ZipEntry.STORED) { in auditUncompressedDexInApk()
/frameworks/base/core/tests/coretests/src/android/content/pm/dex/
DDexMetadataHelperTest.java54 import java.util.zip.ZipEntry;
85 zipOs.putNextEntry(new ZipEntry("primary.prof")); in createDexMetadataFile()

12