Home
last modified time | relevance | path

Searched refs:file_path (Results 1 – 15 of 15) sorted by relevance

/art/odrefresh/
Dodr_metrics_record_test.cc44 std::string file_path = dir.GetPath() + "/metrics-record.txt"; in TEST_F() local
47 std::ofstream ofs(file_path); in TEST_F()
55 std::ifstream ifs(file_path); in TEST_F()
74 std::string file_path = dir.GetPath() + "/metrics-record.txt"; in TEST_F() local
76 std::ifstream ifs(file_path); in TEST_F()
86 std::string file_path = dir.GetPath() + "/metrics-record.txt"; in TEST_F() local
88 std::ifstream ifs(file_path); in TEST_F()
100 std::string file_path = dir.GetPath() + "/metrics-record.txt"; in TEST_F() local
102 std::ofstream ofs(file_path); in TEST_F()
Dodr_fs_utils_test.cc39 static bool CreateFile(const char* file_path, size_t bytes) { in CreateFile() argument
40 std::unique_ptr<File> fp(OS::CreateEmptyFile(file_path)); in CreateFile()
82 for (const auto& file_path : file_paths) { in TEST_F() local
83 ASSERT_TRUE(CreateFile(file_path.c_str(), 4096)); in TEST_F()
94 for (const auto& file_path : file_paths) { in TEST_F() local
95 ASSERT_FALSE(OS::FileExists(file_path.c_str(), true)); in TEST_F()
Dodr_config.h121 void SetApexInfoListFile(const std::string& file_path) { apex_info_list_file_ = file_path; } in SetApexInfoListFile() argument
/art/dexdump/
Ddexdump_test.cc42 std::string file_path = GetArtBinDir() + "/dexdump"; in Exec() local
43 EXPECT_TRUE(OS::FileExists(file_path.c_str())) << file_path << " should be a valid file path"; in Exec()
44 std::vector<std::string> exec_argv = { file_path }; in Exec()
/art/dexlist/
Ddexlist_test.cc44 std::string file_path = GetArtBinDir() + "/dexlist"; in Exec() local
45 EXPECT_TRUE(OS::FileExists(file_path.c_str())) << file_path << " should be a valid file path"; in Exec()
46 std::vector<std::string> exec_argv = { file_path }; in Exec()
/art/imgdiag/
Dimgdiag_test.cc83 std::string file_path = GetImgDiagFilePath(); in Exec() local
84 EXPECT_TRUE(OS::FileExists(file_path.c_str())) << file_path << " should be a valid file path"; in Exec()
88 file_path, in Exec()
/art/tools/common/
Dcommon.py244 def WriteLines(self, file_path, lines): argument
330 def WriteLines(self, file_path, lines): argument
331 with open(file_path, 'w') as f:
358 for file_path in os.listdir(arch_cache_path):
359 file_path = '{0}/{1}'.format(arch_cache_path, file_path)
360 if os.path.isfile(file_path):
361 os.unlink(file_path)
411 def WriteLines(self, file_path, lines): argument
415 self._AdbPush(temp_file.name, file_path)
/art/dexoptanalyzer/
Ddexoptanalyzer_test.cc32 std::string file_path = GetArtBinDir() + "/dexoptanalyzer"; in GetDexoptAnalyzerCmd() local
34 file_path += 'd'; in GetDexoptAnalyzerCmd()
36 EXPECT_TRUE(OS::FileExists(file_path.c_str())) << file_path << " should be a valid file path"; in GetDexoptAnalyzerCmd()
37 return file_path; in GetDexoptAnalyzerCmd()
/art/libartbase/base/unix_file/
Dfd_file.h161 bool Open(const std::string& file_path, int flags);
162 bool Open(const std::string& file_path, int flags, mode_t mode);
/art/oatdump/
Doatdump_test.h174 std::string file_path = GetExecutableFilePath(flavor, "oatdump", /* bitness= */ false); variable
176 if (!OS::FileExists(file_path.c_str())) {
177 return ::testing::AssertionFailure() << file_path << " should be a valid file path";
181 std::vector<std::string> exec_argv = { file_path };
/art/tools/jfuzz/
Drun_jfuzz_test.py604 file_path = os.path.join(self._jfuzz_dir, file_name)
605 if os.path.isfile(file_path):
606 os.unlink(file_path)
607 elif os.path.isdir(file_path):
608 shutil.rmtree(file_path)
/art/tools/hiddenapi/
Dhiddenapi_test.cc34 std::string file_path = GetArtBinDir() + "/hiddenapi"; in GetHiddenApiCmd() local
36 file_path += 'd'; in GetHiddenApiCmd()
38 if (!OS::FileExists(file_path.c_str())) { in GetHiddenApiCmd()
39 LOG(FATAL) << "Could not find binary " << file_path; in GetHiddenApiCmd()
42 return file_path; in GetHiddenApiCmd()
/art/runtime/
Doat_file.cc165 bool ComputeFields(const std::string& file_path, std::string* error_msg);
345 bool OatFileBase::ComputeFields(const std::string& file_path, std::string* error_msg) { in ComputeFields() argument
350 file_path.c_str(), in ComputeFields()
357 file_path.c_str(), in ComputeFields()
370 StringPrintf("Failed to find oatdatabimgrelrolastword symbol in '%s'", file_path.c_str()); in ComputeFields()
384 *error_msg = StringPrintf("Failed to find oatbsslastword symbol in '%s'", file_path.c_str()); in ComputeFields()
403 *error_msg = StringPrintf("Failed to find oatdexlastword symbol in '%s'", file_path.c_str()); in ComputeFields()
/art/dexlayout/
Ddexlayout_test.cc545 bool UnlinkFile(const std::string& file_path) { in UnlinkFile() argument
546 return unix_file::FdFile(file_path, 0, false).Unlink(); in UnlinkFile()
/art/profman/
Dprofile_assistant_test.cc161 std::string file_path = GetArtBinDir() + "/profman"; in GetProfmanCmd() local
163 file_path += "d"; in GetProfmanCmd()
165 EXPECT_TRUE(OS::FileExists(file_path.c_str())) << file_path << " should be a valid file path"; in GetProfmanCmd()
166 return file_path; in GetProfmanCmd()