/development/testrunner/test_defs/ |
D | test_walker.py | 34 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 …]
|
D | native_test.py | 55 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/ |
D | android_build.py | 81 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 …]
|
D | make_tree.py | 34 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/ |
D | android.py | 19 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/ |
D | update_dataset.py | 10 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 …]
|
D | update_dataset_auto.py | 12 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/ |
D | list_installed_file_from_source.py | 47 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 …]
|
D | list_ninja_build_dep.py | 69 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 …]
|
D | list_source_file.py | 91 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/tools/winscope/ |
D | webpack.spec.config.js | 18 const path = require('path'); constant 23 waylandPath = path.resolve( 28 return path.resolve(__dirname, 'src/stubs'); 36 path: path.resolve(__dirname, './dist'), property 53 include: path.resolve(__dirname, './src'), 61 path.resolve(__dirname, '../../..'), 62 path.resolve(__dirname, '../../../external/protobuf/src'), 71 path.resolve(__dirname, './spec'), 80 '@': path.resolve(__dirname, 'src'), 86 path.resolve(__dirname, '../../..'), [all …]
|
D | webpack.config.common.js | 19 const path = require('path'); constant 33 path.resolve(__dirname, '../../../vendor/google_arc/libs/wayland_service'); 39 return path.resolve(__dirname, 'src/stubs'); 54 '@': path.resolve(__dirname, 'src'), 60 path.resolve(__dirname, '../../..'), 66 path.resolve(__dirname, 'loaders'), 74 include: path.resolve(__dirname, './src'), 80 include: path.resolve(__dirname, './src'), 86 include: path.resolve(__dirname, './src'), 95 include: path.resolve(__dirname, './src'), [all …]
|
/development/vndk/tools/definition-tool/tests/ |
D | test_command_deps_insight.py | 24 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 …]
|
D | test_elfdump.py | 15 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/tools/ |
D | system_image_diff.py | 33 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/scripts/ |
D | update_crate_tests.py | 39 def __init__(self, path): argument 44 if path == None: 47 self.cwd = path 71 def path(self): member in Bazel 78 def query_modules(self, path): argument 80 cmd = self.path() + " query --config=queryview /" + path + ":all" 93 cmd = (self.path() + " query --config=queryview \'rdeps(//..., " + 102 for path in exclude_paths: 103 if module.startswith(path): 120 def __init__(self, path, bazel): argument [all …]
|
/development/gsi/gsi_util/gsi_util/utils/tests/ |
D | file_utils_unittest.py | 32 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/snapshot/ |
D | utils.py | 32 COMMON_BP_PATH = os.path.join(COMMON_DIR_PATH, 'Android.bp') 37 NOTICE_FILES_DIR_PATH = os.path.join(COMMON_DIR_PATH, NOTICE_FILES_DIR_NAME) 85 return os.path.realpath(os.path.join(root, *args)) 89 return os.path.realpath(os.getenv(env_var, default)) 109 basename = os.path.basename(file) 110 if os.path.isdir(file) and basename != COMMON_DIR_NAME: 115 def prebuilt_arch_from_path(path): argument 124 return path.split('/')[1].split('-')[1] 127 def snapshot_arch_from_path(path): argument 136 return path.split('/')[0] [all …]
|
/development/testrunner/coverage/ |
D | coverage.py | 43 _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/ |
D | android_mk_tests.py | 20 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/ |
D | gen_all.py | 7 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) 33 input_path = os.path.join(base, filename) 35 output_path = os.path.join(EXPECTED_DIR, input_rel_path) 38 os.makedirs(os.path.dirname(output_path), exist_ok=True)
|
/development/tools/repo_diff/ |
D | repo_diff_android.py | 27 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) 28 DEFAULT_EXCLUSIONS_FILE = os.path.join(SCRIPT_DIR, "android_exclusions.txt") 73 cwd=os.path.dirname(workspace), shell=True) 123 path = os.path.join(workspace, "build", "core", "build_id.mk") 124 return subprocess.check_output("source %s && echo $BUILD_ID" % path, 131 if not os.path.exists(workspace): 134 manifest_path = os.path.join(workspace, ".repo", "manifests") 152 workspace = os.path.abspath(DOWNSTREAM_WORKSPACE) 153 upstream_workspace = os.path.abspath(UPSTREAM_WORKSPACE) 181 output_folder = os.path.abspath(tag.replace(" ", "_")) [all …]
|
/development/gsi/gsi_util/gsi_util/utils/ |
D | file_utils.py | 37 fd, path = tempfile.mkstemp(**kwargs) 41 yield path 43 if os.path.exists(path): 44 os.unlink(path)
|
/development/vndk/tools/definition-tool/ |
D | vndk_definition_tool.py | 40 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/ |
D | list_app_shared_uid.py | 58 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 …]
|