Home
last modified time | relevance | path

Searched refs:full_path (Results 1 – 25 of 80) sorted by relevance

1234

/external/python/cpython2/Lib/unittest/
Dloader.py211 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/python/cpython3/Lib/unittest/
Dloader.py354 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/
Dantglob.py114 def apply_filter( full_path, filter_rexs ): argument
117 if rex.match( full_path ):
126 full_path = os.path.join( dir_path, entry )
128 is_dir = os.path.isdir( full_path )
131 child_dirs.append( full_path )
132 included = apply_filter( full_path, include_filter )
133 rejected = apply_filter( full_path, exclude_filter )
137 link = os.path.islink( full_path )
138 is_file = os.path.isfile( full_path )
/external/tensorflow/tensorflow/c/
Dc_test.c69 char* full_path = malloc(length); in main() local
70 snprintf(full_path, length, "%s/%s", path, file_name); in main()
74 TF_NewWritableFile(full_path, &h, status); in main()
79 fprintf(stderr, "wrote %s\n", full_path); in main()
80 free(full_path); in main()
/external/f2fs-tools/fsck/
Dsload.c129 ret = lstat(de->full_path, &stat); in set_inode_metadata()
151 ret = readlink(de->full_path, de->link, F2FS_BLKSIZE - 1); in set_inode_metadata()
169 static int build_directory(struct f2fs_sb_info *sbi, const char *full_path, in build_directory() argument
178 entries = scandir(full_path, &namelist, filter_dot, (void *)alphasort); in build_directory()
180 ERR_MSG("No entries in %s\n", full_path); in build_directory()
199 ret = asprintf(&dentries[i].full_path, "%s/%s", in build_directory()
200 full_path, namelist[i]->d_name); in build_directory()
221 dentries[i].full_path); in build_directory()
246 free(dentries[i].full_path); in build_directory()
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dgenerator.py72 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/
Dpath_offset_aliases.c31 static void check_alias(void *fdt, const char *full_path, const char *alias_path) in check_alias() argument
35 offset = fdt_path_offset(fdt, full_path); in check_alias()
40 full_path, offset, alias_path, offset_a); in check_alias()
/external/python/cpython2/Lib/unittest/test/
Dtest_discovery.py150 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/autotest/client/deps/glbench/src/
Dfilepath.cc138 bool CreateDirectory(FilePath& full_path) { in CreateDirectory() argument
142 FilePath last_path = full_path; in CreateDirectory()
143 subpaths.push_back(full_path); in CreateDirectory()
144 for (FilePath path = full_path.DirName(); path.value() != last_path.value(); in CreateDirectory()
/external/tensorflow/tensorflow/tools/common/
Dpublic_api.py129 full_path = '.'.join([self._root_name, path]) if path else self._root_name
133 if self._is_private(full_path, name, child):
140 if self._do_not_descend(full_path, name):
/external/python/cpython3/Lib/importlib/
Dresources.py95 full_path = os.path.join(package_path, resource)
97 return open(full_path, mode='rb')
106 data = loader.get_data(full_path)
129 full_path = os.path.join(package_path, resource)
131 return open(full_path, mode='r', encoding=encoding, errors=errors)
140 data = loader.get_data(full_path)
/external/tensorflow/tensorflow/tools/docs/
Dgenerate_lib.py387 def process(self, full_path, base_name): argument
389 self.full_path = full_path
394 py_guide_parser.PyGuideParser.process(self, full_path)
418 for full_path, base_name in py_guide_parser.md_files_in_dir(guide_src_dir):
419 index_generator.process(full_path, base_name)
445 full_path = os.path.join(src_dir, dirpath, base_name)
449 content = tag_updater.process(full_path)
450 with open(full_path, 'w') as f:
/external/v8/tools/sanitizers/
Dsancov_formatter_test.py217 full_path = os.path.join(output_dir, file_name)
218 self.assertTrue(os.path.exists(full_path))
219 with open(full_path) as f:
/external/autotest/server/hosts/
Dteststation_host.py154 full_path = readlink_result.stdout.splitlines()[0]
157 unzip_dest = unzip_dest or os.path.dirname(full_path)
160 return full_path
/external/libchrome/base/files/
Dfile_enumerator_posix.cc156 const FilePath full_path = root_path_.Append(info.filename_); in Next() local
157 GetStat(full_path, file_type_ & SHOW_SYM_LINKS, &info.stat_); in Next()
162 pending_paths_.push(full_path); in Next()
/external/bcc/src/cc/usdt/
Dusdt.cc347 std::string full_path = resolve_bin_path(bin_path); in Context() local
348 if (!full_path.empty()) { in Context()
349 if (bcc_elf_foreach_usdt(full_path.c_str(), _each_probe, this) == 0) { in Context()
350 cmd_bin_path_ = full_path; in Context()
374 std::string full_path = resolve_bin_path(bin_path); in Context() local
375 if (!full_path.empty()) { in Context()
376 if (bcc_elf_foreach_usdt(full_path.c_str(), _each_probe, this) == 0) { in Context()
/external/python/setuptools/setuptools/
D__init__.py74 full_path = os.path.join(root, dir)
75 rel_path = os.path.relpath(full_path, where)
79 if ('.' in dir or not cls._looks_like_package(full_path)):
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common.cc57 internal_snprintf(full_path, kMaxPathLength, "%s.%s.%zu", path_prefix, in ReopenIfNecessary()
60 internal_snprintf(full_path, kMaxPathLength, "%s.%zu", path_prefix, pid); in ReopenIfNecessary()
62 fd = OpenFile(full_path, WrOnly); in ReopenIfNecessary()
66 WriteToFile(kStderrFd, full_path, internal_strlen(full_path)); in ReopenIfNecessary()
/external/libpcap/
Dpcap-usb-linux.c516 char full_path[USB_LINE_LEN]; in usb_activate() local
555 pcap_snprintf(full_path, USB_LINE_LEN, LINUX_USB_MON_DEV"%d", handlep->bus_index); in usb_activate()
556 handle->fd = open(full_path, O_RDONLY, 0); in usb_activate()
590 "Can't open USB bus file %s", full_path); in usb_activate()
635 pcap_snprintf(full_path, USB_LINE_LEN, USB_TEXT_DIR"/%dt", handlep->bus_index); in usb_activate()
636 handle->fd = open(full_path, O_RDONLY, 0); in usb_activate()
645 pcap_snprintf(full_path, USB_LINE_LEN, USB_TEXT_DIR_OLD"/%dt", handlep->bus_index); in usb_activate()
646 handle->fd = open(full_path, O_RDONLY, 0); in usb_activate()
671 full_path); in usb_activate()
/external/mesa3d/src/compiler/glsl/tests/
Dcache_test.c137 char *full_path = NULL; in check_directories_created() local
138 if (asprintf(&full_path, "%s%s", buf, ++cache_dir) != -1 ) { in check_directories_created()
140 if (stat(full_path, &sb) != -1 && S_ISDIR(sb.st_mode)) in check_directories_created()
143 free(full_path); in check_directories_created()
/external/perfetto/src/traced/probes/ftrace/
Dftrace_procfs.cc284 std::string full_path = root_ + path; in GetEventNamesForGroup() local
285 base::ScopedDir dir(opendir(full_path.c_str())); in GetEventNamesForGroup()
287 PERFETTO_DLOG("Unable to read events from %s", full_path.c_str()); in GetEventNamesForGroup()
298 std::string dir_path = full_path + "/" + ent->d_name; in GetEventNamesForGroup()
/external/python/cpython3/Lib/email/
Dcontentmanager.py46 full_path = '.'.join((modname, qname)) if modname else qname
48 full_path_for_error = full_path
49 if full_path in self.set_handlers:
50 return self.set_handlers[full_path]
/external/python/apitools/apitools/gen/
Dutil.py175 full_path = urllib_parse.urljoin(
178 if api_path_component not in full_path:
179 return full_path, ''
180 prefix, _, suffix = full_path.rpartition(api_path_component)
/external/jsoncpp/
Ddoxybuild.py21 full_path = os.path.join(directory, name)
22 if os.path.isfile(full_path):
23 return full_path
/external/autotest/utils/
Dtest_importer.py130 full_path = os.path.join(autotest_dir, test.path)
131 if not os.path.isfile(full_path):
137 full_path = os.path.join(autotest_dir, "client", "profilers",
139 if not os.path.exists(full_path):
154 full_path = os.path.join(autotest_dir, test.path)
160 full_path = os.path.join(autotest_dir, "client", "profilers",

1234