Home
last modified time | relevance | path

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

123

/packages/modules/Virtualization/zipfuse/src/
Dinode.rs97 fn new_file(zip_index: ZipIndex, zip_file: &zip::read::ZipFile) -> InodeData { in new_file()
166 archive: &mut zip::ZipArchive<R>, in from_zip()
230 use zip::write::FileOptions;
233 fn setup(add: fn(&mut zip::ZipWriter<&mut std::io::Cursor<Vec<u8>>>)) -> InodeTable { in setup()
235 let mut writer = zip::ZipWriter::new(&mut buf); in setup()
240 let zip = zip::ZipArchive::new(buf); in setup() localVariable
241 assert!(zip.is_ok()); in setup()
242 let it = InodeTable::from_zip(&mut zip.unwrap()); in setup()
282 let it = setup(|zip| { in one_file()
283 zip.start_file("foo", FileOptions::default()).unwrap(); in one_file()
[all …]
Dmain.rs76 zip_archive: Mutex<zip::ZipArchive<File>>,
114 let mut z = zip::ZipArchive::new(f)?; in new()
384 use zip::write::FileOptions;
427 fn run_test(add: fn(&mut zip::ZipWriter<File>), check: fn(&std::path::Path)) { in run_test()
431 let zip = File::create(&zip_path); in run_test() localVariable
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()
[all …]
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DWriteableArchiveTest.java36 import java.util.zip.ZipEntry;
37 import java.util.zip.ZipFile;
183 ZipFile zip = null; in testAddDirectory() local
185 zip = new ZipFile(mFile); in testAddDirectory()
186 final Enumeration<? extends ZipEntry> entries = zip.entries(); in testAddDirectory()
192 if (zip != null) { in testAddDirectory()
193 zip.close(); in testAddDirectory()
250 ZipFile zip = null; in testAddFile() local
253 zip = new ZipFile(mFile); in testAddFile()
257 final Enumeration<? extends ZipEntry> entries = zip.entries(); in testAddFile()
[all …]
/packages/modules/adb/client/
Dincremental_utils.cpp285 ZipArchiveHandle zip; in openZipArchiveFd() local
286 if (OpenArchiveFd(osfd, "apk_fd", &zip, transferFdOwnership) != 0) { in openZipArchiveFd()
294 return zip; in openZipArchiveFd()
310 ZipArchiveHandle zip; in openZipArchive() local
311 if (OpenArchiveFromMemory(mapping->data(), mapping->size(), "apk_mapping", &zip) != 0) { in openZipArchive()
315 return {zip, std::move(mapping)}; in openZipArchive()
321 auto [zip, _] = openZipArchive(fd, fileSize); in InstallationPriorityBlocks()
322 if (!zip) { in InstallationPriorityBlocks()
335 if (StartIteration(zip, &cookie, std::move(matcher)) != 0) { in InstallationPriorityBlocks()
368 CloseArchive(zip); in InstallationPriorityBlocks()
/packages/modules/GeoTZ/tzbb_data/
DMETADATA18 …value: "input-data.zip downloaded from https://github.com/evansiroky/timezone-boundary-builder/rel…
22 …mezones.geojson.zip downloaded from https://github.com/evansiroky/timezone-boundary-builder/releas…
/packages/modules/Gki/
Dota_from_raw_image.py70 with ZipFile(tf, "w") as zip:
76 zip.write(img_path, arcname=os.path.join("IMAGES", name + ".img"))
84 zip.writestr("META/ab_partitions.txt", "\n".join(names) + "\n")
85 zip.writestr("META/dynamic_partitions_info.txt", """
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DZipUtils.java27 import java.util.zip.ZipEntry;
28 import java.util.zip.ZipFile;
29 import java.util.zip.ZipOutputStream;
DBugReportInfoActivity.java54 import java.util.zip.ZipEntry;
55 import java.util.zip.ZipInputStream;
56 import java.util.zip.ZipOutputStream;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DDataExporter.java31 import java.util.zip.Deflater;
32 import java.util.zip.ZipEntry;
33 import java.util.zip.ZipOutputStream;
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
DAndroid.bp100 // This genrule generates a zip file of 5000+ test cases from the NNAPI test
102 // currently not able to accept a zip file as a fuzzer seed corpus.
112 out: ["libneuralnetworks_fuzzer_seed_corpus.zip"],
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/
Dif_constant.mod.py23 True: [x + y for (x, y) in zip(x_data, y_data)],
24 False: [x - y for (x, y) in zip(x_data, y_data)],
Dsub_quant8_signed.mod.py36 input0_values, input1_values = zip(*inputs)
98 output_values = [max(-128, (a - b) - 128) for a, b in zip(input0_values, input1_values)]
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCompress.java22 import java.util.zip.GZIPInputStream;
23 import java.util.zip.GZIPOutputStream;
/packages/modules/GeoTZ/
Ddownload-tzbb-files.sh48 input-data.zip \
49 timezones.geojson.zip \
Drun-data-pipeline.sh136 ZIPPED_BOUNDARY_FILE=${TZBB_DATA_DIR}/timezones.geojson.zip
141 unzip -o ${TZBB_DATA_DIR}/timezones.geojson.zip -d ${WORKING_DIR_ROOT}/dist/
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java30 import java.util.zip.CRC32;
31 import java.util.zip.GZIPInputStream;
32 import java.util.zip.GZIPOutputStream;
/packages/modules/DnsResolver/tests/
DAndroid.bp62 // convert .pbtxt to .pb files; zip them as a single pb.zip.
67 out: ["testdata/pb.zip"],
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DFailureWatcher.java21 import java.util.zip.ZipEntry;
22 import java.util.zip.ZipOutputStream;
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DUpdateParser.java32 import java.util.zip.ZipEntry;
33 import java.util.zip.ZipFile;
/packages/apps/DocumentsUI/tests/
DAndroid.bp59 "-0 .zip",
83 "-0 .zip",
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchiveEntryInputStream.java26 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
27 import org.apache.commons.compress.archivers.zip.ZipFile;
DWriteableArchive.java44 import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
45 import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
/packages/services/Car/car_product/build/
Dcar.mk146 …ckages/services/Car/car_product/bootanimations/bootanimation-832.zip:system/media/bootanimation.zip
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDebugActivity.java38 import java.util.zip.ZipEntry;
39 import java.util.zip.ZipOutputStream;
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/
Dlayer_norm_lstm.mod.py174 tests = zip(
343 tests = zip(

123