HomeSort by relevance Sort by last modified time
    Searched defs:zipFile (Results 1 - 25 of 995) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/luni/src/test/java/libcore/java/util/zip/
ZipFileTest.java 31 import java.util.zip.ZipFile;
47 ZipFile zipFile = new ZipFile(f);
49 fd.setInt$(zipFile.getFileDescriptor());
53 Enumeration<? extends ZipEntry> entries = zipFile.entries();
62 InputStream is1 = zipFile.getInputStream(entry1);
68 assertNotNull(zipFile.getEntry(entry2.getName()));
71 zipFile.close();
84 try (ZipFile zipFile = new ZipFile(nonExistentFile, ZipFile.OPEN_READ))
    [all...]
ZipEntryTest.java 32 import java.util.zip.ZipFile;
88 ZipFile zipFile = new ZipFile(f);
90 assertNotNull(filename, zipFile.getEntry(filename));
135 ZipFile zipFile = new ZipFile(f);
136 assertNotNull(zipFile.getEntry(maxLengthName));
137 zipFile.close()
    [all...]
OldAndroidZipFileTest.java 26 import java.util.zip.ZipFile;
32 * Basic tests for ZipFile.
101 ZipFile zipFile = new ZipFile(fileName);
105 // System.out.println("Contents of " + zipFile + ":");
106 for (fileList = zipFile.entries(); fileList.hasMoreElements();) {
113 zipFile.close();
124 ZipFile zipFile;
    [all...]
AbstractZipFileTest.java 34 import java.util.zip.ZipFile;
58 ZipFile zipFile = new ZipFile(f);
59 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) {
63 InputStream is = zipFile.getInputStream(zipEntry);
67 zipFile.close();
126 ZipFile bad = new ZipFile(badZip);
158 File zipFile = createTemporaryZipFile()
    [all...]
  /external/desugar/java/com/google/devtools/build/android/desugar/
ZipInputFileProvider.java 23 import java.util.zip.ZipFile;
30 private final ZipFile zipFile;
34 this.zipFile = new ZipFile(root.toFile());
39 zipFile.close();
49 ZipEntry zipEntry = zipFile.getEntry(filename);
56 return zipFile.getInputStream(zipFile.getEntry(filename));
62 Iterators.forEnumeration(zipFile.entries()), Functions.toStringFunction())
    [all...]
  /art/test/656-annotation-lookup-generic-jni/src-art/
Main.java 23 import java.util.zip.ZipFile;
31 ZipFile zipFile = new ZipFile(jarFilename);
32 ZipEntry zipEntry = zipFile.getEntry("classes.dex");
33 InputStream inputStream = zipFile.getInputStream(zipEntry);
54 zipFile.close();
  /libcore/benchmarks/src/benchmarks/
BufferedZipFileBenchmark.java 27 import java.util.zip.ZipFile;
58 ZipFile zipFile = new ZipFile(file);
59 ZipEntry entry = zipFile.getEntry("entry.data");
60 InputStream in = zipFile.getInputStream(entry);
65 zipFile.close();
71 ZipFile zipFile = new ZipFile(file)
    [all...]
ZipFileBenchmark.java 27 import java.util.zip.ZipFile;
42 ZipFile zipFile = new ZipFile(file);
43 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) {
46 zipFile.close();
51 ZipFile zf = new ZipFile(file);
  /tools/tradefederation/core/src/com/android/tradefed/util/
ZipUtil2.java 21 import org.apache.commons.compress.archivers.zip.ZipFile;
36 * @param entry the entry inside zipfile (potentially contains mode info)
53 * @param zipFile the {@link ZipFile} to extract
57 public static void extractZip(ZipFile zipFile, File destDir) throws IOException {
58 Enumeration<? extends ZipArchiveEntry> entries = zipFile.getEntries();
68 FileUtil.writeToFile(zipFile.getInputStream(entry), childFile);
78 * @param zipFile a {@link File} pointing to a zip file.
82 public static void extractZip(File zipFile, File destDir) throws IOException
    [all...]
ZipUtil.java 34 import java.util.zip.ZipFile;
49 * @param zipFile the {@link File} to check
55 public static boolean isZipFileValid(File zipFile, boolean thorough) throws IOException {
56 if (zipFile != null && !zipFile.exists()) {
57 CLog.d("Zip file does not exist: %s", zipFile.getAbsolutePath());
61 try (ZipFile z = new ZipFile(zipFile)) {
64 final File extractDir = FileUtil.createTempDir("extract-" + zipFile.getName())
    [all...]
  /external/jarjar/src/main/com/tonicsystems/jarjar/util/
AntJarProcessor.java 63 protected void zipFile(InputStream is, ZipOutputStream zOut, String vPath,
76 super.zipFile(new ByteArrayInputStream(struct.data),
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
ZipDexContainer.java 53 import java.util.zip.ZipFile;
85 ZipFile zipFile = getZipFile();
87 Enumeration<? extends ZipEntry> entriesEnumeration = zipFile.entries();
92 if (!isDex(zipFile, entry)) {
101 zipFile.close();
113 ZipFile zipFile = getZipFile();
115 ZipEntry entry = zipFile.getEntry(entryName);
120 return loadEntry(zipFile, entry)
    [all...]
  /cts/tools/vm-tests-tf/targetprep/src/android/core/vm/targetprep/
VmTestPreparer.java 32 import java.util.zip.ZipFile;
90 ZipFile zipFile = new ZipFile(jarFile);
91 FileUtil.extractZip(zipFile, localTmpDir);
  /dalvik/tools/dexdeps/src/com/android/dexdeps/
Main.java 26 import java.util.zip.ZipFile;
121 ZipFile zipFile;
123 zipFile = new ZipFile(fileName);
138 result.add(openClassesDexZipFileEntry(zipFile, classesDexNumber));
150 RandomAccessFile openClassesDexZipFileEntry(ZipFile zipFile, int classesDexNumber)
160 ZipEntry entry = zipFile.getEntry(zipEntryName);
162 zipFile.close()
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/result/
FileSystemLogSaverTest.java 42 import java.util.zip.ZipFile;
167 ZipFile zipFile = null;
181 zipFile = new ZipFile(new File(logFile.getPath()));
183 String actualLogString = StreamUtil.getStringFromStream(zipFile.getInputStream(
188 if (zipFile != null) {
189 zipFile.close();
LogFileSaverTest.java 42 import java.util.zip.ZipFile;
203 ZipFile zipFile = null;
213 zipFile = new ZipFile(logFile);
215 String actualLogString = StreamUtil.getStringFromStream(zipFile.getInputStream(
219 if (zipFile != null) {
220 zipFile.close();
  /build/make/tools/zipalign/
ZipAlign.cpp 20 #include "ZipFile.h"
67 static int copyAndAlign(ZipFile* pZin, ZipFile* pZout, int alignment, bool zopfli,
132 ZipFile zin, zout;
149 if (zin.open(inFileName, ZipFile::kOpenReadOnly) != NO_ERROR) {
154 ZipFile::kOpenReadWrite|ZipFile::kOpenCreate|ZipFile::kOpenTruncate)
175 ZipFile zipFile;
    [all...]
  /cts/common/util/src/com/android/compatibility/common/util/
ZipUtil.java 39 * @param zipFile the zip file to create - it should not already exist
42 public static void createZip(File dir, File zipFile) throws IOException {
45 FileOutputStream fileStream = new FileOutputStream(zipFile);
49 zipFile.delete();
52 zipFile.delete();
  /external/zlib/src/contrib/minizip/
zip.h 67 typedef zipFile__ *zipFile;
69 typedef voidp zipFile;
116 extern zipFile ZEXPORT zipOpen OF((const char *pathname, int append));
117 extern zipFile ZEXPORT zipOpen64 OF((const void *pathname, int append));
119 Create a zipfile.
127 If the zipfile cannot be opened, the return value is NULL.
128 Else, the return value is a zipFile Handle, usable with other function
132 /* Note : there is no delete function into a zipfile.
133 If you want delete file into a zipfile, you must open a zipfile, and create anothe
    [all...]
  /frameworks/data-binding/compiler/src/main/java/android/databinding/tool/util/
GenerationalClassUtil.java 37 import java.util.zip.ZipFile;
120 ZipFile zipFile = new ZipFile(file);
121 Enumeration<? extends ZipEntry> entries = zipFile.entries();
130 inputStream = zipFile.getInputStream(entry);
  /tools/tradefederation/core/tests/src/com/android/tradefed/util/
ZipUtil2Test.java 20 import org.apache.commons.compress.archivers.zip.ZipFile;
76 ZipFile zipFile = null;
78 zipFile = new ZipFile(zip);
79 File extracted = ZipUtil2.extractFileFromZip(zipFile, fileName);
83 ZipFile.closeQuietly(zipFile);
91 ZipFile zipFile = null
    [all...]
BugreportTest.java 159 File zipFile = null;
166 zipFile = ZipUtil.createZip(new File(""));
167 FileOutputStream fileStream = new FileOutputStream(zipFile);
172 mBugreport = new Bugreport(zipFile, true);
176 FileUtil.deleteFile(zipFile);
  /external/vogar/src/vogar/target/
ClassPathScanner.java 31 import java.util.zip.ZipFile;
165 ZipFile zipFile = new ZipFile(jarFile);
166 for (Enumeration<? extends ZipEntry> e = zipFile.entries(); e.hasMoreElements(); ) {
  /tools/tradefederation/core/src/com/android/tradefed/build/
LocalDeviceBuildProvider.java 160 File zipFile = null;
166 zipFile = ZipUtil.createZip(buildFiles);
170 CLog.i("Created build image zip on: %s", zipFile.getAbsolutePath());
171 return zipFile;
  /tools/tradefederation/core/src/com/android/tradefed/result/
CodeCoverageReporter.java 33 import org.apache.commons.compress.archivers.zip.ZipFile;
188 Assert.assertNotNull("Failed to get the coverage metadata zipfile from the build.",
194 ZipFile zipFile = new ZipFile(coverageZipFile);
195 ZipUtil2.extractZip(zipFile, mLocalTmpDir);

Completed in 1125 milliseconds

1 2 3 4 5 6 7 8 91011>>