Home
last modified time | relevance | path

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

12345678910>>...37

/external/libnl/lib/route/
Dcls_obj.c34 struct rtnl_cls *cls = (struct rtnl_cls *) obj; in cls_free_data() local
37 tca_free_data((struct rtnl_tca *) cls); in cls_free_data()
39 cops = rtnl_cls_lookup_ops(cls); in cls_free_data()
41 cops->co_free_data(cls); in cls_free_data()
43 nl_data_free(cls->c_subdata); in cls_free_data()
74 struct rtnl_cls *cls = (struct rtnl_cls *) obj; in cls_dump_line() local
77 tca_dump_line((struct rtnl_tca *) cls, "cls", p); in cls_dump_line()
79 nl_dump(p, " prio %u protocol %s", cls->c_prio, in cls_dump_line()
80 nl_ether_proto2str(cls->c_protocol, buf, sizeof(buf))); in cls_dump_line()
82 cops = rtnl_cls_lookup_ops(cls); in cls_dump_line()
[all …]
Dcls.c42 struct rtnl_cls *cls; in cls_msg_parser() local
45 cls = rtnl_cls_alloc(); in cls_msg_parser()
46 if (!cls) { in cls_msg_parser()
50 cls->ce_msgtype = nlh->nlmsg_type; in cls_msg_parser()
52 err = tca_msg_parser(nlh, (struct rtnl_tca *) cls); in cls_msg_parser()
56 cls->c_prio = TC_H_MAJ(cls->c_info) >> 16; in cls_msg_parser()
57 cls->c_protocol = ntohs(TC_H_MIN(cls->c_info)); in cls_msg_parser()
59 cops = rtnl_cls_lookup_ops(cls); in cls_msg_parser()
60 if (cops && cops->co_msg_parser && (err = cops->co_msg_parser(cls)) < 0) in cls_msg_parser()
63 err = pp->pp_cb((struct nl_object *) cls, pp); in cls_msg_parser()
[all …]
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
Dinput_readers.py149 def from_json(cls, input_shard_state): argument
158 raise NotImplementedError("from_json() not implemented in %s" % cls)
170 def split_input(cls, mapper_spec): argument
183 raise NotImplementedError("split_input() not implemented in %s" % cls)
186 def validate(cls, mapper_spec): argument
202 if mapper_spec.input_reader_class() != cls:
302 def from_json(cls, json): argument
311 return cls(db_iters.RangeIteratorFactory.from_json(json))
314 def _get_query_spec(cls, mapper_spec): argument
317 entity_kind = params[cls.ENTITY_KIND_PARAM]
[all …]
Doutput_writers.py105 def validate(cls, mapper_spec): argument
117 raise NotImplementedError("validate() not implemented in %s" % cls)
120 def init_job(cls, mapreduce_state): argument
135 def finalize_job(cls, mapreduce_state): argument
154 def from_json(cls, state): argument
163 raise NotImplementedError("from_json() not implemented in %s" % cls)
175 def create(cls, mr_spec, shard_number, shard_attempt, _writer_state=None): argument
188 raise NotImplementedError("create() not implemented in %s" % cls)
215 def get_filenames(cls, mapreduce_state): argument
230 raise NotImplementedError("get_filenames() not implemented in %s" % cls)
[all …]
/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/appengine/auth/
Dmodels.py68 def create(cls, value): argument
83 entity = cls(key=model.Key(cls, value))
88 def create_multi(cls, values): argument
106 keys = [model.Key(cls, value) for value in values]
107 entities = [cls(key=key) for key in keys]
119 def delete_multi(cls, values): argument
125 return model.delete_multi(model.Key(cls, v) for v in values)
138 def get_key(cls, user, subject, token): argument
154 return model.Key(cls, '%s.%s.%s' % (str(user), subject, token))
157 def create(cls, user, subject, token=None): argument
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/sdb/db/
Dmodel.py31 def __init__(cls, name, bases, dict): argument
32 super(ModelMeta, cls).__init__(name, bases, dict)
34 cls.__sub_classes__ = []
42 base.__sub_classes__.append(cls)
43 cls._manager = get_manager(cls)
48 property.__property_config__(cls, key)
50 props = cls.properties()
54 setattr(cls, '_prop_names', prop_names)
66 def get_lineage(cls): argument
67 l = [c.__name__ for c in cls.mro()]
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/internal/util/
Dcommand_line.py21 def AddCommandLineArgs(cls, parser): argument
25 def ProcessCommandLineArgs(cls, parser, args): argument
35 def Name(cls): argument
36 return camel_case.ToUnderscore(cls.__name__)
39 def Description(cls): argument
40 if cls.__doc__:
41 return cls.__doc__.splitlines()[0]
49 def main(cls, args=None): argument
52 cls.AddCommandLineArgs(parser)
54 cls.ProcessCommandLineArgs(parser, args)
[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/protobuf/python/google/protobuf/internal/
Dpython_message.py91 def InitMessage(descriptor, cls): argument
92 cls._decoders_by_tag = {}
93 cls._extensions_by_name = {}
94 cls._extensions_by_number = {}
97 cls._decoders_by_tag[decoder.MESSAGE_SET_ITEM_TAG] = (
98 decoder.MessageSetItemDecoder(cls._extensions_by_number), None)
102 _AttachFieldHelpers(cls, field)
104 _AddEnumValues(descriptor, cls)
105 _AddInitMethod(descriptor, cls)
106 _AddPropertiesForFields(descriptor, cls)
[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/chromium-trace/catapult/third_party/mapreduce/mapreduce/api/map_job/
Dsample_input_reader.py60 def from_json(cls, state): argument
62 return cls(state[cls.COUNT], state[cls.STRING_LENGTH])
69 def split_input(cls, job_config): argument
72 count = params[cls.COUNT]
73 string_length = params.get(cls.STRING_LENGTH, cls._DEFAULT_STRING_LENGTH)
79 cls(count_per_shard, string_length) for _ in range(shard_count)]
83 mr_input_readers.append(cls(left, string_length))
88 def validate(cls, job_config): argument
90 super(SampleInputReader, cls).validate(job_config)
94 if cls.COUNT not in params:
[all …]
Dabstract_datastore_input_reader.py68 def from_json(cls, state): argument
70 return cls(db_iters.RangeIteratorFactory.from_json(state))
73 def _get_query_spec(cls, params): argument
75 entity_kind = params[cls.ENTITY_KIND_PARAM]
76 filters = params.get(cls.FILTERS_PARAM)
77 app = params.get(cls._APP_PARAM)
78 ns = params.get(cls.NAMESPACE_PARAM)
81 entity_kind=cls._get_raw_entity_kind(entity_kind),
82 keys_only=bool(params.get(cls.KEYS_ONLY_PARAM, False)),
84 batch_size=int(params.get(cls.BATCH_SIZE_PARAM, cls._BATCH_SIZE)),
[all …]
/external/chromium-trace/catapult/third_party/closure_linter/closure_linter/
Djavascripttokenizer.py309 def BuildMatchers(cls): argument
323 '|'.join(cls.KEYWORD_LIST), cls.IDENTIFIER_CHAR))
332 Matcher(cls.START_DOC_COMMENT, Type.START_DOC_COMMENT,
334 Matcher(cls.START_BLOCK_COMMENT, Type.START_BLOCK_COMMENT,
336 Matcher(cls.END_OF_LINE_SINGLE_LINE_COMMENT,
338 Matcher(cls.START_SINGLE_LINE_COMMENT,
341 Matcher(cls.SINGLE_QUOTE, Type.SINGLE_QUOTE_STRING_START,
343 Matcher(cls.DOUBLE_QUOTE, Type.DOUBLE_QUOTE_STRING_START,
345 Matcher(cls.REGEX, Type.REGEX),
349 Matcher(cls.START_BLOCK, Type.START_BLOCK),
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/
Dremote.py208 def from_state(cls, state): argument
521 def __new_async_method(cls, remote): argument
561 def __new_sync_method(cls, async_method): argument
585 def __create_async_methods(cls, remote_methods): argument
597 async_methods[method_name] = cls.__new_async_method(method.remote)
600 def __create_sync_methods(cls, async_methods): argument
612 sync_methods[method_name] = cls.__new_sync_method(async_method)
615 def __new__(cls, name, bases, dct): argument
653 return type.__new__(cls, name, bases, dct)
655 def __init__(cls, name, bases, dct): argument
[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/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/beanstalk/
Dtest_wrapper.py126 def setUpClass(cls): argument
127 cls.random_id = str(random.randint(1, 1000000))
128 cls.app_name = 'app-' + cls.random_id
129 cls.environment = 'environment-' + cls.random_id
130 cls.template = 'template-' + cls.random_id
132 cls.beanstalk = Layer1Wrapper()
133 cls.beanstalk.create_application(application_name=cls.app_name)
134 cls.beanstalk.create_configuration_template(
135 application_name=cls.app_name, template_name=cls.template,
137 cls.app_version = 'version-' + cls.random_id
[all …]
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/lib/input_reader/
D_gcs.py151 def validate(cls, job_config): argument
164 if cls.BUCKET_NAME_PARAM not in reader_params:
167 cls.BUCKET_NAME_PARAM)
170 reader_params[cls.BUCKET_NAME_PARAM])
175 if cls.OBJECT_NAMES_PARAM not in reader_params:
178 cls.OBJECT_NAMES_PARAM)
179 filenames = reader_params[cls.OBJECT_NAMES_PARAM]
191 if cls.DELIMITER_PARAM in reader_params:
192 delimiter = reader_params[cls.DELIMITER_PARAM]
196 (cls.DELIMITER_PARAM, type(delimiter)))
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/testing/
Dbrowser_test_case.py28 def setUpClass(cls): argument
29 cls._platform = None
35 cls.CustomizeBrowserOptions(options.browser_options)
49 cls.tearDownClass()
51 cls._browser = current_browser
52 cls._platform = current_browser.platform
53 cls._device = options.device
56 def tearDownClass(cls): argument
57 if cls._platform:
58 cls._platform.StopAllLocalServers()
[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/libnl/lib/route/cls/
Dbasic.c57 static void basic_free_data(struct rtnl_cls *cls) in basic_free_data() argument
59 struct rtnl_basic *basic = rtnl_cls_data(cls); in basic_free_data()
64 static int basic_msg_parser(struct rtnl_cls *cls) in basic_msg_parser() argument
67 struct rtnl_basic *basic = rtnl_cls_data(cls); in basic_msg_parser()
70 err = tca_parse(tb, TCA_BASIC_MAX, (struct rtnl_tca *) cls, basic_policy); in basic_msg_parser()
99 static void basic_dump_line(struct rtnl_cls *cls, struct nl_dump_params *p) in basic_dump_line() argument
101 struct rtnl_basic *b = rtnl_cls_data(cls); in basic_dump_line()
114 static void basic_dump_details(struct rtnl_cls *cls, struct nl_dump_params *p) in basic_dump_details() argument
116 struct rtnl_basic *b = rtnl_cls_data(cls); in basic_dump_details()
126 static int basic_get_opts(struct rtnl_cls *cls, struct nl_msg *msg) in basic_get_opts() argument
[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/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/chromium-trace/catapult/telemetry/telemetry/story/
Dstory_filter.py45 def AddCommandLineArgs(cls, parser): argument
58 def ProcessCommandLineArgs(cls, parser, args): argument
59 cls._include_regex = _StoryMatcher(args.story_filter)
60 cls._exclude_regex = _StoryMatcher(args.story_filter_exclude)
61 cls._include_labels = _StoryLabelMatcher(args.story_label_filter)
62 cls._exclude_labels = _StoryLabelMatcher(args.story_label_filter_exclude)
64 if cls._include_regex.has_compile_error:
66 if cls._exclude_regex.has_compile_error:
70 def IsSelected(cls, story): argument
72 if cls._exclude_labels.HasLabelIn(story):
[all …]
/external/opencv/ml/src/
Dmlnbayes.cpp63 for( int cls = 0; cls < cls_labels->cols; cls++ ) in clear() local
65 cvReleaseMat( &count[cls] ); in clear()
66 cvReleaseMat( &sum[cls] ); in clear()
67 cvReleaseMat( &productsum[cls] ); in clear()
68 cvReleaseMat( &avg[cls] ); in clear()
69 cvReleaseMat( &inv_eigen_values[cls] ); in clear()
70 cvReleaseMat( &cov_rotate_mats[cls] ); in clear()
122 int cls, nsamples = 0, _var_count = 0, _var_all = 0, nclasses = 0; in train() local
159 for( cls = 0; cls < nclasses; cls++ ) in train()
161 CV_CALL(count[cls] = cvCreateMat( 1, var_count, CV_32SC1 )); in train()
[all …]

12345678910>>...37