Home
last modified time | relevance | path

Searched refs:zip (Results 1 – 25 of 460) sorted by relevance

12345678910>>...19

/aosp12/build/soong/zip/
H A Dzip_test.go15 package zip package
60 return zip.FileHeader{
70 return zip.FileHeader{
80 return zip.FileHeader{
90 return zip.FileHeader{
117 files []zip.FileHeader
135 files: []zip.FileHeader{
150 files: []zip.FileHeader{
165 files: []zip.FileHeader{
180 files: []zip.FileHeader{
[all …]
/aosp12/build/make/core/tasks/
H A Ddevice-tests.mk18 device-tests-zip := $(PRODUCT_OUT)/device-tests.zip
20 device-tests-list-zip := $(PRODUCT_OUT)/device-tests_list.zip
22 device-tests-configs-zip := $(PRODUCT_OUT)/device-tests_configs.zip
24 device_tests_host_shared_libs_zip := $(PRODUCT_OUT)/device-tests_host-shared-libs.zip
26 $(device-tests-zip) : .KATI_IMPLICIT_OUTPUTS := $(device-tests-list-zip) $(device-tests-configs-zip
27 $(device-tests-zip) : PRIVATE_device_tests_list := $(PRODUCT_OUT)/device-tests_list
28 $(device-tests-zip) : PRIVATE_HOST_SHARED_LIBS := $(my_host_shared_lib_for_device_tests)
29 $(device-tests-zip) : PRIVATE_device_host_shared_libs_zip := $(device_tests_host_shared_libs_zip)
43 $(hide) $(SOONG_ZIP) -d -o $(device-tests-configs-zip) \
55 device-tests: $(device-tests-zip)
[all …]
/aosp12/packages/modules/Virtualization/zipfuse/src/
H A Dinode.rs166 archive: &mut zip::ZipArchive<R>, in from_zip()
230 use zip::write::FileOptions;
240 let zip = zip::ZipArchive::new(buf); in setup() localVariable
241 assert!(zip.is_ok()); in setup()
282 let it = setup(|zip| { in one_file()
292 let it = setup(|zip| { in one_dir()
302 let it = setup(|zip| { in one_file_in_subdirs()
333 let it = setup(|zip| { in complex_hierarchy()
373 let it = setup(|zip| { in file_size()
415 let zip = zip::ZipArchive::new(buf); in rejects_invalid_paths() localVariable
[all …]
H A Dmain.rs384 use zip::write::FileOptions;
432 assert!(zip.is_ok()); in run_test()
433 let mut zip = zip::ZipWriter::new(zip.unwrap()); in run_test() localVariable
436 add(&mut zip); in run_test()
437 assert!(zip.finish().is_ok()); in run_test()
438 drop(zip); in run_test()
517 |zip| { in single_file()
531 |zip| { in single_dir()
560 |zip| { in complex_hierarchy()
600 |zip| { in large_file()
[all …]
/aosp12/frameworks/base/tools/aapt/
H A DPackage.cpp60 ZipFile* zip = NULL; in writeAPK() local
100 zip = new ZipFile; in writeAPK()
124 count = processJarFiles(bundle, zip); in writeAPK()
154 zip->remove(entry); in writeAPK()
163 result = zip->flush(); in writeAPK()
170 if (zip->getNumEntries() == 0) { in writeAPK()
175 zip = NULL; in writeAPK()
245 bool processFile(Bundle* bundle, ZipFile* zip, in processFile() argument
305 zip->remove(entry); in processFile()
316 zip->remove(entry); in processFile()
[all …]
/aosp12/system/libziparchive/cli-tests/
H A Dunzip.test10 command: unzip -l $FILES/example.zip d1/d2/x.txt
13 Archive: $FILES/example.zip
36 Archive: $FILES/example.zip
48 Archive: $FILES/example.zip
64 command: unzip -q $FILES/example.zip
156 Archive: $FILES/example.zip
164 Archive: $FILES/example.zip
170 command: unzip -tq $FILES/example.zip
193 command: unzip -t $FILES/bad_crc.zip a.txt
196 Archive: $FILES/bad_crc.zip
[all …]
H A Dzipinfo.test3 # Note: since "master key", Android uses libziparchive for all zip file
10 command: zipinfo -1 $FILES/example.zip | sort
22 command: zipinfo $FILES/example.zip | head -2
24 Archive: $FILES/example.zip
29 command: zipinfo $FILES/example.zip | tail -1
36 command: zipinfo $FILES/example.zip d1/ | sed s/17-Jun-/2017-06-/
43 command: zipinfo $FILES/example.zip d1/d2/empty.txt | sed s/17-Jun-/2017-06-/
50 command: zipinfo $FILES/example.zip d1/d2/x.txt | sed s/17-Jun-/2017-06-/
/aosp12/bootable/recovery/tests/unit/
H A Dinstall_test.cpp59 ZipArchiveHandle zip; in TEST() local
64 CloseArchive(zip); in TEST()
74 CloseArchive(zip); in TEST()
81 ZipArchiveHandle zip; in TEST() local
85 CloseArchive(zip); in TEST()
119 ZipArchiveHandle zip; in TEST() local
150 CloseArchive(zip); in TEST()
167 CloseArchive(zip); in TEST()
214 CloseArchive(zip); in VerifyAbUpdateCommands()
248 CloseArchive(zip); in TEST()
[all …]
/aosp12/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
H A DWriteableArchiveTest.java36 import java.util.zip.ZipEntry;
37 import java.util.zip.ZipFile;
183 ZipFile zip = null; in testAddDirectory() local
192 if (zip != null) { in testAddDirectory()
193 zip.close(); in testAddDirectory()
250 ZipFile zip = null; in testAddFile() local
267 if (zip != null) { in testAddFile()
268 zip.close(); in testAddFile()
279 ZipFile zip = null; in testAddFile_empty() local
295 if (zip != null) { in testAddFile_empty()
[all …]
/aosp12/frameworks/multidex/library/test/src/androidx/multidex/
H A DZipUtilTest.java37 import java.util.zip.ZipEntry;
38 import java.util.zip.ZipException;
39 import java.util.zip.ZipFile;
92 ZipFile zip = new ZipFile(zipFile); in testCrcRange() local
93 Assert.assertEquals(zip.size(), toCheck.size()); in testCrcRange()
94 Enumeration<? extends ZipEntry> ref = zip.entries(); in testCrcRange()
108 zip.close(); in testCrcRange()
113 ZipFile zip = new ZipFile(zipFile); in testCrcValue() local
139 zip.close(); in testCrcValue()
143 ZipFile zip = new ZipFile(zipFile); in testInvalidCrcValue() local
[all …]
/aosp12/frameworks/base/core/java/android/app/
H A DApplicationLoaders.java46 ClassLoader getClassLoader(String zip, int targetSdkVersion, boolean isBundled, in getClassLoader() argument
49 return getClassLoaderWithSharedLibraries(zip, targetSdkVersion, isBundled, in getClassLoader()
55 String zip, int targetSdkVersion, boolean isBundled, in getClassLoaderWithSharedLibraries() argument
60 return getClassLoader(zip, targetSdkVersion, isBundled, librarySearchPath, in getClassLoaderWithSharedLibraries()
87 return getClassLoaderWithSharedLibraries(zip, targetSdkVersion, isBundled, in getSharedLibraryClassLoaderWithSharedLibraries()
121 Trace.traceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, zip); in getClassLoader()
124 zip, librarySearchPath, libraryPermittedPath, parent, in getClassLoader()
141 Trace.traceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, zip); in getClassLoader()
143 zip, null, parent, classLoaderName, sharedLibraries); in getClassLoader()
239 CachedClassLoader cached = mSystemLibsCacheMap.get(zip); in getCachedNonBootclasspathSystemLib()
[all …]
/aosp12/frameworks/base/core/java/android/util/apk/
H A DZipUtils.java54 static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord(RandomAccessFile zip) in findZipEndOfCentralDirectoryRecord() argument
66 long fileSize = zip.length(); in findZipEndOfCentralDirectoryRecord()
74 Pair<ByteBuffer, Long> result = findZipEndOfCentralDirectoryRecord(zip, 0); in findZipEndOfCentralDirectoryRecord()
82 return findZipEndOfCentralDirectoryRecord(zip, UINT16_MAX_VALUE); in findZipEndOfCentralDirectoryRecord()
98 RandomAccessFile zip, int maxCommentSize) throws IOException { in findZipEndOfCentralDirectoryRecord() argument
113 long fileSize = zip.length(); in findZipEndOfCentralDirectoryRecord()
124 zip.seek(bufOffsetInFile); in findZipEndOfCentralDirectoryRecord()
125 zip.readFully(buf.array(), buf.arrayOffset(), buf.capacity()); in findZipEndOfCentralDirectoryRecord()
189 RandomAccessFile zip, long zipEndOfCentralDirectoryPosition) throws IOException { in isZip64EndOfCentralDirectoryLocatorPresent() argument
198 zip.seek(locatorPosition); in isZip64EndOfCentralDirectoryLocatorPresent()
[all …]
/aosp12/build/make/core/
H A Dsoong_droiddoc_prebuilt.mk16 $(eval $(call copy-one-file,$(LOCAL_DROIDDOC_DOC_ZIP),$(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip))
17 $(call dist-for-goals,docs,$(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip)
19 .PHONY: $(LOCAL_MODULE) $(LOCAL_MODULE)-docs.zip
20 $(LOCAL_MODULE) $(LOCAL_MODULE)-docs.zip : $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip
21 ALL_DOCS += $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip
25 …DOC_ANNOTATIONS_ZIP),$(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/$(LOCAL_MODULE)_annotations.zip))
33 …_DROIDDOC_METADATA_ZIP),$(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/$(LOCAL_MODULE)-metadata.zip))
H A Dpackage_internal.mk195 my_bundle_module := $(intermediates)/base.zip
532 cp -f $(PRIVATE_RES_PACKAGE) $@.parts/apk.zip
543 $(MERGE_ZIPS) $@ $@.parts/*.zip
588 $(call create-jni-shared-libs-package,$@.parts/jni.zip)
594 $(ZIP2ZIP) -i $@.parts/res.zip -o $@.parts/res.zip.tmp "**/*:root/" && \
595 mv -f $@.parts/res.zip.tmp $@.parts/res.zip)
598 $(ZIP2ZIP) -i $@.parts/dex.zip -o $@.parts/dex.zip.tmp "classes*.dex:dex/"
599 mv -f $@.parts/dex.zip.tmp $@.parts/dex.zip
601 $(ZIP2ZIP) -i $@.parts/res.zip -o $@.parts/res.zip.tmp "**/*:root/"
602 mv -f $@.parts/res.zip.tmp $@.parts/res.zip
[all …]
/aosp12/build/make/tools/zipalign/
H A DREADME.txt1 zipalign -- zip archive alignment tool
3 usage: zipalign [-f] [-v] <align> infile.zip outfile.zip
4 zipalign -c [-v] <align> infile.zip
7 -f : overwrite existing outfile.zip
11 infile.zip is an existing Zip archive
12 outfile.zip will be created
22 the "extra" field in the zip Local File Header sections. Existing data
35 You can use the "-c" flag to test whether a zip archive is properly aligned.
38 uncompressed in the zip archive, to a 4096-byte page boundary. This
39 facilitates directly loading shared libraries from inside a zip archive.
/aosp12/system/extras/memory_replay/traces/
H A DTRACES6 camera.zip
9 gmail.zip
12 maps.zip
16 surfaceflinger.zip
20 system_server.zip
24 systemui.zip
28 youtube.zip
34 angry_birds2.zip
45 candy_crush_saga.zip
56 photos.zip
[all …]
/aosp12/frameworks/base/libs/androidfw/
H A DAssetManager.cpp868 if (ap.zip != NULL) { in getZipFileLocked()
880 return ap.zip != NULL ? ap.zip->getZip() : NULL; in getZipFileLocked()
1458 if (zip != NULL && zip->mModWhen == modWhen) { in get()
1459 return zip; in get()
1466 return zip; in get()
1594 if (zip == NULL) { in getSharedZip()
1598 return zip; in getSharedZip()
1605 if (zip == NULL) { in getZipResourceTableAsset()
1625 if (zip == NULL) { in getZipResourceTable()
1673 if (zip == NULL) { in getOverlay()
[all …]
/aosp12/build/make/tools/releasetools/
H A Drangelib.py41 self.monotonic = all(x < y for x, y in zip(self.data, self.data[1:]))
170 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
171 zip(other.data, itertools.cycle((+1, -1)))):
188 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
189 zip(other.data, itertools.cycle((+1, -1)))):
207 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
208 zip(other.data, itertools.cycle((-1, +1)))):
227 for _, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
228 zip(other.data, itertools.cycle((+1, -1)))):
268 for p, d in heapq.merge(zip(self.data, itertools.cycle((-5, +5))),
[all …]
/aosp12/system/extras/profcollectd/libprofcollectd/
H A Dreport.rs29 use zip::write::FileOptions;
30 use zip::CompressionMethod::Deflated;
31 use zip::ZipWriter;
55 let mut zip = ZipWriter::new(report_file); in pack_report() localVariable
66 zip.start_file(filename, options)?; in pack_report()
70 zip.write_all(&*buffer)?; in pack_report()
73 zip.finish()?; in pack_report()
/aosp12/build/make/tools/ziptime/
H A DREADME.txt1 ziptime -- zip timestamp tool
3 usage: ziptime file.zip
5 file.zip is an existing Zip archive to rewrite
8 This tools replaces the timestamps in the zip headers with a static time
10 -X option to zip so that it doesn't create the 'universal time' extra.
/aosp12/bootable/recovery/install/
H A Dwipe_device.cpp43 ZipArchiveHandle zip = wipe_package->GetZipArchiveHandle(); in GetWipePartitionList() local
44 if (!zip) { in GetWipePartitionList()
53 if (FindEntry(zip, RECOVERY_WIPE_ENTRY_NAME, &entry) == 0) { in GetWipePartitionList()
62 zip, &entry, reinterpret_cast<uint8_t*>(partition_list_content.data()), length); in GetWipePartitionList()
160 ZipArchiveHandle zip = wipe_package->GetZipArchiveHandle(); in CheckWipePackage() local
161 if (!zip) { in CheckWipePackage()
167 if (!ReadMetadataFromPackage(zip, &metadata)) { in CheckWipePackage()
/aosp12/frameworks/base/cmds/idmap2/libidmap2/
H A DResourceContainer.cpp74 auto manifest = zip->Open(entry_path); in OpenXmlParser()
88 Result<XmlParser> OpenXmlParser(ResourceId id, const ZipAssetsProvider* zip, in OpenXmlParser() argument
111 return OpenXmlParser(file->c_str(), zip); in OpenXmlParser()
114 Result<OverlayManifestInfo> ExtractOverlayManifestInfo(const ZipAssetsProvider* zip, in ExtractOverlayManifestInfo() argument
116 Result<XmlParser> xml = OpenXmlParser("AndroidManifest.xml", zip); in ExtractOverlayManifestInfo()
180 auto parser = OpenXmlParser(id, zip, overlay_am); in CreateResourceMapping()
269 static Result<ResState> Initialize(std::unique_ptr<ZipAssetsProvider> zip) { in Initialize()
271 state.zip_assets = zip.get(); in Initialize()
272 if ((state.apk_assets = ApkAssets::Load(std::move(zip))) == nullptr) { in Initialize()
355 if (auto zip = std::get_if<std::unique_ptr<ZipAssetsProvider>>(&state_); zip != nullptr) { in GetZipAssets() local
[all …]
/aosp12/build/soong/cmd/merge_zips/
H A Dmerge_zips.go43 Entries() []*zip.File
53 WriteToZip(dest string, zw *zip.Writer) error
104 fh *zip.FileHeader
142 outputWriter *zip.Writer
209 fh := &zip.FileHeader{
211 Method: zip.Store,
223 fh := &zip.FileHeader{
225 Method: zip.Store,
640 reader *zip.ReadCloser
656 func (fiz *FileInputZip) Entries() []*zip.File {
[all …]
/aosp12/art/tools/veridex/
H A Dappcompat.sh26 -e ${SCRIPT_DIR}/org.apache.http.legacy-stubs.zip && \
27 -e ${SCRIPT_DIR}/system-stubs.zip ]]; then
29 --core-stubs=${SCRIPT_DIR}/system-stubs.zip:${SCRIPT_DIR}/org.apache.http.legacy-stubs.zip \
/aosp12/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/
H A DPayloadSpecs.java31 import java.util.zip.ZipEntry;
32 import java.util.zip.ZipFile;
54 try (ZipFile zip = new ZipFile(packageFile)) { in forNonStreaming() argument
55 Enumeration<? extends ZipEntry> entries = zip.entries(); in forNonStreaming()
78 InputStream inputStream = zip.getInputStream(entry); in forNonStreaming()

12345678910>>...19