Home
last modified time | relevance | path

Searched refs:decorator (Results 1 – 25 of 163) sorted by relevance

1234567

/external/python/oauth2client/tests/contrib/
Dtest_appengine.py585 decorator = appengine.OAuth2Decorator(
589 self._finish_setup(decorator, user_mock=UserMock)
591 def _finish_setup(self, decorator, user_mock): argument
592 self.decorator = decorator
599 @decorator.oauth_required
601 parent.assertTrue(decorator.has_credentials())
603 parent.found_credentials = decorator.credentials
608 @decorator.oauth_aware
613 if decorator.has_credentials():
615 parent.found_credentials = decorator.credentials
[all …]
/external/python/google-api-python-client/samples/appengine/
Dmain.py72 decorator = appengine.oauth2decorator_from_clientsecrets( variable
79 @decorator.oauth_aware
82 'url': decorator.authorize_url(),
83 'has_credentials': decorator.has_credentials()
91 @decorator.oauth_required
94 http = decorator.http()
108 (decorator.callback_path, decorator.callback_handler()),
/external/python/google-api-python-client/samples/tasks_appengine/
Dmain.py23 decorator = OAuth2Decorator(client_id=settings.CLIENT_ID, variable
36 @decorator.oauth_aware
38 if decorator.has_credentials():
40 http=decorator.http())
46 url = decorator.authorize_url()
56 (decorator.callback_path, decorator.callback_handler()),
/external/chromium-trace/catapult/devil/devil/android/
Ddecorators.py93 def decorator(f): function
98 return decorator
114 def decorator(f): function
118 return decorator
137 def decorator(f): function
141 return decorator
165 def decorator(f): function
175 return decorator
/external/v8/src/compiler/
Dgraph.cc29 for (GraphDecorator* const decorator : decorators_) { in Decorate()
30 decorator->Decorate(node); in Decorate()
35 void Graph::AddDecorator(GraphDecorator* decorator) { in AddDecorator() argument
36 decorators_.push_back(decorator); in AddDecorator()
40 void Graph::RemoveDecorator(GraphDecorator* decorator) { in RemoveDecorator() argument
41 auto const it = std::find(decorators_.begin(), decorators_.end(), decorator); in RemoveDecorator()
Dgraph.h87 void AddDecorator(GraphDecorator* decorator); in NON_EXPORTED_BASE()
88 void RemoveDecorator(GraphDecorator* decorator); in NON_EXPORTED_BASE()
/external/tensorflow/tensorflow/python/util/
Dtf_decorator_test.py193 decorator = getattr(decorated, '_tf_decorator')
194 self.assertIsInstance(decorator, tf_decorator.TFDecorator)
204 decorator = getattr(decorated, '_tf_decorator')
205 self.assertEqual('test decorator name', decorator.decorator_name)
210 decorator = getattr(decorated, '_tf_decorator')
211 self.assertEqual('test decorator doc', decorator.decorator_doc)
235 decorator = getattr(decorated, '_tf_decorator')
236 self.assertEqual(argspec, decorator.decorator_argspec)
244 decorator = getattr(decorated, '_tf_decorator')
245 self.assertEqual('test_decorator_name', decorator.decorator_name)
Dtf_decorator.py89 decorator = TFDecorator(decorator_name, target, decorator_doc,
91 setattr(decorator_func, '_tf_decorator', decorator)
104 decorator_func.__doc__ = decorator.__doc__
Ddispatch.py154 def decorator(func): function
161 return decorator
Dtf_inspect_test.py85 decorator = tf_decorator.TFDecorator('', test_undecorated_function, '',
87 self.assertEqual(argspec, tf_inspect.getargspec(decorator))
249 decorator = tf_decorator.TFDecorator('', test_undecorated_function, '',
256 partial_with_decorator = functools.partial(decorator, a=2)
258 self.assertEqual(argspec, tf_inspect.getargspec(decorator))
323 decorator = tf_decorator.TFDecorator('', test_undecorated_function, '',
325 self.assertEqual(argspec, tf_inspect.getfullargspec(decorator))
/external/tensorflow/tensorflow/python/framework/
Dtest_util.py520 def decorator(self, **kwargs): function
571 return decorator
593 def decorator(self, **kwargs): function
633 return decorator
753 def decorator(self, **kwargs): function
811 return decorator
961 def decorator(f): function
1004 return decorator(func)
1006 return decorator
1087 def decorator(f): function
[all …]
/external/python/cpython3/Doc/library/
Dabc.rst86 Returns the registered subclass, to allow usage as a class decorator.
163 The :mod:`abc` module also provides the following decorator:
165 .. decorator:: abstractmethod
167 A decorator indicating abstract methods.
169 Using this decorator requires that the class's metaclass is :class:`ABCMeta`
183 descriptors, it should be applied as the innermost decorator, as shown in
241 .. decorator:: abstractclassmethod
246 :func:`abstractmethod`, making this decorator redundant.
251 This special case is deprecated, as the :func:`classmethod` decorator
262 .. decorator:: abstractstaticmethod
[all …]
Dfunctools.rst46 .. decorator:: lru_cache(maxsize=128, typed=False)
74 The decorator also provides a :func:`cache_clear` function for clearing or
135 .. decorator:: total_ordering
138 class decorator supplies the rest. This simplifies the effort involved
165 While this decorator makes it easy to create well behaved totally
278 .. decorator:: singledispatch
284 decorator. Note that the dispatch happens on the type of the first argument,
295 attribute of the generic function. It is a decorator. For functions
296 annotated with types, the decorator will infer the type of the first
313 argument can be passed explicitly to the decorator itself::
[all …]
Dtest.rst793 .. decorator:: skip_unless_symlink
795 A decorator for running tests that require support for symbolic links.
798 .. decorator:: skip_unless_xattr
800 A decorator for running tests that require support for xattr.
803 .. decorator:: skip_unless_bind_unix_socket
805 A decorator for running tests that require a functional bind() for Unix
809 .. decorator:: anticipate_failure(condition)
811 A decorator to conditionally mark tests with
812 :func:`unittest.expectedFailure`. Any use of this decorator should
816 .. decorator:: run_with_locale(catstr, *locales)
[all …]
Dxmlrpc.server.rst89 This method can also be used as a decorator. When used as a decorator,
94 :meth:`register_function` can be used as a decorator.
194 :meth:`register_function` can also be used as a decorator. The previous server
195 example can register functions in a decorator way::
212 # register_function as a decorator. *name* can only be given
303 This method can also be used as a decorator. When used as a decorator,
308 :meth:`register_function` can be used as a decorator.
/external/tensorflow/tensorflow/contrib/batching/python/ops/
Dbatch_ops.py102 def decorator(fn): # pylint: disable=missing-docstring function
134 return decorator
168 def decorator(f): # pylint: disable=missing-docstring function
200 return decorator
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DSandboxClassLoader.java46 ClassInstrumentor.Decorator decorator = new ShadowDecorator(); in SandboxClassLoader() local
47 classInstrumentor = createClassInstrumentor(decorator); in SandboxClassLoader()
81 protected ClassInstrumentor createClassInstrumentor(ClassInstrumentor.Decorator decorator) { in createClassInstrumentor() argument
83 ? new InvokeDynamicClassInstrumentor(decorator) in createClassInstrumentor()
84 : new OldClassInstrumentor(decorator); in createClassInstrumentor()
/external/python/oauth2client/oauth2client/contrib/
Dappengine.py775 decorator = self
790 decorator._create_flow(self)
791 credentials = decorator.flow.step2_exchange(
793 decorator._storage_class(
794 decorator._credentials_class, None,
795 decorator._credentials_property_name,
804 if (decorator._token_response_param and
808 redirect_uri, decorator._token_response_param,
/external/autotest/client/common_lib/
Dlog.py22 def decorator(fn): function
30 return decorator
Ddecorators.py97 def decorator(f): function
114 return decorator
/external/python/cpython3/Lib/test/
Dinspect_fodder2.py123 def decorator(func): function
130 @decorator
/external/tensorflow/tensorflow/core/common_runtime/
Ddebugger_state_interface.cc86 std::unique_ptr<DebugGraphDecoratorInterface>* decorator) { in CreateDecorator() argument
92 *decorator = (*factory_)(options); in CreateDecorator()
/external/autotest/client/cros/
Dxmlrpc_server.py115 def decorator(wrapped_function): function
144 return decorator
/external/tensorflow/tensorflow/python/autograph/impl/
Dapi.py85 def decorator(f): function
105 return decorator
144 def decorator(f): function
169 return decorator
/external/python/cpython2/Lib/test/support/
D__init__.py420 def decorator(func): function
438 return decorator
1286 def decorator(func): function
1315 return decorator
1322 def decorator(func): function
1348 return decorator
1396 def decorator(f): function
1420 return decorator
1423 def decorator(f): function
1442 return decorator
[all …]

1234567