Home
last modified time | relevance | path

Searched full:zip (Results 1 – 25 of 169) sorted by relevance

1234567

/build/soong/zip/
Dzip_test.go15 package zip package
26 "android/soong/third_party/zip"
59 func fh(name string, contents []byte, method uint16) zip.FileHeader {
60 return zip.FileHeader{
69 func fhManifest(contents []byte) zip.FileHeader {
70 return zip.FileHeader{
72 Method: zip.Store,
79 func fhLink(name string, to string) zip.FileHeader {
80 return zip.FileHeader{
82 Method: zip.Store,
[all …]
DAndroid.bp22 name: "soong-zip",
23 pkgPath: "android/soong/zip",
25 "android-archive-zip",
31 "zip.go",
Dzip.go15 package zip package
38 "android/soong/third_party/zip"
49 // Size of the ZIP compression window (32KB)
227 fh *zip.FileHeader
260 // Have Glob follow symlinks if they are not being stored as symlinks in the zip file.
356 // Zip creates an output zip archive from given sources.
357 func Zip(args ZipArgs) error { func
420 zipMethod := zip.Deflate
422 zipMethod = zip.Store
449 // the the layout of your zip file. 1000 was chosen mostly at random as
[all …]
/build/make/tools/zipalign/
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.
DAndroid.bp4 // Zip alignment tool
73 "tests/data/diffOrders.zip",
74 "tests/data/holes.zip",
75 "tests/data/unaligned.zip",
DZipAlignMain.cpp18 * Zip alignment tool
33 fprintf(stderr, "Zip alignment utility\n"); in usage()
36 "Usage: zipalign [-f] [-p] [-v] [-z] <align> infile.zip outfile.zip\n" in usage()
37 " zipalign -c [-p] [-v] <align> infile.zip\n\n" ); in usage()
41 fprintf(stderr, " -f: overwrite existing outfile.zip\n"); in usage()
/build/make/core/tasks/
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)
30 $(device-tests-zip) : $(COMPATIBILITY.device-tests.FILES) $(my_host_shared_lib_for_device_tests) $(…
43 $(hide) $(SOONG_ZIP) -d -o $(device-tests-configs-zip) \
[all …]
/build/make/tools/ziptime/
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.
DZipTime.cpp18 * Zip tool to remove dynamic timestamps
29 fprintf(stderr, "Zip timestamp utility\n"); in usage()
31 fprintf(stderr, "Usage: ziptime file.zip\n"); in usage()
41 ZipFile zip; in main() local
42 if (zip.rewrite(argv[1]) != 0) { in main()
43 fprintf(stderr, "Unable to rewrite '%s' as zip archive\n", argv[1]); in main()
/build/make/core/
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))
Dpackage_internal.mk195 my_bundle_module := $(intermediates)/base.zip
532 cp -f $(PRIVATE_RES_PACKAGE) $@.parts/apk.zip
534 $(call create-jni-shared-libs-package,$@.parts/jni.zip,$(PRIVATE_USE_EMBEDDED_NATIVE_LIBS))
538 $(if $(PRIVATE_EXTRA_JAR_ARGS),$(call create-java-resources-jar,$@.parts/res.zip))
540 $(call create-dex-jar,$@.parts/dex.zip,$(PRIVATE_DEX_FILE))
541 $(call extract-resources-jar,$@.parts/res.zip,$(PRIVATE_SOURCE_ARCHIVE))
543 $(MERGE_ZIPS) $@ $@.parts/*.zip
586 …$(ZIP2ZIP) -i $(PRIVATE_RES_PACKAGE) -o $@.parts/apk.zip AndroidManifest.xml:manifest/AndroidManif…
588 $(call create-jni-shared-libs-package,$@.parts/jni.zip)
593 $(call create-java-resources-jar,$@.parts/res.zip) && \
[all …]
/build/make/tools/zipalign/tests/src/
Dalign_test.cpp19 const std::string src = GetTestPath("unaligned.zip"); in TEST()
20 const std::string dst = GetTestPath("unaligned_out.zip"); in TEST()
29 // Align a zip featuring a hole at the beginning. The
33 const std::string src = GetTestPath("holes.zip"); in TEST()
34 const std::string dst = GetTestPath("holes_out.zip"); in TEST()
43 // Align a zip where LFH order and CD entries differ.
45 const std::string src = GetTestPath("diffOrders.zip"); in TEST()
46 const std::string dst = GetTestPath("diffOrders_out.zip"); in TEST()
/build/soong/cmd/diff_target_files/
Dzip_artifact.go18 "archive/zip"
28 // ZipArtifact represents a zip file that may be local or remote.
30 // Files returns the list of files contained in the zip file.
33 // Close closes the zip file artifact.
37 // localZipArtifact is a handle to a local zip file artifact.
39 zr *zip.ReadCloser
43 // NewLocalZipArtifact returns a ZipArtifact for a local zip file..
45 zr, err := zip.OpenReader(name)
61 // Files returns the list of files contained in the local zip file artifact.
66 // Close closes the buffered reader of the local zip file artifact.
[all …]
/build/soong/third_party/zip/
Dexample_test.go8 "archive/zip"
21 // Create a new zip archive.
22 w := zip.NewWriter(buf)
51 // Open a zip archive for reading.
52 r, err := zip.OpenReader("testdata/readme.zip")
84 // Create a new zip archive.
85 w := zip.NewWriter(buf)
88 w.RegisterCompressor(zip.Deflate, func(out io.Writer) (io.WriteCloser, error) {
Dreader_test.go5 package zip package
34 // Information describing expected zip file content.
57 // time from what the archive/zip package provides, but there appears
62 Name: "test.zip",
80 Name: "test-trailing-junk.zip",
98 Name: "r.zip",
102 Name: "r/r.zip",
110 Name: "symlink.zip",
120 Name: "readme.zip",
127 Name: "dd.zip",
[all …]
Dreader.go5 package zip package
19 ErrFormat = errors.New("zip: not a valid zip file")
20 ErrAlgorithm = errors.New("zip: unsupported compression algorithm")
21 ErrChecksum = errors.New("zip: checksum error")
38 zip *Reader member
48 // OpenReader will open the Zip file specified by name and return a ReadCloser.
84 …return fmt.Errorf("archive/zip: TOC declares impossible %d files in %d byte zip", end.directoryRec…
95 // The count of files inside a zip is truncated to fit in a uint16.
100 f := &File{zip: z, zipr: r, zipsize: size}
136 // Close closes the Zip file, rendering it unusable for I/O.
[all …]
/build/soong/zip/cmd/
Dmain.go15 // soong_zip is a utility used during the build to create a zip archive by pulling the entries from
35 "android/soong/zip"
120 fileArgsBuilder = zip.NewFileArgsBuilder()
153 out := flags.String("o", "", "file to write zip file to")
155 directories := flags.Bool("d", false, "include directories in zip")
157 emulateJar := flags.Bool("jar", false, "modify the resultant .zip to emulate the output of 'jar'")
158 …writeIfChanged := flags.Bool("write_if_changed", false, "only update resultant .zip if it has chan…
160 symlinks := flags.Bool("symlinks", true, "store symbolic links in zip instead of following them")
167 flags.Var(&rootPrefix{}, "P", "path prefix within the zip at which to place files")
168 flags.Var(&listFiles{}, "l", "file containing list of files to zip")
[all …]
/build/make/tools/releasetools/
Dimg_from_target_files.py23 input_target_files: Path to the input target_files zip.
31 Include an additional entry into the generated zip file. The filespec is
73 input_file: Path to the input target_files zip file.
90 """Copies ZIP entries between input and output files.
93 input_file: Path to the input target_files zip.
111 input_file: Path to the input target_files zip file.
149 input_file: Path to the input target_files zip file.
167 # RECOVERY/ and ROOT/. So unzip everything from the target_files.zip.
181 """Creates an image archive from the input target_files zip.
184 input_file: Path to the input target_files zip.
[all …]
Dimg_from_target_files23 input_target_files: Path to the input target_files zip.
31 Include an additional entry into the generated zip file. The filespec is
73 input_file: Path to the input target_files zip file.
90 """Copies ZIP entries between input and output files.
93 input_file: Path to the input target_files zip.
111 input_file: Path to the input target_files zip file.
149 input_file: Path to the input target_files zip file.
167 # RECOVERY/ and ROOT/. So unzip everything from the target_files.zip.
181 """Creates an image archive from the input target_files zip.
184 input_file: Path to the input target_files zip.
[all …]
Dota_utils.py49 that contains the offsets and sizes for the ZIP entries. An example
55 system update client. System update client can then fetch individual ZIP
60 input_file: The input ZIP filename that doesn't contain the package METADATA
62 output_file: The final output ZIP filename.
83 prelim_signing = MakeTempFile(suffix='.zip')
94 # SignOutput(), which in turn calls signapk.jar, will possibly reorder the ZIP
97 # the ZIP entry offsets, write back the final metadata and do the final
106 # preliminary signing works, based on the already ordered ZIP entries, to
124 # Reopen the final signed zip to double check the streaming metadata.
137 """Writes the metadata to the zip archive or a file.
[all …]
/build/soong/sdk/
Dtesting.go128 // e.g. find the src/dest pairs from each cp command, the various zip files
163 // the content of the repackaged zip is copied.
168 // This could be an intermediate zip file and not the actual output zip.
178 t.Errorf("Expected intermediate zip %s to be an input to merge zips but found %s instead",
182 // Override output zip (which was actually the intermediate zip file) with the actual
183 // output zip.
186 // Save the zips to be merged into the intermediate zip.
235 // Make sure that the generated zip file is in the correct place.
245 expectedZipPath := fmt.Sprintf(".intermediates/%s%s/%s/%s%s.zip", dir, name, variant, name, suffix)
246 android.AssertStringEquals(t, "Snapshot zip file in wrong place", expectedZipPath, actual)
[all …]
/build/soong/cmd/zipsync/
Dzipsync.go18 "archive/zip"
33 …zipPrefix = flag.String("zip-prefix", "", "optional prefix within the zip file to extract, stripp…
68 …fmt.Fprintln(os.Stderr, "usage: zipsync -d <output dir> [-l <output file>] [-f <pattern>] [zip]...…
81 // For now, just wipe the output directory and replace its contents with the zip files
83 // to date with the zip files.
96 reader, err := zip.OpenReader(input)
/build/soong/cmd/zip2zip/
Dzip2zip.go31 "android/soong/third_party/zip"
35 input = flag.String("i", "", "zip file to read from")
37 …lag.Bool("s", false, "sort matches from each glob (defaults to the order from the input zip file)")
80 reader, err := zip.OpenReader(*input)
92 writer := zip.NewWriter(output)
108 *zip.File
113 func zip2zip(reader *zip.Reader, writer *zip.Writer, sortOutput, sortJava, setTime bool,
180 seen := make(map[string]*zip.File)
195 // Check for duplicate output names, ignoring ones that come from the same input zip entry.
220 if match.uncompress && match.File.FileHeader.Method != zip.Store {
[all …]
/build/soong/scripts/
Ddiff_build_graphs.sh109 zip1="$OUT_DIR_OLD/${product}.zip"
112 zip2="$OUT_DIR_NEW/${product}.zip"
120 …er.txt -x '\.*' -x '*.log' -x build_fingerprint.txt -x build.ninja.d -x '*.zip' > $diffFile || true
160 …IR_NEW -mindepth 1 -maxdepth 1 -name "*.zip" | sed "s|^$OUT_DIR_OLD/||" | sed "s|^$OUT_DIR_NEW/||"…
166 echo "Any differing outputs can be seen at $OUT_DIR_OLD/*.zip and $OUT_DIR_NEW/*.zip"
/build/soong/cmd/merge_zips/
Dmerge_zips_test.go26 "android/soong/third_party/zip"
57 reader *zip.Reader
76 func (tiz *testInputZip) Entries() []*zip.File {
189 // root of the zip.
251 writer := zip.NewWriter(out)
272 t.Error("incorrect zip output")
282 zw := zip.NewWriter(b)
285 fh := zip.FileHeader{
309 func testZipEntriesToZipReader(entries []testZipEntry) *zip.Reader {
313 zr, err := zip.NewReader(r, int64(len(b)))
[all …]

1234567