/art/libartbase/base/ |
D | os.h | 28 using File = ::unix_file::FdFile; variable 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);
|
D | os_linux.cc | 32 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() 61 File* OS::OpenFileWithFlags(const char* name, int flags, bool auto_flush) { in OpenFileWithFlags() 65 std::unique_ptr<File> file( in OpenFileWithFlags() 66 new File(name, flags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH, check_usage)); in OpenFileWithFlags()
|
D | file_magic.cc | 32 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/846-multidex-data-image/src-art/ |
D | Main.java | 19 import java.io.File; 28 File file = null; in main() 67 File image = new File(DEX_LOCATION + "/" + instructionSet + "/846-multidex-data-image.art"); in main() 86 private static File createTempFile() throws Exception { in createTempFile() 88 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 92 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 95 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
|
/art/test/595-profile-saving/src/ |
D | Main.java | 17 import java.io.File; 31 File file = null; in main() 32 File file2 = null; in main() 33 File file3 = null; in main() 71 File.class, Method.class); in main() 83 Method bootMethod = File.class.getDeclaredMethod("exists"); in main() 109 static void testAddMethodToProfile(File file, Method m) { in testAddMethodToProfile() 120 static void testMethodNotInProfile(File file, Method m) { in testMethodNotInProfile() 129 static void testProfileNotExist(File file) { in testProfileNotExist() 157 private static File createTempFile() throws Exception { in createTempFile() [all …]
|
/art/test/130-hprof/src/ |
D | Main.java | 17 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/817-hiddenapi/src-art/ |
D | Main.java | 18 import java.io.File; 58 if (new File(candidate).exists()) { in getNativeLibFileName() 74 File tempFile = new File(System.getenv("DEX_LOCATION"), tempFileName); in createNativeLibCopy() 75 Files.copy(new File(nativeLibFileName).toPath(), tempFile.toPath()); in createNativeLibCopy() 80 new File(new File(System.getenv("DEX_LOCATION"), "res"), "boot.jar").getAbsolutePath(); 82 new File(System.getenv("DEX_LOCATION"), "817-hiddenapi-ex.jar").getAbsolutePath();
|
/art/test/855-native/src-art/ |
D | Main.java | 17 import java.io.File; 27 private static File createTempFile() throws Exception { in createTempFile() 29 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 33 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 36 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 49 File tempFile = createTempFile(); in main()
|
/art/test/151-OpenFileLimit/src/ |
D | Main.java | 32 List<File> files = new ArrayList<File>(); in main() 36 File file = createTempFile(); in main() 72 private static File createTempFile() throws Exception { in createTempFile() 74 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 78 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 81 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
|
/art/test/odsign/src/com/android/tests/odsign/ |
D | ArtifactsSignedTest.java | 27 import java.io.File; 59 return new File(FS_VERITY_PROC_PATH).exists(); in isFsVeritySupported() 66 .that(getArtifacts().map(File::getPath).filter((path) -> !hasFsverityNative(path)) in testArtArtifactsHaveFsverity() 73 assertThat(getArtifacts().map(File::getName).collect(Collectors.toList())) in testGeneratesRequiredArtArtifacts() 82 private Stream<File> getArtifacts() throws Exception { in getArtifacts() 85 .filter(File::isFile); in getArtifacts()
|
/art/test/570-checker-osr/src/ |
D | DeoptimizationController.java | 20 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/test/802-deoptimization/src/ |
D | DeoptimizationController.java | 17 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/674-hiddenapi/src-art/ |
D | Main.java | 18 import java.io.File; 139 if (new File(candidate).exists()) { in prepareNativeLibFileName() 157 File tempFile = new File(System.getenv("DEX_LOCATION"), tempFileName); in createNativeLibCopy() 158 Files.copy(new File(nativeLibFileName).toPath(), tempFile.toPath()); in createNativeLibCopy() 173 new File(System.getenv("DEX_LOCATION"), "674-hiddenapi.jar").getAbsolutePath(); 175 new File(new File(System.getenv("DEX_LOCATION"), "res"), "boot.jar").getAbsolutePath(); 177 new File(System.getenv("DEX_LOCATION"), "674-hiddenapi-ex.jar").getAbsolutePath();
|
/art/test/2230-profile-save-hotness/src-art/ |
D | Main.java | 18 import java.io.File; 39 File file = null; in main() 85 private static File createTempFile() throws Exception { in createTempFile() 87 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 91 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 94 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
|
/art/imgdiag/ |
D | page_util.h | 38 bool GetPageFlagsOrCount(art::File& kpage_file, 43 bool GetPageFlagsOrCounts(art::File& kpage_file, 49 bool GetPageFrameNumber(art::File& page_map_file, 54 bool GetPageFrameNumbers(art::File& page_map_file,
|
D | page_util.cc | 25 bool GetPageFlagsOrCount(art::File& kpage_file, in GetPageFlagsOrCount() 35 bool GetPageFlagsOrCounts(File& kpage_file, in GetPageFlagsOrCounts() 67 bool GetPageFrameNumber(File& page_map_file, in GetPageFrameNumber() 75 bool GetPageFrameNumbers(File& page_map_file, in GetPageFrameNumbers()
|
/art/tools/dexfuzz/src/dexfuzz/listeners/ |
D | UniqueProgramTrackerListener.java | 23 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()
|
/art/tools/ahat/src/test/com/android/ahat/ |
D | OverviewHandlerTest.java | 21 import java.io.File; 31 new File("my.hprof.file"), in noCrash() 32 new File("my.base.hprof.file"), in noCrash()
|
/art/runtime/oat/ |
D | elf_file_impl.h | 47 static ElfFileImpl* Open(File* file, 52 static ElfFileImpl* Open(File* file, 124 bool Load(File* file, 130 bool Strip(File* file, std::string* error_msg); 133 ElfFileImpl(File* file, bool writable, bool program_header_only); 139 bool Setup(File* file, int prot, int flags, bool low_4gb, std::string* error_msg); 141 bool SetMap(File* file, MemMap&& map, std::string* error_msg); 165 bool CheckSectionsExist(File* file, std::string* error_msg) const;
|
D | elf_file.h | 43 static ElfFile* Open(File* file, 50 static ElfFile* Open(File* file, 57 bool Load(File* file, 89 static bool Strip(File* file, std::string* error_msg);
|
/art/test/2271-profile-inline-cache/src/ |
D | Main.java | 17 import java.io.File; 24 private static File sFile = null; 168 private static void checkMethodHasInlineCache(File file, Method m, Class<?>... targetTypes) { in checkMethodHasInlineCache() 179 private static void checkMethodHasNoInlineCache(File file, Method m) { in checkMethodHasNoInlineCache() 202 private static File createTempFile() throws Exception { in createTempFile() 204 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 208 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 211 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
|
/art/tools/ahat/src/main/com/android/ahat/ |
D | Main.java | 27 import java.io.File; 66 private static AhatSnapshot loadHeapDump(File hprof, in loadHeapDump() 99 File hprof = null; in main() 100 File hprofbase = null; in main() 111 map.readFromFile(new File(args[i])); in main() 119 mapbase.readFromFile(new File(args[i])); in main() 131 hprofbase = new File(args[i]); in main() 152 hprof = new File(args[i]); in main()
|
/art/test/530-regression-lse/src/ |
D | Main.java | 17 import java.io.File; 38 File f = File.createTempFile("mapped", "tmp"); in allocateMapped()
|
/art/runtime/gc/space/ |
D | image_space.h | 138 ArrayRef<File> boot_class_path_files, 139 ArrayRef<File> boot_class_path_image_files, 140 ArrayRef<File> boot_class_path_vdex_files, 141 ArrayRef<File> boot_class_path_oat_files, 293 ArrayRef<File> dex_files, 350 ArrayRef<File> boot_class_path_files, in BootImageLayout() 351 ArrayRef<File> boot_class_path_image_files, in BootImageLayout() 352 ArrayRef<File> boot_class_path_vdex_files, in BootImageLayout() 353 ArrayRef<File> boot_class_path_oat_files, in BootImageLayout() 462 ArrayRef<File> boot_class_path_files_; [all …]
|
/art/libarttools/ |
D | art_exec_test.cc | 103 ScratchFile scratch_file(new File(mkstemp(filename.data()), filename, /*check_usage=*/false)); in TEST_F() 148 std::unique_ptr<File> file1(OS::OpenFileForReading("/dev/zero")); in TEST_F() 149 std::unique_ptr<File> file2(OS::OpenFileForReading("/dev/zero")); in TEST_F() 150 std::unique_ptr<File> file3(OS::OpenFileForReading("/dev/zero")); in TEST_F() 156 ScratchFile scratch_file(new File(mkstemp(filename.data()), filename, /*check_usage=*/false)); in TEST_F() 185 ScratchFile scratch_file(new File(mkstemp(filename.data()), filename, /*check_usage=*/false)); in TEST_F() 201 ScratchFile scratch_file(new File(mkstemp(filename.data()), filename, /*check_usage=*/false)); in TEST_F()
|