Home
last modified time | relevance | path

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

123

/build/soong/zip/
Dzip_test.go15 package zip package
53 func fh(name string, contents []byte, method uint16) zip.FileHeader {
54 return zip.FileHeader{
63 func fhManifest(contents []byte) zip.FileHeader {
64 return zip.FileHeader{
66 Method: zip.Store,
73 func fhLink(name string, to string) zip.FileHeader {
74 return zip.FileHeader{
76 Method: zip.Store,
83 func fhDir(name string) zip.FileHeader {
[all …]
DAndroid.bp18 name: "soong-zip",
19 pkgPath: "android/soong/zip",
21 "android-archive-zip",
26 "zip.go",
Dzip.go15 package zip package
199 fh *zip.FileHeader
432 zipMethod := zip.Deflate
434 zipMethod = zip.Store
479 pathMappings = append(pathMappings, pathMapping{jar.ManifestFile, manifest, zip.Deflate})
501 zipw := zip.NewWriter(f)
536 if op.fh.Method == zip.Deflate {
643 header := &zip.FileHeader{
692 func (z *ZipWriter) writeFileContents(header *zip.FileHeader, r pathtools.ReaderAtSeekerCloser) (er…
714 if header.Method == zip.Deflate && fileSize >= minParallelFileSize {
[all …]
/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-zip) : .KATI_IMPLICIT_OUTPUTS := $(device-tests-list-zip)
23 $(device-tests-zip) : PRIVATE_device_tests_list := $(PRODUCT_OUT)/device-tests_list
24 $(device-tests-zip) : PRIVATE_HOST_SHARED_LIBS := $(my_host_shared_lib_for_device_tests)
25 $(device-tests-zip) : $(COMPATIBILITY.device-tests.FILES) $(my_host_shared_lib_for_device_tests) $(…
36 $(hide) $(SOONG_ZIP) -d -o $(device-tests-list-zip) -C $(dir $@) -f $(PRIVATE_device_tests_list)
39 device-tests: $(device-tests-zip)
40 $(call dist-for-goals, device-tests, $(device-tests-zip) $(device-tests-list-zip))
Dgeneral-tests.mk22 general_tests_zip := $(PRODUCT_OUT)/general-tests.zip
24 general_tests_list_zip := $(PRODUCT_OUT)/general-tests_list.zip
/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 …l $(call copy-one-file,$(LOCAL_DROIDDOC_JDIFF_DOC_ZIP),$(OUT_DOCS)/$(LOCAL_MODULE)-jdiff-docs.zip))
34 $(call dist-for-goals,docs,$(OUT_DOCS)/$(LOCAL_MODULE)-jdiff-docs.zip)
36 ALL_DOCS += $(OUT_DOCS)/$(LOCAL_MODULE)-jdiff-docs.zip
39 $(LOCAL_MODULE) $(LOCAL_MODULE)-jdiff : $(OUT_DOCS)/$(LOCAL_MODULE)-jdiff-docs.zip
Ddpi_specific_apk.mk51 $(call create-assets-package,$@.parts/apk.zip)
53 $(call create-jni-shared-libs-package,$@.parts/jni.zip)
57 $(if $(PRIVATE_EXTRA_JAR_ARGS),$(call create-java-resources-jar,$@.parts/res.zip))
59 $(call create-dex-jar,$@.parts/dex.zip,$(PRIVATE_DEX_FILE))
60 $(call extract-resources-jar,$@.parts/res.zip,$(PRIVATE_SOURCE_ARCHIVE))
62 $(MERGE_ZIPS) $@ $@.parts/*.zip
Dpackage_internal.mk214 my_bundle_module := $(intermediates)/base.zip
626 cp -f $(PRIVATE_RES_PACKAGE) $@.parts/apk.zip
628 $(call create-assets-package,$@.parts/apk.zip)
631 $(call create-jni-shared-libs-package,$@.parts/jni.zip,$(PRIVATE_USE_EMBEDDED_NATIVE_LIBS))
635 $(if $(PRIVATE_EXTRA_JAR_ARGS),$(call create-java-resources-jar,$@.parts/res.zip))
637 $(call create-dex-jar,$@.parts/dex.zip,$(PRIVATE_DEX_FILE))
638 $(call extract-resources-jar,$@.parts/res.zip,$(PRIVATE_SOURCE_ARCHIVE))
640 $(MERGE_ZIPS) $@ $@.parts/*.zip
694 …$(ZIP2ZIP) -i $(PRIVATE_RES_PACKAGE) -o $@.parts/apk.zip AndroidManifest.xml:manifest/AndroidManif…
696 $(call create-jni-shared-libs-package,$@.parts/jni.zip)
[all …]
Djava_library.mk74 $(call create-dex-jar,$@.parts/dex.zip,$(PRIVATE_DEX_FILE))
75 $(call extract-resources-jar,$@.parts/res.zip,$(PRIVATE_SOURCE_ARCHIVE))
76 $(MERGE_ZIPS) -j $@.tmp $@.parts/dex.zip $@.parts/res.zip
Dhost_dalvik_java_library.mk179 $(call create-dex-jar,$@.parts/dex.zip,$(PRIVATE_DEX_FILE))
180 $(call extract-resources-jar,$@.parts/res.zip,$(PRIVATE_SOURCE_ARCHIVE))
181 $(MERGE_ZIPS) -j $@ $@.parts/dex.zip $@.parts/res.zip
/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.cpp41 ZipFile zip; in main() local
42 if (zip.rewrite(argv[1]) != 0) { in main()
/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.
/build/soong/jar/
Djar.go72 func MetaDirFileHeader() *zip.FileHeader {
73 dirHeader := &zip.FileHeader{
84 func ManifestFileContents(contents []byte) (*zip.FileHeader, []byte, error) {
90 fh := &zip.FileHeader{
92 Method: zip.Store,
/build/make/tools/releasetools/
Drangelib.py41 self.monotonic = all(x < y for x, y in zip(self.data, self.data[1:]))
167 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
168 zip(other.data, itertools.cycle((+1, -1)))):
185 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
186 zip(other.data, itertools.cycle((+1, -1)))):
204 for p, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
205 zip(other.data, itertools.cycle((-1, +1)))):
224 for _, d in heapq.merge(zip(self.data, itertools.cycle((+1, -1))),
225 zip(other.data, itertools.cycle((+1, -1)))):
265 for p, d in heapq.merge(zip(self.data, itertools.cycle((-5, +5))),
[all …]
/build/soong/third_party/zip/
Dexample_test.go22 w := zip.NewWriter(buf)
52 r, err := zip.OpenReader("testdata/readme.zip")
85 w := zip.NewWriter(buf)
88 w.RegisterCompressor(zip.Deflate, func(out io.Writer) (io.WriteCloser, error) {
DAndroid.bp16 name: "android-archive-zip",
17 pkgPath: "android/soong/third_party/zip",
/build/soong/cmd/merge_zips/
Dmerge_zips.go116 writer := zip.NewWriter(output)
128 reader, err := zip.OpenReader(input)
156 reader *zip.Reader
172 content *zip.File
191 func (ze zipEntry) WriteToZip(dest string, zw *zip.Writer) error {
197 fh *zip.FileHeader
217 func (be bufferEntry) WriteToZip(dest string, zw *zip.Writer) error {
238 WriteToZip(dest string, zw *zip.Writer) error
247 func mergeZips(readers []namedZipReader, writer *zip.Writer, manifest, pyMain string,
292 fh := &zip.FileHeader{
[all …]
Dmerge_zips_test.go222 writer := zip.NewWriter(out)
253 zw := zip.NewWriter(b)
256 fh := zip.FileHeader{
280 func testZipEntriesToZipReader(entries []testZipEntry) *zip.Reader {
284 zr, err := zip.NewReader(r, int64(len(b)))
294 zr, err := zip.NewReader(r, int64(len(buf)))
/build/soong/cmd/zip2zip/
Dzip2zip.go80 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)
220 if match.uncompress && match.File.FileHeader.Method != zip.Store {
223 fh.Method = zip.Store
Dzip2zip_test.go424 inputWriter := zip.NewWriter(inputBuf)
434 inputReader, err := zip.NewReader(bytes.NewReader(inputBytes), int64(len(inputBytes)))
439 outputWriter := zip.NewWriter(outputBuf)
448 outputReader, err := zip.NewReader(bytes.NewReader(outputBytes), int64(len(outputBytes)))
458 if file.Method == zip.Store {
/build/soong/zip/cmd/
Dmain.go104 fileArgsBuilder = zip.NewFileArgsBuilder()
123 respArgs := zip.ReadRespFile(bytes)
192 err := zip.Zip(zip.ZipArgs{
/build/soong/cmd/diff_target_files/
Dzip_artifact.go39 zr *zip.ReadCloser
45 zr, err := zip.OpenReader(name)
74 *zip.File
Dwhitelist_test.go26 w := zip.NewWriter(buf)
38 r, err := zip.NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len()))
/build/soong/cmd/multiproduct_kati/
Dmain.go324 args := zip.ZipArgs{
325 FileArgs: []zip.FileArg{
332 if err := zip.Zip(args); err != nil {
406 args := zip.ZipArgs{
407 FileArgs: []zip.FileArg{
417 if err := zip.Zip(args); err != nil {

123