/frameworks/base/cmds/idmap2/tests/ |
D | ZipFileTests.cpp | 32 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()
|
D | XmlTests.cpp | 31 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/ |
D | Package.cpp | 40 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 …]
|
D | Command.cpp | 39 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/multidex/library/test/src/androidx/multidex/ |
D | ZipUtilTest.java | 37 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/ |
D | ZipUtils.java | 54 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/ |
D | ApplicationLoaders.java | 46 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/ |
D | AssetManager.cpp | 163 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/rs/tests/java_api/ |
D | Android.mk | 25 $(call dist-for-goals,RSUnbundledTests,$(my_package_zip):$(my_package_name).zip) 42 $(call dist-for-goals,RSUnbundledTests,$(my_package_zip):$(my_package_name).zip) 43 $(call dist-for-goals,RSUnbundledTests19,$(my_package_zip):$(my_package_name).zip) 63 $(call dist-for-goals,RSTests,$(my_package_zip):$(my_package_name).zip)
|
/frameworks/base/tools/aapt2/cmd/ |
D | Compile_test.cpp | 134 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/base/ |
D | ApiDocs.bp | 188 // Since there's cron jobs that fetch offline-sdk-referenceonly-docs-docs.zip periodically. 206 … // Since there's cron jobs that fetch offline-system-sdk-referenceonly-docs-docs.zip periodically. 335 ":ds-docs-java{.docs.zip}", 336 ":ds-docs-kt{.docs.zip}", 338 out: ["ds-docs.zip"], 342 …md: "$(location zip2zip) -i $(location :ds-docs-kt{.docs.zip}) -o $(genDir)/ds-docs-kt-moved.zip *… 343 …$(location merge_zips) $(out) $(location :ds-docs-java{.docs.zip}) $(genDir)/ds-docs-kt-moved.zip", 353 ":ds-docs-java{.docs.zip}", 354 ":ds-docs-kt{.docs.zip}", 356 out: ["ds-docs-switched.zip"], [all …]
|
D | Android.mk | 38 $(OUT_DOCS)/offline-sdk-timestamp: $(OUT_DOCS)/offline-sdk-docs-docs.zip 56 $(SDK_METADATA): $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/framework-doc-stubs-metadata.zip
|
/frameworks/base/cmds/idmap/ |
D | create.cpp | 18 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()
|
D | scan.cpp | 180 std::unique_ptr<ZipFileRO> zip(ZipFileRO::open(path)); in parse_apk() local 181 if (zip.get() == NULL) { in parse_apk() 186 if ((entry = zip->findEntryByName("AndroidManifest.xml")) == NULL) { in parse_apk() 192 if (!zip->getEntryInfo(entry, &method, &uncompLen, NULL, NULL, NULL, NULL)) { in parse_apk() 200 FileMap *dataMap = zip->createEntryFileMap(entry); in parse_apk()
|
/frameworks/base/cmds/bootanimation/ |
D | FORMAT.md | 7 /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*
|
D | BootAnimation.cpp | 569 static bool readFile(ZipFileRO* zip, const char* name, String8& outString) in readFile() argument 571 ZipEntryRO entry = zip->findEntryByName(name); in readFile() 577 FileMap* entryMap = zip->createEntryFileMap(entry); in readFile() 578 zip->releaseEntry(entry); in readFile() 695 if (!readFile(animation.zip, "desc.txt", desString)) { in parseAnimationDesc() 764 ZipFileRO* zip = animation.zip; in preloadZip() local 765 if (!zip->startIteration(&cookie)) { in preloadZip() 771 while ((entry = zip->nextEntry(cookie)) != nullptr) { in preloadZip() 772 const int foundEntryName = zip->getEntryFileName(entry, name, ANIM_ENTRY_NAME_MAX); in preloadZip() 783 FileMap* map = zip->createEntryFileMap(entry); in preloadZip() [all …]
|
/frameworks/base/tools/hiddenapi/ |
D | merge_csv.py | 49 with ZipFile(args.zip_input) as zip: 50 for entry in zip.namelist(): 52 csv_readers.append(dict_reader(io.TextIOWrapper(zip.open(entry, 'r'))))
|
/frameworks/opt/setupwizard/tools/gradle/ |
D | dist-unit-tests.gradle | 8 * 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/native/cmds/dumpstate/ |
D | bugreport-format.md | 20 _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/core/tests/coretests/apks/install_bad_dex/ |
D | Android.bp | 20 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/base/cmds/idmap2/libidmap2/ |
D | ResourceUtils.cpp | 58 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/tools/locked_region_code_injection/src/lockedregioncodeinjection/ |
D | Main.java | 27 import java.util.zip.ZipEntry; 28 import java.util.zip.ZipFile; 29 import java.util.zip.ZipOutputStream;
|
/frameworks/ml/nn/runtime/test/specs/V1_3/ |
D | if_constant.mod.py | 23 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)],
|
/frameworks/ml/nn/runtime/test/android_fuzzing/ |
D | Android.bp | 89 // This genrule generates a zip file of 5000+ test cases from the NNAPI test 91 // currently not able to accept a zip file as a fuzzer seed corpus. 101 out: ["libneuralnetworks_fuzzer_seed_corpus.zip"],
|
/frameworks/multidex/library/src/androidx/multidex/ |
D | ZipUtil.java | 26 import java.util.zip.CRC32; 27 import java.util.zip.ZipException;
|