Home
last modified time | relevance | path

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

12345

/frameworks/base/cmds/idmap2/tests/
DZipFileTests.cpp32 auto zip = ZipFile::Open(GetTestDataPath() + "/target/target.apk"); in TEST() local
33 ASSERT_THAT(zip, NotNull()); in TEST()
41 auto zip = ZipFile::Open(GetTestDataPath() + "/target/target.apk"); in TEST() local
42 ASSERT_THAT(zip, NotNull()); in TEST()
44 Result<uint32_t> crc = zip->Crc("AndroidManifest.xml"); in TEST()
48 Result<uint32_t> crc2 = zip->Crc("does-not-exist"); in TEST()
53 auto zip = ZipFile::Open(GetTestDataPath() + "/target/target.apk"); in TEST() local
54 ASSERT_THAT(zip, NotNull()); in TEST()
56 auto data = zip->Uncompress("assets/lorem-ipsum.txt"); in TEST()
62 auto fail = zip->Uncompress("does-not-exist"); in TEST()
DXmlTests.cpp31 auto zip = ZipFile::Open(GetTestDataPath() + "/target/target.apk"); in TEST() local
32 ASSERT_THAT(zip, NotNull()); in TEST()
34 auto data = zip->Uncompress("AndroidManifest.xml"); in TEST()
47 auto zip = ZipFile::Open(GetTestDataPath() + "/target/target.apk"); in TEST() local
48 ASSERT_THAT(zip, NotNull()); in TEST()
50 auto data = zip->Uncompress("res/xml/test.xml"); in TEST()
/frameworks/base/tools/aapt/
DPackage.cpp40 ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<const OutputSet>& outputSet);
41 bool processFile(Bundle* bundle, ZipFile* zip, String8 storageName, const sp<const AaptFile>& file);
43 ssize_t processJarFiles(Bundle* bundle, ZipFile* zip);
60 ZipFile* zip = NULL; in writeAPK() local
100 zip = new ZipFile; in writeAPK()
101 status = zip->open(outputFile.string(), ZipFile::kOpenReadWrite | ZipFile::kOpenCreate); in writeAPK()
112 count = processAssets(bundle, zip, outputSet); in writeAPK()
124 count = processJarFiles(bundle, zip); in writeAPK()
146 for (i = 0; i < zip->getNumEntries(); i++) { in writeAPK()
147 ZipEntry* entry = zip->getEntryByIndex(i); in writeAPK()
[all …]
DCommand.cpp39 ZipFile* zip; in openReadOnly() local
42 zip = new ZipFile; in openReadOnly()
43 result = zip->open(fileName, ZipFile::kOpenReadOnly); in openReadOnly()
53 delete zip; in openReadOnly()
57 return zip; in openReadOnly()
68 ZipFile* zip = NULL; in openReadWrite() local
77 zip = new ZipFile; in openReadWrite()
78 result = zip->open(fileName, flags); in openReadWrite()
80 delete zip; in openReadWrite()
81 zip = NULL; in openReadWrite()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/protoc-artifacts/
Dbuild-zip.sh11 and package them with well-known type .proto files to create .zip packages
13 create 5 zip packages:
14 dist/protoc-<VERSION_NUMBER>-win32.zip
15 dist/protoc-<VERSION_NUMBER>-osx-x86_32.zip
16 dist/protoc-<VERSION_NUMBER>-osx-x86_64.zip
17 dist/protoc-<VERSION_NUMBER>-linux-x86_32.zip
18 dist/protoc-<VERSION_NUMBER>-linux-x86_64.zip
27 win32.zip windows-x86_32.exe \
28 osx-x86_32.zip osx-x86_32.exe \
29 osx-x86_64.zip osx-x86_64.exe \
[all …]
DREADME.md105 ## Upload zip packages to github release page.
107 build-zip.sh script to bulid zip packages for these protoc binaries
108 and upload these zip packages to the download section of the github
111 $ ./build-zip.sh 3.0.0-beta-4
113 The above command will create 5 zip files:
115 dist/protoc-3.0.0-beta-4-win32.zip
116 dist/protoc-3.0.0-beta-4-osx-x86_32.zip
117 dist/protoc-3.0.0-beta-4-osx-x86_64.zip
118 dist/protoc-3.0.0-beta-4-linux-x86_32.zip
119 dist/protoc-3.0.0-beta-4-linux-x86_64.zip
/frameworks/multidex/library/test/src/androidx/multidex/
DZipUtilTest.java37 import java.util.zip.ZipEntry;
38 import java.util.zip.ZipException;
39 import java.util.zip.ZipFile;
92 ZipFile zip = new ZipFile(zipFile); in testCrcRange() local
93 Assert.assertEquals(zip.size(), toCheck.size()); in testCrcRange()
94 Enumeration<? extends ZipEntry> ref = zip.entries(); in testCrcRange()
108 zip.close(); in testCrcRange()
113 ZipFile zip = new ZipFile(zipFile); in testCrcValue() local
114 Enumeration<? extends ZipEntry> ref = zip.entries(); in testCrcValue()
120 InputStream in = zip.getInputStream(refEntry); in testCrcValue()
[all …]
/frameworks/base/core/java/android/util/apk/
DZipUtils.java54 static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord(RandomAccessFile zip) in findZipEndOfCentralDirectoryRecord() argument
66 long fileSize = zip.length(); in findZipEndOfCentralDirectoryRecord()
74 Pair<ByteBuffer, Long> result = findZipEndOfCentralDirectoryRecord(zip, 0); in findZipEndOfCentralDirectoryRecord()
82 return findZipEndOfCentralDirectoryRecord(zip, UINT16_MAX_VALUE); in findZipEndOfCentralDirectoryRecord()
98 RandomAccessFile zip, int maxCommentSize) throws IOException { in findZipEndOfCentralDirectoryRecord() argument
113 long fileSize = zip.length(); in findZipEndOfCentralDirectoryRecord()
124 zip.seek(bufOffsetInFile); in findZipEndOfCentralDirectoryRecord()
125 zip.readFully(buf.array(), buf.arrayOffset(), buf.capacity()); in findZipEndOfCentralDirectoryRecord()
189 RandomAccessFile zip, long zipEndOfCentralDirectoryPosition) throws IOException { in isZip64EndOfCentralDirectoryLocatorPresent() argument
198 zip.seek(locatorPosition); in isZip64EndOfCentralDirectoryLocatorPresent()
[all …]
/frameworks/base/core/java/android/app/
DApplicationLoaders.java46 ClassLoader getClassLoader(String zip, int targetSdkVersion, boolean isBundled, in getClassLoader() argument
49 return getClassLoaderWithSharedLibraries(zip, targetSdkVersion, isBundled, in getClassLoader()
55 String zip, int targetSdkVersion, boolean isBundled, in getClassLoaderWithSharedLibraries() argument
60 return getClassLoader(zip, targetSdkVersion, isBundled, librarySearchPath, in getClassLoaderWithSharedLibraries()
61 libraryPermittedPath, parent, zip, classLoaderName, sharedLibraries); in getClassLoaderWithSharedLibraries()
71 ClassLoader getSharedLibraryClassLoaderWithSharedLibraries(String zip, int targetSdkVersion, in getSharedLibraryClassLoaderWithSharedLibraries() argument
74 ClassLoader loader = getCachedNonBootclasspathSystemLib(zip, parent, classLoaderName, in getSharedLibraryClassLoaderWithSharedLibraries()
80 return getClassLoaderWithSharedLibraries(zip, targetSdkVersion, isBundled, in getSharedLibraryClassLoaderWithSharedLibraries()
84 private ClassLoader getClassLoader(String zip, int targetSdkVersion, boolean isBundled, in getClassLoader() argument
112 Trace.traceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, zip); in getClassLoader()
[all …]
/frameworks/base/libs/androidfw/
DAssetManager.cpp163 mAssetPaths[i].zip.get()); in ~AssetManager()
164 if (mAssetPaths[i].rawFd >= 0 && mAssetPaths[i].zip == NULL) { in ~AssetManager()
866 ALOGV("getZipFileLocked() in %p: ap=%p zip=%p", this, &ap, ap.zip.get()); in getZipFileLocked()
868 if (ap.zip != NULL) { in getZipFileLocked()
869 return ap.zip->getZip(); in getZipFileLocked()
874 ap.zip = mZipSet.getSharedZip(ap.path); in getZipFileLocked()
877 ap.zip = SharedZip::create(ap.rawFd, ap.path); in getZipFileLocked()
880 return ap.zip != NULL ? ap.zip->getZip() : NULL; in getZipFileLocked()
1457 sp<SharedZip> zip = gOpen.valueFor(path).promote(); in get() local
1458 if (zip != NULL && zip->mModWhen == modWhen) { in get()
[all …]
/frameworks/base/tools/aapt2/cmd/
DCompile_test.cpp134 std::unique_ptr<io::ZipFileCollection> zip = io::ZipFileCollection::Create(kOutputFlata, &err); in TEST_F() local
135 ASSERT_NE(zip, nullptr) << err; in TEST_F()
136 ASSERT_NE(zip->FindFile("drawable_image.png.flat"), nullptr); in TEST_F()
137 ASSERT_NE(zip->FindFile("layout_layout.xml.flat"), nullptr); in TEST_F()
138 ASSERT_NE(zip->FindFile("values_values.arsc.flat"), nullptr); in TEST_F()
165 std::unique_ptr<io::ZipFileCollection> zip = io::ZipFileCollection::Create(kOutputFlata, &err); in TEST_F() local
166 ASSERT_NE(zip, nullptr) << err; in TEST_F()
167 ASSERT_NE(zip->FindFile("drawable_image.png.flat"), nullptr); in TEST_F()
168 ASSERT_NE(zip->FindFile("layout_layout.xml.flat"), nullptr); in TEST_F()
169 ASSERT_NE(zip->FindFile("values_values.arsc.flat"), nullptr); in TEST_F()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/
Dpost_process_dist.sh59 make dist-zip
60 mv $BASENAME.zip ../protobuf-$LANG-$VERSION.zip
/frameworks/rs/tests/java_api/
DAndroid.mk25 $(call dist-for-goals,RSUnbundledTests,$(my_package_zip):$(my_package_name).zip)
39 $(call dist-for-goals,RSUnbundledTests,$(my_package_zip):$(my_package_name).zip)
59 $(call dist-for-goals,RSTests,$(my_package_zip):$(my_package_name).zip)
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/
Dzip_output_unittest.sh55 --cpp_out=$TEST_TMPDIR/testzip.zip --python_out=$TEST_TMPDIR/testzip.zip \
61 unzip -t $TEST_TMPDIR/testzip.zip > $TEST_TMPDIR/testzip.list || fail 'unzip failed.'
/frameworks/base/cmds/idmap/
Dcreate.cpp18 std::unique_ptr<ZipFileRO> zip(ZipFileRO::open(zip_path)); in get_zip_entry_crc() local
19 if (zip.get() == NULL) { in get_zip_entry_crc()
22 ZipEntryRO entry = zip->findEntryByName(entry_name); in get_zip_entry_crc()
26 if (!zip->getEntryInfo(entry, NULL, NULL, NULL, NULL, NULL, crc)) { in get_zip_entry_crc()
29 zip->releaseEntry(entry); in get_zip_entry_crc()
Dscan.cpp187 std::unique_ptr<ZipFileRO> zip(ZipFileRO::open(path)); in parse_apk() local
188 if (zip.get() == NULL) { in parse_apk()
193 if ((entry = zip->findEntryByName("AndroidManifest.xml")) == NULL) { in parse_apk()
199 if (!zip->getEntryInfo(entry, &method, &uncompLen, NULL, NULL, NULL, NULL)) { in parse_apk()
207 FileMap *dataMap = zip->createEntryFileMap(entry); in parse_apk()
/frameworks/base/cmds/bootanimation/
DFORMAT.md7 /system/media/bootanimation-encrypted.zip (if getprop("vold.decrypt") = '1')
8 /system/media/bootanimation.zip
9 /oem/media/bootanimation.zip
13 The `bootanimation.zip` archive file includes:
61 There is also a special TYPE, `$SYSTEM`, that loads `/system/media/bootanimation.zip`
76 Each part is scanned and loaded directly from the zip archive. Within a part directory, every file
79 named sequentially (e.g. `part000.png`, `part001.png`, ...) and added to the zip archive in that
125 zip -0qry -i \*.txt \*.png \*.wav @ ../bootanimation.zip *.txt part*
DBootAnimation.cpp544 static bool readFile(ZipFileRO* zip, const char* name, String8& outString) in readFile() argument
546 ZipEntryRO entry = zip->findEntryByName(name); in readFile()
552 FileMap* entryMap = zip->createEntryFileMap(entry); in readFile()
553 zip->releaseEntry(entry); in readFile()
670 if (!readFile(animation.zip, "desc.txt", desString)) { in parseAnimationDesc()
739 ZipFileRO* zip = animation.zip; in preloadZip() local
740 if (!zip->startIteration(&cookie)) { in preloadZip()
746 while ((entry = zip->nextEntry(cookie)) != nullptr) { in preloadZip()
747 const int foundEntryName = zip->getEntryFileName(entry, name, ANIM_ENTRY_NAME_MAX); in preloadZip()
758 FileMap* map = zip->createEntryFileMap(entry); in preloadZip()
[all …]
/frameworks/opt/setupwizard/tools/gradle/
Ddist-unit-tests.gradle8 * failures, and will create a zip of the XML test reports for each test run, and copy them to
15 // If unit tests are run as part of the build, dist the test XML reports to host-test-reports/*.zip
26 // Create a zip file of the XML test reports
29 archiveName = task.name + 'Result.zip'
91 // Create a zip file of the HTML coverage reports
94 archiveName = "${testTaskName}HtmlCoverage.zip"
/frameworks/base/cmds/idmap2/libidmap2/
DResourceUtils.cpp58 std::unique_ptr<const ZipFile> zip = ZipFile::Open(path); in ExtractOverlayManifestInfo() local
59 if (!zip) { in ExtractOverlayManifestInfo()
63 std::unique_ptr<const MemoryChunk> entry = zip->Uncompress("AndroidManifest.xml"); in ExtractOverlayManifestInfo()
/frameworks/base/core/tests/coretests/apks/install_bad_dex/
DAndroid.bp20 cmd: "$(location soong_zip) -o $(genDir)/classes.dex.zip -j -f $(location classes.dex) && " +
21 "$(location merge_zips) -ignore-duplicates $(out) $(genDir)/classes.dex.zip " +
/frameworks/native/cmds/dumpstate/
Dbugreport-format.md20 _bugreport-DATE.txt_ file, but then **Shell** creates a zip file called
25 On _Android N (Nougat)_, `dumpstate` generates a zip file directly (unless there
29 The zip file is by default called _bugreport-BUILD_ID-DATE.zip_ and it contains a
34 The zip file also contains 2 metadata entries generated by `dumpstate`:
40 `dumpstate` can also copy files from the device’s filesystem into the zip file
42 would generate a `FS/dirA/dirB/fileC` entry in the zip file.
44 When systrace is enabled, the zip file will contain a `systrace.txt` file as well.
48 - Tombstone files were removed and added to the zip file.
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DMain.java24 import java.util.zip.ZipEntry;
25 import java.util.zip.ZipFile;
26 import java.util.zip.ZipOutputStream;
/frameworks/base/core/java/android/os/
DRecoverySystem.java63 import java.util.zip.ZipEntry;
64 import java.util.zip.ZipFile;
65 import java.util.zip.ZipInputStream;
161 ZipFile zip = new ZipFile(keystore); in getTrustedCerts() local
164 Enumeration<? extends ZipEntry> entries = zip.entries(); in getTrustedCerts()
167 InputStream is = zip.getInputStream(entry); in getTrustedCerts()
175 zip.close(); in getTrustedCerts()
388 try (ZipFile zip = new ZipFile(packageFile)) { in readAndVerifyPackageCompatibilityEntry() argument
389 ZipEntry entry = zip.getEntry("compatibility.zip"); in readAndVerifyPackageCompatibilityEntry()
393 InputStream inputStream = zip.getInputStream(entry); in readAndVerifyPackageCompatibilityEntry()
/frameworks/multidex/library/src/androidx/multidex/
DZipUtil.java26 import java.util.zip.CRC32;
27 import java.util.zip.ZipException;

12345