Searched refs:decorators (Results 1 – 25 of 101) sorted by relevance
12345
/external/tensorflow/tensorflow/python/util/ |
D | tf_decorator_test.py | 292 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 …]
|
D | tf_decorator.py | 198 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
|
D | tf_contextlib_test.py | 79 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/ |
D | decorators_test.py | 15 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 …]
|
D | device_utils.py | 34 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 …]
|
D | battery_utils.py | 15 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()
|
D | fastboot_utils.py | 15 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/ |
D | decorators_test.py | 5 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
|
D | meta_class.py | 7 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/ |
D | fastboot.py | 13 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/ |
D | test_decorators.py | 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 239 @decorators.oauth_required
|
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/ |
D | atrace_agent_unittest.py | 12 from systrace import decorators 45 @decorators.Disabled 86 @decorators.HostOnlyTest 93 @decorators.HostOnlyTest 103 @decorators.HostOnlyTest 116 @decorators.HostOnlyTest
|
D | walt_agent_unittest.py | 10 from systrace import decorators 23 @decorators.HostOnlyTest 31 @decorators.HostOnlyTest 40 @decorators.HostOnlyTest
|
D | ftrace_agent_unittest.py | 10 from systrace import decorators 46 @decorators.HostOnlyTest 72 @decorators.HostOnlyTest 105 @decorators.HostOnlyTest 132 @decorators.HostOnlyTest
|
D | atrace_from_file_agent_unittest.py | 11 from systrace import decorators 24 @decorators.HostOnlyTest 51 @decorators.HostOnlyTest 76 @decorators.HostOnlyTest
|
/external/chromium-trace/catapult/systrace/systrace/ |
D | monitor_unittest.py | 8 from systrace import decorators 21 @decorators.HostOnlyTest 37 @decorators.HostOnlyTest 47 @decorators.HostOnlyTest
|
D | output_generator_unittest.py | 12 from systrace import decorators 29 @decorators.HostOnlyTest 48 @decorators.HostOnlyTest 74 @decorators.HostOnlyTest
|
/external/chromium-trace/catapult/systrace/profile_chrome/ |
D | profiler_unittest.py | 13 from systrace import decorators 23 @decorators.ClientOnlyTest 34 @decorators.ClientOnlyTest 47 @decorators.ClientOnlyTest
|
D | perf_tracing_agent_unittest.py | 9 from systrace import decorators 14 @decorators.ClientOnlyTest 24 @decorators.Disabled
|
D | chrome_tracing_agent_unittest.py | 8 from systrace import decorators 17 @decorators.Disabled 35 @decorators.Disabled
|
D | ddms_tracing_agent_unittest.py | 6 from systrace import decorators 14 @decorators.Disabled
|
D | chrome_startup_tracing_agent_unittest.py | 8 from systrace import decorators 17 @decorators.Disabled
|
/external/autotest/client/common_lib/ |
D | decorators_unittest.py | 12 from autotest_lib.client.common_lib import decorators 18 @decorators.in_context('lock') 54 @decorators.cached_property
|
D | time_utils.py | 10 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/ |
D | oauth2client.contrib.django_util.decorators.rst | 1 oauth2client.contrib.django_util.decorators module 4 .. automodule:: oauth2client.contrib.django_util.decorators
|
12345