Home
last modified time | relevance | path

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

1234

/art/libartbase/base/
Dos.h28 typedef ::unix_file::FdFile File; typedef
35 static File* OpenFileForReading(const char* name);
38 static File* OpenFileReadWrite(const char* name);
42 static File* CreateEmptyFile(const char* name);
46 static File* CreateEmptyFileWriteOnly(const char* name);
49 static File* OpenFileWithFlags(const char* name, int flags, bool auto_flush = true);
Dos_linux.cc32 File* OS::OpenFileForReading(const char* name) { in OpenFileForReading()
36 File* OS::OpenFileReadWrite(const char* name) { in OpenFileReadWrite()
40 static File* CreateEmptyFile(const char* name, int extra_flags) { in CreateEmptyFile()
48 File* OS::CreateEmptyFile(const char* name) { in CreateEmptyFile()
52 File* OS::CreateEmptyFileWriteOnly(const char* name) { in CreateEmptyFileWriteOnly()
56 File* OS::OpenFileWithFlags(const char* name, int flags, bool auto_flush) { in OpenFileWithFlags()
60 std::unique_ptr<File> file(new File(name, flags, 0666, check_usage)); in OpenFileWithFlags()
Dfile_magic.cc32 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { in OpenAndReadMagic()
34 File fd(filename, O_RDONLY, /* check_usage */ false); in OpenAndReadMagic()
37 return File(); in OpenAndReadMagic()
41 return File(); in OpenAndReadMagic()
/art/test/595-profile-saving/src/
DMain.java17 import java.io.File;
26 File file = null; in main()
36 File.class, Method.class); in main()
40 Method bootMethod = File.class.getDeclaredMethod("delete"); in main()
52 static void testAddMethodToProfile(File file, Method m) { in testAddMethodToProfile()
76 private static File createTempFile() throws Exception { in createTempFile()
78 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
82 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
85 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
/art/test/130-hprof/src/
DMain.java17 import java.io.File;
53 File dumpFile = null; in createDumpAndConv()
54 File convFile = null; in createDumpAndConv()
63 File hprof_conv = getHprofConf(); in createDumpAndConv()
185 private static File getHprofConf() { in getHprofConf()
187 File libDir = new File(System.getProperty("java.library.path").split(":")[0]); in getHprofConf()
188 return new File(new File(libDir.getParentFile(), "bin"), "hprof-conv"); in getHprofConf()
191 private static File createDump() { in createDump()
194 File f = getDumpFile(); in createDump()
233 private static File getDumpFile() { in getDumpFile()
[all …]
/art/test/151-OpenFileLimit/src/
DMain.java29 List<File> files = new ArrayList<File>(); in main()
33 File file = createTempFile(); in main()
68 private static File createTempFile() throws Exception { in createTempFile()
70 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
74 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
77 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
/art/test/909-attach-agent/src-art/
DMain.java23 import java.io.File;
60 File tmp = null; in attachWithClassLoader()
62 tmp = File.createTempFile("lib", ".so"); in attachWithClassLoader()
86 private static void prepare(String in, File tmp) throws Exception { in prepare()
88 File orig = find(in); in prepare()
110 private static File find(String in) { in find()
113 File f = new File(path + "/" + in); in find()
/art/test/674-hiddenapi/src-art/
DMain.java20 import java.io.File;
120 if (new File(candidate).exists()) { in prepareNativeLibFileName()
133 ZipFile zip = new ZipFile(new File(jarFileName)); in readDexFile()
154 File tempFile = new File(System.getenv("DEX_LOCATION"), tempFileName); in createNativeLibCopy()
155 Files.copy(new File(nativeLibFileName).toPath(), tempFile.toPath()); in createNativeLibCopy()
170 new File(System.getenv("DEX_LOCATION"), "674-hiddenapi.jar").getAbsolutePath();
172 new File(new File(System.getenv("DEX_LOCATION"), "res"), "boot.jar").getAbsolutePath();
174 new File(System.getenv("DEX_LOCATION"), "674-hiddenapi-ex.jar").getAbsolutePath();
/art/test/802-deoptimization/src/
DDeoptimizationController.java17 import java.io.File;
28 private static File createTempFile() throws Exception { in createTempFile()
30 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
34 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
37 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
43 File tempFile = null; in startDeoptimization()
/art/test/570-checker-osr/src/
DDeoptimizationController.java20 import java.io.File;
31 private static File createTempFile() throws Exception { in createTempFile()
33 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
37 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
40 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
46 File tempFile = null; in startDeoptimization()
/art/tools/ahat/src/test/com/android/ahat/
DOverviewHandlerTest.java20 import java.io.File;
30 new File("my.hprof.file"), in noCrash()
31 new File("my.base.hprof.file")); in noCrash()
/art/runtime/
Delf_file.h41 static ElfFile* Open(File* file,
49 static ElfFile* Open(File* file,
56 bool Load(File* file, bool executable, bool low_4gb, std::string* error_msg);
82 static bool Strip(File* file, std::string* error_msg);
86 static bool Fixup(File* file, uint64_t oat_data_begin);
Delf_file_impl.h47 static ElfFileImpl* Open(File* file,
53 static ElfFileImpl* Open(File* file,
118 bool Load(File* file, bool executable, bool low_4gb, std::string* error_msg);
131 bool Strip(File* file, std::string* error_msg);
134 ElfFileImpl(File* file, bool writable, bool program_header_only, uint8_t* requested_base);
136 bool Setup(File* file, int prot, int flags, bool low_4gb, std::string* error_msg);
138 bool SetMap(File* file, MemMap* map, std::string* error_msg);
162 bool CheckSectionsExist(File* file, std::string* error_msg) const;
/art/tools/ahat/src/main/com/android/ahat/
DOverviewHandler.java22 import java.io.File;
28 private File mHprof;
29 private File mBaseHprof;
31 public OverviewHandler(AhatSnapshot snapshot, File hprof, File basehprof) { in OverviewHandler()
DMain.java25 import java.io.File;
61 private static AhatSnapshot loadHeapDump(File hprof, ProguardMap map) { in loadHeapDump()
93 File hprof = null; in main()
94 File hprofbase = null; in main()
104 map.readFromFile(new File(args[i])); in main()
112 mapbase.readFromFile(new File(args[i])); in main()
124 hprofbase = new File(args[i]); in main()
131 hprof = new File(args[i]); in main()
/art/tools/dexfuzz/src/dexfuzz/listeners/
DUniqueProgramTrackerListener.java23 import java.io.File;
112 File file = new File(databaseFile); in loadUniqueProgsData()
139 File file = new File(databaseFile); in saveUniqueProgsData()
196 File before = new File(fuzzedFile); in saveDivergentProgram()
197 File after = new File(String.format("divergent_programs/%d.dex", currentSeed)); in saveDivergentProgram()
DBisectionSearchListener.java23 import java.io.File;
79 File expected_output_file = File.createTempFile("expected_output", ".txt"); in handleDivergences()
/art/test/530-regression-lse/src/
DMain.java17 import java.io.File;
38 File f = File.createTempFile("mapped", "tmp"); in allocateMapped()
/art/test/676-resolve-field-type/src-art/
DMain.java18 import java.io.File;
28 new File(System.getenv("DEX_LOCATION"), "676-resolve-field-type-ex.jar").getAbsolutePath();
/art/compiler/linker/
Dfile_output_stream.h29 explicit FileOutputStream(File* file);
40 File* const file_;
/art/dex2oat/linker/
Doat_writer.h150 File&& zip_fd,
172 bool WriteAndOpenDexFiles(File* vdex_file,
289 File* file,
293 File* file,
296 bool SeekToDexFile(OutputStream* out, File* file, OatDexFile* oat_dex_file);
299 File* file,
303 File* file,
305 File* dex_file);
310 bool OpenDexFiles(File* file,
370 std::vector<std::unique_ptr<File>> raw_dex_files_;
Delf_writer.h47 static void GetOatElfInformation(File* file,
54 static bool Fixup(File* file, uintptr_t oat_data_begin);
/art/compiler/jit/
Djit_logger.h126 std::unique_ptr<File> perf_file_;
127 std::unique_ptr<File> jit_dump_file_;
/art/test/545-tracing-and-jit/src/
DMain.java17 import java.io.File;
33 private static File file;
52 private static File createTempFile() throws Exception { in createTempFile()
54 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
58 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
61 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
/art/test/150-loadlibrary/src/
DMain.java17 import java.io.File;
37 if (new File(candidate).exists()) { in main()

1234