/external/python/cpython3/Lib/ |
D | _py_abc.py | 36 cls = super().__new__(mcls, name, bases, namespace, **kwargs) 43 value = getattr(cls, name, None) 46 cls.__abstractmethods__ = frozenset(abstracts) 48 cls._abc_registry = WeakSet() 49 cls._abc_cache = WeakSet() 50 cls._abc_negative_cache = WeakSet() 51 cls._abc_negative_cache_version = ABCMeta._abc_invalidation_counter 52 return cls 54 def register(cls, subclass): argument 61 if issubclass(subclass, cls): [all …]
|
D | enum.py | 42 def _make_class_unpicklable(cls): argument 46 cls.__reduce_ex__ = _break_on_call_reduce 47 cls.__module__ = '<unknown>' 126 def __prepare__(metacls, cls, bases): argument 135 def __new__(metacls, cls, bases, classdict): argument 170 enum_class = super().__new__(metacls, cls, bases, classdict) 284 def __call__(cls, value, names=None, *, module=None, qualname=None, type=None, start=1): argument 310 return cls.__new__(cls, value) 312 return cls._create_(value, names, module=module, qualname=qualname, type=type, start=start) 314 def __contains__(cls, member): argument [all …]
|
D | abc.py | 126 cls = super().__new__(mcls, name, bases, namespace, **kwargs) 127 _abc_init(cls) 128 return cls 130 def register(cls, subclass): argument 135 return _abc_register(cls, subclass) 137 def __instancecheck__(cls, instance): argument 139 return _abc_instancecheck(cls, instance) 141 def __subclasscheck__(cls, subclass): argument 143 return _abc_subclasscheck(cls, subclass) 145 def _dump_registry(cls, file=None): argument [all …]
|
/external/python/cpython2/Lib/ |
D | abc.py | 87 cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace) 94 value = getattr(cls, name, None) 97 cls.__abstractmethods__ = frozenset(abstracts) 99 cls._abc_registry = WeakSet() 100 cls._abc_cache = WeakSet() 101 cls._abc_negative_cache = WeakSet() 102 cls._abc_negative_cache_version = ABCMeta._abc_invalidation_counter 103 return cls 105 def register(cls, subclass): argument 109 if issubclass(subclass, cls): [all …]
|
/external/libnl/lib/route/ |
D | cls.c | 35 static int cls_build(struct rtnl_cls *cls, int type, int flags, in cls_build() argument 42 if ((cls->ce_mask & required) != required) { in cls_build() 47 err = rtnl_tc_msg_build(TC_CAST(cls), type, flags, result); in cls_build() 52 prio = rtnl_cls_get_prio(cls); in cls_build() 53 proto = rtnl_cls_get_protocol(cls); in cls_build() 75 void rtnl_cls_put(struct rtnl_cls *cls) in rtnl_cls_put() argument 77 nl_object_put((struct nl_object *) cls); in rtnl_cls_put() 87 void rtnl_cls_set_prio(struct rtnl_cls *cls, uint16_t prio) in rtnl_cls_set_prio() argument 89 cls->c_prio = prio; in rtnl_cls_set_prio() 90 cls->ce_mask |= CLS_ATTR_PRIO; in rtnl_cls_set_prio() [all …]
|
/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_help_about.py | 25 def setUpClass(cls): argument 27 cls.root = Tk() 28 cls.root.withdraw() 29 cls.dialog = About(cls.root, 'About IDLE', _utest=True) 32 def tearDownClass(cls): argument 33 del cls.dialog 34 cls.root.update_idletasks() 35 cls.root.destroy() 36 del cls.root 93 def setUpClass(cls): argument [all …]
|
D | test_config_key.py | 32 def setUpClass(cls): argument 34 cls.root = Tk() 35 cls.root.withdraw() 37 cls.dialog = cls.Validator( 38 cls.root, 'Title', '<<Test>>', keylist, _utest=True) 41 def tearDownClass(cls): argument 42 cls.dialog.cancel() 43 cls.root.update_idletasks() 44 cls.root.destroy() 45 del cls.dialog, cls.root [all …]
|
D | test_autocomplete_w.py | 13 def setUpClass(cls): argument 15 cls.root = Tk() 16 cls.root.withdraw() 17 cls.text = Text(cls.root) 18 cls.acw = acw.AutoCompleteWindow(cls.text) 21 def tearDownClass(cls): argument 22 del cls.text, cls.acw 23 cls.root.update_idletasks() 24 cls.root.destroy() 25 del cls.root
|
D | test_iomenu.py | 14 def setUpClass(cls): argument 16 cls.root = Tk() 17 cls.root.withdraw() 18 cls.editwin = EditorWindow(root=cls.root) 21 def tearDownClass(cls): argument 22 cls.editwin._close() 23 del cls.editwin 24 cls.root.update_idletasks() 25 for id in cls.root.tk.call('after', 'info'): 26 cls.root.after_cancel(id) # Need for EditorWindow. [all …]
|
/external/python/dateutil/dateutil/tz/ |
D | _factories.py | 5 def __init__(cls, *args, **kwargs): argument 6 cls.__instance = None 7 super(_TzSingleton, cls).__init__(*args, **kwargs) 9 def __call__(cls): argument 10 if cls.__instance is None: 11 cls.__instance = super(_TzSingleton, cls).__call__() 12 return cls.__instance 15 def instance(cls, *args, **kwargs): argument 17 return type.__call__(cls, *args, **kwargs) 21 def __init__(cls, *args, **kwargs): argument [all …]
|
/external/autotest/client/cros/cellular/mbim_compliance/ |
D | mbim_message.py | 63 def message_class_new(cls, **kwargs): argument 82 data_format = cls.get_field_format_string(get_all=True) 83 unpack_length = cls.get_struct_len(get_all=True) 91 obj = super(cls, cls).__new__(cls, *struct.unpack_from(data_format, 103 fields = cls.get_fields(get_all=True) 104 defaults = cls.get_defaults(get_all=True) 108 field_value = cls.get_struct_len(get_all=True) 112 field_value = cls.get_next_transaction_id() 119 field_name, cls.__name__)) 123 obj = super(cls, cls).__new__(cls, *field_values) [all …]
|
/external/clang/test/Modules/ |
D | cxx-templates.cpp | 184 …cls<void>::nested_fn(); // expected-error 1+{{explicit specialization of 'nested_fn' must be impor… in test() 185 …cls<void>::nested_fn_t<int>(); // expected-error 1+{{explicit specialization of 'nested_fn_t' must… in test() 186 …cls<void>::nested_fn_t<char>(); // expected-error 1+{{explicit specialization of 'nested_fn_t' mus… in test() 190 cls<void> *k0; // ok in test() 191 cls<char> *k1; // ok in test() 192 cls<int> *k2; // ok in test() 193 cls<int*> *k3; // ok in test() 194 cls<void>::nested_cls *nk1; // ok in test() 195 cls<void>::nested_cls_t<int> *nk2; // ok in test() 196 cls<void>::nested_cls_t<char> *nk3; // ok in test() [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | python_message.py | 117 def __new__(cls, name, bases, dictionary): argument 144 superclass = super(GeneratedProtocolMessageType, cls) 145 new_class = superclass.__new__(cls, name, bases, dictionary) 148 def __init__(cls, name, bases, dictionary): argument 166 cls._decoders_by_tag = {} 167 cls._extensions_by_name = {} 168 cls._extensions_by_number = {} 171 cls._decoders_by_tag[decoder.MESSAGE_SET_ITEM_TAG] = ( 172 decoder.MessageSetItemDecoder(cls._extensions_by_number), None) 176 _AttachFieldHelpers(cls, field) [all …]
|
/external/scapy/scapy/asn1/ |
D | ber.py | 181 def __new__(cls, name, bases, dct): argument 182 c = super(BERcodec_metaclass, cls).__new__(cls, name, bases, dct) 195 def asn1_object(cls, val): argument 196 return cls.tag.asn1_object(val) 199 def check_string(cls, s): argument 202 (cls.__name__,cls.tag), remaining=s) 204 def check_type(cls, s): argument 205 cls.check_string(s) 207 if cls.tag != tag: 209 (cls.__name__, tag, tag, cls.tag), remaining=s) [all …]
|
/external/autotest/frontend/afe/ |
D | rdb_model_extensions.py | 33 def get_field_dict(cls): argument 34 if cls.field_dict is None: 35 cls.field_dict = {} 36 for field in cls._meta.fields: 37 cls.field_dict[field.name] = field 38 return cls.field_dict 42 def clean_foreign_keys(cls, data): argument 49 for field in cls._meta.fields: 64 def _convert_booleans(cls, data): argument 70 for field in cls._meta.fields: [all …]
|
/external/libnl/tests/ |
D | test-u32-filter-with-actions.c | 106 struct rtnl_cls *cls; in u32_add_filter_on_ht_with_hashmask() local 109 cls=rtnl_cls_alloc(); in u32_add_filter_on_ht_with_hashmask() 110 if (!(cls)) { in u32_add_filter_on_ht_with_hashmask() 116 rtnl_tc_set_link(TC_CAST(cls), rtnlLink); in u32_add_filter_on_ht_with_hashmask() 118 if ((err = rtnl_tc_set_kind(TC_CAST(cls), "u32"))) { in u32_add_filter_on_ht_with_hashmask() 123 rtnl_cls_set_prio(cls, prio); in u32_add_filter_on_ht_with_hashmask() 124 rtnl_cls_set_protocol(cls, ETH_P_IP); in u32_add_filter_on_ht_with_hashmask() 126 rtnl_tc_set_parent(TC_CAST(cls), TC_HANDLE(0xffff, 0)); in u32_add_filter_on_ht_with_hashmask() 129 rtnl_u32_set_hashtable(cls, htid); in u32_add_filter_on_ht_with_hashmask() 131 rtnl_u32_add_key_uint32(cls, keyval, keymask, keyoff, keyoffmask); in u32_add_filter_on_ht_with_hashmask() [all …]
|
D | test-complex-HTB-with-hash-filters.c | 142 struct rtnl_cls *cls; in u32_add_filter_on_ht() local 148 cls=rtnl_cls_alloc(); in u32_add_filter_on_ht() 149 if (!(cls)) { in u32_add_filter_on_ht() 155 rtnl_tc_set_link(TC_CAST(cls), rtnlLink); in u32_add_filter_on_ht() 157 if ((err = rtnl_tc_set_kind(TC_CAST(cls), "u32"))) { in u32_add_filter_on_ht() 162 rtnl_cls_set_prio(cls, prio); in u32_add_filter_on_ht() 163 rtnl_cls_set_protocol(cls, ETH_P_IP); in u32_add_filter_on_ht() 165 rtnl_tc_set_parent(TC_CAST(cls), TC_HANDLE(1, 0)); in u32_add_filter_on_ht() 167 rtnl_u32_set_hashtable(cls, htid); in u32_add_filter_on_ht() 169 rtnl_u32_add_key_uint32(cls, keyval, keymask, keyoff, keyoffmask); /* 10.0.0.0/8 */ in u32_add_filter_on_ht() [all …]
|
/external/clang/test/Modules/Inputs/ |
D | cxx-templates-unimported.h | 6 template<> struct cls<int> { 15 template<typename T> struct cls<T*> { 24 template<> void cls<void>::nested_fn() {} 25 template<> struct cls<void>::nested_cls {}; 26 template<> int cls<void>::nested_var; 27 template<> enum class cls<void>::nested_enum { e }; 28 template<> template<typename U> void cls<void>::nested_fn_t() {} 29 template<> template<typename U> struct cls<void>::nested_cls_t {}; 30 template<> template<typename U> int cls<void>::nested_var_t; 35 cls<char>(); [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_subclassinit.py | 10 def __init_subclass__(cls): argument 12 cls.initialized = True 24 def __init_subclass__(cls): argument 26 cls.initialized = True 36 def __init_subclass__(cls, **kwargs): argument 37 cls.kwargs = kwargs 46 def __init_subclass__(cls): argument 55 def __init_subclass__(cls, whatever): argument 64 def __init_subclass__(cls, **kwargs): argument 66 cls.initialized = cls [all …]
|
/external/autotest/scheduler/ |
D | postjob_task.py | 127 def _gauge_metrics(cls): argument 130 m.set(cls._num_running_processes, fields={'task_name': cls.__name__}) 134 def _increment_running_processes(cls): argument 135 cls._num_running_processes += 1 136 cls._gauge_metrics() 140 def _decrement_running_processes(cls): argument 141 cls._num_running_processes -= 1 142 cls._gauge_metrics() 146 def _max_processes(cls): argument 151 def _can_run_new_process(cls): argument [all …]
|
/external/testng/src/main/java/org/testng/internal/ |
D | TestNGClassFinder.java | 58 for (Class cls : allClasses) { in TestNGClassFinder() 60 if (null != cls) { in TestNGClassFinder() 63 ms = cls.getMethods(); in TestNGClassFinder() 66 ppp("Warning: Can't link and determine methods of " + cls); in TestNGClassFinder() 77 Object instance = cls.newInstance(); in TestNGClassFinder() 86 throw new TestNGException("Error creating object factory: " + cls, in TestNGClassFinder() 93 Utils.log("[TestNGClassFinder]", 1, "Unable to read methods on class " + cls.getName() in TestNGClassFinder() 97 if (xmlClass.loadClasses() && xmlClass.getName().equals(cls.getName())) { in TestNGClassFinder() 106 for(Class cls : allClasses) { in TestNGClassFinder() 107 if((null == cls)) { in TestNGClassFinder() [all …]
|
/external/protobuf/python/google/protobuf/ |
D | service_reflection.py | 64 def __init__(cls, name, bases, dictionary): argument 81 service_builder.BuildService(cls) 94 def __init__(cls, name, bases, dictionary): argument 104 super(GeneratedServiceStubType, cls).__init__(name, bases, dictionary) 111 service_stub_builder.BuildServiceStub(cls) 133 def BuildService(self, cls): argument 147 self.cls = cls 148 cls.CallMethod = _WrapCallMethod 149 cls.GetDescriptor = staticmethod(lambda: self.descriptor) 150 cls.GetDescriptor.__doc__ = "Returns the service descriptor." [all …]
|
/external/python/cpython2/Lib/json/ |
D | __init__.py | 123 allow_nan=True, cls=None, indent=None, separators=None, argument 177 cls is None and indent is None and separators is None and 181 if cls is None: 182 cls = JSONEncoder 183 iterable = cls(skipkeys=skipkeys, ensure_ascii=ensure_ascii, 194 allow_nan=True, cls=None, indent=None, separators=None, argument 242 cls is None and indent is None and separators is None and 245 if cls is None: 246 cls = JSONEncoder 247 return cls( [all …]
|
/external/python/cpython2/Demo/newmetaclasses/ |
D | Enum.py | 20 def __init__(cls, name, bases, dict): argument 21 super(EnumMetaclass, cls).__init__(name, bases, dict) 22 cls._members = [] 26 setattr(cls, attr, enumval) 27 cls._members.append(attr) 29 def __getattr__(cls, name): argument 31 return cls._members 34 def __repr__(cls): argument 36 enumbases = [base.__name__ for base in cls.__bases__ 40 enumvalues = ["%s: %d" % (val, getattr(cls, val)) [all …]
|
/external/autotest/server/cros/ |
D | provision.py | 140 def acts_on(cls, label): argument 149 return action.name in cls._actions 153 def run_task_actions(cls, job, host, labels): argument 165 unactionable = cls._filter_unactionable_labels(labels) 167 job.record('INFO', None, cls.name, 168 "Can't %s label '%s'." % (cls.name, label)) 170 for action_item, value in cls._actions_and_values_iter(labels): 177 def _actions_and_values_iter(cls, labels): argument 183 actionable = cls._filter_actionable_labels(labels) 185 sorted_names = sorted(keyval_mapping, key=cls._get_action_priority) [all …]
|