/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ZFileReadOnlyTest.java | 48 try (ZFile zf = new ZFile(zip)) { in makeTestZip() 57 try (ZFile zf = new ZFile(makeTestZip(), new ZFileOptions(), true)) { in cannotUpdateInRoMode() 69 try (ZFile zf = new ZFile(makeTestZip(), new ZFileOptions(), true)) { in cannotAddFilesInRoMode() 82 try (ZFile zf = new ZFile(makeTestZip(), new ZFileOptions(), true)) { in cannotAddRecursivelyInRoMode() 94 try (ZFile zf = new ZFile(makeTestZip(), new ZFileOptions(), true)) { in cannotReplaceFilesInRoMode() 106 try (ZFile zf = new ZFile(makeTestZip(), new ZFileOptions(), true)) { in cannotDeleteFilesInRoMode() 121 try (ZFile zf = new ZFile(makeTestZip(), new ZFileOptions(), true)) { in cannotMergeInRoMode() 134 try (ZFile zf = new ZFile(makeTestZip(), new ZFileOptions(), true)) { in cannotTouchInRoMode() 146 try (ZFile zf = new ZFile(makeTestZip(), new ZFileOptions(), true)) { in cannotRealignInRoMode() 158 try (ZFile zf = new ZFile(makeTestZip(), new ZFileOptions(), true)) { in cannotAddExtensionInRoMode() [all …]
|
D | ZFileTest.java | 71 try (ZFile zf = new ZFile(zpath)) { in getZipPath() 79 File zf = new File(temporaryDir, "a"); in readNonExistingFile() local 90 File zf = new File(temporaryDir, "a"); in readExistingEmptyFile() local 101 File zf = ZipTestUtils.cloneRsrc("empty-zip.zip", mTemporaryFolder); in readAlmostEmptyZip() local 114 File zf = ZipTestUtils.cloneRsrc("simple-zip.zip", mTemporaryFolder); in readZipWithTwoFilesOneDirectory() local 149 try (ZFile zf = new ZFile(testZip)) { in readOnlyZipSupport() 162 try (ZFile zf = new ZFile(testZip)) { in readOnlyV2SignedApkSupport() 181 try (ZFile zf = new ZFile(testZip)) { in compressedFilesReadableByJavaZip() 545 try (ZFile zf = new ZFile(zip)) { in addingFileDoesNotAddDirectoriesAutomatically() 591 try (ZFile zf = new ZFile(zip)) { in zipFileWithEocdSignatureInComment() [all …]
|
D | ExtraFieldTest.java | 97 try (ZFile zf = new ZFile(mZipFile)) { in readEntryWithNoExtraField() 125 try (ZFile zf = new ZFile(mZipFile)) { in readSingleExtraField() 172 try (ZFile zf = new ZFile(mZipFile)) { in readMultipleExtraFields() 199 try (ZFile zf = new ZFile(mZipFile)) { in addExtraFieldToExistingEntry() 205 try (ZFile zf = new ZFile(mZipFile)) { in addExtraFieldToExistingEntry() 216 try (ZFile zf = new ZFile(mZipFile)) { in addExtraFieldToExistingEntry() 241 try (ZFile zf = new ZFile(mZipFile)) { in removeExtraFieldFromExistingEntry() 247 try (ZFile zf = new ZFile(mZipFile)) { in removeExtraFieldFromExistingEntry() 258 try (ZFile zf = new ZFile(mZipFile)) { in removeExtraFieldFromExistingEntry() 264 try (ZFile zf = new ZFile(mZipFile)) { in removeExtraFieldFromExistingEntry() [all …]
|
D | ZFileNotificationTest.java | 115 try (ZFile zf = new ZFile(new File(mTemporaryFolder.getRoot(), "a.zip"))) { in notifyAddFile() 138 try (ZFile zf = new ZFile(new File(mTemporaryFolder.getRoot(), "a.zip"))) { in notifyRemoveFile() 161 try (ZFile zf = new ZFile(new File(mTemporaryFolder.getRoot(), "a.zip"))) { in notifyUpdateFile() 188 try (ZFile zf = new ZFile(new File(mTemporaryFolder.getRoot(), "a.zip"))) { in notifyOpenUpdateClose() 212 try (ZFile zf = new ZFile(new File(mTemporaryFolder.getRoot(), "a.zip"))) { in notifyOpenUpdate() 234 try (ZFile zf = new ZFile(new File(mTemporaryFolder.getRoot(), "a.zip"))) { in notifyUpdate() 259 try (ZFile zf = new ZFile(new File(mTemporaryFolder.getRoot(), "a.zip"))) { in removedListenersAreNotNotified() 281 try (ZFile zf = new ZFile(new File(mTemporaryFolder.getRoot(), "a.zip"))) { in actionsExecutedAtEndOfNotification() 346 try (ZFile zf = new ZFile(zipFile)) { in canAddFilesDuringUpdateNotification() 387 try (ZFile zf = new ZFile(zipFile)) { in notifyOnceEntriesWritten() [all …]
|
D | AlignmentTest.java | 58 try (ZFile zf = new ZFile(newZFile, options)) { in addAlignedFile() 74 try (ZFile zf = new ZFile(newZFile, options)) { in addNonAlignedFile()
|
D | ZipToolsTest.java | 121 try (ZFile zf = new ZFile(cloneZipFile())) { in zfileReadsZipFile() 155 try (ZFile zf = new ZFile(zfile, options)) { in testReadZFile()
|
D | OldApkReadTest.java | 33 try (ZFile zf = new ZFile(apkFile, new ZFileOptions())) { in testReadOldApk()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zfile/ |
D | ApkAlignmentTest.java | 64 try (ZFile zf = new ZFile(apk)) { in soFilesUncompressedAndAligned() 81 try (ZFile zf = new ZFile(zipToMerge)) { in soFilesMergedFromZipsCanBeUncompressedAndAligned() 85 try (ZFile zf = new ZFile(zipToMerge)) { in soFilesMergedFromZipsCanBeUncompressedAndAligned() 117 try (ZFile zf = new ZFile(apk)) { in soFilesMergedFromZipsCanBeUncompressedAndAligned() 161 try (ZFile zf = new ZFile(apk)) { in soFilesUncompressedAndNotAligned() 178 try (ZFile zf = new ZFile(zipToMerge)) { in soFilesMergedFromZipsCanBeUncompressedAndNotAligned() 182 try (ZFile zf = new ZFile(zipToMerge)) { in soFilesMergedFromZipsCanBeUncompressedAndNotAligned() 214 try (ZFile zf = new ZFile(apk)) { in soFilesMergedFromZipsCanBeUncompressedAndNotAligned()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | JarSigningTest.java | 50 try (ZFile zf = new ZFile(zipFile)) { in signEmptyJar() 193 try (ZFile zf = new ZFile(zipFile)) { in v2SignAddsApkSigningBlock() 314 try (ZFile zf = new ZFile(zipFile)) { in openSignedJarDoesNotForcesWriteIfSignatureIsNotCorrect() 330 try (ZFile zf = new ZFile(zipFile)) { in openSignedJarDoesNotForcesWriteIfSignatureIsNotCorrect() 345 try (ZFile zf = new ZFile(zipFile)) { in openSignedJarDoesNotForcesWriteIfSignatureIsNotCorrect() 367 try (ZFile zf = new ZFile(zipFile)) { in openSignedJarDoesNotForcesWriteIfSignatureIsNotCorrect()
|
D | ManifestGenerationTest.java | 48 try (ZFile zf = new ZFile(zip)) { in elementaryManifestGeneration() 83 ZFile zf = closer.register(new ZFile(zip)); in manifestGenerationOnHalfWrittenFile() local 119 ZFile zf = closer.register(new ZFile(zip)); in manifestGenerationOnExistingFile() local 157 ZFile zf = closer.register(new ZFile(zip)); in manifestGenerationOnIncrementalNoChanges() local
|
D | FullApkSignTest.java | 65 ZFile zf = new ZFile(out, options); in testSignature() local
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/compress/ |
D | MultiCompressorTest.java | 64 try (ZFile zf = new ZFile(zip)) { in storeIsBest() 83 try (ZFile zf = new ZFile(zip)) { in sameCompressionResultButBetterThanStore()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/utils/ |
D | ApkZFileTestUtils.java | 115 public static void addAndroidManifest(ZFile zf) throws IOException { in addAndroidManifest()
|