/external/python/cpython2/Lib/ |
D | runpy.py | 26 def __init__(self, mod_name): argument 27 self.mod_name = mod_name 28 self.module = imp.new_module(mod_name) 32 mod_name = self.mod_name 34 self._saved_module.append(sys.modules[mod_name]) 37 sys.modules[mod_name] = self.module 42 sys.modules[self.mod_name] = self._saved_module[0] 44 del sys.modules[self.mod_name] 63 mod_name=None, mod_fname=None, argument 68 run_globals.update(__name__ = mod_name, [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_runpy.py | 86 def expect_import_error(self, mod_name): argument 88 run_module(mod_name) 92 self.fail("Expected import error for " + mod_name) 133 mod_name = (pkg_name+".")*depth + mod_base 134 return pkg_dir, mod_fname, mod_name 136 def _del_pkg(self, top, depth, mod_name): argument 162 pkg_dir, mod_fname, mod_name = ( 164 forget(mod_name) 166 if verbose: print "Running from source:", mod_name 167 d1 = run_module(mod_name) # Read from source [all …]
|
D | test_zipimport_support.py | 111 mod_name = mod.__name__.split(".")[-1] 112 mod_name = mod_name.replace("sample_", "sample_zipped_") 113 sample_sources[mod_name] = src 121 for mod_name, src in sample_sources.items(): 122 z.writestr(mod_name + ".py", src)
|
D | test_zipimport.py | 227 mod_name = module_path_to_dotted_name(mod_path) 228 __import__(mod_name) 229 mod = sys.modules[mod_name] 235 self.assertEqual(loader.get_source(mod_name), None) 236 self.assertEqual(loader.get_filename(mod_name), mod.__file__) 271 mod_name = module_path_to_dotted_name(mod_path) 272 __import__(mod_name) 273 mod = sys.modules[mod_name] 279 self.assertEqual(loader.get_source(mod_name), None) 280 self.assertEqual(loader.get_filename(mod_name), mod.__file__)
|
/external/ltp/lib/ |
D | tst_module.c | 32 const char *mod_name, char **mod_path) in tst_module_exists() argument 35 if (access(mod_name, F_OK) == 0) { in tst_module_exists() 37 *mod_path = strdup(mod_name); in tst_module_exists() 46 ltproot, mod_name) == -1) { in tst_module_exists() 58 mod_name) == -1) { in tst_module_exists() 70 mod_name); in tst_module_exists() 81 const char *mod_name, char *const argv[]) in tst_module_load() argument 84 tst_module_exists(cleanup_fn, mod_name, &mod_path); in tst_module_load() 104 void tst_module_unload(void (cleanup_fn)(void), const char *mod_name) in tst_module_unload() argument 108 const char *const argv[] = { "rmmod", mod_name, NULL }; in tst_module_unload() [all …]
|
/external/toybox/toys/other/ |
D | rmmod.c | 28 char * mod_name; in rmmod_main() local 32 mod_name = basename(*toys.optargs); in rmmod_main() 35 len = strlen(mod_name); in rmmod_main() 36 if (len > 3 && !strcmp(&mod_name[len-3], ".ko" )) mod_name[len-3] = 0; in rmmod_main() 41 if (delete_module(mod_name, flags)) in rmmod_main() 42 perror_exit("failed to unload %s", mod_name); in rmmod_main()
|
/external/ltp/include/old/ |
D | old_module.h | 47 void tst_module_exist(void (cleanup_fn)(void), const char *mod_name, 62 const char *mod_name, char *const argv[]); 70 void tst_module_unload(void (cleanup_fn)(void), const char *mod_name);
|
/external/ltp/testcases/lib/ |
D | test.sh | 342 local mod_name="$1" 344 if [ -f "$mod_name" ]; then 345 TST_MODPATH="$mod_name" 349 local mod_path="$LTPROOT/testcases/bin/$mod_name" 356 mod_path="$TST_STARTWD/$mod_name" 363 tst_brkm TCONF "Failed to find module '$mod_name'"
|
/external/selinux/policycoreutils/hll/pp/ |
D | pp.c | 132 char *mod_name = mod_pkg->policy->p.name; in main() local 144 if (mod_name && strcmp(mod_name, cil_name) != 0) { in main() 145 …nux userspace will refer to the module from %s as %s rather than %s\n", ifile, mod_name, cil_name); in main()
|
/external/python/cpython2/Lib/lib2to3/fixes/ |
D | fix_renames.py | 63 mod_name = results.get("module_name") 68 if mod_name and attr_name: 69 new_attr = unicode(LOOKUP[(mod_name.value, attr_name.value)])
|
D | fix_imports.py | 125 mod_name = import_mod.value 126 new_name = unicode(self.mapping[mod_name]) 131 self.replace[mod_name] = new_name
|
D | fix_import.py | 69 for mod_name in traverse_imports(imp): 70 if self.probably_a_local_import(mod_name):
|
/external/python/cpython2/Lib/idlelib/ |
D | PathBrowser.py | 87 mod_name = name[:i] 88 if mod_name not in modules: 89 modules[mod_name] = None
|
/external/selinux/semodule-utils/semodule_deps/ |
D | semodule_deps.c | 142 char *mod_name, *req_name, *id; in generate_requires() local 159 mod_name = in generate_requires() 188 mod_name); in generate_requires() 199 mod_name, in generate_requires()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_symbolizer.cc | 36 void AddressInfo::FillModuleInfo(const char *mod_name, uptr mod_offset) { in FillModuleInfo() argument 37 module = internal_strdup(mod_name); in FillModuleInfo()
|
D | sanitizer_symbolizer.h | 46 void FillModuleInfo(const char *mod_name, uptr mod_offset);
|
/external/selinux/checkpolicy/ |
D | checkmodule.c | 263 char *mod_name = modpolicydb.name; in main() local 274 if (strcmp(mod_name, out_name) != 0) { in main() 275 …%s: Module name %s is different than the output base filename %s\n", argv[0], mod_name, out_name); in main()
|
/external/python/cpython2/Doc/library/ |
D | runpy.rst | 23 .. function:: run_module(mod_name, init_globals=None, run_name=None, alter_sys=False) 50 :const:`None`, to ``mod_name + '.__main__'`` if the named module is a 51 package and to the *mod_name* argument otherwise. 61 ``__package__`` is set to *mod_name* if the named module is a package and 62 to ``mod_name.rpartition('.')[0]`` otherwise.
|
/external/elfutils/tests/ |
D | dwflsyms.c | 109 void **user __attribute__ ((unused)), const char *mod_name, in list_syms() argument 116 printf ("%s: %s\n", mod_name, dwfl_errmsg (-1)); in list_syms()
|
/external/python/cpython2/Lib/unittest/ |
D | loader.py | 263 mod_name = os.path.splitext(os.path.basename(full_path))[0] 267 raise ImportError(msg % (mod_name, module_dir, expected_dir))
|
/external/selinux/libsepol/src/ |
D | link.c | 2093 const char *mod_name = cur->branch_list->module_name ? in debug_requirements() local 2109 mod_name, cur->branch_list->decl_id, in debug_requirements() 2115 mod_name, cur->branch_list->decl_id, in debug_requirements() 2123 mod_name, cur->branch_list->decl_id, in debug_requirements() 2133 mod_name, cur->branch_list->decl_id, in debug_requirements() 2152 const char *mod_name = cur->branch_list->module_name ? in print_missing_requirements() local 2168 mod_name, in print_missing_requirements() 2173 mod_name, in print_missing_requirements() 2224 const char *mod_name = decl->module_name ? in enable_avrules() local 2227 mod_name, decl->decl_id); in enable_avrules()
|
/external/freetype/include/freetype/internal/ |
D | ftobjs.h | 530 const char* mod_name );
|
/external/pdfium/third_party/freetype/include/freetype/internal/ |
D | ftobjs.h | 533 const char* mod_name );
|
/external/pdfium/third_party/freetype/src/base/ |
D | ftobjs.c | 4422 const char* mod_name ) in FT_Get_Module_Interface() argument 4429 module = FT_Get_Module( library, mod_name ); in FT_Get_Module_Interface()
|
/external/freetype/src/base/ |
D | ftobjs.c | 4569 const char* mod_name ) in FT_Get_Module_Interface() argument 4576 module = FT_Get_Module( library, mod_name ); in FT_Get_Module_Interface()
|