Home
last modified time | relevance | path

Searched refs:temporaryFolder (Results 1 – 25 of 29) sorted by relevance

12

/tools/metalava/metalava-testing/src/main/java/com/android/tools/metalava/testing/
DTemporaryFolderOwner.kt27 val temporaryFolder: TemporaryFolder constant
42 val dir = File(temporaryFolder.root.path, children) in newFolder()
46 temporaryFolder.newFolder(children) in newFolder()
51 val dir = File(temporaryFolder.root.path, children) in newFile()
55 temporaryFolder.newFile(children) in newFile()
71 s = s.replace(temporaryFolder.root.path, "TESTROOT") in cleanupString()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/common/
DPreviouslyReleasedApiTest.kt30 @get:Rule override val temporaryFolder = TemporaryFolder() constant in com.android.tools.metalava.cli.common.PreviouslyReleasedApiTest
47 .createFile(temporaryFolder.root) in check multiple signature files()
50 .createFile(temporaryFolder.root) in check multiple signature files()
62 private fun fakeJar(name: String) = source(name, "PK...").createFile(temporaryFolder.root) in fakeJar()
93 signature("removed.txt", "// Signature format: 2.0\n").createFile(temporaryFolder.root) in check mixture of signature and jar()
DBaseCommandTest.kt54 @get:Rule override val temporaryFolder = TemporaryFolder() constant in com.android.tools.metalava.cli.common.BaseCommandTest
130 fun folder(path: String): File = test.temporaryFolder.newFolder(path) in folder()
141 val f = parentDir?.resolve(name) ?: test.temporaryFolder.newFile(name) in folder()
156 val f = parentDir?.resolve(name) ?: test.temporaryFolder.newFile(name) in outputFile()
DMetalavaCommandTest.kt32 @get:Rule override val temporaryFolder = TemporaryFolder() constant in com.android.tools.metalava.cli.common.MetalavaCommandTest
83 val file = temporaryFolder.newFile("invalid-argument") in Test error handling when invalid option in an argument file()
DBaseOptionGroupTest.kt36 @get:Rule override val temporaryFolder = TemporaryFolder() constant in com.android.tools.metalava.cli.common.BaseOptionGroupTest
/tools/metalava/metalava-model-testsuite-cli/src/test/java/com/android/tools/metalava/model/testsuite/cli/
DUpdateBaselineCommandTest.kt29 @get:Rule val temporaryFolder = TemporaryFolder() constant in com.android.tools.metalava.model.testsuite.cli.UpdateBaselineCommandTest
62 val projectDir = temporaryFolder.newFolder("project") in Test update file()
75 val testReportFile1 = temporaryFolder.newFile("TEST-Class1.xml") in Test update file()
103 val testReportFile2 = temporaryFolder.newFile("TEST-Class2.xml") in Test update file()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/apilevels/
DApiGeneratorTest.kt54 val apiVersionsXml = temporaryFolder.newFile("api-versions.xml") in <lambda>()
156 val apiVersionsXml = temporaryFolder.newFile("api-versions.xml") in <lambda>()
229 val apiVersionsXml = temporaryFolder.newFile("api-versions.xml") in <lambda>()
282 val apiVersionsXml = temporaryFolder.newFile("api-versions.xml") in <lambda>()
396 val output = temporaryFolder.newFile("api-info.json") in <lambda>()
474 val output = temporaryFolder.newFile("api-info.json") in <lambda>()
499 val output = temporaryFolder.newFile("api-info.json") in <lambda>()
529 val output = temporaryFolder.newFile("api-info.json") in <lambda>()
629 val output = temporaryFolder.newFile("api-info.json") in <lambda>()
715 signature(name, contents).createFile(temporaryFolder.newFolder()) in <lambda>()
DCorrectApiLevelForReleaseTest.kt68 val apiLookup = getApiLookup(output, temporaryFolder.newFolder()) in Correct API Level for release()
DCorrectApiLevelForNonReleaseTest.kt69 val apiLookup = getApiLookup(output, temporaryFolder.newFolder()) in Correct API Level for non-release()
DExtractPublicApiLevelsTest.kt82 val apiLookup = getApiLookup(output, temporaryFolder.newFolder()) in Extract API levels()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/compatibility/
DCompatibilityCheckOptionsTest.kt83 signature("released.txt", "// Signature format: 2.0\n").createFile(temporaryFolder.root) in createOptions()
101 .createFile(temporaryFolder.root) in check compatibility api released multiple files()
104 .createFile(temporaryFolder.root) in check compatibility api released multiple files()
127 signature("removed.txt", "// Signature format: 2.0\n").createFile(temporaryFolder.root) in check compatibility removed api released()
145 private fun fakeJar() = source("some.jar", "PK...").createFile(temporaryFolder.root) in fakeJar()
167 signature("removed.txt", "// Signature format: 2.0\n").createFile(temporaryFolder.root) in check compatibility api released mixture of signature and jar()
/tools/metalava/metalava-testing/src/test/java/com/android/tools/metalava/testing/
DMutableBaselineFileTest.kt28 @get:Rule val temporaryFolder = TemporaryFolder() constant in com.android.tools.metalava.testing.MutableBaselineFileTest
32 val projectDir = temporaryFolder.newFolder("project") in Update file()
83 val projectDir = temporaryFolder.newFolder("project") in Write empty()
99 val projectDir = temporaryFolder.newFolder("project") in Write empty after removing last failure()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileReadOnlyTest.java33 public TemporaryFolder temporaryFolder = new TemporaryFolder(); field in ZFileReadOnlyTest
38 new ZFile(new File(temporaryFolder.getRoot(), "foo.zip"), new ZFileOptions(), true); in cannotCreateRoFileOnNonExistingFile()
47 File zip = new File(temporaryFolder.getRoot(), "foo.zip"); in makeTestZip()
81 File folder = temporaryFolder.newFolder(); in cannotAddRecursivelyInRoMode()
120 try (ZFile toMerge = new ZFile(new File(temporaryFolder.getRoot(), "a.zip"))) { in cannotMergeInRoMode()
/tools/tradefederation/core/javatests/com/android/tradefed/config/
DDynamicRemoteFileResolverTest.java84 @Rule public final TemporaryFolder temporaryFolder = new TemporaryFolder(); field in DynamicRemoteFileResolverTest
130 File fake = temporaryFolder.newFile(); in testResolve()
154 File fake = temporaryFolder.newFile(); in testResolveWithQuery()
202 File fake = temporaryFolder.newFile(); in testResolve_remoteFileList()
235 File fake = temporaryFolder.newFile(); in testResolve_remoteFileList_downloadError()
266 File fake = temporaryFolder.newFile(); in testResolve_remoteMap()
267 File fake2 = temporaryFolder.newFile(); in testResolve_remoteMap()
297 File fake = temporaryFolder.newFile(); in testResolve_remoteMultiMap()
298 File fake2 = temporaryFolder.newFile(); in testResolve_remoteMultiMap()
299 File fake3 = temporaryFolder.newFile(); in testResolve_remoteMultiMap()
[all …]
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/signature/
DSignatureFormatOptionsTest.kt114 val path = source("api.txt", "// Signature format: 3.0\n").createFile(temporaryFolder.root) in --use-same-format-as reads from a valid file and ignores --format()
122 val path = source("api.txt", "").createFile(temporaryFolder.root) in --use-same-format-as ignores empty file and falls back to format()
130 val path = source("api.txt", "// Signature format: 2.0\n").createFile(temporaryFolder.root) in --use-same-format-as will honor --format-defaults overloaded-method-order=source()
156 source("api.txt", "// Not a signature file").createFile(temporaryFolder.root).path in --use-same-format-as fails to read from an invalid file()
/tools/metalava/metalava-model-psi/src/test/java/com/android/tools/metalava/model/psi/
DPsiSourceParserTest.kt39 @get:Rule override val temporaryFolder = TemporaryFolder() in <lambda>() constant in com.android.tools.metalava.model.psi.PsiSourceParserTest
60 projectDir = temporaryFolder.newFolder() in <lambda>()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DFileChannelDataSourceTest.java35 @Rule public TemporaryFolder temporaryFolder = new TemporaryFolder(); field in FileChannelDataSourceTest
109 File dataFile = temporaryFolder.newFile(); in createRaf()
DResources.java193 TemporaryFolder temporaryFolder) throws IOException { in toFile() argument
194 File outFile = temporaryFolder.newFile(); in toFile()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DDriverTest.kt97 @get:Rule override val temporaryFolder = TemporaryFolder() in <lambda>() constant in com.android.tools.metalava.DriverTest
124 return File(temporaryFolder.root.path, "public-api.txt") in <lambda>()
342 val baselineFile = temporaryFolder.newFile(filename) in <lambda>()
351 else temporaryFolder.newFile("update-$filename") in <lambda>()
861 removedApiFile = temporaryFolder.newFile("removed.txt") in <lambda>()
874 dexApiFile = temporaryFolder.newFile("public-dex.txt") in <lambda>()
883 subtractApiFile = temporaryFolder.newFile("subtract-api.txt") in <lambda>()
911 applyApiLevelsXmlFile = temporaryFolder.newFile("api-versions.xml") in <lambda>()
969 extractedAnnotationsZip = temporaryFolder.newFile("extracted-annotations.zip") in <lambda>()
979 validateNullabilityTxt = temporaryFolder.newFile("validate-nullability.txt") in <lambda>()
[all …]
DSymlinkTest.kt86 extraArguments = arrayOf("--pwd", temporaryFolder.root.path), in <lambda>()
DMainCommandTest.kt361 val dir = temporaryFolder.newFolder() in Test for @file()
/tools/apksig/src/test/java/com/android/apksig/internal/apk/
DApkSigningBlockUtilsTest.java32 @Rule public TemporaryFolder temporaryFolder = new TemporaryFolder(); field in ApkSigningBlockUtilsTest
47 File dataFile = temporaryFolder.newFile("fake.apk"); in setUp()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/lint/
DApiLintOptionsTest.kt64 signature("released.txt", "// Signature format: 2.0\n").createFile(temporaryFolder.root) in createOptions()
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/
DBaseModelTest.kt84 @get:Rule override val temporaryFolder = TemporaryFolder() in <lambda>() constant in com.android.tools.metalava.model.testsuite.BaseModelTest
176 val tempDir = temporaryFolder.newFolder() in <lambda>()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/compatibility/
DFastPathTest.kt93 .createFile(temporaryFolder.newFolder()) in checkFastPath()

12