Home
last modified time | relevance | path

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

12345678

/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/elfcheck/elfcheck/
Dandroid.py19 import os.path
22 def find_android_build_top(path): argument
25 path = os.path.dirname(os.path.abspath(path))
27 while prev != path:
28 if os.path.exists(os.path.join(path, '.repo', 'manifest.xml')):
29 return path
30 prev = path
31 path = os.path.dirname(path)
/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 …]
Dupdate_dataset_auto.py12 UPDATE_DATASET = os.path.abspath(os.path.join(
15 LIST_VNDK_MODULE = os.path.abspath(os.path.join(
19 def update_eligible_list(path, make_vars, module_info): argument
20 dirname, basename = os.path.split(path)
28 cmd.append(path)
33 os.rename(tmp_path, path)
36 def update_eligible_list_properties(path, build_top): argument
37 dirname, basename = os.path.split(path)
46 cmd.append(os.path.join(build_top, 'Android.bp'))
51 os.rename(tmp_path, path)
[all …]
/development/vndk/tools/sourcedr/ninja/
Dlist_installed_file_from_source.py47 installed_dirs = '|'.join('(?:' + re.escape(posixpath.normpath(path)) + ')'
48 for path in args.installed_filter.split(':'))
55 '|'.join('(?:' + re.escape(posixpath.normpath(path)) + ')'
56 for path in args.source_filter.split(':')))
63 for path in build.explicit_outs:
64 outs[path] = build
65 for path in build.implicit_outs:
66 outs[path] = build
76 for path in paths:
77 if source_filter.match(path):
[all …]
Dlist_ninja_build_dep.py69 for path in build.explicit_outs:
70 graph[path] = build
71 for path in build.implicit_outs:
72 graph[path] = build
85 for path in build.explicit_outs:
86 print(' explicit_out:', path)
87 for path in build.implicit_outs:
88 print(' implicit_out:', path)
89 for path in build.explicit_ins:
90 print(' explicit_in:', path)
[all …]
Dlist_source_file.py91 def _normalize_path(path): argument
92 if path.startswith(out_dir + '/target'):
93 return path
94 return posixpath.join(out_product_dir, path)
96 installed_filter = [_normalize_path(path) for path in args.installed_filter]
105 for path in build.explicit_outs:
106 graph[path] = build
107 for path in build.implicit_outs:
108 graph[path] = build
111 matched_files = [path for path in graph if installed_filter.match(path)]
[all …]
/development/vndk/tools/definition-tool/tests/
Dtest_command_deps_insight.py24 def _get_module(cls, strs, mods, path): argument
26 if strs[mod[cls._PATH_FIELD]] == path:
32 def _get_module_deps(cls, strs, mods, path): argument
33 mod = cls._get_module(strs, mods, path)
41 def _get_module_users(cls, strs, mods, path): argument
42 mod = cls._get_module(strs, mods, path)
80 deps = self._get_module_deps(strs, mods, libsystem.path)
82 users = self._get_module_users(strs, mods, libsystem.path)
83 self.assertIn(libsystem2.path, users)
86 deps = self._get_module_deps(strs, mods, libsystem2.path)
[all …]
Dtest_elfdump.py15 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
16 VNDK_DEF_TOOL = os.path.join(SCRIPT_DIR, '..', 'vndk_definition_tool.py')
18 INPUT_DIR = os.path.join(SCRIPT_DIR, 'testdata', 'test_elfdump', 'input')
19 EXPECTED_DIR = os.path.join(SCRIPT_DIR, 'testdata', 'test_elfdump', 'expected')
23 def run_elf_dump(path): argument
24 cmd = [sys.executable, VNDK_DEF_TOOL, 'elfdump', path]
52 cls.expected_dir = os.path.join(EXPECTED_DIR, target_name)
53 cls.test_dir = os.path.join(cls.test_dir_base, target_name)
58 src_file = os.path.join(INPUT_DIR, 'main.c')
59 obj_file = os.path.join(cls.test_dir, 'main.o')
[all …]
/development/vndk/snapshot/
Dutils.py31 COMMON_BP_PATH = os.path.join(COMMON_DIR_PATH, 'Android.bp')
36 NOTICE_FILES_DIR_PATH = os.path.join(COMMON_DIR_PATH, NOTICE_FILES_DIR_NAME)
70 return os.path.realpath(os.path.join(root, *args))
74 return os.path.realpath(os.getenv(env_var, default))
94 basename = os.path.basename(file)
95 if os.path.isdir(file) and basename != COMMON_DIR_NAME:
100 def prebuilt_arch_from_path(path): argument
109 return path.split('/')[1].split('-')[1]
112 def snapshot_arch_from_path(path): argument
121 return path.split('/')[0]
[all …]
/development/vndk/tools/
Dsystem_image_diff.py33 system_path = os.path.normpath(os.path.join(out_path, 'system'))
36 return os.path.join(*system_path_dirs[out_index:])
38 def system_files(path): argument
42 system_prefix = os.path.join(path, 'system')
49 if not os.path.islink(os.path.join(root, file)):
50 system_files.append(os.path.join(root[system_prefix_len:], file))
54 def system_files_to_package_map(path): argument
58 system_prefix = _get_relative_out_path_from_root(path)
62 with open(os.path.join(path, 'module-info.json')) as module_info_json:
79 def package_to_vendor_map(path): argument
[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/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/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)
32 input_path = os.path.join(base, filename)
34 output_path = os.path.join(EXPECTED_DIR, input_rel_path)
39 os.makedirs(os.path.dirname(output_path), exist_ok=True)
/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/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/tools/winscope/
Dwebpack.config.js18 var path = require('path') variable
24 waylandPath = path.resolve(__dirname, '../../../vendor/google_arc/libs/wayland_service');
28 return path.resolve(__dirname, 'src/stubs');
34 path: path.resolve(__dirname, './dist'), property
58 path.resolve(__dirname, '../../..'),
59 path.resolve(__dirname, '../../../external/protobuf/src')
78 path.resolve(__dirname, '../../..')
84 path.resolve(__dirname, 'loaders')
/development/vndk/tools/definition-tool/
Dvndk_definition_tool.py40 def makedirs(path, exist_ok): argument
41 if exist_ok and os.path.isdir(path):
43 os.makedirs(path)
113 def __init__(self, name, path): argument
115 self.path = path
120 def _stat_impl(path, follow_symlinks): argument
121 return os.stat(path) if follow_symlinks else os.lstat(path)
127 stat_res = self._stat_impl(self.path, follow_symlinks)
146 def scandir(path): argument
147 for name in os.listdir(path):
[all …]
/development/vndk/tools/sourcedr/files/
Dlist_app_shared_uid.py58 product_out = os.path.abspath(product_out)
64 partition_dir = os.path.join(product_out, partition)
67 name, ext = os.path.splitext(filename)
69 return os.path.join(base, filename)[prefix_len:]
79 apps_dir = os.path.join(product_out, 'obj', 'APPS')
83 app_dir = os.path.join(apps_dir, app_dir_name)
85 apk_file = os.path.join(app_dir, 'package.apk')
86 if not os.path.exists(apk_file):
90 apk_unpacked = os.path.join(app_dir, 'package')
91 if not os.path.exists(apk_unpacked):
[all …]
/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 …]

12345678