Home
last modified time | relevance | path

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

12

/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()
178 externalDirs.add(externalFileDir.toFile()); in addExternalDir()
190 userEnvironment, "mExternalStorageAndroidData", externalFileDir.toFile()); in addExternalDir()
202 return externalFileDir.toFile(); in addExternalDir()
DShadowSharedMemory.java83 .toFile(); in nCreate()
DShadowParcelFileDescriptor.java78 RuntimeEnvironment.getTempDirectory().create(PIPE_TMP_DIR).toFile(), PIPE_FILE_NAME); in createPipe()
DShadowUsbManager.java213 RuntimeEnvironment.getTempDirectory().createIfNotExists("usb-accessory").toFile(); in openAccessory()
/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.java344 if (!cur.toFile().exists()) { in FindPidFor()
359 if (!children.toFile().exists()) { in FindPidFor()
363 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/cldr/tools/java/org/unicode/cldr/util/
DFileCopier.java120 Writer wr = new FileWriter(Paths.get(targetDirectory, newName).toFile());) { in copy() argument
171 replacements, new FileWriter(Paths.get(destDir, destFile).toFile())); in copyAndReplace()
/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/cffLib/
D__init__.py145 writer.toFile(file)
312 def toFile(self, file): member in CFFWriter
344 item.toFile(file)
412 def toFile(self, file): member in IndexCompiler
430 item.toFile(file)
470 def toFile(self, file): member in TopDictIndexCompiler
472 self.items[0].toFile(file)
474 super(TopDictIndexCompiler, self).toFile(file)
491 def toFile(self, file): member in FDArrayIndexCompiler
507 item.toFile(file)
[all …]
/external/desugar/java/com/google/devtools/build/android/desugar/io/
DZipInputFileProvider.java34 this.zipFile = new ZipFile(root.toFile()); in ZipInputFileProvider()
DDirectoryInputFileProvider.java46 return new FileInputStream(root.resolve(filename).toFile()); in getInputStream()
/external/turbine/javatests/com/google/turbine/main/
DMainTest.java123 try (JarFile jf = new JarFile(output.toFile())) { in readJar()
185 try (JarFile jarFile = new JarFile(output.toFile())) { in testManifest()
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/aosp/
DRepackagingTransform.java261 return new DirectoryInputFileGenerator(sourceDir.toFile()); in getInputFileGenerator()
271 File outputDir = targetDir.toFile(); in getOutputSourceFileGenerator()
/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/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/zip/
DZipTest.java110 try (JarFile jf = new JarFile(path.toFile())) { in expected()
/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/turbine/javatests/com/google/turbine/deps/
DAbstractTransitiveTest.java80 try (JarFile jf = new JarFile(libb.toFile())) { in readJar()
/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)
/external/grpc-grpc-java/gae-interop-testing/gae-jdk7/
Dbuild.gradle106 … = new XmlParser().parse(projectPath.resolve("src/main/webapp/WEB-INF/appengine-web.xml").toFile())

12