/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/595-profile-saving/src/ |
D | Main.java | 17 import java.io.File; 26 File file = null; in main() 39 File.class, Method.class); in main() 43 Method bootMethod = File.class.getDeclaredMethod("delete"); in main() 62 static void testAddMethodToProfile(File file, Method m) { in testAddMethodToProfile() 73 static void testMethodNotInProfile(File file, Method m) { in testMethodNotInProfile() 97 private static File createTempFile() throws Exception { in createTempFile() 99 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 103 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 106 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile()
|
/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/151-OpenFileLimit/src/ |
D | Main.java | 29 List<File> files = new ArrayList<File>(); in main() 33 File file = createTempFile(); in main() 69 private static File createTempFile() throws Exception { in createTempFile() 71 return File.createTempFile(TEMP_FILE_NAME_PREFIX, TEMP_FILE_NAME_SUFFIX); in createTempFile() 75 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()
|
/art/test/909-attach-agent/src-art/ |
D | Main.java | 23 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/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/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/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/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/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/tools/ahat/src/main/com/android/ahat/ |
D | OverviewHandler.java | 23 import java.io.File; 29 private File mHprof; 30 private File mBaseHprof; 33 public OverviewHandler(AhatSnapshot snapshot, File hprof, File basehprof, Reachability retained) { in OverviewHandler()
|
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/runtime/ |
D | elf_file_impl.h | 46 static ElfFileImpl* Open(File* file, 51 static ElfFileImpl* Open(File* file, 120 bool Load(File* file, 126 bool Strip(File* file, std::string* error_msg); 129 ElfFileImpl(File* file, bool writable, bool program_header_only); 135 bool Setup(File* file, int prot, int flags, bool low_4gb, std::string* error_msg); 137 bool SetMap(File* file, MemMap&& map, std::string* error_msg); 161 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, 87 static bool Strip(File* file, std::string* error_msg);
|
/art/test/530-regression-lse/src/ |
D | Main.java | 17 import java.io.File; 38 File f = File.createTempFile("mapped", "tmp"); in allocateMapped()
|
/art/test/676-resolve-field-type/src/ |
D | Main.java | 18 import java.io.File; 28 new File(System.getenv("DEX_LOCATION"), "676-resolve-field-type-ex.jar").getAbsolutePath();
|
/art/libelffile/stream/ |
D | file_output_stream.h | 28 explicit FileOutputStream(File* file); 39 File* const file_;
|
/art/test/693-vdex-inmem-loader-evict/src/ |
D | Main.java | 19 import java.io.File; 88 File folder = new File(DEX_LOCATION, "oat"); in getCurrentCacheSize() 89 File[] subfolders = folder.listFiles(); in getCurrentCacheSize() 94 for (File f : folder.listFiles()) { in getCurrentCacheSize()
|
/art/test/831-unverified-bcp/src/ |
D | Main.java | 18 import java.io.File; 41 new File(System.getenv("DEX_LOCATION"), "831-unverified-bcp-ex.jar").getAbsolutePath();
|
/art/tools/dexfuzz/src/dexfuzz/ |
D | Options.java | 22 import java.io.File; 219 File folder = new File(value); in handleKeyValueOption() 223 for (File file : folder.listFiles()) { in handleKeyValueOption() 333 File seedFile = new File("fuzzingseed.dex"); in validateOptions() 350 File likelihoodsFile = new File("likelihoods.txt"); in validateOptions()
|