/external/python/dateutil/dateutil/tz/ |
D | _factories.py | 7 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.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 | 36 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/ |
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 | 36 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/ |
D | test_editor.py | 16 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 …]
|
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_iomenu.py | 13 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 …]
|
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
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/util/ |
D | ClassUtil.java | 72 …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/ |
D | quiche.svg | 1 …cls-1{fill:#f48120;}.cls-2{fill:#edf2f8;stroke:#bfcce2;stroke-miterlimit:10;}.cls-16,.cls-19,.cls-…
|
/external/llvm-project/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/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/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/dokka/core/src/test/kotlin/model/ |
D | JavaTest.kt | 11 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/ |
D | version_utils.py | 54 def __new__(cls, *args, **kwargs): # pylint: disable=unused-argument argument 56 …cls = 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 65 …cls = 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/ |
D | distribute_options.py | 40 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/ |
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/protobuf/python/google/protobuf/internal/ |
D | python_message.py | 107 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/ |
D | binding.py | 110 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/ |
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/llvm-project/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/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/enum34/enum/ |
D | __init__.py | 86 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 …]
|