/external/python/cpython3/Lib/test/test_importlib/source/ |
D | test_source_encoding.py | 35 module_name = '_temp' variable in EncodingTest 38 with util.create_modules(self.module_name) as mapping: 39 with open(mapping[self.module_name], 'wb') as file: 41 loader = self.machinery.SourceFileLoader(self.module_name, 42 mapping[self.module_name]) 94 module = types.ModuleType(self.module_name) 95 module.__spec__ = importlib.util.spec_from_loader(self.module_name, loader) 110 return loader.load_module(self.module_name) 124 module_name = '_temp' 127 with util.create_modules(module_name) as mapping: [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_pdb.py | 1259 self.module_name = 't_main' 1260 support.rmtree(self.module_name) 1261 main_file = self.module_name + '/__main__.py' 1262 init_file = self.module_name + '/__init__.py' 1263 os.mkdir(self.module_name) 1268 self.addCleanup(support.rmtree, self.module_name) 1269 return self._run_pdb(['-m', self.module_name], commands) 1549 module_name = 't_main' 1550 support.rmtree(module_name) 1551 init_file = module_name + '/__init__.py' [all …]
|
/external/python/cffi/c/ |
D | cffi1_module.c | 78 static int make_included_tuples(char *module_name, in make_included_tuples() argument 125 module_name, *p_include); in make_included_tuples() 132 static PyObject *_my_Py_InitModule(char *module_name) in _my_Py_InitModule() argument 137 module_name, in _my_Py_InitModule() 150 return Py_InitModule(module_name, NULL); in _my_Py_InitModule() 160 char *module_name, *exports, *module_name_with_lib; in b_init_cffi_1_0_external_module() local 168 module_name = (char *)raw[0]; in b_init_cffi_1_0_external_module() 179 module_name, (void *)version, CFFI_VERSION); in b_init_cffi_1_0_external_module() 192 m = _my_Py_InitModule(module_name); in b_init_cffi_1_0_external_module() 202 lib = lib_internal_new(ffi, module_name, NULL); in b_init_cffi_1_0_external_module() [all …]
|
/external/rust/crates/grpcio-sys/grpc/tools/distrib/python/grpcio_tools/grpc_tools/ |
D | protoc.py | 65 def _module_name_to_proto_file(suffix, module_name): argument 66 components = module_name.split(".") 80 module_name = _proto_file_to_module_name(_PROTO_MODULE_SUFFIX, 82 module = importlib.import_module(module_name) 89 module_name = _proto_file_to_module_name(_SERVICE_MODULE_SUFFIX, 91 module = importlib.import_module(module_name) 103 def __init__(self, suffix, codegen_fn, module_name, protobuf_path, argument 107 self._module_name = module_name 136 module_name = self._generated_file_to_module_name( 138 if module_name not in sys.modules: [all …]
|
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/ |
D | get_module_and_offset_for_pc.cpp | 23 char module_name[1024]; in Test() local 26 pc, module_name, sizeof(module_name), &offset); in Test() 30 printf("FOUND %s: %s %p\n", name, module_name, offset); in Test() 49 char module_name[1024]; in TestLoop() local 52 __sanitizer_get_module_and_offset_for_pc(pc, module_name, in TestLoop() 53 sizeof(module_name), &offset); in TestLoop()
|
/external/tensorflow/tensorflow/python/util/ |
D | all_util.py | 30 def make_all(module_name, doc_string_modules=None): argument 48 doc_string_modules = [_sys.modules[module_name]] 50 name for name, _ in _tf_inspect.getmembers(_sys.modules[module_name])) 86 def remove_undocumented(module_name, allowed_exception_list=None, argument 102 current_symbols = set(dir(_sys.modules[module_name])) 103 should_have = make_all(module_name, doc_string_modules) 106 target_module = _sys.modules[module_name] 110 fully_qualified_name = module_name + '.' + extra_symbol
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_pkg_import.py | 18 self.module_name = self.package_name + '.foo' 22 for module_name in (self.package_name, self.module_name): 23 if module_name in sys.modules: 24 del sys.modules[module_name] 54 try: __import__(self.module_name) 57 self.assertNotIn(self.module_name, sys.modules) 68 try: __import__(self.module_name) 75 module = __import__(self.module_name).foo
|
D | test_lazy.py | 40 module_name = 'lazy_loader_test' variable in TestingImporter 46 if name != self.module_name: 66 spec = util.spec_from_loader(TestingImporter.module_name, 70 module = types.ModuleType(TestingImporter.module_name) 82 with test_util.uncache(importer.module_name): 84 module = importlib.import_module(importer.module_name) 129 with test_util.uncache(TestingImporter.module_name): 130 fresh_module = types.ModuleType(TestingImporter.module_name) 131 sys.modules[TestingImporter.module_name] = fresh_module 137 with test_util.uncache(TestingImporter.module_name): [all …]
|
/external/python/cffi/cffi/ |
D | setuptools_ext.py | 63 module_name, source, source_extension, kwds = ffi._assigned_source 69 _add_py_module(dist, ffi, module_name) 71 _add_c_module(dist, ffi, module_name, source, source_extension, kwds) 104 def _add_c_module(dist, ffi, module_name, source, source_extension, kwds): argument 115 ext = Extension(name=module_name, sources=allsources, **kwds) 118 c_file = os.path.join(tmpdir, module_name + source_extension) 127 updated = recompiler.make_c_source(ffi, module_name, source, c_file) 150 def _add_py_module(dist, ffi, module_name): argument 160 updated = recompiler.make_py_source(ffi, module_name, py_file) 168 module_path = module_name.split('.') [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_pkgimport.py | 11 self.module_name = self.package_name + '.foo' 15 for module_name in (self.package_name, self.module_name): 16 if module_name in sys.modules: 17 del sys.modules[module_name] 53 try: __import__(self.module_name) 56 self.assertNotIn(self.module_name, sys.modules) 67 try: __import__(self.module_name) 74 module = __import__(self.module_name).foo
|
D | test_py3kwarn.py | 13 def check_deprecated_module(module_name): argument 18 def check_deprecated_module(module_name): argument 22 return any(module_name in msg and ' removed' in msg 357 def check_removal(self, module_name, optional=False): argument 360 if module_name in sys.modules: 361 mod = sys.modules[module_name] 373 % module_name) 375 with CleanImport(module_name), warnings.catch_warnings(): 381 __import__(module_name, level=0) 383 self.assertIn(module_name, exc.args[0], [all …]
|
D | test_source_encoding.py | 70 module_name = 'bad_coding' 71 self.verify_bad_module(module_name) 74 module_name = 'bad_coding2' 75 self.verify_bad_module(module_name) 77 def verify_bad_module(self, module_name): argument 78 self.assertRaises(SyntaxError, __import__, 'test.' + module_name) 81 filename = os.path.join(path, module_name + '.py')
|
/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/ |
D | module.py | 36 module_name = None 40 module_name = s.name 42 module_name = s.name + '.css' 43 if not module_name: 47 module_name = module.name 51 module_name = module.name 53 if module_name: 55 if context[-1] != module_name: 56 context.append(module_name) 58 context.append(module_name) [all …]
|
D | resource_loader.py | 111 def LoadModule(self, module_name=None, module_filename=None, argument 113 assert bool(module_name) ^ bool(module_filename), ( 120 module_name = resource.name 124 if module_name in self.loaded_modules: 125 assert self.loaded_modules[module_name].contents 126 return self.loaded_modules[module_name] 129 resource = self.FindModuleResource(module_name) 131 raise module.DepsException('No resource for module "%s"' % module_name) 133 m = html_module.HTMLModule(self, module_name, resource) 134 self.loaded_modules[module_name] = m
|
D | html_module.py | 92 loader, module_name, module_dir_name, href, tag_for_err_msg): argument 104 'it is not in the search path' % (module_name, tag_for_err_msg)) 109 module_name, tag_for_err_msg)) 113 def Parse(loader, module_name, module_dir_name, is_component, parser_results, argument 125 resource = _HRefToResource(loader, module_name, module_dir_name, 140 'file with an html suffix' % (module_name, href)) 143 loader, module_name, module_dir_name, href, 150 loader, module_name, module_dir_name, href,
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_symbolizer_libcdep.cc | 65 const char *module_name; in SymbolizePC() local 68 if (!FindModuleNameAndOffsetForAddress(addr, &module_name, &module_offset)) in SymbolizePC() 71 res->info.FillModuleInfo(module_name, module_offset); in SymbolizePC() 83 const char *module_name; in SymbolizeData() local 85 if (!FindModuleNameAndOffsetForAddress(addr, &module_name, &module_offset)) in SymbolizeData() 88 info->module = internal_strdup(module_name); in SymbolizeData() 99 bool Symbolizer::GetModuleNameAndOffsetForPC(uptr pc, const char **module_name, in GetModuleNameAndOffsetForPC() argument 107 if (module_name) in GetModuleNameAndOffsetForPC() 108 *module_name = module_names_.GetOwnedCopy(internal_module_name); in GetModuleNameAndOffsetForPC() 136 const char **module_name, in FindModuleNameAndOffsetForAddress() argument [all …]
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_symbolizer_libcdep.cpp | 87 const char *module_name = nullptr; in SymbolizePC() local 91 if (!FindModuleNameAndOffsetForAddress(addr, &module_name, &module_offset, in SymbolizePC() 95 res->info.FillModuleInfo(module_name, module_offset, arch); in SymbolizePC() 107 const char *module_name = nullptr; in SymbolizeData() local 110 if (!FindModuleNameAndOffsetForAddress(addr, &module_name, &module_offset, in SymbolizeData() 114 info->module = internal_strdup(module_name); in SymbolizeData() 128 const char *module_name = nullptr; in SymbolizeFrame() local 130 addr, &module_name, &info->module_offset, &info->module_arch)) in SymbolizeFrame() 132 info->module = internal_strdup(module_name); in SymbolizeFrame() 142 bool Symbolizer::GetModuleNameAndOffsetForPC(uptr pc, const char **module_name, in GetModuleNameAndOffsetForPC() argument [all …]
|
D | sanitizer_coverage_libcdep_new.cpp | 47 static void WriteModuleCoverage(char* file_path, const char* module_name, in WriteModuleCoverage() argument 49 GetCoverageFilename(file_path, StripModuleName(module_name), "sancov"); in WriteModuleCoverage() 61 char* module_name = static_cast<char*>(InternalAlloc(kMaxPathLength)); in SanitizerDumpCoverage() local 83 WriteModuleCoverage(file_path, module_name, &pcs[module_start_idx], in SanitizerDumpCoverage() 90 __sanitizer_get_module_and_offset_for_pc(pc, module_name, kMaxPathLength, in SanitizerDumpCoverage() 96 WriteModuleCoverage(file_path, module_name, &pcs[module_start_idx], in SanitizerDumpCoverage() 101 InternalFree(module_name); in SanitizerDumpCoverage()
|
/external/python/cpython3/Lib/test/test_importlib/builtin/ |
D | test_loader.py | 58 module_name = 'builtin_reload_test' 59 assert module_name not in sys.builtin_module_names 60 with util.uncache(module_name): 61 module = types.ModuleType(module_name) 62 sys.modules[module_name] = module 64 self.load_module(module_name) 65 self.assertEqual(cm.exception.name, module_name)
|
/external/igt-gpu-tools/lib/ |
D | igt_kmod.c | 461 static int open_parameters(const char *module_name) in open_parameters() argument 465 snprintf(path, sizeof(path), "/sys/module/%s/parameters", module_name); in open_parameters() 470 const char *module_name) in igt_kselftest_init() argument 476 tst->module_name = strdup(module_name); in igt_kselftest_init() 477 if (!tst->module_name) in igt_kselftest_init() 482 err = kmod_module_new_from_name(kmod_ctx(), module_name, &tst->kmod); in igt_kselftest_init() 493 if (strcmp(tst->module_name, "i915") == 0) in igt_kselftest_begin() 518 int dir = open_parameters(tst->module_name); in igt_kselftest_execute() 532 tst->module_name, buf, strerror(-err), -err); in igt_kselftest_execute() 545 free(tst->module_name); in igt_kselftest_fini() [all …]
|
/external/freetype/src/base/ |
D | ftpsprop.c | 118 const char* module_name = module->clazz->module_name; in ps_property_set() local 132 else if ( !ft_strcmp( module_name, "cff" ) && in ps_property_set() 138 else if ( ( !ft_strcmp( module_name, "type1" ) || in ps_property_set() 139 !ft_strcmp( module_name, "t1cid" ) ) && in ps_property_set() 156 !ft_strcmp( module_name, "cff" ) ) in ps_property_set() 160 ( !ft_strcmp( module_name, "type1" ) || in ps_property_set() 161 !ft_strcmp( module_name, "t1cid" ) ) ) in ps_property_set()
|
/external/tensorflow/tensorflow/python/tools/api/generator/ |
D | doc_srcs_test.py | 35 for module_name in doc_srcs.get_doc_sources(FLAGS.api_name): 37 file_path = module_name.replace('.', '/') 44 msg='%s is not a valid API module' % module_name) 47 for module_name, docsrc in doc_srcs.get_doc_sources(FLAGS.api_name).items(): 52 '"docstring_module_name" should be set.') % (module_name))
|
/external/grpc-grpc/src/compiler/ |
D | python_generator_helpers.h | 68 grpc::string module_name = ModuleName(filename, import_prefix); in ModuleAlias() local 72 module_name = StringReplace(module_name, "_", "__"); in ModuleAlias() 73 module_name = StringReplace(module_name, ".", "_dot_"); in ModuleAlias() 74 return module_name; in ModuleAlias()
|
/external/llvm-project/lldb/utils/lui/ |
D | lldbutil.py | 328 module_name=None): argument 342 if module_name: 343 command += " --shlib '%s'" % (module_name) 357 module_name=module_name) 373 module_name=None): argument 379 if module_name: 380 command += " --shlib '%s'" % (module_name) 393 module_name=module_name) 408 module_name=None): argument 413 if module_name: [all …]
|
/external/llvm-project/lldb/source/Breakpoint/ |
D | BreakpointResolverAddress.cpp | 39 llvm::StringRef module_name; in CreateFromStructuredData() local 55 GetKey(OptionNames::ModuleName), module_name); in CreateFromStructuredData() 60 module_filespec.SetFile(module_name, FileSpec::Style::native); in CreateFromStructuredData() 72 ConstString module_name; in SerializeToStructuredData() local 74 module_name.SetCString(module_name.GetCString()); in SerializeToStructuredData() 77 module_name.GetCString()); in SerializeToStructuredData()
|