Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 186) sorted by relevance

12345678

/art/libarttools/
Dtools.cc77 bool PartialMatch(const std::filesystem::path& pattern, const std::filesystem::path& path_prefix) { in PartialMatch()
78 for (std::filesystem::path::const_iterator pattern_it = pattern.begin(), in PartialMatch()
97 bool FullMatchRecursive(const std::filesystem::path& pattern, in FullMatchRecursive()
98 std::filesystem::path::const_iterator pattern_it, in FullMatchRecursive()
99 const std::filesystem::path& path, in FullMatchRecursive() argument
100 std::filesystem::path::const_iterator path_it, in FullMatchRecursive()
102 if (pattern_it == pattern.end() && path_it == path.end()) { in FullMatchRecursive()
110 std::filesystem::path::const_iterator next_pattern_it = pattern_it; in FullMatchRecursive()
112 pattern, ++next_pattern_it, path, path_it, /*double_asterisk_visited=*/true) || in FullMatchRecursive()
113 (path_it != path.end() && FullMatchRecursive(pattern, pattern_it, path, ++path_it)); in FullMatchRecursive()
[all …]
/art/test/testrunner/
Denv.py21 _THIS_DIR = os.path.dirname(os.path.realpath(__file__))
22 _TOP = os.path.join(_THIS_DIR, "../../..")
23 _VAR_CACHE_DIR = os.path.join(_TOP, "art/tools/build/")
26 sys.path.append(_VAR_CACHE_DIR)
60 this_file_path = os.path.realpath(__file__)
61 path_to_top = os.path.join(os.path.dirname(this_file_path), '../../../')
62 path_to_top = os.path.realpath(path_to_top)
64 if not os.path.exists(os.path.join(path_to_top, 'build/envsetup.sh')):
132 HOST_OUT_EXECUTABLES = os.path.join(ANDROID_BUILD_TOP,
139 ANDROID_JAVA_TOOLCHAIN = os.path.join(ANDROID_BUILD_TOP,
[all …]
/art/tools/
Dgenerate_cmake_lists.py46 this_file_path = os.path.realpath(__file__)
47 path_to_top = os.path.join(os.path.dirname(this_file_path), '../..')
48 path_to_top = os.path.realpath(path_to_top)
50 if not os.path.exists(os.path.join(path_to_top, 'build/envsetup.sh')):
74 out_art_cmakelists_dir = os.path.join(ANDROID_BUILD_TOP,
82 if (os.path.samefile(root, out_art_cmakelists_dir)):
90 f = open(os.path.join(out_art_cmakelists_dir, 'CMakeLists.txt'), 'w')
Dcompile-jar.py26 import os.path
39 default=os.path.expandvars("$ANDROID_HOST_OUT/bin/dex2oatd64"),
50 default=os.path.expandvars("$ANDROID_HOST_OUT/bin/profmand"),
106 os.path.expandvars(
117 os.path.expandvars(
138 os.path.expandvars(
194 os.path.join(location_base, os.path.basename(f))))
208 location_base = os.path.expandvars("${ANDROID_HOST_OUT}/framework/")
210 boot_image = os.path.expandvars(
212 android_root = os.path.expandvars("$ANDROID_HOST_OUT")
[all …]
Dtest_presubmit.py31 THIS_PATH = os.path.dirname(os.path.realpath(__file__))
59 path = pathlib.Path(f)
60 return str(path) in tool_dict['interesting_files']
151 os.chdir(os.path.join(THIS_PATH, '..')) # run tool relative to 'art' directory
/art/test/utils/
Dregen-test-files36 ME = os.path.basename(sys.argv[0])
374 self.art_dir = os.path.join(top_dir, "art")
376 self.art_test_dir = os.path.join(self.art_dir, "test")
378 self.mts_config_dir = os.path.join(
388 run_test_path = os.path.join(self.art_test_dir, run_test)
389 metadata_file = os.path.join(run_test_path, "test-metadata.json")
391 if os.path.exists(metadata_file):
422 run_test_path = os.path.join(self.art_test_dir, run_test)
426 if (os.path.isfile(os.path.join(run_test_path, "generate-sources")) or
427 os.path.isfile(os.path.join(run_test_path, "javac_post.sh"))):
[all …]
/art/tools/checker/
Dchecker.py72 def find_checker_files(path): argument
77 if not path:
79 elif os.path.isfile(path):
80 return [path]
81 elif os.path.isdir(path):
83 for root, dirs, files in os.walk(path):
85 extension = os.path.splitext(file)[1]
87 found_files.append(os.path.join(root, file))
90 Logger.fail('Source path "{}" not found'.format(path))
96 checker_file = parse_checker_stream(os.path.basename(check_filename),
/art/libartbase/base/
Dcommon_art_test.cc160 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()
[all …]
Dscoped_flock.h57 static ScopedFlock DupOf(const int fd, const std::string& path,
71 LockedFile(int fd, const std::string& path, bool check_usage, bool read_only_mode) in LockedFile() argument
72 : FdFile(fd, path, check_usage, read_only_mode) { in LockedFile()
/art/build/apex/
Dart_apex_test.py23 import os.path
70 _, apex_name = os.path.split(apex_path)
71 extract_path = os.path.join(tmpdir, apex_name)
72 if os.path.exists(extract_path):
106 def get(self, path): argument
107 apex_dir, name = os.path.split(path)
117 dirname = os.path.join(self._apex, apex_dir)
118 if os.path.exists(dirname):
120 filepath = os.path.join(dirname, basename)
121 is_dir = os.path.isdir(filepath)
[all …]
/art/odrefresh/
Dodr_fs_utils.cc85 std::string path; in EnsureDirectoryExists() local
87 path.append("/").append(directory); in EnsureDirectoryExists()
88 if (!OS::DirectoryExists(path.c_str())) { in EnsureDirectoryExists()
90 if (mkdir(path.c_str(), kDirectoryMode) != 0) { in EnsureDirectoryExists()
91 PLOG(ERROR) << "Could not create directory: " << path; in EnsureDirectoryExists()
99 bool GetFreeSpace(const std::string& path, uint64_t* bytes) { in GetFreeSpace() argument
101 if (statvfs(path.c_str(), &sv) != 0) { in GetFreeSpace()
102 PLOG(ERROR) << "statvfs '" << path << "'"; in GetFreeSpace()
109 bool GetUsedSpace(const std::string& path, uint64_t* bytes) { in GetUsedSpace() argument
116 unvisited.push(path); in GetUsedSpace()
Dodr_metrics.cc112 int32_t OdrMetrics::GetFreeSpaceMiB(const std::string& path) { in GetFreeSpaceMiB() argument
118 if (!GetUsedSpace(path, &used_space_bytes)) { in GetFreeSpaceMiB()
125 if (!GetFreeSpace(path, &free_space_bytes)) { in GetFreeSpaceMiB()
167 void OdrMetrics::WriteToFile(const std::string& path, const OdrMetrics* metrics) { in WriteToFile() argument
170 const android::base::Result<void>& result = record.WriteToFile(path); in WriteToFile()
172 LOG(ERROR) << "Failed to report metrics to file: " << path in WriteToFile()
/art/test/430-live-register-slow-path/
DAndroid.bp3 // Build rules for ART run-test `430-live-register-slow-path`.
16 name: "art-run-test-430-live-register-slow-path",
21 ":art-run-test-430-live-register-slow-path-expected-stdout",
22 ":art-run-test-430-live-register-slow-path-expected-stderr",
28 name: "art-run-test-430-live-register-slow-path-expected-stdout",
29 out: ["art-run-test-430-live-register-slow-path-expected-stdout.txt"],
36 name: "art-run-test-430-live-register-slow-path-expected-stderr",
37 out: ["art-run-test-430-live-register-slow-path-expected-stderr.txt"],
/art/test/731-bounds-check-slow-path/
DAndroid.bp3 // Build rules for ART run-test `731-bounds-check-slow-path`.
16 name: "art-run-test-731-bounds-check-slow-path",
21 ":art-run-test-731-bounds-check-slow-path-expected-stdout",
22 ":art-run-test-731-bounds-check-slow-path-expected-stderr",
28 name: "art-run-test-731-bounds-check-slow-path-expected-stdout",
29 out: ["art-run-test-731-bounds-check-slow-path-expected-stdout.txt"],
36 name: "art-run-test-731-bounds-check-slow-path-expected-stderr",
37 out: ["art-run-test-731-bounds-check-slow-path-expected-stderr.txt"],
/art/libnativeloader/
Dnative_loader.cpp152 Result<void*> TryLoadNativeloaderExtraLib(const char* path) { in TryLoadNativeloaderExtraLib() argument
158 if (std::find(lib_list.begin(), lib_list.end(), path) == lib_list.end()) { in TryLoadNativeloaderExtraLib()
168 Result<void*> res = ns.value()->Load(path); in TryLoadNativeloaderExtraLib()
170 path, in TryLoadNativeloaderExtraLib()
277 const char* path, in OpenNativeLibrary() argument
296 void* handle = android_dlopen_ext(path, RTLD_NOW, &dlextinfo); in OpenNativeLibrary()
299 path, in OpenNativeLibrary()
313 Result<void*> handle = TryLoadNativeloaderExtraLib(path); in OpenNativeLibrary()
325 void* handle = OpenSystemLibrary(path, RTLD_NOW); in OpenNativeLibrary()
328 path, in OpenNativeLibrary()
[all …]
/art/test/510-checker-try-catch/src/
DMain.java146 for (TestPath path : TestPath.values()) { in testMethod()
147 Object[] arguments = new Object[] { path.arg1, path.arg2 }; in testMethod()
150 if (actual != path.expected) { in testMethod()
151 throw new Error("Method: \"" + method + "\", path: " + path + ", " + in testMethod()
152 "expected: " + path.expected + ", actual: " + actual); in testMethod()
/art/artd/
Dfile_utils_test.cc54 void CheckContent(const std::string& path, const std::string& expected_content) { in CheckContent() argument
56 ASSERT_TRUE(ReadFileToString(path, &actual_content)); in CheckContent()
63 static Result<std::unique_ptr<UnkeepableFile>> Create(const std::string& path, in Create() argument
65 std::unique_ptr<NewFile> new_file = OR_RETURN(NewFile::Create(path, fs_permission)); in Create()
96 std::string path = scratch_dir_->GetPath() + "/file.tmp"; in TEST_F() local
98 Result<std::unique_ptr<NewFile>> new_file = NewFile::Create(path, fs_permission_); in TEST_F()
101 EXPECT_EQ((*new_file)->FinalPath(), path); in TEST_F()
110 std::string path = scratch_dir_->GetPath() + "/non_existent_dir/file.tmp"; in TEST_F() local
112 EXPECT_THAT(NewFile::Create(path, fs_permission_), in TEST_F()
118 std::string path = scratch_dir_->GetPath() + "/file.tmp"; in TEST_F() local
[all …]
Dfile_utils.cc50 void UnlinkIfExists(std::string_view path) { in UnlinkIfExists() argument
52 std::filesystem::remove(path, ec); in UnlinkIfExists()
54 LOG(WARNING) << ART_FORMAT("Failed to remove file '{}': {}", path, ec.message()); in UnlinkIfExists()
60 Result<std::unique_ptr<NewFile>> NewFile::Create(const std::string& path, in Create() argument
62 std::unique_ptr<NewFile> output_file(new NewFile(path, fs_permission)); in Create()
254 Result<std::unique_ptr<File>> OpenFileForReading(const std::string& path) { in OpenFileForReading() argument
255 std::unique_ptr<File> file(OS::OpenFileForReading(path.c_str())); in OpenFileForReading()
257 return ErrnoErrorf("Failed to open file '{}'", path); in OpenFileForReading()
271 Result<void> Chown(const std::string& path, const FsPermission& fs_permission) { in Chown() argument
279 if (chown(path.c_str(), fs_permission.uid, fs_permission.gid) != 0) { in Chown()
[all …]
Dpath_utils.cc169 RawArtifactsPath path; in BuildArtifactsPath() local
175 &path.oat_path, in BuildArtifactsPath()
181 artifacts_path.dexPath, isa, &path.oat_path, &error_msg)) { in BuildArtifactsPath()
186 path.vdex_path = ReplaceFileExtension(path.oat_path, "vdex"); in BuildArtifactsPath()
187 path.art_path = ReplaceFileExtension(path.oat_path, "art"); in BuildArtifactsPath()
190 path.oat_path += kPreRebootSuffix; in BuildArtifactsPath()
191 path.vdex_path += kPreRebootSuffix; in BuildArtifactsPath()
192 path.art_path += kPreRebootSuffix; in BuildArtifactsPath()
195 return path; in BuildArtifactsPath()
228 std::filesystem::path dex_path(secondary_ref_profile_path.dexPath); in BuildSecondaryRefProfilePath()
[all …]
/art/tools/build/
Dvar_cache.py75 _THIS_DIR = os.path.dirname(os.path.realpath(__file__))
76 _TOP = os.path.join(_THIS_DIR, "../../..")
77 _VAR_LIST_PATH = os.path.join(_THIS_DIR, "var_list")
78 _SOONG_UI_SCRIPT = os.path.join(_TOP, "build/soong/soong_ui.bash")
/art/runtime/
Dprebuilt_tools_test.cc33 std::string path = GetAndroidTool(tool, isa); in CheckToolsExist() local
34 ASSERT_TRUE(OS::FileExists(path.c_str())) << path; in CheckToolsExist()
/art/test/odsign/jni/
Dandroid_tests_odsign_ArtifactsSignedTest.cc36 ScopedUtfChars path(env, filePath); in Java_com_android_tests_odsign_ArtifactsSignedTest_hasFsverityNative() local
39 if (statx(AT_FDCWD, path.c_str(), /*flags=*/ 0, STATX_ALL, &out) != 0) { in Java_com_android_tests_odsign_ArtifactsSignedTest_hasFsverityNative()
40 ALOGE("statx failed at %s", path.c_str()); in Java_com_android_tests_odsign_ArtifactsSignedTest_hasFsverityNative()
/art/tools/ahat/src/test/com/android/ahat/
DInstanceTest.java259 List<PathElement> path = target.getPathFromGcRoot(); in gcRootPath() local
260 assertEquals(6, path.size()); in gcRootPath()
262 assertEquals(main, path.get(0).instance); in gcRootPath()
263 assertEquals(".stuff", path.get(0).field); in gcRootPath()
264 assertTrue(path.get(0).isDominator); in gcRootPath()
266 assertEquals(".gcPathArray", path.get(1).field); in gcRootPath()
267 assertTrue(path.get(1).isDominator); in gcRootPath()
269 assertEquals(gcPathArray, path.get(2).instance); in gcRootPath()
270 assertEquals("[2]", path.get(2).field); in gcRootPath()
271 assertTrue(path.get(2).isDominator); in gcRootPath()
[all …]
/art/tools/ahat/src/main/com/android/ahat/
DSitePrinter.java28 List<Site> path = new ArrayList<Site>(); in printSite() local
30 path.add(parent); in printSite()
32 Collections.reverse(path); in printSite()
61 HeapTable.render(doc, query, id, table, snapshot, path); in printSite()
/art/libarttools/include/tools/
Dtools.h50 bool PathStartsWith(std::string_view path, std::string_view prefix);
54 std::string_view path);
58 std::string_view path);

12345678