Home
last modified time | relevance | path

Searched refs:importer (Results 1 - 25 of 60) sorted by relevance

123

/third_party/python/Lib/test/test_importlib/import_/
H A Dtest_fromlist.py20 with util.mock_spec('pkg.__init__', 'pkg.module') as importer:
21 with util.import_state(meta_path=[importer]):
27 with util.mock_spec('pkg.__init__', 'pkg.module')as importer:
28 with util.import_state(meta_path=[importer]):
55 with util.mock_spec('module') as importer:
56 with util.import_state(meta_path=[importer]):
62 with util.mock_spec('module') as importer:
63 with util.import_state(meta_path=[importer]):
70 with util.mock_spec('pkg.__init__', 'pkg.module') as importer:
71 with util.import_state(meta_path=[importer])
[all...]
H A Dtest_meta_path.py12 specified in the sequence, starting with the first importer
60 def log_finder(self, importer):
61 fxn = getattr(importer, self.finder_name)
72 with self.mock_modules(mod_name) as importer:
73 log, wrapped_call = self.log_finder(importer)
74 setattr(importer, self.finder_name, MethodType(wrapped_call, importer))
75 with util.import_state(meta_path=[importer]):
89 with self.mock_modules(pkg_name+'.__init__', mod_name) as importer:
90 importer
[all...]
H A Dtest_path.py33 importer = util.mock_spec(module)
34 with util.import_state(path_importer_cache={path: importer},
37 self.check_found(found, importer)
44 importer = util.mock_spec(module)
45 with util.import_state(path_importer_cache={path: importer}):
47 self.check_found(found, importer)
53 importer = util.mock_spec(module)
54 with util.import_state(path_importer_cache={path: importer},
63 importer = util.mock_spec(module)
64 hook = util.mock_path_hook(path, importer
[all...]
H A Dtest_caching.py79 with self.create_mock('pkg.__init__', 'pkg.module') as importer:
80 with util.import_state(meta_path=[importer]):
91 with self.create_mock('pkg.__init__', 'pkg.module') as importer:
92 with util.import_state(meta_path=[importer]):
H A Dtest___package__.py38 with self.mock_modules('pkg.__init__', 'pkg.fake') as importer:
39 with util.import_state(meta_path=[importer]):
H A Dtest_relative_imports.py67 with util.mock_spec(*create) as importer:
68 with util.import_state(meta_path=[importer]):
/third_party/protobuf/src/google/protobuf/compiler/csharp/
H A Dcsharp_bootstrap_unittest.cc43 #include <google/protobuf/compiler/importer.h>
141 Importer importer(&source_tree, &error_collector); in TEST()
146 generate_test.Run(importer.Import("google/protobuf/descriptor.proto"), in TEST()
149 generate_test.Run(importer.Import("google/protobuf/any.proto"), in TEST()
152 generate_test.Run(importer.Import("google/protobuf/api.proto"), in TEST()
155 generate_test.Run(importer.Import("google/protobuf/duration.proto"), in TEST()
158 generate_test.Run(importer.Import("google/protobuf/empty.proto"), in TEST()
161 generate_test.Run(importer.Import("google/protobuf/field_mask.proto"), in TEST()
164 generate_test.Run(importer.Import("google/protobuf/source_context.proto"), in TEST()
167 generate_test.Run(importer in TEST()
[all...]
/third_party/python/Lib/test/test_importlib/
H A Dtest_lazy.py80 importer = TestingImporter()
81 assert importer.loaded is None
82 with test_util.uncache(importer.module_name):
83 with test_util.import_state(meta_path=[importer]):
84 module = importlib.import_module(importer.module_name)
85 self.assertIsNone(importer.loaded)
87 self.assertEqual(module.__loader__, importer)
88 self.assertIsNotNone(importer.loaded)
89 self.assertEqual(module, importer.loaded)
/third_party/python/Lib/
H A Dpkgutil.py137 def iter_importer_modules(importer, prefix=''):
138 if not hasattr(importer, 'iter_modules'):
140 return importer.iter_modules(prefix)
144 def _iter_file_finder_modules(importer, prefix=''):
145 if importer.path is None or not os.path.isdir(importer.path):
151 filenames = os.listdir(importer.path)
162 path = os.path.join(importer.path, fn)
373 def iter_zipimport_modules(importer, prefix=''):
374 dirlist = sorted(zipimport._zip_directory_cache[importer
[all...]
H A Drunpy.py281 importer = get_importer(path_name)
284 if type(importer).__module__ == 'imp':
285 if type(importer).__name__ == 'NullImporter':
287 if isinstance(importer, type(None)) or is_NullImporter:
/third_party/skia/third_party/externals/libwebp/imageio/
H A Dwicdec.c274 const WICFormatImporter* importer = NULL; in ReadPictureWithWIC() local
337 for (importer = has_alpha ? kAlphaFormatImporters : kNonAlphaFormatImporters; in ReadPictureWithWIC()
338 hr == S_OK && importer->import != NULL; ++importer) { in ReadPictureWithWIC()
343 MAKE_REFGUID(*importer->pixel_format), in ReadPictureWithWIC()
347 if (importer->import == NULL) hr = E_FAIL; in ReadPictureWithWIC()
350 importer->pixel_format, in ReadPictureWithWIC()
356 stride = (int64_t)importer->bytes_per_pixel * width * sizeof(*rgb); in ReadPictureWithWIC()
376 ok = importer->import(pic, rgb, (int)stride); in ReadPictureWithWIC()
/third_party/python/Lib/test/test_importlib/extension/
H A Dtest_finder.py22 importer = self.machinery.FileFinder(util.EXTENSIONS.path,
26 return importer.find_spec(fullname)
/third_party/protobuf/src/google/protobuf/compiler/cpp/
H A Dcpp_bootstrap_unittest.cc51 #include <google/protobuf/compiler/importer.h>
156 Importer importer(&source_tree, &error_collector); in TEST()
158 importer.Import(file_parameter[0] + std::string(".proto")); in TEST()
/third_party/python/Modules/
H A Dmain.c128 PyObject *sys_path0 = NULL, *importer; in pymain_get_importer() local
135 importer = PyImport_GetImporter(sys_path0); in pymain_get_importer()
136 if (importer == NULL) { in pymain_get_importer()
140 if (importer == Py_None) { in pymain_get_importer()
142 Py_DECREF(importer); in pymain_get_importer()
146 Py_DECREF(importer); in pymain_get_importer()
/third_party/python/Lib/test/
H A Dtest_fork1.py28 def importer(): function
35 t = threading.Thread(target=importer)
H A Dtest_doctest.py2746 self.importer = TestImporter()
2747 sys.meta_path.append(self.importer)
/third_party/icu/icu4c/source/i18n/
H A Dcollationruleparser.h125 importer = importerAlias; in setImporter()
189 Importer *importer; member in CollationRuleParser
/third_party/node/deps/icu-small/source/i18n/
H A Dcollationruleparser.h125 importer = importerAlias; in setImporter()
189 Importer *importer; member in CollationRuleParser
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dcollationruleparser.h125 importer = importerAlias; in setImporter()
189 Importer *importer; member in CollationRuleParser
/third_party/node/deps/openssl/openssl/crypto/rsa/
H A Drsa_ameth.c774 OSSL_FUNC_keymgmt_import_fn *importer, in rsa_int_export_to()
820 rv = importer(to_keydata, selection, params); in rsa_int_export_to()
901 OSSL_FUNC_keymgmt_import_fn *importer, in rsa_pkey_export_to()
905 importer, libctx, propq); in rsa_pkey_export_to()
909 OSSL_FUNC_keymgmt_import_fn *importer, in rsa_pss_pkey_export_to()
913 importer, libctx, propq); in rsa_pss_pkey_export_to()
772 rsa_int_export_to(const EVP_PKEY *from, int rsa_type, void *to_keydata, OSSL_FUNC_keymgmt_import_fn *importer, OSSL_LIB_CTX *libctx, const char *propq) rsa_int_export_to() argument
900 rsa_pkey_export_to(const EVP_PKEY *from, void *to_keydata, OSSL_FUNC_keymgmt_import_fn *importer, OSSL_LIB_CTX *libctx, const char *propq) rsa_pkey_export_to() argument
908 rsa_pss_pkey_export_to(const EVP_PKEY *from, void *to_keydata, OSSL_FUNC_keymgmt_import_fn *importer, OSSL_LIB_CTX *libctx, const char *propq) rsa_pss_pkey_export_to() argument
/third_party/openssl/crypto/rsa/
H A Drsa_ameth.c739 OSSL_FUNC_keymgmt_import_fn *importer, in rsa_int_export_to()
785 rv = importer(to_keydata, selection, params); in rsa_int_export_to()
866 OSSL_FUNC_keymgmt_import_fn *importer, in rsa_pkey_export_to()
870 importer, libctx, propq); in rsa_pkey_export_to()
874 OSSL_FUNC_keymgmt_import_fn *importer, in rsa_pss_pkey_export_to()
878 importer, libctx, propq); in rsa_pss_pkey_export_to()
737 rsa_int_export_to(const EVP_PKEY *from, int rsa_type, void *to_keydata, OSSL_FUNC_keymgmt_import_fn *importer, OSSL_LIB_CTX *libctx, const char *propq) rsa_int_export_to() argument
865 rsa_pkey_export_to(const EVP_PKEY *from, void *to_keydata, OSSL_FUNC_keymgmt_import_fn *importer, OSSL_LIB_CTX *libctx, const char *propq) rsa_pkey_export_to() argument
873 rsa_pss_pkey_export_to(const EVP_PKEY *from, void *to_keydata, OSSL_FUNC_keymgmt_import_fn *importer, OSSL_LIB_CTX *libctx, const char *propq) rsa_pss_pkey_export_to() argument
/third_party/python/Python/
H A Dimport.c905 PyObject *importer; in get_path_importer() local
916 importer = PyDict_GetItemWithError(path_importer_cache, p); in get_path_importer()
917 if (importer != NULL || _PyErr_Occurred(tstate)) { in get_path_importer()
918 Py_XINCREF(importer); in get_path_importer()
919 return importer; in get_path_importer()
930 importer = PyObject_CallOneArg(hook, p); in get_path_importer()
931 if (importer != NULL) in get_path_importer()
939 if (importer == NULL) { in get_path_importer()
942 if (PyDict_SetItem(path_importer_cache, p, importer) < 0) { in get_path_importer()
943 Py_DECREF(importer); in get_path_importer()
[all...]
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
H A DCollationRuleParser.java107 importer = importerAlias; in setImporter()
652 if(importer == null) { in parseSetting()
658 importer.getRules(baseID, in parseSetting()
913 private Importer importer; field in CollationRuleParser
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/
H A DCollationRuleParser.java111 importer = importerAlias; in setImporter()
656 if(importer == null) { in parseSetting()
662 importer.getRules(baseID, in parseSetting()
917 private Importer importer; field in CollationRuleParser
/third_party/node/deps/openssl/openssl/include/crypto/
H A Dasn1.h80 OSSL_FUNC_keymgmt_import_fn *importer,

Completed in 19 milliseconds

123