/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/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/nanopb-c/generator/google/protobuf/internal/ |
D | python_message.py | 82 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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowComponentName.java | 21 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/lisa/libs/utils/ |
D | test.py | 60 def _getTestConf(cls): argument 61 if cls.test_conf is None: 63 return cls.test_conf 66 def _getExperimentsConf(cls, test_env): argument 75 if cls.experiments_conf is None: 77 return cls.experiments_conf 80 def runExperiments(cls): argument 84 cls.logger = logging.getLogger('LisaTest') 86 cls.logger.info('Setup tests execution engine...') 87 test_env = TestEnv(test_conf=cls._getTestConf()) [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/autotest/client/common_lib/ |
D | android_utils.py | 79 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/ |
D | capacity_capping.py | 87 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/ |
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/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/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/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/nanopb-c/generator/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/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/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/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 | 155 def acts_on(cls, label): argument 164 return action.name in cls._actions 168 def run_task_actions(cls, job, host, labels): argument 180 unactionable = cls._filter_unactionable_labels(labels) 182 job.record('INFO', None, cls.name, 183 "Can't %s label '%s'." % (cls.name, label)) 185 for action_item, value in cls._actions_and_values_iter(labels): 192 def _actions_and_values_iter(cls, labels): argument 198 actionable = cls._filter_actionable_labels(labels) 200 sorted_names = sorted(keyval_mapping, key=cls._get_action_priority) [all …]
|
/external/mockito/src/main/java/org/mockito/internal/creation/instance/ |
D | ConstructorInstantiator.java | 20 public <T> T newInstance(Class<T> cls) { in newInstance() argument 22 return noArgConstructor(cls); in newInstance() 24 return withParams(cls, outerClassInstance); in newInstance() 27 private static <T> T withParams(Class<T> cls, Object... params) { in withParams() argument 31 for (Constructor<?> constructor : cls.getDeclaredConstructors()) { in withParams() 38 throw paramsException(cls, e); in withParams() 40 throw noMatchingConstructor(cls); in withParams() 50 private static <T> InstantiationException paramsException(Class<T> cls, Exception cause) { in paramsException() argument 52 join("Unable to create instance of '" + cls.getSimpleName() + "'.", in paramsException() 57 private static <T> InstantiationException noMatchingConstructor(Class<T> cls) { in noMatchingConstructor() argument [all …]
|
/external/llvm/test/CodeGen/AArch64/ |
D | arm64-vcnt.ll | 5 ;CHECK: cls.8b 7 %tmp3 = call <8 x i8> @llvm.aarch64.neon.cls.v8i8(<8 x i8> %tmp1) 13 ;CHECK: cls.16b 15 %tmp3 = call <16 x i8> @llvm.aarch64.neon.cls.v16i8(<16 x i8> %tmp1) 21 ;CHECK: cls.4h 23 %tmp3 = call <4 x i16> @llvm.aarch64.neon.cls.v4i16(<4 x i16> %tmp1) 29 ;CHECK: cls.8h 31 %tmp3 = call <8 x i16> @llvm.aarch64.neon.cls.v8i16(<8 x i16> %tmp1) 37 ;CHECK: cls.2s 39 %tmp3 = call <2 x i32> @llvm.aarch64.neon.cls.v2i32(<2 x i32> %tmp1) [all …]
|
/external/trappy/tests/ |
D | test_dynamic.py | 54 cls = trappy.register_dynamic_ftrace("DynamicEvent", "dynamic_test_key", 56 self.assertEquals(cls.__name__, "DynamicEvent") 57 self.assertEquals(cls.name, "dynamic_event") 58 self.assertEquals(cls.unique_word, "dynamic_test_key") 59 self.assertEquals(cls.pivot, "test_pivot") 61 trappy.unregister_dynamic_ftrace(cls) 67 cls = trappy.register_dynamic_ftrace("DynamicEvent", "dynamic_test_key") 69 l = trappy.LinePlot(t, cls, column="load") 72 trappy.unregister_dynamic_ftrace(cls) 79 cls = trappy.register_dynamic_ftrace("DynamicEvent", "dynamic_test_key") [all …]
|
/external/autotest/contrib/ |
D | generate_rpm_mapping.py | 49 def get_rpm_hostname(cls, device_hostname): argument 61 def get_rpm_outlet(cls, device_hostname): argument 73 def get_hydra_hostname(cls, device_hostname): argument 85 def is_device_in_the_lab(cls, device_hostname): argument 94 return device_hostname.lab == cls.LAB_NUMBER 104 def get_rpm_hostname(cls, device_hostname): argument 120 def get_rpm_outlet(cls, device_hostname): argument 153 def get_rpm_hostname(cls, device_hostname): argument 167 def get_rpm_outlet(cls, device_hostname): argument 175 return '.A%d' % cls.RPM_OUTLET_MAP[device_hostname.host] [all …]
|