Home
last modified time | relevance | path

Searched refs:importer (Results 1 – 25 of 179) sorted by relevance

12345678

/external/llvm-project/lldb/unittests/Symbol/
DTestClangASTImporter.cpp32 ClangASTImporter importer; in TEST_F() local
33 EXPECT_FALSE(importer.CanImport(CompilerType())); in TEST_F()
37 ClangASTImporter importer; in TEST_F() local
38 EXPECT_FALSE(importer.Import(CompilerType())); in TEST_F()
47 ClangASTImporter importer; in TEST_F() local
49 importer.CopyDecl(&target_ast->getASTContext(), source.record_decl); in TEST_F()
60 ClangASTImporter::DeclOrigin origin = importer.GetDeclOrigin(imported); in TEST_F()
72 ClangASTImporter importer; in TEST_F() local
73 CompilerType imported = importer.CopyType(*target_ast, source.record_type); in TEST_F()
85 importer.GetDeclOrigin(imported_tag_decl); in TEST_F()
[all …]
/external/python/cpython3/Lib/test/test_importlib/import_/
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_modules('pkg.__init__', 'pkg.module')as importer:
28 with util.import_state(meta_path=[importer]):
55 with util.mock_modules('module') as importer:
56 with util.import_state(meta_path=[importer]):
62 with util.mock_modules('module') as importer:
63 with util.import_state(meta_path=[importer]):
70 with util.mock_modules('pkg.__init__', 'pkg.module') as importer:
71 with util.import_state(meta_path=[importer]):
[all …]
Dtest_meta_path.py60 def log_finder(self, importer): argument
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.modules[pkg_name].__path__ = path
91 log, wrapped_call = self.log_finder(importer)
92 setattr(importer, self.finder_name, MethodType(wrapped_call, importer))
[all …]
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=importer)
[all …]
Dtest_caching.py74 with self.create_mock('pkg.__init__', 'pkg.module') as importer:
75 with util.import_state(meta_path=[importer]):
84 with self.create_mock('pkg.__init__', 'pkg.module') as importer:
85 with util.import_state(meta_path=[importer]):
/external/tensorflow/tensorflow/python/framework/
Dimporter_test.py31 from tensorflow.python.framework import importer
64 a, b, c, d = importer.import_graph_def(
123 a, b = importer.import_graph_def(
132 a1, b1 = importer.import_graph_def(
141 a2, b2 = importer.import_graph_def(
150 a3, b3 = importer.import_graph_def(
160 a_a, a_b = importer.import_graph_def(
169 a_a1, a_b1 = importer.import_graph_def(
178 a1_1, b1_1 = importer.import_graph_def(
192 foo, = importer.import_graph_def(
[all …]
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_bootstrap_unittest.cc141 Importer importer(&source_tree, &error_collector); in TEST() local
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.Import("google/protobuf/struct.proto"), in TEST()
170 generate_test.Run(importer.Import("google/protobuf/timestamp.proto"), in TEST()
[all …]
/external/python/cpython2/Lib/email/
D__init__.py113 importer = LazyImporter(_name.lower()) variable
114 sys.modules['email.' + _name] = importer
115 setattr(sys.modules['email'], _name, importer)
120 importer = LazyImporter('mime.' + _name.lower()) variable
121 sys.modules['email.MIME' + _name] = importer
122 setattr(sys.modules['email'], 'MIME' + _name, importer)
123 setattr(sys.modules['email.mime'], _name, importer)
/external/python/cpython2/Lib/
Dpkgutil.py102 for importer, name, ispkg in iter_modules(path, prefix):
103 yield importer, name, ispkg
151 def iter_importer_modules(importer, prefix=''): argument
152 if not hasattr(importer, 'iter_modules'):
154 return importer.iter_modules(prefix)
329 def iter_zipimport_modules(importer, prefix=''): argument
330 dirlist = zipimport._zip_directory_cache[importer.archive].keys()
332 _prefix = importer.prefix
378 importer = sys.path_importer_cache[path_item]
382 importer = path_hook(path_item)
[all …]
Drunpy.py201 importer = cache[path_name]
209 importer = hook(path_name)
219 importer = imp.NullImporter(path_name)
222 cache[path_name] = importer
223 return importer
247 importer = _get_importer(path_name)
248 if isinstance(importer, imp.NullImporter):
/external/python/cpython3/Lib/test/test_importlib/
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)
/external/drm_hwcomposer/utils/
Dhwcutils.cpp48 int DrmHwcBuffer::ImportBuffer(buffer_handle_t handle, Importer *importer) { in ImportBuffer() argument
57 ret = importer->ImportBuffer(&tmp_bo); in ImportBuffer()
67 importer_ = importer; in ImportBuffer()
110 int DrmHwcLayer::ImportBuffer(Importer *importer) { in ImportBuffer() argument
111 int ret = buffer.ImportBuffer(sf_handle, importer); in ImportBuffer()
127 Importer *importer) { in InitFromDrmHwcLayer() argument
135 return ImportBuffer(importer); in InitFromDrmHwcLayer()
/external/llvm-project/lldb/unittests/Expression/
DClangExpressionDeclMapTest.cpp24 FakeClangExpressionDeclMap(const std::shared_ptr<ClangASTImporter> &importer) in FakeClangExpressionDeclMap()
25 : ClangExpressionDeclMap(false, nullptr, lldb::TargetSP(), importer, in FakeClangExpressionDeclMap()
61 std::shared_ptr<ClangASTImporter> importer; member
69 importer = std::make_shared<ClangASTImporter>(); in SetUp()
70 decl_map = std::make_unique<FakeClangExpressionDeclMap>(importer); in SetUp()
76 importer.reset(); in TearDown()
/external/python/cpython3/Lib/
Dpkgutil.py138 def iter_importer_modules(importer, prefix=''): argument
139 if not hasattr(importer, 'iter_modules'):
141 return importer.iter_modules(prefix)
145 def _iter_file_finder_modules(importer, prefix=''): argument
146 if importer.path is None or not os.path.isdir(importer.path):
152 filenames = os.listdir(importer.path)
163 path = os.path.join(importer.path, fn)
372 def iter_zipimport_modules(importer, prefix=''): argument
373 dirlist = sorted(zipimport._zip_directory_cache[importer.archive])
374 _prefix = importer.prefix
[all …]
/external/drm_hwcomposer/include/
Ddrmhwcomposer.h47 DrmHwcBuffer(const hwc_drm_bo &bo, Importer *importer) in DrmHwcBuffer() argument
48 : bo_(bo), importer_(importer) { in DrmHwcBuffer()
74 int ImportBuffer(buffer_handle_t handle, Importer *importer);
143 int ImportBuffer(Importer *importer);
144 int InitFromDrmHwcLayer(DrmHwcLayer *layer, Importer *importer);
/external/javassist/sample/rmi/
DCountApplet.java12 private ObjectImporter importer; field in CountApplet
23 importer = new ObjectImporter(this); in init()
34 importer = new ObjectImporter(cl.getServer(), cl.getPort()); in applicationInit()
53 counter = (Counter)importer.lookupObject(paramName); in start()
/external/python/apitools/apitools/base/protorpclite/
Dmessages_test.py1977 importer=self.Importer)
1985 importer=self.Importer)
1993 importer=self.Importer)
2002 importer=self.Importer)
2008 importer=self.Importer))
2012 messages.find_definition('a.b.c.B.C', importer=self.Importer))
2029 'A', a, importer=self.Importer))
2031 'b.B', a, importer=self.Importer))
2033 'b.c.C', a, importer=self.Importer))
2035 'b.d.D', a, importer=self.Importer))
[all …]
Ddescriptor.py473 def import_descriptor_loader(definition_name, importer=__import__): argument
500 module = importer(definition_name, '', '', [leaf])
509 importer=__import__))
519 parent, importer=importer)
/external/drm_hwcomposer/drm/
DResourceManager.cpp82 std::shared_ptr<Importer> importer; in AddDrmDevice() local
83 importer.reset(new DrmGenericImporter(drm.get())); in AddDrmDevice()
84 if (!importer) { in AddDrmDevice()
88 importers_.push_back(importer); in AddDrmDevice()
/external/python/setuptools/setuptools/
Dsite-patch.py17 importer = pic.get(item)
18 if importer is not None:
19 loader = importer.find_module('site')
/external/python/cpython2/Lib/test/
Dtest_importhooks.py159 def doTestImports(self, importer=None): argument
172 if importer:
173 self.assertEqual(hooktestmodule.__loader__, importer)
174 self.assertEqual(hooktestpackage.__loader__, importer)
175 self.assertEqual(hooktestpackage.sub.__loader__, importer)
176 self.assertEqual(hooktestpackage.sub.subber.__loader__, importer)
/external/javassist/src/main/javassist/tools/rmi/
DSample.java25 private ObjectImporter importer; field in Sample
29 return importer.call(objectId, identifier, args); in forward()
/external/python/cpython3/Lib/test/test_importlib/extension/
Dtest_finder.py15 importer = self.machinery.FileFinder(util.EXTENSIONS.path,
20 return importer.find_module(fullname)
/external/tensorflow/tensorflow/python/training/
Dquantize_training_test.py25 from tensorflow.python.framework import importer
75 _ = importer.import_graph_def(result, name='')
87 _ = importer.import_graph_def(result, name='')
/external/chromium-trace/catapult/third_party/polymer/components/webcomponentsjs/
DHTMLImports.js1025 var importer = { variable
1070 var importLoader = new Loader(importer.loaded.bind(importer), importer.loadedAll.bind(importer));
1071 importer.observer = new Observer();
1112 scope.importer = importer;
1118 var importer = scope.importer;
1129 importer.loadNode(n);
1137 return node.nodeType === 1 && matches.call(node, importer.loadSelectorsForNode(node));
1143 importer.observer.addCallback = dynamic.added.bind(dynamic);
1156 window.HTMLImports.importer.bootDocument(rootDocument);

12345678