Home
last modified time | relevance | path

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

12345678910>>...96

/external/python/dateutil/dateutil/tz/
D_factories.py7 def __init__(cls, *args, **kwargs): argument
8 cls.__instance = None
9 super(_TzSingleton, cls).__init__(*args, **kwargs)
11 def __call__(cls): argument
12 if cls.__instance is None:
13 cls.__instance = super(_TzSingleton, cls).__call__()
14 return cls.__instance
18 def instance(cls, *args, **kwargs): argument
20 return type.__call__(cls, *args, **kwargs)
24 def __init__(cls, *args, **kwargs): argument
[all …]
/external/python/cpython3/Lib/
D_py_abc.py36 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 …]
Denum.py36 def _make_class_unpicklable(cls): argument
40 cls.__reduce_ex__ = _break_on_call_reduce
41 cls.__module__ = '<unknown>'
125 def __prepare__(metacls, cls, bases): argument
127 metacls._check_for_existing_members(cls, bases)
131 member_type, first_enum = metacls._get_mixins_(cls, bases)
136 def __new__(metacls, cls, bases, classdict): argument
147 member_type, first_enum = metacls._get_mixins_(cls, bases)
171 enum_class = super().__new__(metacls, cls, bases, classdict)
289 def __call__(cls, value, names=None, *, module=None, qualname=None, type=None, start=1): argument
[all …]
/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.c36 static int cls_build(struct rtnl_cls *cls, int type, int flags, in cls_build() argument
43 if ((cls->ce_mask & required) != required) { in cls_build()
48 err = rtnl_tc_msg_build(TC_CAST(cls), type, flags, result); in cls_build()
53 prio = rtnl_cls_get_prio(cls); in cls_build()
54 proto = rtnl_cls_get_protocol(cls); in cls_build()
76 void rtnl_cls_put(struct rtnl_cls *cls) in rtnl_cls_put() argument
78 nl_object_put((struct nl_object *) cls); in rtnl_cls_put()
88 void rtnl_cls_set_prio(struct rtnl_cls *cls, uint16_t prio) in rtnl_cls_set_prio() argument
90 cls->c_prio = prio; in rtnl_cls_set_prio()
91 cls->ce_mask |= CLS_ATTR_PRIO; in rtnl_cls_set_prio()
[all …]
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_editor.py16 def setUpClass(cls): argument
18 cls.root = Tk()
19 cls.root.withdraw()
22 def tearDownClass(cls): argument
23 cls.root.update_idletasks()
24 for id in cls.root.tk.call('after', 'info'):
25 cls.root.after_cancel(id)
26 cls.root.destroy()
27 del cls.root
105 def setUpClass(cls): argument
[all …]
Dtest_help_about.py25 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 …]
Dtest_config_key.py32 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 …]
Dtest_iomenu.py13 def setUpClass(cls): argument
15 cls.root = Tk()
16 cls.root.withdraw()
17 cls.editwin = EditorWindow(root=cls.root)
18 cls.io = iomenu.IOBinding(cls.editwin)
21 def tearDownClass(cls): argument
22 cls.io.close()
23 cls.editwin._close()
24 del cls.editwin
25 cls.root.update_idletasks()
[all …]
Dtest_autocomplete_w.py13 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
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/
DClassUtil.java72 …public static List<Class<?>> findRawSuperTypes(Class<?> cls, Class<?> endBefore, boolean addClassI… in findRawSuperTypes() argument
73 if ((cls == null) || (cls == endBefore) || (cls == Object.class)) { in findRawSuperTypes()
77 _addRawSuperTypes(cls, endBefore, result, addClassItself); in findRawSuperTypes()
91 public static List<Class<?>> findSuperClasses(Class<?> cls, Class<?> endBefore, in findSuperClasses() argument
94 if ((cls != null) && (cls != endBefore)) { in findSuperClasses()
96 result.add(cls); in findSuperClasses()
98 while ((cls = cls.getSuperclass()) != null) { in findSuperClasses()
99 if (cls == endBefore) { in findSuperClasses()
102 result.add(cls); in findSuperClasses()
109 public static List<Class<?>> findSuperTypes(Class<?> cls, Class<?> endBefore) { in findSuperTypes() argument
[all …]
/external/rust/crates/quiche/
Dquiche.svg1cls-1{fill:#f48120;}.cls-2{fill:#edf2f8;stroke:#bfcce2;stroke-miterlimit:10;}.cls-16,.cls-19,.cls-…
/external/llvm-project/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/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/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/dokka/core/src/test/kotlin/model/
DJavaTest.kt11 verifyJavaPackageMember("testdata/java/member.java") { cls -> in <lambda>() method
12 assertEquals("Test", cls.name) in <lambda>()
13 assertEquals(NodeKind.Class, cls.kind) in <lambda>()
14 with(cls.members(NodeKind.Function).single()) { in <lambda>()
48 verifyJavaPackageMember("testdata/java/memberWithModifiers.java") { cls -> in <lambda>() method
49 val modifiers = cls.details(NodeKind.Modifier).map { it.name } in <lambda>()
51 with(cls.members.single { it.name == "fn" }) { in <lambda>()
54 with(cls.members.single { it.name == "openFn" }) { in <lambda>()
61 verifyJavaPackageMember("testdata/java/superClass.java") { cls -> in <lambda>() method
62 val superTypes = cls.details(NodeKind.Supertype) in <lambda>()
[all …]
/external/tensorflow/tensorflow/python/keras/utils/
Dversion_utils.py54 def __new__(cls, *args, **kwargs): # pylint: disable=unused-argument argument
56cls = swap_class(cls, training.Model, training_v1.Model, use_v2) # pylint: disable=self-cls-assig…
57 return super(ModelVersionSelector, cls).__new__(cls)
63 def __new__(cls, *args, **kwargs): # pylint: disable=unused-argument argument
65cls = swap_class(cls, base_layer.Layer, base_layer_v1.Layer, use_v2) # pylint: disable=self-cls-a…
66 return super(LayerVersionSelector, cls).__new__(cls)
72 def __new__(cls, *args, **kwargs): # pylint: disable=unused-argument argument
74 start_cls = cls
75 cls = swap_class(start_cls, callbacks.TensorBoard, callbacks_v1.TensorBoard,
77 if start_cls == callbacks_v1.TensorBoard and cls == callbacks.TensorBoard:
[all …]
/external/tensorflow/tensorflow/python/data/experimental/ops/
Ddistribute_options.py40 def _to_proto(cls, obj): argument
42 if obj == cls.OFF:
44 if obj == cls.FILE:
46 if obj == cls.DATA:
48 if obj == cls.AUTO:
51 (cls.__name__, obj.name))
54 def _from_proto(cls, pb): argument
57 return cls.OFF
59 return cls.FILE
61 return cls.DATA
[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/protobuf/python/google/protobuf/internal/
Dpython_message.py107 def __new__(cls, name, bases, dictionary): argument
149 superclass = super(GeneratedProtocolMessageType, cls)
150 new_class = superclass.__new__(cls, name, bases, dictionary)
153 def __init__(cls, name, bases, dictionary): argument
176 assert existing_class is cls, (
181 cls._decoders_by_tag = {}
184 cls._decoders_by_tag[decoder.MESSAGE_SET_ITEM_TAG] = (
189 _AttachFieldHelpers(cls, field)
191 descriptor._concrete_class = cls # pylint: disable=protected-access
192 _AddEnumValues(descriptor, cls)
[all …]
/external/python/cryptography/src/cryptography/hazmat/bindings/openssl/
Dbinding.py110 def _register_osrandom_engine(cls): argument
116 cls.lib.ERR_clear_error()
117 cls._osrandom_engine_id = cls.lib.Cryptography_osrandom_engine_id
118 cls._osrandom_engine_name = cls.lib.Cryptography_osrandom_engine_name
119 result = cls.lib.Cryptography_add_osrandom_engine()
120 _openssl_assert(cls.lib, result in (1, 2))
123 def _ensure_ffi_initialized(cls): argument
124 with cls._init_lock:
125 if not cls._lib_loaded:
126 cls.lib = build_conditional_library(lib, CONDITIONAL_NAMES)
[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/llvm-project/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/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/enum34/enum/
D__init__.py86 def _make_class_unpicklable(cls): argument
90 cls.__reduce_ex__ = _break_on_call_reduce
91 cls.__module__ = '<unknown>'
150 def __prepare__(metacls, cls, bases): argument
153 def __new__(metacls, cls, bases, classdict): argument
200 enum_class = super(EnumMeta, metacls).__new__(metacls, cls, bases, classdict)
324 def __bool__(cls): argument
330 def __call__(cls, value, names=None, module=None, type=None, start=1): argument
347 return cls.__new__(cls, value)
349 return cls._create_(value, names, module=module, type=type, start=start)
[all …]

12345678910>>...96