Home
last modified time | relevance | path

Searched refs:decorators (Results 1 – 25 of 101) sorted by relevance

12345

/external/tensorflow/tensorflow/python/util/
Dtf_decorator_test.py292 decorators, _ = tf_decorator.unwrap(test_function)
293 self.assertEqual(0, len(decorators))
306 decorators, _ = tf_decorator.unwrap(test_decorated_function)
307 self.assertEqual(3, len(decorators))
308 self.assertTrue(isinstance(decorators[0], tf_decorator.TFDecorator))
309 self.assertTrue(isinstance(decorators[1], tf_decorator.TFDecorator))
310 self.assertTrue(isinstance(decorators[2], tf_decorator.TFDecorator))
311 self.assertIsNot(decorators[0], decorators[1])
312 self.assertIsNot(decorators[1], decorators[2])
313 self.assertIsNot(decorators[2], decorators[0])
[all …]
Dtf_decorator.py198 decorators = []
202 decorators.append(cur)
204 decorators.append(getattr(cur, '_tf_decorator'))
207 if not hasattr(decorators[-1], 'decorated_target'):
209 cur = decorators[-1].decorated_target
210 return decorators, cur
Dtf_contextlib_test.py79 decorators, target = tf_decorator.unwrap(test_params_and_defaults)
80 self.assertEqual(1, len(decorators))
81 self.assertTrue(isinstance(decorators[0], tf_decorator.TFDecorator))
82 self.assertEqual('contextmanager', decorators[0].decorator_name)
/external/chromium-trace/catapult/devil/devil/android/
Ddecorators_test.py15 from devil.android import decorators
30 @decorators.WithTimeoutAndRetries
46 @decorators.WithTimeoutAndRetries
57 @decorators.WithTimeoutAndRetries
77 @decorators.WithTimeoutAndRetries
94 @decorators.WithTimeoutAndConditionalRetries(do_not_retry_no_adb_error)
109 @decorators.WithTimeoutAndConditionalRetries(do_not_retry_no_adb_error)
122 @decorators.WithTimeoutAndRetriesDefaults(1, 0)
145 @decorators.WithTimeoutAndRetriesDefaults(30, 10)
161 @decorators.WithTimeoutAndRetriesDefaults(30, 10)
[all …]
Ddevice_utils.py34 from devil.android import decorators
233 @decorators.WithExplicitTimeoutAndRetries(
255 @decorators.WithExplicitTimeoutAndRetries(
369 assert hasattr(self, decorators.DEFAULT_TIMEOUT_ATTR)
370 assert hasattr(self, decorators.DEFAULT_RETRIES_ATTR)
406 @decorators.WithTimeoutAndRetriesFromInstance()
426 @decorators.WithTimeoutAndRetriesFromInstance()
502 @decorators.WithTimeoutAndRetriesFromInstance()
536 @decorators.WithTimeoutAndRetriesFromInstance()
554 @decorators.WithTimeoutAndRetriesFromInstance()
[all …]
Dbattery_utils.py15 from devil.android import decorators
204 @decorators.WithTimeoutAndRetriesFromInstance()
220 @decorators.WithTimeoutAndRetriesFromInstance()
243 @decorators.WithTimeoutAndRetriesFromInstance()
281 @decorators.WithTimeoutAndRetriesFromInstance()
342 @decorators.WithTimeoutAndRetriesFromInstance()
368 @decorators.WithTimeoutAndRetriesFromInstance()
391 @decorators.WithTimeoutAndRetriesFromInstance()
416 @decorators.WithTimeoutAndRetriesFromInstance()
567 @decorators.WithTimeoutAndRetriesFromInstance()
Dfastboot_utils.py15 from devil.android import decorators
104 @decorators.WithTimeoutAndRetriesFromInstance()
115 @decorators.WithTimeoutAndRetriesFromInstance(
126 @decorators.WithTimeoutAndRetriesFromInstance(
/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
Dmeta_class.py7 from py_trace_event.trace_event_impl import decorators
14 attrs[attr_name] = decorators.traced(attr_value)
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dfastboot.py13 from devil.android import decorators
83 @decorators.WithTimeoutAndRetriesDefaults(_FLASH_TIMEOUT, 0)
94 @decorators.WithTimeoutAndRetriesDefaults(_DEFAULT_TIMEOUT, _DEFAULT_RETRIES)
104 @decorators.WithTimeoutAndRetriesFromInstance()
109 @decorators.WithTimeoutAndRetriesDefaults(_FLASH_TIMEOUT, 0)
114 @decorators.WithTimeoutAndRetriesFromInstance()
/external/python/oauth2client/tests/contrib/django_util/
Dtest_decorators.py29 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
239 @decorators.oauth_required
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/
Datrace_agent_unittest.py12 from systrace import decorators
45 @decorators.Disabled
86 @decorators.HostOnlyTest
93 @decorators.HostOnlyTest
103 @decorators.HostOnlyTest
116 @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.py11 from systrace import decorators
24 @decorators.HostOnlyTest
51 @decorators.HostOnlyTest
76 @decorators.HostOnlyTest
/external/chromium-trace/catapult/systrace/systrace/
Dmonitor_unittest.py8 from systrace import decorators
21 @decorators.HostOnlyTest
37 @decorators.HostOnlyTest
47 @decorators.HostOnlyTest
Doutput_generator_unittest.py12 from systrace import decorators
29 @decorators.HostOnlyTest
48 @decorators.HostOnlyTest
74 @decorators.HostOnlyTest
/external/chromium-trace/catapult/systrace/profile_chrome/
Dprofiler_unittest.py13 from systrace import decorators
23 @decorators.ClientOnlyTest
34 @decorators.ClientOnlyTest
47 @decorators.ClientOnlyTest
Dperf_tracing_agent_unittest.py9 from systrace import decorators
14 @decorators.ClientOnlyTest
24 @decorators.Disabled
Dchrome_tracing_agent_unittest.py8 from systrace import decorators
17 @decorators.Disabled
35 @decorators.Disabled
Dddms_tracing_agent_unittest.py6 from systrace import decorators
14 @decorators.Disabled
Dchrome_startup_tracing_agent_unittest.py8 from systrace import decorators
17 @decorators.Disabled
/external/autotest/client/common_lib/
Ddecorators_unittest.py12 from autotest_lib.client.common_lib import decorators
18 @decorators.in_context('lock')
54 @decorators.cached_property
Dtime_utils.py10 from autotest_lib.client.common_lib import decorators
105 @decorators.test_module_available(pytz, raise_error=True)
106 @decorators.test_module_available(tzlocal, raise_error=True)
/external/python/oauth2client/docs/source/
Doauth2client.contrib.django_util.decorators.rst1 oauth2client.contrib.django_util.decorators module
4 .. automodule:: oauth2client.contrib.django_util.decorators

12345