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

1 2 3 4 5 6 7 8 91011>>

  /tools/tradefederation/core/src/com/android/tradefed/util/
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...]
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);
77 * @param zipFile the {@link ZipFile} to extrac
    [all...]
  /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...]
  /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...]
  /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);
  /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...]
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...]
ZipEntryTest.java 29 import java.util.zip.ZipFile;
68 ZipFile zipFile = new ZipFile(f);
70 assertNotNull(filename, zipFile.getEntry(filename));
115 ZipFile zipFile = new ZipFile(f);
116 assertNotNull(zipFile.getEntry(maxLengthName));
117 zipFile.close()
    [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...]
  /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...]
ZipUtilTest.java 26 import java.util.zip.ZipFile;
51 final File zipFile = createTempFile(name, ".zip");
52 FileUtil.writeToFile(inputStream, zipFile);
53 return zipFile;
88 File zipFile = null;
95 zipFile = ZipUtil.createZip(tmpParentDir);
96 ZipUtil.extractZip(new ZipFile(zipFile), extractedDir);
107 FileUtil.deleteFile(zipFile);
118 File 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);
  /art/test/656-annotation-lookup-generic-jni/src/
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();
  /frameworks/base/core/jni/
com_android_internal_content_NativeLibraryHelper.cpp 153 sumFiles(JNIEnv*, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntry, const char*)
158 if (!zipFile->getEntryInfo(zipEntry, NULL, &uncompLen, NULL, NULL, NULL, NULL)) {
173 copyFileIfChanged(JNIEnv *env, void* arg, ZipFileRO* zipFile, ZipEntryRO zipEntry, const char* fileName)
189 if (!zipFile->getEntryInfo(zipEntry, &method, &uncompLen, NULL, &offset, &when, &crc)) {
260 if (!zipFile->uncompressEntry(zipEntry, fd)) {
313 NativeLibrariesIterator(ZipFileRO* zipFile, bool debuggable, void* cookie)
314 : mZipFile(zipFile), mDebuggable(debuggable), mCookie(cookie), mLastSlash(NULL) {
319 static NativeLibrariesIterator* create(ZipFileRO* zipFile, bool debuggable) {
322 if (!zipFile->startIteration(&cookie, APK_LIB, NULL /* suffix */)) {
326 return new NativeLibrariesIterator(zipFile, debuggable, cookie)
    [all...]
  /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...]
  /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();
  /frameworks/multidex/library/test/src/android/support/multidex/
ZipUtilTest.java 39 import java.util.zip.ZipFile;
49 private static final File zipFile = new File(System.getenv("ANDROID_BUILD_TOP"),
54 new ZipFile(zipFile).close();
61 ZipUtil.getZipCrc(zipFile);
68 RandomAccessFile raf = new RandomAccessFile(zipFile, "r");
92 ZipFile zip = new ZipFile(zipFile);
113 ZipFile zip = new ZipFile(zipFile)
    [all...]
  /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...]
  /prebuilts/sdk/
update_current.py 3 import os, sys, getopt, zipfile, re
146 with zipfile.ZipFile(artifact_file) as zip:
195 with zipfile.ZipFile(artifact_path) as zipFile:
196 zipFile.extractall(repoDir)
215 with zipfile.ZipFile(artifact_path) as zipFile
    [all...]
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/
DexFileFactory.java 50 import java.util.zip.ZipFile;
84 ZipFile zipFile = null;
87 zipFile = new ZipFile(dexFile);
92 ZipEntry zipEntry = zipFile.getEntry(zipEntryName);
105 ByteStreams.readFully(zipFile.getInputStream(zipEntry), dexBytes);
113 if (zipFile != null) {
115 zipFile.close();
  /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);
  /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),
  /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;
  /cts/hostsidetests/theme/src/android/theme/cts/
ThemeHostTest.java 137 private Map<String, File> extractReferenceImages(String zipFile) throws Exception {
139 final InputStream zipStream = ThemeHostTest.class.getResourceAsStream(zipFile);
157 fail("Failed to unzip assets: " + zipFile);
162 "Could not obtain resources for skipped themes test: " + zipFile);
164 fail("Failed to get resource: " + zipFile);

Completed in 1831 milliseconds

1 2 3 4 5 6 7 8 91011>>