Home
last modified time | relevance | path

Searched refs:mTemporaryFolder (Results 1 – 14 of 14) sorted by relevance

/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileTest.java65 public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in ZFileTest
69 File temporaryDir = mTemporaryFolder.getRoot(); in getZipPath()
78 File temporaryDir = mTemporaryFolder.getRoot(); in readNonExistingFile()
89 File temporaryDir = mTemporaryFolder.getRoot(); in readExistingEmptyFile()
101 File zf = ZipTestUtils.cloneRsrc("empty-zip.zip", mTemporaryFolder); in readAlmostEmptyZip()
114 File zf = ZipTestUtils.cloneRsrc("simple-zip.zip", mTemporaryFolder); in readZipWithTwoFilesOneDirectory()
145 File testZip = ZipTestUtils.cloneRsrc("empty-zip.zip", mTemporaryFolder); in readOnlyZipSupport()
158 File testZip = ZipTestUtils.cloneRsrc("v2-signed.apk", mTemporaryFolder); in readOnlyV2SignedApkSupport()
171 File testZip = new File(mTemporaryFolder.getRoot(), "t.zip"); in compressedFilesReadableByJavaZip()
174 .cloneRsrc("text-files/wikipedia.html", mTemporaryFolder, "wiki"); in compressedFilesReadableByJavaZip()
[all …]
DAlignmentTest.java48 public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in AlignmentTest
52 File newZFile = new File(mTemporaryFolder.getRoot(), "test.zip"); in addAlignedFile()
68 File newZFile = new File(mTemporaryFolder.getRoot(), "test.zip"); in addNonAlignedFile()
83 File newZFile = new File(mTemporaryFolder.getRoot(), "test.zip");
128 File newZFile = new File(mTemporaryFolder.getRoot(), "test.zip");
170 File newZFile = new File(mTemporaryFolder.getRoot(), "test.zip");
196 File newZFile = new File(mTemporaryFolder.getRoot(), "test.zip");
222 File zipFile = new File(mTemporaryFolder.getRoot(), "test.zip");
248 File zipFile = new File(mTemporaryFolder.getRoot(), "test.zip");
276 File zipFile = new File(mTemporaryFolder.getRoot(), "test.zip");
[all …]
DZFileNotificationTest.java111 public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in ZFileNotificationTest
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()
345 File zipFile = new File(mTemporaryFolder.getRoot(), "a.zip"); in canAddFilesDuringUpdateNotification()
[all …]
DZipMergeTest.java42 public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in ZipMergeTest
46 File aZip = ZipTestUtils.cloneRsrc("simple-zip.zip", mTemporaryFolder, "a.zip"); in mergeZip()
49 File merged = new File(mTemporaryFolder.getRoot(), "r.zip"); in mergeZip()
84 File bZip = ZipTestUtils.cloneRsrc("simple-zip.zip", mTemporaryFolder, "b.zip"); in mergeZip()
94 File foo = mTemporaryFolder.newFile("foo"); in mergeZipWithDeferredCrc()
111 ZFile merged = closer.register(new ZFile(new File(mTemporaryFolder.getRoot(), "bar"))); in mergeZipWithDeferredCrc()
125 File foo = mTemporaryFolder.newFile("foo"); in mergeZipKeepsDeflatedAndStored()
152 ZFile merged = closer.register(new ZFile(new File(mTemporaryFolder.getRoot(), "bar"))); in mergeZipKeepsDeflatedAndStored()
173 File foo = mTemporaryFolder.newFile("foo"); in mergeZipWithSorting()
191 ZFile merged = new ZFile(new File(mTemporaryFolder.getRoot(), "bar"))) { in mergeZipWithSorting()
DZipToolsTest.java71 public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in ZipToolsTest
102 File zfile = mTemporaryFolder.newFile("file.zip"); in cloneZipFile()
154 File zfile = new File (mTemporaryFolder.getRoot(), "zfile.zip"); in testReadZFile()
DZFileSortTest.java35 public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in ZFileSortTest
49 mFile = new File(mTemporaryFolder.getRoot(), "a.zip"); in before()
DExtraFieldTest.java48 public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in ExtraFieldTest
60 mZipFile = mTemporaryFolder.newFile(); in before()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zfile/
DApkAlignmentTest.java36 @Rule public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in ApkAlignmentTest
40 File apk = new File(mTemporaryFolder.getRoot(), "a.apk"); in soFilesUncompressedAndAligned()
42 File soFile = new File(mTemporaryFolder.getRoot(), "doesnt_work.so"); in soFilesUncompressedAndAligned()
80 File zipToMerge = new File(mTemporaryFolder.getRoot(), "a.zip"); in soFilesMergedFromZipsCanBeUncompressedAndAligned()
97 File apk = new File(mTemporaryFolder.getRoot(), "b.apk"); in soFilesMergedFromZipsCanBeUncompressedAndAligned()
137 File apk = new File(mTemporaryFolder.getRoot(), "a.apk"); in soFilesUncompressedAndNotAligned()
139 File soFile = new File(mTemporaryFolder.getRoot(), "doesnt_work.so"); in soFilesUncompressedAndNotAligned()
177 File zipToMerge = new File(mTemporaryFolder.getRoot(), "a.zip"); in soFilesMergedFromZipsCanBeUncompressedAndNotAligned()
194 File apk = new File(mTemporaryFolder.getRoot(), "b.apk"); in soFilesMergedFromZipsCanBeUncompressedAndNotAligned()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DTestAppInstallSetupTest.java77 private File mTemporaryFolder; field in TestAppInstallSetupTest
85 mTemporaryFolder = FileUtil.createTempDir("TestAppInstallSetupTest-tmp"); in setUp()
142 FileUtil.recursiveDelete(mTemporaryFolder); in tearDown()
450 Path directoryPath = createSubDirectory(mTemporaryFolder.toPath(), "an-external-apk-dir"); in setUp_emptyDirectoryWithNoThrowOption_installsNothing()
467 Path directoryPath = createSubDirectory(mTemporaryFolder.toPath(), "an-external-apk-dir"); in setUp_emptyDirectory_throwsException()
488 Path directoryPath = createSubDirectory(mTemporaryFolder.toPath(), "an-external-apk-dir"); in setUp_directoryNotContainingApkFiles_throwsException()
511 Path directoryPath = createSubDirectory(mTemporaryFolder.toPath(), "an-external-apk-dir"); in setUp_directoryContainingSingleApk_installsFile()
525 Path directoryPath = createSubDirectory(mTemporaryFolder.toPath(), "an-external-apk-dir"); in setUp_directoryContainingApksWithSamePackage_installsFiles()
541 Path directoryPath = createSubDirectory(mTemporaryFolder.toPath(), "an-external-apk-dir"); in setUp_directoryContainingApksWithDifferentPackages_installsSeparately()
561 Path directoryPath = createSubDirectory(mTemporaryFolder.toPath(), "an-external-apk-dir"); in setUp_directoryContainingApksInSubdirectories_installsFiles()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/utils/
DCachedFileContentsTest.java33 public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in CachedFileContentsTest
37 File f = mTemporaryFolder.newFile("test"); in createFileAndCheckWithNoChanges()
51 File f = mTemporaryFolder.newFile("test"); in createFileAndCheckChanges()
67 File f = mTemporaryFolder.newFile("test"); in createFileUpdateAndCheckChanges()
84 File f = mTemporaryFolder.newFile("foo"); in immediateChangesDetected()
96 File f = mTemporaryFolder.newFile("foo"); in immediateChangesDetectedEvenWithHackedTs()
110 File f = mTemporaryFolder.newFile("foo"); in immediateChangesWithNoContentChangeNotDetected()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DJarSigningTest.java44 public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in JarSigningTest
48 File zipFile = new File(mTemporaryFolder.getRoot(), "a.zip"); in signEmptyJar()
76 File zipFile = new File(mTemporaryFolder.getRoot(), "a.zip"); in signJarWithPrexistingSimpleTextFilePre18()
133 File zipFile = new File(mTemporaryFolder.getRoot(), "a.zip"); in signJarWithPrexistingSimpleTextFilePos18()
192 File zipFile = new File(mTemporaryFolder.getRoot(), "a.zip"); in v2SignAddsApkSigningBlock()
215 File zipFile = new File(mTemporaryFolder.getRoot(), "a.zip"); in v1ReSignOnFileChange()
307 File zipFile = new File(mTemporaryFolder.getRoot(), "a.zip"); in openSignedJarDoesNotForcesWriteIfSignatureIsNotCorrect()
355 File notUsed = mTemporaryFolder.newFile(); in openSignedJarDoesNotForcesWriteIfSignatureIsNotCorrect()
DManifestGenerationTest.java42 public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in ManifestGenerationTest
46 File zip = new File(mTemporaryFolder.getRoot(), "f.zip"); in elementaryManifestGeneration()
81 File zip = new File(mTemporaryFolder.getRoot(), "f.zip"); in manifestGenerationOnHalfWrittenFile()
117 File zip = new File(mTemporaryFolder.getRoot(), "f.zip"); in manifestGenerationOnExistingFile()
155 File zip = new File(mTemporaryFolder.getRoot(), "f.zip"); in manifestGenerationOnIncrementalNoChanges()
DFullApkSignTest.java47 public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in FullApkSignTest
51 File out = new File(mTemporaryFolder.getRoot(), "apk"); in testSignature()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/compress/
DMultiCompressorTest.java39 public TemporaryFolder mTemporaryFolder = new TemporaryFolder(); field in MultiCompressorTest
62 File zip = new File(mTemporaryFolder.getRoot(), "test.zip"); in storeIsBest()
79 File zip = new File(mTemporaryFolder.getRoot(), "test.zip"); in sameCompressionResultButBetterThanStore()
105 File defaultFile = new File(mTemporaryFolder.getRoot(), "default.zip");
106 File resultFile = new File(mTemporaryFolder.getRoot(), "result.zip");
135 File defaultFile = new File(mTemporaryFolder.getRoot(), "default.zip");
136 File resultFile = new File(mTemporaryFolder.getRoot(), "result.zip");