Home
last modified time | relevance | path

Searched refs:ZipFile (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/tools/aapt/
DZipFile.h44 class ZipFile {
46 ZipFile(void) in ZipFile() function
49 ~ZipFile(void) { in ~ZipFile()
126 status_t add(const ZipFile* pSourceZip, const ZipEntry* pSourceEntry,
169 ZipFile(const ZipFile& src);
170 ZipFile& operator=(const ZipFile& src);
DPackage.cpp40 ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<const OutputSet>& outputSet);
41 bool processFile(Bundle* bundle, ZipFile* zip, String8 storageName, const sp<const AaptFile>& file);
43 ssize_t processJarFiles(Bundle* bundle, ZipFile* zip);
60 ZipFile* zip = NULL; in writeAPK()
100 zip = new ZipFile; in writeAPK()
101 status = zip->open(outputFile.string(), ZipFile::kOpenReadWrite | ZipFile::kOpenCreate); in writeAPK()
218 ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<const OutputSet>& outputSet) in processAssets()
245 bool processFile(Bundle* bundle, ZipFile* zip, in processFile()
403 ssize_t processJarFile(ZipFile* jar, ZipFile* out) in processJarFile()
427 ssize_t processJarFiles(Bundle* bundle, ZipFile* zip) in processJarFiles()
[all …]
DZipFile.cpp59 status_t ZipFile::open(const char* zipFileName, int flags) in open()
135 ZipEntry* ZipFile::getEntryByIndex(int idx) const in getEntryByIndex()
146 ZipEntry* ZipFile::getEntryByName(const char* fileName) const in getEntryByName()
175 void ZipFile::discardEntries(void) in discardEntries()
204 status_t ZipFile::readCentralDir(void) in readCentralDir()
358 status_t ZipFile::addCommon(const char* fileName, const void* data, size_t size, in addCommon()
538 status_t ZipFile::add(const ZipFile* pSourceZip, const ZipEntry* pSourceEntry, in add()
645 status_t ZipFile::copyFpToFp(FILE* dstFp, FILE* srcFp, unsigned long* pCRC32) in copyFpToFp()
675 status_t ZipFile::copyDataToFp(FILE* dstFp, in copyDataToFp()
698 status_t ZipFile::copyPartialFpToFp(FILE* dstFp, FILE* srcFp, long length, in copyPartialFpToFp()
[all …]
DZipEntry.h33 class ZipFile; variable
49 friend class ZipFile;
175 status_t initFromExternal(const ZipFile* pZipFile, const ZipEntry* pEntry);
DCommand.cpp37 ZipFile* openReadOnly(const char* fileName) in openReadOnly()
39 ZipFile* zip; in openReadOnly()
42 zip = new ZipFile; in openReadOnly()
43 result = zip->open(fileName, ZipFile::kOpenReadOnly); in openReadOnly()
66 ZipFile* openReadWrite(const char* fileName, bool okayToCreate) in openReadWrite()
68 ZipFile* zip = NULL; in openReadWrite()
72 flags = ZipFile::kOpenReadWrite; in openReadWrite()
74 flags |= ZipFile::kOpenCreate; in openReadWrite()
77 zip = new ZipFile; in openReadWrite()
126 ZipFile* zip = NULL; in doList()
[all …]
DAndroid.bp114 "ZipFile.cpp",
/frameworks/base/tools/aapt2/io/
DZipArchive.cpp32 ZipFile::ZipFile(ZipArchiveHandle handle, const ZipEntry& entry, in ZipFile() function in aapt::io::ZipFile
36 std::unique_ptr<IData> ZipFile::OpenAsData() { in OpenAsData()
67 std::unique_ptr<io::InputStream> ZipFile::OpenInputStream() { in OpenInputStream()
71 const Source& ZipFile::GetSource() const { in GetSource()
75 bool ZipFile::WasCompressed() { in WasCompressed()
134 std::unique_ptr<IFile> file = util::make_unique<ZipFile>(collection->handle_, zip_data, in Create()
DZipArchive.h33 class ZipFile : public IFile {
35 ZipFile(::ZipArchiveHandle handle, const ::ZipEntry& entry, const Source& source);
/frameworks/multidex/library/test/src/androidx/multidex/
DZipUtilTest.java39 import java.util.zip.ZipFile;
54 new ZipFile(zipFile).close(); in setupClass()
92 ZipFile zip = new ZipFile(zipFile); in testCrcRange()
113 ZipFile zip = new ZipFile(zipFile); in testCrcValue()
143 ZipFile zip = new ZipFile(zipFile); in testInvalidCrcValue()
/frameworks/base/tools/sdkparcelables/src/com/android/sdkparcelables/
DMain.kt23 import java.util.zip.ZipFile
33 val zipFile: ZipFile in main()
36 zipFile = ZipFile(zipFileName) in main()
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DMain.java28 import java.util.zip.ZipFile;
64 ZipFile zipSrc = new ZipFile(inJar); in main()
/frameworks/base/core/tests/coretests/src/android/util/apk/
DSourceStampVerifierTest.java47 import java.util.zip.ZipFile;
243 ZipFile apkZipFile = new ZipFile(apk); in getSourceStampCertificateHashFromApk()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java38 import java.util.zip.ZipFile;
258 final ZipFile apk = new ZipFile(sourceApk); in performExtractions()
380 private static void extract(ZipFile apk, ZipEntry dexFile, File extractTo, in extract()
DMultiDex.java42 import java.util.zip.ZipFile;
603 elementClass.getConstructor(File.class, ZipFile.class, DexFile.class); in ICSElementConstructor()
611 return elementConstructor.newInstance(file, new ZipFile(file), dex); in newInstance()
761 ZipFile[] extraZips = new ZipFile[extraSize]; in install()
771 extraZips[index] = new ZipFile(additionalEntry); in install()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DAbUpdateInstaller.java38 import java.util.zip.ZipFile;
57 private ZipFile mPackedUpdateFile;
174 mPackedUpdateFile = new ZipFile(mCopiedUpdateFile); in setState()
/frameworks/base/packages/overlays/tests/src/com/android/theme/icon/
DIconPackOverlayTest.java49 import java.util.zip.ZipFile;
273 ZipFile file = new ZipFile(applicationInfo.sourceDir); in getDrawablesFromOverlay()
/frameworks/layoutlib/create/tests/src/com/android/tools/layoutlib/create/
DAsmGeneratorTest.java45 import java.util.zip.ZipFile;
284 ZipFile zipFile = new ZipFile(mOsDestJar); in testMethodInjection()
/frameworks/base/services/core/java/com/android/server/
DPinnerService.java83 import java.util.zip.ZipFile;
798 ZipFile fileAsZip = null; in pinFile()
825 private static ZipFile maybeOpenZip(String fileName) { in maybeOpenZip()
826 ZipFile zip = null; in maybeOpenZip()
828 zip = new ZipFile(fileName); in maybeOpenZip()
845 private static InputStream maybeOpenPinMetaInZip(ZipFile zipFile, String fileName) { in maybeOpenPinMetaInZip()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DInstallationAsyncTask.java44 import java.util.zip.ZipFile;
145 private ZipFile mZipFile;
289 mZipFile = new ZipFile(new File(new URL(mUrl).toURI())); in verifyAndPrepare()
/frameworks/base/api/
Dapi_versions_trimmer.py36 with zipfile.ZipFile(stubs) as z:
Dapi_versions_trimmer_unittests.py28 with zipfile.ZipFile(f, "w") as z:
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DDependencyFinder.java43 import java.util.zip.ZipFile;
156 ZipFile zip = new ZipFile(jarPath); in parseZip()
DAsmAnalyzer.java53 import java.util.zip.ZipFile;
199 ZipFile zip = new ZipFile(jarPath); in parseZip()
/frameworks/base/core/java/android/os/
DRecoverySystem.java75 import java.util.zip.ZipFile;
240 ZipFile zip = new ZipFile(keystore); in getTrustedCerts()
467 try (ZipFile zip = new ZipFile(packageFile)) { in readAndVerifyPackageCompatibilityEntry()
/frameworks/base/services/core/java/com/android/server/recoverysystem/
DRecoverySystemService.java84 import java.util.zip.ZipFile;
921 try (ZipFile zipFile = new ZipFile(packageFile)) { in getCompressedApexInfoList()

12