Lines Matching refs:path
160 android::base::ScopeGuard<std::function<void()>> ScopedInaccessible(const std::string& path) { in ScopedInaccessible() argument
161 std::filesystem::perms old_perms = std::filesystem::status(path).permissions(); in ScopedInaccessible()
162 std::filesystem::permissions(path, std::filesystem::perms::none); in ScopedInaccessible()
163 return android::base::make_scope_guard([=]() { std::filesystem::permissions(path, old_perms); }); in ScopedInaccessible()
174 std::filesystem::path path(argv.substr(0, argv.find('\0'))); in GetAndroidBuildTop() local
175 path = std::filesystem::absolute(path); in GetAndroidBuildTop()
177 for (; path.parent_path() != path; path = path.parent_path()) { in GetAndroidBuildTop()
179 if (path.filename() == std::filesystem::path("linux-x86")) { in GetAndroidBuildTop()
180 android_build_top = path.parent_path().parent_path().parent_path(); in GetAndroidBuildTop()
185 if (path.filename() == std::filesystem::path("testcases") || in GetAndroidBuildTop()
186 path.filename().string().starts_with("host_testcases")) { in GetAndroidBuildTop()
187 android_build_top = path.append("art_common"); in GetAndroidBuildTop()
196 android_build_top = std::filesystem::path(android_build_top).string(); in GetAndroidBuildTop()
227 android_host_out = (std::filesystem::path(android_out_dir) / "host" / "linux-x86").string(); in GetAndroidHostOut()
230 (std::filesystem::path(GetAndroidBuildTop()) / android_out_dir / "host" / "linux-x86") in GetAndroidHostOut()
233 std::filesystem::path expected(android_host_out); in GetAndroidHostOut()
235 std::filesystem::path from_env(std::filesystem::weakly_canonical(android_host_out_from_env)); in GetAndroidHostOut()
388 std::string path = GetAndroidBuildTop() + ART_CLANG_PATH + "/bin/"; in GetAndroidTool()
389 CHECK(OS::DirectoryExists(path.c_str())) << path; in GetAndroidTool()
390 path += name; in GetAndroidTool()
391 CHECK(OS::FileExists(path.c_str())) << path; in GetAndroidTool()
392 return path; in GetAndroidTool()
517 std::string path = executable_dir + "/art-gtest-jars-" + name + ext; in GetTestDexFileName() local
518 if (OS::FileExists(path.c_str())) { in GetTestDexFileName()
519 return path; in GetTestDexFileName()
561 std::string path = android::base::GetExecutableDirectory() + "/art_boot_images"; in GetImageDirectory() local
562 if (OS::DirectoryExists(path.c_str())) { in GetImageDirectory()
563 return path; in GetImageDirectory()
567 path = "/system/framework/art_boot_images"; in GetImageDirectory()
568 if (OS::DirectoryExists(path.c_str())) { in GetImageDirectory()
569 return path; in GetImageDirectory()
573 path = "/data/local/tmp/art_boot_images"; in GetImageDirectory()
574 if (OS::DirectoryExists(path.c_str())) { in GetImageDirectory()
575 return path; in GetImageDirectory()