Home
last modified time | relevance | path

Searched full:decorators (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/external/chromium-trace/catapult/devil/devil/android/
Ddecorators_test.py5 Unit tests for decorators.py.
14 from devil.android import decorators
29 @decorators.WithTimeoutAndRetries
45 @decorators.WithTimeoutAndRetries
57 @decorators.WithTimeoutAndRetries
77 @decorators.WithTimeoutAndRetries
93 @decorators.WithTimeoutAndConditionalRetries(do_not_retry_no_adb_error)
108 @decorators.WithTimeoutAndConditionalRetries(do_not_retry_no_adb_error)
121 @decorators.WithTimeoutAndRetriesDefaults(1, 0)
144 @decorators.WithTimeoutAndRetriesDefaults(30, 10)
[all …]
Ddevice_utils.py34 from devil.android import decorators
66 # the timeout_retry decorators.
305 @decorators.WithExplicitTimeoutAndRetries(_DEFAULT_TIMEOUT, _DEFAULT_RETRIES)
470 assert hasattr(self, decorators.DEFAULT_TIMEOUT_ATTR)
471 assert hasattr(self, decorators.DEFAULT_RETRIES_ATTR)
507 @decorators.WithTimeoutAndRetriesFromInstance()
527 @decorators.WithTimeoutAndRetriesFromInstance()
611 @decorators.WithTimeoutAndRetriesFromInstance()
649 @decorators.WithTimeoutAndRetriesFromInstance()
667 @decorators.WithTimeoutAndRetriesFromInstance()
[all …]
/external/tensorflow/tensorflow/python/util/
Dtf_decorator_test.py298 decorators, _ = tf_decorator.unwrap(test_function)
299 self.assertEqual(0, len(decorators))
312 decorators, _ = tf_decorator.unwrap(test_decorated_function)
313 self.assertEqual(3, len(decorators))
314 self.assertTrue(isinstance(decorators[0], tf_decorator.TFDecorator))
315 self.assertTrue(isinstance(decorators[1], tf_decorator.TFDecorator))
316 self.assertTrue(isinstance(decorators[2], tf_decorator.TFDecorator))
317 self.assertIsNot(decorators[0], decorators[1])
318 self.assertIsNot(decorators[1], decorators[2])
319 self.assertIsNot(decorators[2], decorators[0])
[all …]
Dtf_decorator.py15 """Base TFDecorator class and utility functions for working with decorators.
17 There are two ways to create decorators that TensorFlow can introspect into.
19 signatures aren't obscured by the (*args, **kwds) signature that decorators
205 decorators.
207 decorators = []
211 decorators.append(cur)
213 decorators.append(getattr(cur, '_tf_decorator'))
216 if not hasattr(decorators[-1], 'decorated_target'):
218 cur = decorators[-1].decorated_target
219 return decorators, cur
[all …]
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Ddecorators_test.py5 import decorators
18 self.assertRaises(Exception, lambda: decorators.trace(1))
19 self.assertRaises(Exception, lambda: decorators.trace(""))
20 self.assertRaises(Exception, lambda: decorators.trace([]))
23 self.assertRaises(Exception, lambda: decorators.trace(generator))
26 @decorators.traced
30 @decorators.traced
34 @decorators.traced
/external/cronet/build/android/pylib/utils/
Ddecorators_test.py6 """Unit tests for decorators.py."""
10 from pylib.utils import decorators
18 @decorators.NoRaiseException()
30 @decorators.NoRaiseException(default_return_value=111)
34 @decorators.NoRaiseException(default_return_value=111)
53 @decorators.Memoize
71 @decorators.Memoize
93 @decorators.Memoize
Dlogdog_helper.py12 from pylib.utils import decorators
21 @decorators.NoRaiseException(default_return_value='',
42 @decorators.NoRaiseException(default_return_value=None,
58 @decorators.NoRaiseException(default_return_value='',
78 @decorators.NoRaiseException(default_return_value='',
93 @decorators.Memoize
/external/angle/build/android/pylib/utils/
Ddecorators_test.py6 """Unit tests for decorators.py."""
10 from pylib.utils import decorators
18 @decorators.NoRaiseException()
30 @decorators.NoRaiseException(default_return_value=111)
34 @decorators.NoRaiseException(default_return_value=111)
53 @decorators.Memoize
71 @decorators.Memoize
93 @decorators.Memoize
Dlogdog_helper.py12 from pylib.utils import decorators
21 @decorators.NoRaiseException(default_return_value='',
42 @decorators.NoRaiseException(default_return_value=None,
58 @decorators.NoRaiseException(default_return_value='',
78 @decorators.NoRaiseException(default_return_value='',
93 @decorators.Memoize
/external/python/oauth2client/tests/contrib/django_util/
Dtest_decorators.py15 """Tests for the django_util decorators."""
29 from oauth2client.contrib.django_util import decorators
53 @decorators.oauth_enabled
75 @decorators.oauth_enabled
99 @decorators.oauth_enabled(scopes=['additional-scope'])
127 @decorators.oauth_required
146 @decorators.oauth_required
171 @decorators.oauth_required
189 @decorators.oauth_required(scopes=['additional-scope'])
224 @decorators.oauth_required
[all …]
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dfastboot.py12 from devil.android import decorators
85 @decorators.WithTimeoutAndRetriesDefaults(_DEFAULT_TIMEOUT, _DEFAULT_RETRIES)
98 @decorators.WithTimeoutAndRetriesDefaults(_FLASH_TIMEOUT, 0)
109 @decorators.WithTimeoutAndRetriesDefaults(_DEFAULT_TIMEOUT, _DEFAULT_RETRIES)
119 @decorators.WithTimeoutAndRetriesFromInstance()
124 @decorators.WithTimeoutAndRetriesDefaults(_FLASH_TIMEOUT, 0)
129 @decorators.WithTimeoutAndRetriesFromInstance()
/external/chromium-trace/catapult/devil/devil/utils/
Ddecorators_test.py6 """Unit tests for decorators.py."""
10 from devil.utils import decorators
24 @decorators.Memoize
42 @decorators.Memoize
64 @decorators.Memoize
/external/python/cachetools/
DCHANGELOG.rst43 - Improve behavior of decorators in case of race conditions.
46 of key functions with decorators.
64 - Support ``user_function`` with ``cachetools.func`` decorators
67 - Support ``cache_parameters()`` with ``cachetools.func`` decorators
107 - Add support for ``maxsize=None`` in ``cachetools.func`` decorators.
155 with caching decorators.
215 - Move ``functools`` compatible decorators to ``cachetools.func``.
274 - Ignore ``ValueError`` raised on cache insertion in decorators.
299 function decorators.
307 - Support unsynchronized function decorators.
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/
Datrace_agent_unittest.py12 from systrace import decorators
46 @decorators.Disabled
80 @decorators.HostOnlyTest
87 @decorators.HostOnlyTest
97 @decorators.HostOnlyTest
110 @decorators.HostOnlyTest
Dwalt_agent_unittest.py10 from systrace import decorators
23 @decorators.HostOnlyTest
31 @decorators.HostOnlyTest
40 @decorators.HostOnlyTest
Dftrace_agent_unittest.py10 from systrace import decorators
46 @decorators.HostOnlyTest
72 @decorators.HostOnlyTest
105 @decorators.HostOnlyTest
132 @decorators.HostOnlyTest
Datrace_from_file_agent_unittest.py12 from systrace import decorators
26 @decorators.HostOnlyTest
49 @decorators.HostOnlyTest
74 @decorators.HostOnlyTest
/external/python/python-api-core/google/api_core/gapic_v1/
Dmethod.py49 def _apply_decorators(func, decorators): argument
50 """Apply a list of decorators to a given function.
52 ``decorators`` may contain items that are ``None`` or ``False`` which will
55 decorators = filter(_is_not_none_or_false, reversed(decorators))
57 for decorator in decorators:
140 # Apply all applicable decorators.
198 and timeout decorators. Essentially, when ``wrapped_get_topic()`` is
/external/chromium-trace/catapult/systrace/profile_chrome/
Dprofiler_unittest.py13 from systrace import decorators
23 @decorators.ClientOnlyTest
34 @decorators.ClientOnlyTest
47 @decorators.ClientOnlyTest
/external/chromium-trace/catapult/systrace/systrace/
Dmonitor_unittest.py8 from systrace import decorators
21 @decorators.HostOnlyTest
37 @decorators.HostOnlyTest
47 @decorators.HostOnlyTest
/external/autotest/client/common_lib/
Ddecorators_unittest.py5 """Unit tests for client/common_lib/decorators.py."""
18 from autotest_lib.client.common_lib import decorators
24 @decorators.in_context('lock')
62 @decorators.cached_property
/external/python/cpython2/Lib/test/
Dtest_decorators.py87 decorators = MiscDecorators()
88 @decorators.author('Cleese')
95 # of expressions for decorators.
164 # You can't put multiple decorators on a single line:
194 # Test that decorators are applied in the proper order to the function
206 "Application order of decorators is incorrect")
217 # When there are multiple decorators, these steps should be
219 # iterate through the decorators in the reverse of the order they
/external/python/cachetools/docs/
Dindex.rst2 :mod:`cachetools` --- Extensible memoizing collections and decorators
7 This module provides various memoizing collections and decorators,
22 implemented, and decorators for easily memoizing function and method
66 synchronized, e.g. by using one of the memoizing decorators with a
197 the memoizing decorators described below. However, it may be useful
201 Memoizing decorators
204 The :mod:`cachetools` module provides decorators for memoizing
398 :mod:`cachetools.keys` --- Key functions for memoizing decorators
404 functions with the :func:`cached` and :func:`cachedmethod` decorators:
447 :mod:`cachetools.func` --- :func:`functools.lru_cache` compatible decorators
[all …]
/external/aws-sdk-java-v2/services/s3/src/main/java/software/amazon/awssdk/services/s3/internal/client/
DS3AsyncClientDecorator.java45 List<ConditionalDecorator<S3AsyncClient>> decorators = new ArrayList<>(); in decorate() local
46 decorators.add(ConditionalDecorator.create( in decorate()
50 decorators.add(ConditionalDecorator.create( in decorate()
56 return ConditionalDecorator.decorate(base, decorators); in decorate()
/external/ComputeLibrary/src/core/utils/logging/
DLogger.cpp41 // Set default message decorators
54 // Set default message decorators in Logger()
61 std::vector<std::unique_ptr<IDecorator>> decorators) in Logger() argument
62 …e(name)), _log_level(log_level), _printers(std::move(printers)), _decorators(std::move(decorators)) in Logger()
70 // Check decorators in Logger()

12345678910>>...14