Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 25 of 1386) sorted by relevance

12345678910>>...56

/external/python/cpython2/Lib/
Dabc.py87 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/
Dcls.c35 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/
Dabc.py133 cls = super().__new__(mcls, name, bases, namespace)
140 value = getattr(cls, name, None)
143 cls.__abstractmethods__ = frozenset(abstracts)
145 cls._abc_registry = WeakSet()
146 cls._abc_cache = WeakSet()
147 cls._abc_negative_cache = WeakSet()
148 cls._abc_negative_cache_version = ABCMeta._abc_invalidation_counter
149 return cls
151 def register(cls, subclass): argument
158 if issubclass(subclass, cls):
[all …]
Denum.py43 def _make_class_unpicklable(cls): argument
47 cls.__reduce_ex__ = _break_on_call_reduce
48 cls.__module__ = '<unknown>'
115 def __prepare__(metacls, cls, bases): argument
124 def __new__(metacls, cls, bases, classdict): argument
153 enum_class = super().__new__(metacls, cls, bases, classdict)
265 def __call__(cls, value, names=None, *, module=None, qualname=None, type=None, start=1): argument
291 return cls.__new__(cls, value)
293 return cls._create_(value, names, module=module, qualname=qualname, type=type, start=start)
295 def __contains__(cls, member): argument
[all …]
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_message.py63 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/nanopb-c/generator/google/protobuf/internal/
Dpython_message.py82 def InitMessage(descriptor, cls): argument
83 cls._decoders_by_tag = {}
84 cls._extensions_by_name = {}
85 cls._extensions_by_number = {}
88 cls._decoders_by_tag[decoder.MESSAGE_SET_ITEM_TAG] = (
89 decoder.MessageSetItemDecoder(cls._extensions_by_number))
93 _AttachFieldHelpers(cls, field)
95 _AddEnumValues(descriptor, cls)
96 _AddInitMethod(descriptor, cls)
97 _AddPropertiesForFields(descriptor, cls)
[all …]
/external/clang/test/Modules/
Dcxx-templates.cpp184cls<void>::nested_fn(); // expected-error 1+{{explicit specialization of 'nested_fn' must be impor… in test()
185cls<void>::nested_fn_t<int>(); // expected-error 1+{{explicit specialization of 'nested_fn_t' must… in test()
186cls<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/
Dpython_message.py117 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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowComponentName.java21 private String cls; field in ShadowComponentName
23 public void __constructor__(String pkg, String cls) { in __constructor__() argument
25 if (cls == null) throw new NullPointerException("class name is null"); in __constructor__()
27 this.cls = cls; in __constructor__()
30 public void __constructor__(Context pkg, String cls) { in __constructor__() argument
31 if (cls == null) throw new NullPointerException("class name is null"); in __constructor__()
33 this.cls = cls; in __constructor__()
36 public void __constructor__(Context pkg, Class<?> cls) { in __constructor__() argument
38 this.cls = cls.getName(); in __constructor__()
48 return cls; in getClassName()
[all …]
/external/scapy/scapy/asn1/
Dber.py181 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/lisa/libs/utils/
Dtest.py63 def _getTestConf(cls): argument
64 if cls.test_conf is None:
66 return cls.test_conf
69 def _getExperimentsConf(cls, test_env): argument
78 if cls.experiments_conf is None:
80 return cls.experiments_conf
83 def runExperiments(cls): argument
87 cls._log = logging.getLogger('LisaTest')
89 cls._log.info('Setup tests execution engine...')
90 test_env = TestEnv(test_conf=cls._getTestConf())
[all …]
/external/autotest/client/common_lib/
Dandroid_utils.py79 def get_product_aliases(cls, product): argument
90 aliases = set(cls.aliases_map.get(product, []))
91 aliases.add(cls.get_board_name(product))
97 def get_board_name(cls, product): argument
107 boards = cls.board_name_map.get(product, None)
160 def get_standalone_images(cls, board): argument
167 if board in cls.standalone_images_map:
169 '%s: %s', board, cls.standalone_images_map[board])
170 return cls.standalone_images_map[board]
172 return cls.DEFAULT_STANDALONE_IMAGES
[all …]
/external/lisa/tests/eas/
Dcapacity_capping.py87 def setUpClass(cls): argument
88 cls.params = {}
89 cls.env = TestEnv(test_conf=TEST_CONF)
90 cls.trace_file = os.path.join(cls.env.res_dir, "cap_cap.dat")
91 cls.populate_params()
93 cls.run_workload()
95 trace = trappy.FTrace(cls.trace_file)
96 cls.sa = SchedMultiAssert(trace, cls.env.topology,
97 execnames=cls.params.keys())
98 times = cls.sa.getStartTime()
[all …]
/external/autotest/frontend/afe/
Drdb_model_extensions.py33 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/
Dtest-u32-filter-with-actions.c106 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 …]
Dtest-complex-HTB-with-hash-filters.c142 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/
Dcxx-templates-unimported.h6 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/
Dtest_subclassinit.py11 def __init_subclass__(cls): argument
13 cls.initialized = True
25 def __init_subclass__(cls): argument
27 cls.initialized = True
37 def __init_subclass__(cls, **kwargs): argument
38 cls.kwargs = kwargs
47 def __init_subclass__(cls): argument
56 def __init_subclass__(cls, whatever): argument
65 def __init_subclass__(cls, **kwargs): argument
67 cls.initialized = cls
[all …]
/external/autotest/scheduler/
Dpostjob_task.py127 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/
DTestNGClassFinder.java58 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/nanopb-c/generator/google/protobuf/
Dservice_reflection.py64 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/protobuf/python/google/protobuf/
Dservice_reflection.py64 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__.py123 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/
DEnum.py20 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/python/cpython3/Lib/idlelib/idle_test/
Dtest_colorizer.py25 def setUpClass(cls): argument
27 cls.root = Tk()
28 cls.text = Text(cls.root)
31 def tearDownClass(cls): argument
32 del cls.text
33 cls.root.destroy()
34 del cls.root
42 def setUpClass(cls): argument
44 cls.root = Tk()
47 def tearDownClass(cls): argument
[all …]

12345678910>>...56