/external/python/oauth2client/tests/contrib/ |
D | test_appengine.py | 585 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/ |
D | main.py | 72 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/ |
D | main.py | 23 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/ |
D | decorators.py | 105 def decorator(f): function 111 return decorator 128 def decorator(f): function 133 return decorator 153 def decorator(f): function 158 return decorator 182 def decorator(f): function 194 return decorator
|
/external/tensorflow/tensorflow/python/framework/ |
D | test_util.py | 651 def decorator(self, *args, **kwargs): function 734 return decorator 761 def decorator(self, **kwargs): function 801 return decorator 921 def decorator(self, **kwargs): function 979 return decorator 1072 def decorator(f): function 1102 return decorator(func) 1104 return decorator 1112 def decorator(self, async_mode, *args, **kwargs): function [all …]
|
/external/tensorflow/tensorflow/python/util/ |
D | tf_decorator_test.py | 203 decorator = getattr(decorated, '_tf_decorator') 204 self.assertIsInstance(decorator, tf_decorator.TFDecorator) 214 decorator = getattr(decorated, '_tf_decorator') 215 self.assertEqual('test decorator name', decorator.decorator_name) 220 decorator = getattr(decorated, '_tf_decorator') 221 self.assertEqual('test decorator doc', decorator.decorator_doc) 245 decorator = getattr(decorated, '_tf_decorator') 246 self.assertEqual(argspec, decorator.decorator_argspec) 254 decorator = getattr(decorated, '_tf_decorator') 255 self.assertEqual('test_decorator_name', decorator.decorator_name)
|
D | tf_decorator.py | 86 decorator = TFDecorator(decorator_name, target, decorator_doc, 88 setattr(decorator_func, '_tf_decorator', decorator) 103 decorator_func.__doc__ = decorator.__doc__
|
D | dispatch.py | 179 def decorator(func): function 186 return decorator
|
D | tf_inspect_test.py | 85 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/python/cpython3/Doc/library/ |
D | abc.rst | 86 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 …]
|
D | functools.rst | 29 .. decorator:: cache(user_function) 55 .. decorator:: cached_property(func) 76 Note, this decorator interferes with the operation of :pep:`412` 80 Also, this decorator requires that the ``__dict__`` attribute on each instance 126 .. decorator:: lru_cache(user_function) 142 *lru_cache* decorator to be applied directly to a user function, leaving 168 The decorator also provides a :func:`cache_clear` function for clearing or 235 .. decorator:: total_ordering 238 class decorator supplies the rest. This simplifies the effort involved 265 While this decorator makes it easy to create well behaved totally [all …]
|
D | test.rst | 883 .. decorator:: skip_unless_symlink 885 A decorator for running tests that require support for symbolic links. 888 .. decorator:: skip_unless_xattr 890 A decorator for running tests that require support for xattr. 893 .. decorator:: anticipate_failure(condition) 895 A decorator to conditionally mark tests with 896 :func:`unittest.expectedFailure`. Any use of this decorator should 900 .. decorator:: run_with_locale(catstr, *locales) 902 A decorator for running a function in a different locale, correctly 908 .. decorator:: run_with_tz(tz) [all …]
|
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/ |
D | SandboxClassLoader.java | 46 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/tensorflow/tensorflow/python/autograph/pyct/testing/ |
D | decorators.py | 43 def decorator(f): function 50 return decorator
|
/external/python/cpython3/Lib/test/support/ |
D | hashlib_helper.py | 24 def decorator(func): function 38 return decorator
|
/external/autotest/client/common_lib/ |
D | log.py | 26 def decorator(fn): function 34 return decorator
|
D | decorators.py | 97 def decorator(f): function 114 return decorator
|
/external/python/oauth2client/oauth2client/contrib/ |
D | appengine.py | 775 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/tensorflow/tensorflow/core/common_runtime/ |
D | debugger_state_interface.cc | 86 std::unique_ptr<DebugGraphDecoratorInterface>* decorator) { in CreateDecorator() argument 92 *decorator = (*factory_)(options); in CreateDecorator()
|
/external/tensorflow/tensorflow/python/ops/ |
D | batch_ops.py | 89 def decorator(fn): # pylint: disable=missing-docstring function 122 return decorator
|
/external/oss-fuzz/infra/ |
D | retry.py | 47 def decorator(func): function 106 return decorator
|
/external/python/cffi/demo/ |
D | api.py | 12 def decorator(func): function 20 return decorator
|
/external/python/cpython3/Lib/test/ |
D | inspect_fodder2.py | 123 def decorator(func): function 130 @decorator
|
/external/autotest/server/cros/bluetooth/ |
D | bluetooth_adapter_quick_tests.py | 241 def decorator(test_method): function 332 return decorator 473 def decorator(batch_method): function 508 return decorator 632 def decorator(batch_method): function 674 return decorator
|
/external/python/cpython2/Lib/test/ |
D | test_docxmlrpc.py | 13 def decorator(func): function 19 return decorator
|