Home
last modified time | relevance | path

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

1234567

/development/testrunner/test_defs/
Dtest_walker.py34 def FindTests(self, path): argument
71 if not os.path.exists(path):
72 logger.Log('%s does not exist' % path)
74 realpath = os.path.realpath(path)
76 self._build_top = os.path.realpath(android_build.GetTop())
79 (path, self._build_top))
86 logger.SilentLog('No tests found within %s, searching upwards' % path)
90 def _IsPathInBuildTree(self, path): argument
99 return os.path.commonprefix([self._build_top, path]) == self._build_top
101 def _MakePathRelativeToBuild(self, path): argument
[all …]
Dnative_test.py55 build_path = os.path.join(android_build.GetTop(), self.GetBuildPath())
56 os.path.walk(build_path, self._CollectTestSources, source_list)
85 full_path = os.path.join(os.sep, "data", "nativetest", f)
118 (name, ext) = os.path.splitext(f)
122 test_list.append(str(os.path.join(dirname, f)))
124 def _FilterOutMissing(self, path, sources): argument
139 binary = os.path.basename(f)
140 binary = os.path.splitext(binary)[0]
141 found = self._FindFileRecursively(path, binary)
143 binary = os.path.relpath(os.path.abspath(found),
[all …]
/development/testrunner/
Dandroid_build.py81 root_path = os.path.join(GetTop(), "out")
99 path = os.path.join(GetHostOutDir(), "bin")
100 if not os.path.exists(path):
101 logger.Log("Error: Host bin path could not be found %s" % path)
103 return path
120 path = os.getenv("ANDROID_PRODUCT_OUT")
121 if path is None:
125 return path
140 path = os.path.join(GetProductOut(), "data", "nativetest")
141 if not os.path.exists(path):
[all …]
Dmake_tree.py34 self._path = os.path.join(parent._GetPath(), name)
63 path = os.path.join(android_build.GetTop(), self._path)
64 mk_parser = android_mk.CreateAndroidMK(path)
75 make_list.append(os.path.join(self._path, "Android.mk"))
90 def AddPath(self, path): argument
98 path = os.path.normpath(path)
99 mk_path = os.path.join(android_build.GetTop(), path, "Android.mk")
100 if not os.path.isfile(mk_path):
102 path_segs = path.split(os.sep)
/development/vndk/tools/definition-tool/tools/
Dupdate_dataset.py10 import os.path
15 def load_make_vars(path): argument
25 with open(path, 'r') as fp:
43 for path in module['installed']:
44 match = patt.match(path)
47 path = match.group(1)
48 path = path.replace(os.path.sep, '/')
49 path = path.replace('/lib/', '/${LIB}/')
50 path = path.replace('/lib64/', '/${LIB}/')
51 path = re.sub('/vndk-sp(?:-[^/$]*)/', '/vndk-sp${VNDK_VER}/', path)
[all …]
/development/vndk/snapshot/
Dutils.py29 ANDROID_MK_PATH = os.path.join(COMMON_DIR_PATH, 'Android.mk')
34 NOTICE_FILES_DIR_PATH = os.path.join(COMMON_DIR_PATH, NOTICE_FILES_DIR_NAME)
47 return os.path.realpath(os.path.join(root, *args))
51 return os.path.realpath(os.getenv(env_var, default))
71 basename = os.path.basename(file)
72 if os.path.isdir(file) and basename != COMMON_DIR_NAME:
77 def arch_from_path(path): argument
86 return path.split('/')[1].split('-')[1]
89 def variant_from_path(path): argument
98 return path.split('/')[0]
[all …]
/development/vndk/tools/sourcedr/sourcedr/
Dproject.py34 return os.path.join(project_dir, cls.DEFAULT_NAME)
37 def __init__(self, path): argument
38 self.path = path
48 with open(self.path, 'r') as config_fp:
61 with LockedFile(self.path, 'x') as config_fp:
75 project_dir = os.path.abspath(project_dir)
78 if not os.path.isdir(project_dir):
87 self.source_dir = os.path.abspath(
88 os.path.join(project_dir, self.config.source_dir))
125 if not os.path.isdir(self.source_dir):
[all …]
Dserver.py18 fl = os.path.join(source_dir, fl)
49 abs_path = os.path.abspath(source_dir)
54 path_prefix=os.path.join(abs_path, ''))
63 path = request.args.get('path')
65 if path not in review_db.data.keys():
66 print('No such entry', path)
68 deps, codes = review_db.data[path]
76 path = request.args.get('path')
77 path = os.path.join(current_app.config.project.source_dir, path)
79 if not os.path.exists(path):
[all …]
Dutils.py12 def __init__(self, path, mode): argument
14 self._path = path
35 def _get_locked_path(cls, path): argument
37 return path + '.lock'
41 def is_locked(cls, path): argument
43 return os.path.exists(cls._get_locked_path(path))
/development/vndk/tools/header-checker/tests/
Dgen_all.py7 import_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
8 import_path = os.path.abspath(os.path.join(import_path, 'utils'))
9 sys.path.insert(1, import_path)
15 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
16 INPUT_DIR = os.path.join(SCRIPT_DIR, 'input')
17 EXPECTED_DIR = os.path.join(SCRIPT_DIR, 'expected')
18 REFERENCE_DUMP_DIR = os.path.join(SCRIPT_DIR, 'reference_dumps')
40 input_path = os.path.join(base, filename)
42 output_path = os.path.join(EXPECTED_DIR, input_rel_path)
47 os.makedirs(os.path.dirname(output_path), exist_ok=True)
/development/vndk/tools/
Dsystem_image_diff.py27 def system_files(path): argument
31 system_prefix = os.path.join(path, 'system')
38 if not os.path.islink(os.path.join(root, file)):
39 system_files.append(os.path.join(root[system_prefix_len:], file))
43 def system_files_to_package_map(path): argument
47 system_prefix = os.path.join(path, 'system')
51 with open(os.path.join(path, 'module-info.json')) as module_info_json:
68 def package_to_vendor_map(path): argument
78 system_prefix = os.path.join(path, 'system')
83 with open(os.path.join(path, 'module-info.json')) as module_info_json:
[all …]
/development/gsi/gsi_util/gsi_util/utils/tests/
Dfile_utils_unittest.py32 self.assertTrue(os.path.exists(f))
33 self.assertEqual(0, os.path.getsize(f))
34 self.assertRegexpMatches(os.path.basename(f), r'prefix.+suffix')
35 self.assertEqual(tempfile.gettempdir(), os.path.dirname(f))
36 self.assertFalse(os.path.exists(f))
40 self.assertTrue(os.path.exists(f))
42 self.assertFalse(os.path.exists(f))
43 self.assertFalse(os.path.exists(f))
47 self.assertTrue(os.path.exists(f))
50 self.assertFalse(os.path.exists(f))
[all …]
/development/vndk/tools/header-checker/header-abi-dumper/src/
Dworkaround_openmp.cpp36 llvm::SmallString<64> path; in RemoveOpenMPIncludeDir() local
37 llvm::sys::path::append(path, openmp_include_dir, "omp.h"); in RemoveOpenMPIncludeDir()
38 llvm::sys::fs::remove(llvm::Twine(path)); in RemoveOpenMPIncludeDir()
44 static std::error_code WriteFile(const char *path, const char *data, in WriteFile() argument
46 std::fstream output(path, std::ios_base::out | std::ios_base::trunc); in WriteFile()
60 llvm::SmallString<64> path; in CreateOpenMPIncludeDir() local
64 llvm::sys::fs::createUniqueDirectory("header-abi-dump-include", path); in CreateOpenMPIncludeDir()
69 openmp_include_dir = path.str(); in CreateOpenMPIncludeDir()
75 llvm::sys::path::append(path, "omp.h"); in CreateOpenMPIncludeDir()
76 return WriteFile(path.c_str(), OMP_HEADER_DATA, sizeof(OMP_HEADER_DATA) - 1); in CreateOpenMPIncludeDir()
/development/vndk/tools/definition-tool/tests/
Dtest_command_deps_insight.py9 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
27 def _get_module(cls, strs, mods, path): argument
29 if strs[mod[cls._PATH_FIELD]] == path:
35 def _get_module_deps(cls, strs, mods, path): argument
36 mod = cls._get_module(strs, mods, path)
44 def _get_module_users(cls, strs, mods, path): argument
45 mod = cls._get_module(strs, mods, path)
76 deps = self._get_module_deps(strs, mods, libvndk.path)
77 self.assertIn(libvnd_bad.path, deps)
79 deps = self._get_module_deps(strs, mods, libvndk_sp.path)
[all …]
Dtest_elfdump.py18 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
19 VNDK_DEF_TOOL = os.path.join(SCRIPT_DIR, '..', 'vndk_definition_tool.py')
21 INPUT_DIR = os.path.join(SCRIPT_DIR ,'testdata', 'test_elfdump', 'input')
22 EXPECTED_DIR = os.path.join(SCRIPT_DIR, 'testdata', 'test_elfdump', 'expected')
26 def run_elf_dump(path): argument
27 cmd = [sys.executable, VNDK_DEF_TOOL, 'elfdump', path]
53 cls.expected_dir = os.path.join(EXPECTED_DIR, target_name)
54 cls.test_dir = os.path.join(cls.test_dir_base, target_name)
59 src_file = os.path.join(INPUT_DIR, 'main.c')
60 obj_file = os.path.join(cls.test_dir, 'main.o')
[all …]
Dtest_dex_file.py11 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
16 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
17 INPUT_DIR = os.path.join(SCRIPT_DIR, 'testdata', 'test_dex_file')
58 for path in paths:
59 zip_file.write(path, os.path.basename(path))
71 smali_file = os.path.join(INPUT_DIR, 'Hello.smali')
72 classes_dex = os.path.join(tmp_dir, 'classes.dex')
86 smali_file = os.path.join(INPUT_DIR, 'Hello.smali')
87 classes_dex = os.path.join(tmp_dir, 'classes.dex')
90 smali_file = os.path.join(INPUT_DIR, 'Example.smali')
[all …]
Dtest_vndk_lib_dir.py8 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
14 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
141 input_dir = os.path.join(
146 [os.path.join(input_dir, 'system')],
147 [os.path.join(input_dir, 'vendor')])
153 input_dir = os.path.join(
157 [os.path.join(input_dir, 'system')],
158 [os.path.join(input_dir, 'vendor')])
164 input_dir = os.path.join(
169 [os.path.join(input_dir, 'system')],
[all …]
Dtest_module_info.py7 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
13 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
22 json_path = os.path.join(SCRIPT_DIR, 'testdata', 'test_module_info',
/development/testrunner/coverage/
Dcoverage.py43 _EMMA_JAR = os.path.join("external", "emma", "lib", "emma.jar")
48 _CORE_TARGET_PATH = os.path.join("development", "testrunner",
52 _VENDOR_TARGET_PATH = os.path.join("vendor", "*", "tests", "testinfo",
56 _TARGET_INTERMEDIATES_BASE_PATH = os.path.join("target", "common",
62 self._output_root_path = os.path.join(self._out_path,
64 self._emma_jar_path = os.path.join(self._root_path, self._EMMA_JAR)
93 output_path = os.path.join(self._out_path,
100 coverage_local_path = os.path.join(output_path,
104 report_path = os.path.join(output_path,
150 input_metadata = os.path.join(self._GetBuildIntermediatePath(target),
[all …]
/development/testrunner/tests/
Dandroid_mk_tests.py20 sys.path.append('../..')
30 mk_parser = android_mk.CreateAndroidMK(path='.',
36 mk_parser = android_mk.CreateAndroidMK(path='.',
42 mk_parser = android_mk.CreateAndroidMK(path='.', filename='Android_java.mk')
47 mk_parser = android_mk.CreateAndroidMK(path='.',
56 mk_parser = android_mk.CreateAndroidMK(path='.',
66 mk_parser = android_mk.CreateAndroidMK(path='.', filename='Android_java.mk')
72 mk_parser = android_mk.CreateAndroidMK(path='.',
79 mk_parser = android_mk.CreateAndroidMK(path='.',
/development/tools/repo_diff/
Drepo_diff_android.py27 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
28 DEFAULT_EXCLUSIONS_FILE = os.path.join(SCRIPT_DIR, "android_exclusions.txt")
114 path = os.path.join(workspace, "build", "core", "build_id.mk")
115 return subprocess.check_output("source %s && echo $BUILD_ID" % path,
122 if not os.path.exists(workspace):
125 manifest_path = os.path.join(workspace, ".repo", "manifests")
143 workspace = os.path.abspath(DOWNSTREAM_WORKSPACE)
144 upstream_workspace = os.path.abspath(UPSTREAM_WORKSPACE)
172 output_folder = os.path.abspath(tag.replace(" ", "_"))
175 output_folder = os.path.abspath(current_time)
[all …]
Drepo_diff_trees.py46 path = project.get('path', project.get('name'))
47 path = os.path.abspath(os.path.join(source_tree, path))
51 if not os.path.exists(path):
54 projects[name] = path
220 for name, path in projects.iteritems():
224 filtered[name] = path
316 def find_root_commits_in_path(path): argument
318 print('Analyzing history of ' + path)
319 rev_list = git(['-C', path, 'rev-list', '--max-parents=0', 'HEAD'])
326 for name, path in projects.iteritems():
[all …]
/development/vndk/tools/header-checker/utils/
Dutils.py10 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
14 os.path.join(AOSP_DIR, 'bionic', 'libc', 'include'),
15 os.path.join(AOSP_DIR, 'external', 'libcxx', 'include'),
16 os.path.join(AOSP_DIR, 'prebuilts', 'sdk', 'renderscript', 'clang-include'),
20 os.path.join(AOSP_DIR, 'development', 'vndk', 'tools', 'header-checker',
37 reference_dump_dir = os.path.join(reference_dump_dir_stem, lib_arch)
38 reference_dump_dir = os.path.join(reference_dump_dir,
55 reference_dump_path = os.path.join(reference_dump_dir,
56 os.path.basename(lib_path)) + '.gz'
57 os.makedirs(os.path.dirname(reference_dump_path), exist_ok=True)
[all …]
/development/gsi/gsi_util/gsi_util/utils/
Dfile_utils.py37 fd, path = tempfile.mkstemp(**kwargs)
41 yield path
43 if os.path.exists(path):
44 os.unlink(path)
/development/build/tools/
Dmk_sources_zip.py119 if not os.path.isfile(p.PROPS):
121 if not os.path.isdir(p.SRC):
133 if not os.path.exists(srcdir):
138 filepath = os.path.join(srcdir, filename)
139 if filename.endswith(".java") and os.path.isfile(filepath):
155 pkg = pkg.replace(".", os.path.sep) # e.g. android.view => android/view
160 elif os.path.isdir(filepath):
166 def checkJavaFile(path): argument
170 f = file(path)
188 arc_path = os.path.join(TOP_FOLDER, dest_pkg, os.path.basename(filepath))
[all …]

1234567