/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 …]
|
D | ZipEntryReader.java | 28 import java.util.zip.ZipEntry; 29 import java.util.zip.ZipException;
|
/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() 72 ClassLoader getSharedLibraryClassLoaderWithSharedLibraries(String zip, int targetSdkVersion, in getSharedLibraryClassLoaderWithSharedLibraries() argument 75 ClassLoader loader = getCachedNonBootclasspathSystemLib(zip, parent, classLoaderName, in getSharedLibraryClassLoaderWithSharedLibraries() 87 return getClassLoaderWithSharedLibraries(zip, targetSdkVersion, isBundled, in getSharedLibraryClassLoaderWithSharedLibraries() 92 private ClassLoader getClassLoader(String zip, int targetSdkVersion, boolean isBundled, in getClassLoader() argument 121 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/cmds/idmap2/libidmap2/ |
D | ResourceContainer.cpp | 73 Result<XmlParser> OpenXmlParser(const std::string& entry_path, const ZipAssetsProvider* zip) { in OpenXmlParser() argument 74 auto manifest = zip->Open(entry_path); in OpenXmlParser() 88 Result<XmlParser> OpenXmlParser(ResourceId id, const ZipAssetsProvider* zip, in OpenXmlParser() argument 111 return OpenXmlParser(file->c_str(), zip); in OpenXmlParser() 114 Result<OverlayManifestInfo> ExtractOverlayManifestInfo(const ZipAssetsProvider* zip, in ExtractOverlayManifestInfo() argument 116 Result<XmlParser> xml = OpenXmlParser("AndroidManifest.xml", zip); in ExtractOverlayManifestInfo() 176 Result<OverlayData> CreateResourceMapping(ResourceId id, const ZipAssetsProvider* zip, in CreateResourceMapping() argument 180 auto parser = OpenXmlParser(id, zip, overlay_am); in CreateResourceMapping() 269 static Result<ResState> Initialize(std::unique_ptr<ZipAssetsProvider> zip) { in Initialize() 271 state.zip_assets = zip.get(); in Initialize() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | AllModelTest.kt | 116 expected.zip(model.elements).forEachIndexed { index, it -> in <lambda>() 138 expected.zip(new_model.elements).forEachIndexed { index, it -> in <lambda>() 146 model.favorites.zip(expectedFavorites).forEach { in <lambda>() 159 model.favorites.zip(expectedFavorites).forEach { in <lambda>() 189 model.favorites.zip(expectedFavorites).forEach { in <lambda>() 205 model.favorites.zip(expectedFavorites).forEach { in <lambda>() 234 model.favorites.zip(expectedFavorites).forEach { in <lambda>()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | AndroidPackageParsingEquivalenceTest.kt | 41 oldAppInfo.zip(newAppInfo).forEach { in applicationInfoEquality() 75 oldPackageInfo.zip(newPackageInfo).forEach { in packageInfoEquality() 105 it.first?.activities?.zip(it.second?.activities!!)?.forEach { in packageInfoEquality() 120 it.first?.receivers?.zip(it.second?.receivers!!)?.forEach { in packageInfoEquality() 135 it.first?.providers?.zip(it.second?.providers!!)?.forEach { in packageInfoEquality() 150 it.first?.services?.zip(it.second?.services!!)?.forEach { in packageInfoEquality()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Compile_test.cpp | 135 std::unique_ptr<io::ZipFileCollection> zip = io::ZipFileCollection::Create(kOutputFlata, &err); in TEST_F() local 136 ASSERT_NE(zip, nullptr) << err; in TEST_F() 137 ASSERT_NE(zip->FindFile("drawable_image.png.flat"), nullptr); in TEST_F() 138 ASSERT_NE(zip->FindFile("layout_layout.xml.flat"), nullptr); in TEST_F() 139 ASSERT_NE(zip->FindFile("values_values.arsc.flat"), nullptr); in TEST_F() 166 std::unique_ptr<io::ZipFileCollection> zip = io::ZipFileCollection::Create(kOutputFlata, &err); in TEST_F() local 167 ASSERT_NE(zip, nullptr) << err; in TEST_F() 168 ASSERT_NE(zip->FindFile("drawable_image.png.flat"), nullptr); in TEST_F() 169 ASSERT_NE(zip->FindFile("layout_layout.xml.flat"), nullptr); in TEST_F() 170 ASSERT_NE(zip->FindFile("values_values.arsc.flat"), nullptr); in TEST_F()
|
D | Link_test.cpp | 116 io::IFileCollection* zip = apk->GetFileCollection(); in TEST_F() local 117 ASSERT_THAT(zip, Ne(nullptr)); in TEST_F() 119 auto file = zip->FindFile("assets/testtxt"); in TEST_F() 123 file = zip->FindFile("assets/testtxt2"); in TEST_F() 127 file = zip->FindFile("assets/test.txt"); in TEST_F() 131 file = zip->FindFile("assets/test.hello.txt"); in TEST_F() 135 file = zip->FindFile("assets/test.hello.xml"); in TEST_F() 164 io::IFileCollection* zip = apk->GetFileCollection(); in TEST_F() local 165 ASSERT_THAT(zip, Ne(nullptr)); in TEST_F() 167 auto file = zip->FindFile("res/raw/testtxt"); in TEST_F() [all …]
|
/frameworks/base/ |
D | ApiDocs.bp | 243 // Since there's cron jobs that fetch offline-sdk-referenceonly-docs-docs.zip periodically. 261 … // Since there's cron jobs that fetch offline-system-sdk-referenceonly-docs-docs.zip periodically. 390 ":ds-docs-java{.docs.zip}", 391 ":ds-docs-kt{.docs.zip}", 393 out: ["ds-docs.zip"], 397 …md: "$(location zip2zip) -i $(location :ds-docs-kt{.docs.zip}) -o $(genDir)/ds-docs-kt-moved.zip *… 398 …$(location merge_zips) $(out) $(location :ds-docs-java{.docs.zip}) $(genDir)/ds-docs-kt-moved.zip", 408 ":ds-docs-java{.docs.zip}", 409 ":ds-docs-kt{.docs.zip}", 411 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/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/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: 70 There is also a special TYPE, `$SYSTEM`, that loads `/system/media/bootanimation.zip` 90 Each part is scanned and loaded directly from the zip archive. Within a part directory, every file 93 named sequentially (e.g. `part000.png`, `part001.png`, ...) and added to the zip archive in that 139 zip -0qry -i \*.txt \*.png \*.wav @ ../bootanimation.zip *.txt part*
|
D | BootAnimation.cpp | 770 static bool readFile(ZipFileRO* zip, const char* name, String8& outString) { in readFile() argument 771 ZipEntryRO entry = zip->findEntryByName(name); in readFile() 777 FileMap* entryMap = zip->createEntryFileMap(entry); in readFile() 778 zip->releaseEntry(entry); in readFile() 937 if (!readFile(animation.zip, "desc.txt", desString)) { in parseAnimationDesc() 1024 ZipFileRO* zip = animation.zip; in preloadZip() local 1025 if (!zip->startIteration(&cookie)) { in preloadZip() 1031 while ((entry = zip->nextEntry(cookie)) != nullptr) { in preloadZip() 1032 const int foundEntryName = zip->getEntryFileName(entry, name, ANIM_ENTRY_NAME_MAX); in preloadZip() 1043 FileMap* map = zip->createEntryFileMap(entry); in preloadZip() [all …]
|
/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 | 29 cmd: "$(location soong_zip) -o $(genDir)/classes.dex.zip -j -f $(location classes.dex) && " + 30 "$(location merge_zips) -ignore-duplicates $(out) $(genDir)/classes.dex.zip " +
|
/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/base/cmds/idmap2/tests/ |
D | XmlParserTests.cpp | 29 auto zip = ZipAssetsProvider::Create(GetTestDataPath() + "/target/target.apk", 0 /* flags */); in CreateTestParser() local 30 if (zip == nullptr) { in CreateTestParser() 34 auto data = zip->Open(test_file); in CreateTestParser()
|
/frameworks/multidex/library/src/androidx/multidex/ |
D | ZipUtil.java | 26 import java.util.zip.CRC32; 27 import java.util.zip.ZipException;
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests2/src/com/android/framework/multidexlegacytestservices/test2/ |
D | ServicesTests.java | 330 for (File zip : getSecondaryFolder().listFiles(new ExtractedZipFilter())) { in tamperAllExtractedZips() 331 long fileLength = zip.length(); in tamperAllExtractedZips() 333 zip.setWritable(true); in tamperAllExtractedZips() 334 RandomAccessFile raf = new RandomAccessFile(zip, "rw"); in tamperAllExtractedZips()
|
/frameworks/layoutlib/bridge/tests/ |
D | run_tests.sh | 10 readonly FAILURE_ZIP=layoutlib-test-failures.zip 28 zip -q -j -r ${OUT_DIR}/${FAILURE_ZIP} ${OUT_DIR}/${FAILURE_DIR}
|