/external/python/cpython2/Lib/unittest/ |
D | loader.py | 211 full_path = os.path.abspath(module.__file__) 213 if os.path.basename(full_path).lower().startswith('__init__.py'): 214 return os.path.dirname(os.path.dirname(full_path)) 219 return os.path.dirname(full_path) 235 def _match_path(self, path, full_path, pattern): argument 244 full_path = os.path.join(start_dir, path) 245 if os.path.isfile(full_path): 249 if not self._match_path(path, full_path, pattern): 252 name = self._get_name_from_path(full_path) 258 mod_file = os.path.abspath(getattr(module, '__file__', full_path)) [all …]
|
/external/harfbuzz_ng/ |
D | mingw-ldd.py | 33 full_path = os.path.join(prefix, dll) 34 if os.path.exists(full_path): 35 dep_dlls[dll] = full_path 36 dep_tree_impl(full_path, prefix=prefix) 56 for dll, full_path in dep_tree(filename).items(): 57 print(' ' * 7, dll, '=>', full_path)
|
/external/oss-fuzz/infra/base-images/base-builder/ |
D | detect_repo.py | 61 full_path = os.path.join(src_dir, single_dir) 62 if not os.path.isdir(full_path): 64 if args.example_commit and check_for_commit(full_path, args.example_commit): 65 print('Detected repo:', get_repo(full_path), full_path) 67 if args.repo_name and check_for_repo_name(full_path, args.repo_name): 68 print('Detected repo:', get_repo(full_path), full_path)
|
/external/python/cpython3/Lib/unittest/ |
D | loader.py | 354 full_path = os.path.abspath(module.__file__) 356 if os.path.basename(full_path).lower().startswith('__init__.py'): 357 return os.path.dirname(os.path.dirname(full_path)) 362 return os.path.dirname(full_path) 380 def _match_path(self, path, full_path, pattern): argument 404 full_path = os.path.join(start_dir, path) 406 full_path, pattern, namespace) 411 name = self._get_name_from_path(full_path) 414 yield from self._find_tests(full_path, pattern, namespace) 418 def _find_test_path(self, full_path, pattern, namespace=False): argument [all …]
|
/external/jsoncpp/devtools/ |
D | antglob.py | 117 def apply_filter(full_path, filter_rexs): argument 120 if rex.match(full_path): 129 full_path = os.path.join(dir_path, entry) 131 is_dir = os.path.isdir(full_path) 134 child_dirs.append(full_path) 135 included = apply_filter(full_path, include_filter) 136 rejected = apply_filter(full_path, exclude_filter) 140 link = os.path.islink(full_path) 141 is_file = os.path.isfile(full_path)
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | protobuf_util.cc | 53 string* full_path) { in DumpProtoToDirectory() argument 58 if (!full_path) { in DumpProtoToDirectory() 59 full_path = &full_path_impl; in DumpProtoToDirectory() 61 *full_path = tensorflow::io::JoinPath(directory, safe_file_name); in DumpProtoToDirectory() 62 return tensorflow::WriteBinaryProto(env, *full_path, message); in DumpProtoToDirectory()
|
/external/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/ |
D | loader.py | 243 def _match_path(self, path, full_path, pattern): argument 252 full_path = os.path.join(start_dir, path) 253 if os.path.isfile(full_path): 257 if not self._match_path(path, full_path, pattern): 260 name = self._get_name_from_path(full_path) 267 getattr(module, '__file__', full_path)) 269 fullpath_noext = os.path.splitext(full_path)[0] 273 os.path.basename(full_path))[0] 274 expected_dir = os.path.dirname(full_path) 281 elif os.path.isdir(full_path): [all …]
|
/external/tensorflow/tensorflow/c/ |
D | c_test.c | 65 char* full_path = malloc(length); in main() local 66 snprintf(full_path, length, "%s/%s", path, file_name); in main() 70 TF_NewWritableFile(full_path, &h, status); in main() 75 fprintf(stderr, "wrote %s\n", full_path); in main() 76 free(full_path); in main()
|
/external/perfetto/src/base/test/ |
D | utils.cc | 77 std::string full_path = self_path + "/../../" + path; in GetTestDataPath() local 78 if (FileExists(full_path)) in GetTestDataPath() 79 return full_path; in GetTestDataPath() 80 full_path = self_path + "/" + path; in GetTestDataPath() 81 if (FileExists(full_path)) in GetTestDataPath() 82 return full_path; in GetTestDataPath()
|
/external/perfetto/tools/ |
D | gen_amalgamated | 341 full_path = os.path.join(gn_utils.repo_root(), rel_path) 342 if os.path.exists(full_path): 345 with open(full_path) as f: 347 '// %s begin header: %s' % (tool_name, normalize_path(full_path))) 362 full_path = os.path.join(gn_utils.repo_root(), source_name) 363 if not os.path.exists(full_path): 365 with open(full_path) as f: 367 '// %s begin source: %s' % (tool_name, normalize_path(full_path))) 381 full_path = os.path.join(gn_utils.repo_root(), include_dir, header_name) 382 if os.path.exists(full_path): [all …]
|
/external/f2fs-tools/fsck/ |
D | sload.c | 144 ret = lstat(de->full_path, &stat); in set_inode_metadata() 175 ret = readlink(de->full_path, de->link, F2FS_BLKSIZE - 1); in set_inode_metadata() 198 static int build_directory(struct f2fs_sb_info *sbi, const char *full_path, in build_directory() argument 207 entries = scandir(full_path, &namelist, filter_dot, (void *)alphasort); in build_directory() 209 ERR_MSG("No entries in %s\n", full_path); in build_directory() 227 ret = asprintf(&dentries[i].full_path, "%s/%s", in build_directory() 228 full_path, namelist[i]->d_name); in build_directory() 251 dentries[i].full_path); in build_directory() 281 free(dentries[i].full_path); in build_directory() 287 free(dentries[i].full_path); in build_directory()
|
/external/python/asn1crypto/tests/ |
D | test_init.py | 110 full_path = os.path.join(root, f) 111 rel_path = full_path.replace(mod_root + os.sep, '') 112 files.append((full_path, rel_path)) 114 for full_path, rel_path in sorted(files): 115 with open(full_path, 'rb') as f: 127 module_node = ast.parse(full_code, filename=full_path)
|
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/ |
D | generator.py | 72 def WriteFile(contents, full_path): argument 74 if os.path.isfile(full_path): 75 with open(full_path, 'rb') as destination_file: 80 full_dir = os.path.dirname(full_path) 84 with open(full_path, "wb") as f: 190 full_path = os.path.join(self.output_dir, filename) 191 WriteFile(contents, full_path)
|
/external/dtc/tests/ |
D | path_offset_aliases.c | 18 static void check_alias(void *fdt, const char *full_path, const char *alias_path) in check_alias() argument 22 offset = fdt_path_offset(fdt, full_path); in check_alias() 27 full_path, offset, alias_path, offset_a); in check_alias()
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_file.cpp | 56 internal_snprintf(full_path, kMaxPathLength, "%s.%s.%zu", path_prefix, in ReopenIfNecessary() 59 internal_snprintf(full_path, kMaxPathLength, "%s.%zu", path_prefix, pid); in ReopenIfNecessary() 62 fd = OpenFile(full_path, WrOnly, &err); in ReopenIfNecessary() 66 WriteToFile(kStderrFd, full_path, internal_strlen(full_path)); in ReopenIfNecessary() 101 return full_path; in GetReportPath()
|
/external/angle/tools/ |
D | angle_tools.py | 22 full_path = os.path.join(env_path, filename) 23 if os.path.isfile(full_path): 24 return full_path
|
/external/python/cpython2/Lib/unittest/test/ |
D | test_discovery.py | 150 full_path = os.path.abspath(os.path.normpath('/foo')) 154 self.assertEqual(loader._top_level_dir, full_path) 155 self.assertIn(full_path, sys.path) 322 full_path = os.path.abspath('foo') 332 if full_path in sys.path: 333 sys.path.remove(full_path) 345 return full_path 348 full_path = self.setup_module_clash() 359 self.assertEqual(sys.path[0], full_path) 362 full_path = self.setup_module_clash()
|
/external/tensorflow/tensorflow/tools/common/ |
D | public_api.py | 133 full_path = '.'.join([self._root_name, path]) if path else self._root_name 137 if self._is_private(full_path, name, child): 144 if self._do_not_descend(full_path, name):
|
/external/perfetto/src/trace_processor/ |
D | read_trace_integrationtest.cc | 33 std::string full_path = base::GetTestDataPath(path); in OpenTestTrace() local 34 EXPECT_TRUE(base::FileExists(full_path)) << full_path; in OpenTestTrace() 35 return base::ScopedFstream(fopen(full_path.c_str(), "rb")); in OpenTestTrace()
|
/external/webrtc/test/testsupport/ |
D | mac_file_utils.mm | 33 char full_path[PATH_MAX]; 34 if (realpath(executable_path, full_path) == nullptr) { 39 *path = full_path;
|
/external/python/cpython3/Tools/peg_generator/scripts/ |
D | test_pypi_packages.py | 51 full_path = os.path.join("data", "pypi", name) 52 if os.path.isdir(full_path) and name in package_name: 53 return full_path
|
/external/libtextclassifier/native/utils/ |
D | test-data-test-utils.h | 33 const std::string full_path = GetTestDataPath(relative_path); in GetTestFileContent() local 34 std::ifstream file_stream(full_path); in GetTestFileContent()
|
/external/webrtc/sdk/android/ |
D | PRESUBMIT.py | 20 full_path = input_api.os_path.relpath(input_api.PresubmitLocalPath(), 25 (short_path, full_path))]
|
/external/autotest/server/hosts/ |
D | teststation_host.py | 154 full_path = readlink_result.stdout.splitlines()[0] 157 unzip_dest = unzip_dest or os.path.dirname(full_path) 160 return full_path
|
/external/python/asn1crypto/ |
D | setup.py | 85 full_path = os.path.join(PACKAGE_ROOT, sub_folder) 86 if os.path.exists(full_path): 87 shutil.rmtree(full_path)
|