Home
last modified time | relevance | path

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

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowEnvironment.java62 return EXTERNAL_CACHE_DIR.toFile(); in getExternalStorageDirectory()
68 if (type == null) return EXTERNAL_FILES_DIR.toFile(); in getExternalStoragePublicDirectory()
75 return path.toFile(); in getExternalStoragePublicDirectory()
179 externalDirs.add(externalFileDir.toFile()); in addExternalDir()
191 userEnvironment, "mExternalStorageAndroidData", externalFileDir.toFile()); in addExternalDir()
203 return externalFileDir.toFile(); in addExternalDir()
DShadowSharedMemory.java46 tempDirectory.createIfNotExists("SharedMemory").resolve("shmem-" + name).toFile(); in nCreate()
DShadowUsbManager.java70 RuntimeEnvironment.getTempDirectory().createIfNotExists("usb-accessory").toFile(); in openAccessory()
DShadowAssetManager.java388 File outputDir = Files.createTempDirectory("robolectric_assets").toFile(); in getFileFromZip()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/
DTestUtils.java64 outputFolder.toFile().mkdirs(); in unzip()
66 try (ZipInputStream zis = new ZipInputStream(new FileInputStream(zipFile.toFile()))) { in unzip()
74 newFile.toFile().mkdirs(); in unzip()
77 try (FileOutputStream fos = new FileOutputStream(newFile.toFile())) { in unzip()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/share/
DJDWPUnitDebuggeeProcessWrapper.java336 if (!cur.toFile().exists()) { in FindPidFor()
351 if (!children.toFile().exists()) { in FindPidFor()
354 for (String child_pid : ReadChildPids(children.toFile())) { in FindPidFor()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/utils/
DSymbolSolverQuickSetup.java112 Optional<Path> root = JavaParser.parse(file.toFile()).getStorage() in visitFile()
115 typeSolver.add(new JavaParserTypeSolver(root.get().toFile())); in visitFile()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/manual/
DBulkParseTest.java44 workdir.toFile().mkdirs(); in parseOpenJdkLangToolsRepository()
100 testResults.toFile().mkdirs(); in writeResults()
/external/fonttools/Lib/fontTools/
DcffLib.py75 writer.toFile(file)
131 def toFile(self, file): member in CFFWriter
158 item.toFile(file)
208 def toFile(self, file): member in IndexCompiler
221 item.toFile(file)
261 def toFile(self, file): member in FDArrayIndexCompiler
274 item.toFile(file)
843 def toFile(self, file): member in CharsetCompiler
951 def toFile(self, file): member in EncodingCompiler
1202 def toFile(self, file): member in FDSelectCompiler
[all …]
/external/desugar/java/com/google/devtools/build/android/desugar/
DZipInputFileProvider.java34 this.zipFile = new ZipFile(root.toFile()); in ZipInputFileProvider()
DDirectoryInputFileProvider.java46 return new FileInputStream(root.resolve(filename).toFile()); in getInputStream()
DDesugar.java826 if (directory.toFile().exists()) { in deleteTree()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/
DSourceDebugExtensionDebuggee.java139 jarPath.toFile().deleteOnExit(); in getClassLoaderInitializedWithClassFile()
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DBytecodeTypeInferenceTest.java47 String golden = Files.asCharSource(GOLDEN_PATH.toFile(), StandardCharsets.UTF_8).read().trim(); in testTypeInference()
DBug62456849TestDataGenerator.java53 try (ZipFile inputZip = new ZipFile(inputJar.toFile()); in main()
DByteCodeTypePrinter.java41 try (ZipFile jarFile = new ZipFile(inputJarFile.toFile())) { in printClassesWithTypes()
/external/turbine/javatests/com/google/turbine/bytecode/sig/
DSigIntegrationTest.java45 new JarFile(Paths.get(System.getProperty("java.home")).resolve("lib/rt.jar").toFile())) { in roundTrip()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/
DSourceZip.java103 try (ZipFile zipFile = new ZipFile(zipPath.toFile())) { in parse()
/external/parameter-framework/upstream/parameter/
DParameterMgr.cpp2636 bool CParameterMgr::exportDomainsXml(string &xmlDest, bool withSettings, bool toFile, in exportDomainsXml() argument
2640 (toFile ? ('"' + xmlDest + '"') : "a user-provided buffer")); in exportDomainsXml()
2644 return wrapLegacyXmlExport(xmlDest, toFile, withSettings, *configurableDomains, errorMsg); in exportDomainsXml()
2648 bool withSettings, bool toFile, string &errorMsg) const in exportSingleDomainXml() argument
2651 (toFile ? ('"' + xmlDest + '"') : "a user-provided buffer")); in exportSingleDomainXml()
2661 return wrapLegacyXmlExport(xmlDest, toFile, withSettings, *requestedDomain, errorMsg); in exportSingleDomainXml()
2664 bool CParameterMgr::wrapLegacyXmlExport(string &xmlDest, bool toFile, bool withSettings, in wrapLegacyXmlExport() argument
2670 if (toFile) { in wrapLegacyXmlExport()
DParameterMgr.h350 bool exportDomainsXml(std::string &xmlDest, bool withSettings, bool toFile,
367 bool withSettings, bool toFile, std::string &errorMsg) const;
788 bool wrapLegacyXmlExport(std::string &xmlDest, bool toFile, bool withSettings,
/external/turbine/javatests/com/google/turbine/main/
DMainTest.java122 try (JarFile jf = new JarFile(output.toFile())) { in readJar()
/external/turbine/javatests/com/google/turbine/zip/
DZipTest.java110 try (JarFile jf = new JarFile(path.toFile())) { in expected()
/external/turbine/javatests/com/google/turbine/deps/
DAbstractTransitiveTest.java84 try (JarFile jf = new JarFile(libb.toFile())) { in readJar()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowEnvironmentTest.java46 …assertThat(path).isEqualTo(new File(ShadowEnvironment.EXTERNAL_FILES_DIR.toFile(), Environment.DIR… in getExternalStoragePublicDirectory_shouldReturnDirectory()
/external/mockftpserver/tags/2.x_Before_IDEA/src/main/groovy/org/mockftpserver/fake/filesystem/
DDefaultFileSystem.groovy192 File toFile = fileForPath(toPath)
193 return fileForPath(fromPath).renameTo(toFile)