/art/test/testrunner/ |
D | env.py | 21 _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')): 129 HOST_OUT_EXECUTABLES = os.path.join(ANDROID_BUILD_TOP, 136 ANDROID_JAVA_TOOLCHAIN = os.path.join(ANDROID_BUILD_TOP,
|
/art/tools/ |
D | generate_cmake_lists.py | 45 this_file_path = os.path.realpath(__file__) 46 path_to_top = os.path.join(os.path.dirname(this_file_path), '../..') 47 path_to_top = os.path.realpath(path_to_top) 49 if not os.path.exists(os.path.join(path_to_top, 'build/envsetup.sh')): 73 out_art_cmakelists_dir = os.path.join(ANDROID_BUILD_TOP, 81 if (os.path.samefile(root, out_art_cmakelists_dir)): 89 f = open(os.path.join(out_art_cmakelists_dir, 'CMakeLists.txt'), 'w')
|
D | compile-jar.py | 26 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( 118 os.path.expandvars( 140 os.path.expandvars( 196 os.path.join(location_base, os.path.basename(f)))) 210 location_base = os.path.expandvars("${ANDROID_HOST_OUT}/framework/") 212 boot_image = os.path.expandvars( 214 android_root = os.path.expandvars("$ANDROID_HOST_OUT") [all …]
|
D | test_presubmit.py | 31 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
|
D | javac-helper.sh | 85 boot_class_path_list=$($TOP/art/tools/bootjars.sh $bootjars_args --path) 87 for path in $boot_class_path_list; do 88 javac_bootclasspath+=("$path")
|
/art/tools/checker/ |
D | checker.py | 72 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/odrefresh/ |
D | odr_fs_utils.cc | 77 std::string path; in EnsureDirectoryExists() local 79 path.append("/").append(directory); in EnsureDirectoryExists() 80 if (!OS::DirectoryExists(path.c_str())) { in EnsureDirectoryExists() 82 if (mkdir(path.c_str(), kDirectoryMode) != 0) { in EnsureDirectoryExists() 83 PLOG(ERROR) << "Could not create directory: " << path; in EnsureDirectoryExists() 91 bool GetFreeSpace(const std::string& path, uint64_t* bytes) { in GetFreeSpace() argument 93 if (statvfs(path.c_str(), &sv) != 0) { in GetFreeSpace() 94 PLOG(ERROR) << "statvfs '" << path << "'"; in GetFreeSpace() 101 bool GetUsedSpace(const std::string& path, uint64_t* bytes) { in GetUsedSpace() argument 108 unvisited.push(path); in GetUsedSpace()
|
D | odr_metrics.cc | 92 int32_t OdrMetrics::GetFreeSpaceMiB(const std::string& path) { in GetFreeSpaceMiB() argument 98 if (!GetUsedSpace(path, &used_space_bytes)) { in GetFreeSpaceMiB() 105 if (!GetFreeSpace(path, &free_space_bytes)) { in GetFreeSpaceMiB() 134 void OdrMetrics::WriteToFile(const std::string& path, const OdrMetrics* metrics) { in WriteToFile() argument 142 std::ofstream ofs(path); in WriteToFile()
|
/art/test/430-live-register-slow-path/ |
D | Android.bp | 3 // 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/build/apex/ |
D | art_apex_test.py | 23 import os.path 62 _, apex_name = os.path.split(apex_path) 63 extract_path = os.path.join(tmpdir, apex_name) 64 if os.path.exists(extract_path): 90 def get(self, path): argument 91 apex_dir, name = os.path.split(path) 101 dirname = os.path.join(self._apex, apex_dir) 102 if os.path.exists(dirname): 104 filepath = os.path.join(dirname, basename) 105 is_dir = os.path.isdir(filepath) [all …]
|
/art/libartbase/base/ |
D | common_art_test.cc | 154 std::filesystem::path path(argv.substr(0, argv.find('\0'))); in GetAndroidBuildTop() local 155 path = std::filesystem::absolute(path); in GetAndroidBuildTop() 157 for (; path.parent_path() != path; path = path.parent_path()) { in GetAndroidBuildTop() 159 if (path.filename() == std::filesystem::path("linux-x86")) { in GetAndroidBuildTop() 160 android_build_top = path.parent_path().parent_path().parent_path(); in GetAndroidBuildTop() 165 if (path.filename() == std::filesystem::path("testcases") || in GetAndroidBuildTop() 166 StartsWith(path.filename().string(), "host_testcases")) { in GetAndroidBuildTop() 167 android_build_top = path.append("art_common"); in GetAndroidBuildTop() 176 android_build_top = std::filesystem::path(android_build_top).string(); in GetAndroidBuildTop() 209 android_host_out = (std::filesystem::path(android_out_dir) / "host" / "linux-x86").string(); in GetAndroidHostOut() [all …]
|
D | scoped_flock.h | 57 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/test/utils/ |
D | regen-test-files | 34 ME = os.path.basename(sys.argv[0]) 510 self.art_dir = os.path.join(top_dir, "art") 512 self.art_test_dir = os.path.join(self.art_dir, "test") 514 self.mts_config_dir = os.path.join( 525 run_test_path = os.path.join(self.art_test_dir, run_test) 528 if os.path.isfile(os.path.join(run_test_path, "build")): 531 if not os.path.isdir(os.path.join(run_test_path, "src")): 545 if os.path.isdir(os.path.join(run_test_path, subdir)): 548 if os.path.isfile(os.path.join(run_test_path, "src", "sun", "misc", "Unsafe.java")): 551 if os.path.isfile(os.path.join(run_test_path, "hiddenapi-flags.csv")): [all …]
|
/art/test/510-checker-try-catch/src/ |
D | Main.java | 152 for (TestPath path : TestPath.values()) { in testMethod() 153 Object[] arguments = new Object[] { path.arg1, path.arg2 }; in testMethod() 156 if (actual != path.expected) { in testMethod() 157 throw new Error("Method: \"" + method + "\", path: " + path + ", " + in testMethod() 158 "expected: " + path.expected + ", actual: " + actual); in testMethod()
|
/art/libnativeloader/ |
D | native_loader.cpp | 121 Result<void*> TryLoadNativeloaderExtraLib(const char* path) { in TryLoadNativeloaderExtraLib() argument 127 if (std::find(lib_list.begin(), lib_list.end(), path) == lib_list.end()) { in TryLoadNativeloaderExtraLib() 136 return ns.value()->Load(path); in TryLoadNativeloaderExtraLib() 209 void* OpenNativeLibrary(JNIEnv* env, int32_t target_sdk_version, const char* path, in OpenNativeLibrary() argument 224 void* handle = android_dlopen_ext(path, RTLD_NOW, &dlextinfo); in OpenNativeLibrary() 235 Result<void*> handle = TryLoadNativeloaderExtraLib(path); in OpenNativeLibrary() 249 void* handle = OpenSystemLibrary(path, RTLD_NOW); in OpenNativeLibrary() 279 return OpenNativeLibraryInNamespace(ns, path, needs_native_bridge, error_msg); in OpenNativeLibrary() 288 if (library_path != nullptr && path != nullptr && path[0] != '/') { in OpenNativeLibrary() 299 if (path == nullptr) { in OpenNativeLibrary() [all …]
|
D | native_loader_lazy.cpp | 55 void* OpenNativeLibrary(JNIEnv* env, int32_t target_sdk_version, const char* path, in OpenNativeLibrary() argument 59 return f(env, target_sdk_version, path, class_loader, caller_location, library_path, in OpenNativeLibrary() 84 void* OpenNativeLibraryInNamespace(struct NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace() argument 87 return f(ns, path, needs_native_bridge, error_msg); in OpenNativeLibraryInNamespace()
|
/art/tools/build/ |
D | var_cache.py | 75 _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/test/odsign/jni/ |
D | android_tests_odsign_ArtifactsSignedTest.cc | 36 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/runtime/ |
D | prebuilt_tools_test.cc | 33 std::string path = GetAndroidTool(tool, isa); in CheckToolsExist() local 34 ASSERT_TRUE(OS::FileExists(path.c_str())) << path; in CheckToolsExist()
|
/art/tools/ahat/src/test/com/android/ahat/ |
D | InstanceTest.java | 256 List<PathElement> path = target.getPathFromGcRoot(); in gcRootPath() local 257 assertEquals(6, path.size()); in gcRootPath() 259 assertEquals(main, path.get(0).instance); in gcRootPath() 260 assertEquals(".stuff", path.get(0).field); in gcRootPath() 261 assertTrue(path.get(0).isDominator); in gcRootPath() 263 assertEquals(".gcPathArray", path.get(1).field); in gcRootPath() 264 assertTrue(path.get(1).isDominator); in gcRootPath() 266 assertEquals(gcPathArray, path.get(2).instance); in gcRootPath() 267 assertEquals("[2]", path.get(2).field); in gcRootPath() 268 assertTrue(path.get(2).isDominator); in gcRootPath() [all …]
|
/art/tools/ahat/src/main/com/android/ahat/ |
D | SitePrinter.java | 28 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/imgdiag/ |
D | imgdiag_test.cc | 64 std::string path = GetArtBinDir() + '/' + kImgDiagBinaryName; in GetImgDiagFilePath() local 66 path += 'd'; in GetImgDiagFilePath() 68 std::string path32 = path + "32"; in GetImgDiagFilePath() 74 return path; in GetImgDiagFilePath()
|
/art/tools/jvmti-agents/field-null-percent/ |
D | check-null-fields.py | 31 import os.path 46 def_32 = os.path.join(os.environ.get("OUT", ""), "system", "lib", "libfieldnull.so") 47 def_64 = os.path.join(os.environ.get("OUT", ""), "system", "lib64", "libfieldnull.so") 48 has_32 = has_out and os.path.exists(def_32) 49 has_64 = has_out and os.path.exists(def_64) 51 if os.path.isfile(name):
|
/art/libartbase/base/unix_file/ |
D | fd_file.h | 43 FdFile(int fd, const std::string& path, bool check_usage); 44 FdFile(int fd, const std::string& path, bool check_usage, bool read_only_mode); 46 FdFile(const std::string& path, int flags, bool check_usage) in FdFile() argument 47 : FdFile(path, flags, 0640, check_usage) {} in FdFile() 48 FdFile(const std::string& path, int flags, mode_t mode, bool check_usage);
|
/art/test/674-hiddenapi/ |
D | info.txt | 10 the parent does not belong to boot class path. 11 (b) Parent is appended to boot class path, child is loaded with PathClassLoader. 14 (c) Both parent and child are appended to boot class path. Restrictions should 16 class path.
|