/third_party/python/Lib/ |
H A D | typing.py | 275 def _check_generic(cls, parameters, elen): 276 """Check correct count for parameters of a generic cls (internal helper). 281 raise TypeError(f"{cls} is not a generic class") 284 raise TypeError(f"Too {'many' if alen > elen else 'few'} arguments for {cls};" 402 def __init_subclass__(cls, /, *args, **kwds): 473 def __subclasscheck__(self, cls): 512 def __new__(cls, *args, **kwargs): 513 if cls is Any: 515 return super().__new__(cls, *args, **kwargs) 1300 def __subclasscheck__(self, cls) [all...] |
/third_party/markupsafe/ |
H A D | __init__.py | 68 cls, base: t.Any = "", encoding: t.Optional[str] = None, errors: str = "strict" 74 return super().__new__(cls, base) 76 return super().__new__(cls, base, encoding, errors) 200 def escape(cls, s: t.Any) -> "te.Self": 206 if rv.__class__ is not cls: 207 return cls(rv) 235 cls = self.__class__ 236 return cls(l), cls(s), cls( [all...] |
/third_party/skia/third_party/externals/microhttpd/src/include/ |
H A D | microspdy.h | 586 * @param cls user specified value
592 (*SPDY_PanicCallback) (void * cls,
602 * @param cls client-defined closure
606 (*SPDY_NewSessionCallback) (void * cls,
616 * @param cls client-defined closure
623 (*SPDY_SessionClosedCallback) (void *cls,
631 * @param cls client-defined closure
638 (*SPDY_NameValueIterator) (void *cls,
649 * @param cls client-defined closure
670 (*SPDY_NewRequestCallback) (void *cls,
[all...] |
/third_party/PyYAML/lib/yaml/ |
H A D | resolver.py | 26 def add_implicit_resolver(cls, tag, regexp, first): 27 if not 'yaml_implicit_resolvers' in cls.__dict__: 29 for key in cls.yaml_implicit_resolvers: 30 implicit_resolvers[key] = cls.yaml_implicit_resolvers[key][:] 31 cls.yaml_implicit_resolvers = implicit_resolvers 35 cls.yaml_implicit_resolvers.setdefault(ch, []).append((tag, regexp)) 38 def add_path_resolver(cls, tag, path, kind=None): 51 if not 'yaml_path_resolvers' in cls.__dict__: 52 cls.yaml_path_resolvers = cls [all...] |
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_outwin.py | 15 def setUpClass(cls): 17 root = cls.root = Tk() 19 w = cls.window = outwin.OutputWindow(None, None, None, root) 20 cls.text = w.text = Text(root) 23 def tearDownClass(cls): 24 cls.window.close() 25 del cls.text, cls.window 26 cls.root.destroy() 27 del cls [all...] |
H A D | test_history.py | 20 def setUpClass(cls): 21 cls.text = mkText() 22 cls.history = History(cls.text) 72 def setUpClass(cls): 74 cls.root = tk.Tk() 75 cls.root.withdraw() 86 def tearDownClass(cls): 87 cls.root.destroy() 88 del cls [all...] |
H A D | test_tree.py | 13 def setUpClass(cls): 14 cls.root = Tk() 15 cls.root.withdraw() 18 def tearDownClass(cls): 19 cls.root.destroy() 20 del cls.root
|
H A D | test_query.py | 211 def tearDownClass(cls): 212 query.platform = cls.orig_platform 321 def setUpClass(cls): 323 cls.root = root = Tk() 324 cls.root.withdraw() 325 cls.dialog = query.Query(root, 'TEST', 'test', _utest=True) 326 cls.dialog.destroy = mock.Mock() 329 def tearDownClass(cls): 330 del cls.dialog.destroy 331 del cls [all...] |
/test/testfwk/xdevice/plugins/devicetest/utils/ |
H A D | time_util.py | 68 def get_formated_datetime(cls, time_value=None): 88 def get_formated_datetime_name(cls, time_val=None): 103 for _str in cls.get_formated_datetime(time_val).timetuple()[:6]: 108 def convert_formated_name(cls, convert_time, 119 def get_now_datetime(cls, time_format="%Y%m%d%H%M%S%f"): 130 def get_timeout_value(cls): 140 def get_formated_time(cls, time_format='%Y-%m-%d %H:%M:%S'): 149 def get_interval_timestamp(cls, start_format_time, end_format_time,
|
/third_party/nghttp2/tests/ |
H A D | end_to_end.py | 47 def setUpClass(cls): 48 cls.setUpServer([]) 51 def setUpServer(cls, args): 52 cls.server = _run_server(_PORT, args) 56 def tearDownClass(cls): 57 _kill_server(cls.server) 95 def setUpClass(cls): 96 cls.setUpServer(['-3'])
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_matchall.c | 12 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_egress_validate() 14 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_egress_validate() 15 struct flow_action *actions = &cls->rule->action; in cxgb4_matchall_egress_validate() 121 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_alloc_tc() 134 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_alloc_tc() 145 flow_action_for_each(i, entry, &cls->rule->action) in cxgb4_matchall_alloc_tc() 167 tc_port_matchall->egress.cookie = cls->cookie; in cxgb4_matchall_alloc_tc() 192 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_mirror_alloc() 194 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_mirror_alloc() 203 flow_action_for_each(i, act, &cls in cxgb4_matchall_mirror_alloc() 11 cxgb4_matchall_egress_validate(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_egress_validate() argument 120 cxgb4_matchall_alloc_tc(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_alloc_tc() argument 191 cxgb4_matchall_mirror_alloc(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_mirror_alloc() argument 251 cxgb4_matchall_add_filter(struct net_device *dev, struct tc_cls_matchall_offload *cls, u8 filter_type) cxgb4_matchall_add_filter() argument 299 cxgb4_matchall_alloc_filter(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_alloc_filter() argument [all...] |
/third_party/mbedtls/scripts/mbedtls_dev/ |
H A D | test_data_generation.py | 60 def __new__(cls, *args, **kwargs): 62 cls.count += 1 63 return super().__new__(cls) 108 def generate_function_tests(cls) -> Iterator[test_case.TestCase]: 134 def generate_tests(cls) -> Iterator[test_case.TestCase]: 144 if issubclass(cls, BaseTest) and not inspect.isabstract(cls): 146 yield from cls.generate_function_tests() 147 for subclass in sorted(cls.__subclasses__(), key=lambda c: c.__name__):
|
H A D | bignum_core.py | 56 def generate_function_tests(cls) -> Iterator[test_case.TestCase]: 57 for input_hex, descr, counts in cls.DATA: 59 yield cls(input_hex, descr, count).create_test_case() 155 def generate_function_tests(cls) -> Iterator[test_case.TestCase]: 156 for bitsize, bitsize_description in cls.bitsizes: 157 for window_size in cls.window_sizes: 158 yield (cls(bitsize, bitsize_description, window_size) 269 def get_value_pairs(cls) -> Iterator[Tuple[str, str]]: 276 yield from cls.input_cases 279 def generate_function_tests(cls) [all...] |
/third_party/python/Modules/clinic/ |
H A D | _dbmmodule.c.h | 33 _dbm_dbm_keys_impl(dbmobject *self, PyTypeObject *cls); 36 _dbm_dbm_keys(dbmobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _dbm_dbm_keys() argument 42 return _dbm_dbm_keys_impl(self, cls); in _dbm_dbm_keys() 55 _dbm_dbm_get_impl(dbmobject *self, PyTypeObject *cls, const char *key, 59 _dbm_dbm_get(dbmobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _dbm_dbm_get() argument 72 return_value = _dbm_dbm_get_impl(self, cls, key, key_length, default_value); in _dbm_dbm_get() 90 _dbm_dbm_setdefault_impl(dbmobject *self, PyTypeObject *cls, const char *key, 94 _dbm_dbm_setdefault(dbmobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _dbm_dbm_setdefault() argument 107 return_value = _dbm_dbm_setdefault_impl(self, cls, key, key_length, default_value); in _dbm_dbm_setdefault()
|
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/testing/ |
H A D | AssertUtils.java | 15 public static <T extends Throwable> T assertThrows(Class<T> cls, CheckedRunnable<T> fn) { in assertThrows() argument 19 if (cls.isInstance(t)) { in assertThrows() 20 return cls.cast(t); in assertThrows() 22 fail("expected " + cls.getName() + " but got " + t.getClass().getName()); in assertThrows() 24 fail("expected " + cls.getName() + " but nothing was thrown"); in assertThrows()
|
/test/testfwk/developer_test/src/core/command/ |
H A D | console.py | 61 def __new__(cls, *args, **kwargs):
62 if cls.__instance is None:
63 cls.__instance = super(Console, cls).__new__(cls, *args, **kwargs)
64 return cls.__instance
93 def argument_parser(cls, para_list):
265 cls._params_pre_processing(para_list)
267 cls._params_post_processing(options)
286 def _params_pre_processing(cls, para_lis [all...] |
/third_party/skia/third_party/externals/microhttpd/src/microspdy/ |
H A D | applicationlayer.c | 35 spdy_callback_response_done(void *cls, in spdy_callback_response_done() argument 41 (void)cls; in spdy_callback_response_done() 54 * @param cls 59 spdy_handler_new_stream (void *cls, in spdy_handler_new_stream() argument 62 (void)cls; in spdy_handler_new_stream() 160 daemon->new_request_cb(daemon->cls, in spdy_handler_new_stream() 171 stream->cls = request; in spdy_handler_new_stream() 187 spdy_handler_new_data (void * cls, in spdy_handler_new_data() argument 193 return stream->session->daemon->received_data_cb(cls, stream->cls, bu in spdy_handler_new_data() 212 spdy_handler_response_queue_result(void * cls, struct SPDYF_Response_Queue *response_queue, enum SPDY_RESPONSE_RESULT status) spdy_handler_response_queue_result() argument 325 SPDY_start_daemon(uint16_t port, const char *certfile, const char *keyfile, SPDY_NewSessionCallback nscb, SPDY_SessionClosedCallback sccb, SPDY_NewRequestCallback nrcb, SPDY_NewDataCallback npdcb, void * cls, ...) SPDY_start_daemon() argument 711 SPDY_set_cls_to_session(struct SPDY_Session * session, void * cls) SPDY_set_cls_to_session() argument 738 SPDY_set_cls_to_request(struct SPDY_Request * request, void * cls) SPDY_set_cls_to_request() argument [all...] |
/third_party/python/Lib/test/ |
H A D | test_genericclass.py | 163 def __class_getitem__(cls, item): 170 def __class_getitem__(cls, item): 171 return f'{cls.__name__}[{item.__name__}]' 178 def __class_getitem__(cls, item): 181 def __class_getitem__(cls, item): 182 return f'{cls.__name__}[{item.__name__}]' 189 def __class_getitem__(cls, item): 190 return f'{cls.__name__}[{item.__name__}]' 197 def __init_subclass__(cls): 198 def __class_getitem__(cls, ite [all...] |
H A D | test_finalization.py | 13 def with_tp_del(cls): 15 def __new__(cls, *args, **kwargs): 22 def without_gc(cls): 24 def __new__(cls, *args, **kwargs): 47 def _cleanup(cls): 48 cls.survivors.clear() 49 cls.errors.clear() 52 cls.del_calls.clear() 53 cls.tp_del_calls.clear() 57 def test(cls) [all...] |
H A D | test_asdl_parser.py | 22 def setUpClass(cls): 33 cls.asdl = module 34 cls.mod = cls.asdl.parse(os.path.join(parser_dir, 'Python.asdl')) 35 cls.assertTrue(cls.asdl.check(cls.mod), 'Module validation failed') 38 def tearDownClass(cls):
|
/third_party/skia/third_party/externals/microhttpd/src/testcurl/https/ |
H A D | tls_test_common.h | 53 void *cls; member 83 test_daemon_get (void * cls, 92 http_ahc (void *cls, struct MHD_Connection *connection, 97 http_dummy_ahc (void *cls, struct MHD_Connection *connection, 117 test_https_transfer (void *cls, const char *cipher_suite, int proto_version); 138 (*test_function) (void * cls, const char *cipher_suite,
|
/third_party/mbedtls/scripts/ |
H A D | assemble_changelog.py | 82 def extract_top_version(cls, changelog_file_content): 97 def version_title_text(cls, version_title): 102 def split_categories(cls, version_body): 111 def format_category(cls, title, body): 120 def is_released_version(cls, title): 128 def extract_top_version(cls, changelog_file_content): 130 m = re.search(cls._top_version_re, changelog_file_content) 135 name = re.match(cls._name_re, top_version_title).group(1) 136 if cls.is_released_version(top_version_title): 138 top_version_title = cls [all...] |
/third_party/skia/third_party/externals/microhttpd/src/examples/ |
H A D | spdy_response_with_callback.c | 42 response_callback (void *cls, in response_callback() argument 47 FILE *fd =(FILE*)cls; in response_callback() 60 response_done_callback(void *cls, in response_done_callback() argument 69 printf("answer for %s was sent\n", (char *)cls); in response_done_callback() 73 free(cls); in response_done_callback() 78 standard_request_handler(void *cls, in standard_request_handler() argument 89 (void)cls; in standard_request_handler()
|
/third_party/python/Lib/test/test_tools/ |
H A D | test_md5sum.py | 17 def setUpClass(cls): 18 cls.script = os.path.join(scriptsdir, 'md5sum.py') 20 cls.fodder = os.path.join(os_helper.TESTFN_ASCII, 'md5sum.fodder') 21 with open(cls.fodder, 'wb') as f: 23 cls.fodder_md5 = b'd38dae2eb1ab346a292ef6850f9e1a0d' 24 cls.fodder_textmode_md5 = b'a8b07894e2ca3f2a4c3094065fa6e0a5' 27 def tearDownClass(cls):
|
/third_party/python/Modules/_sre/clinic/ |
H A D | sre.c.h | 170 _sre_SRE_Pattern_match_impl(PatternObject *self, PyTypeObject *cls, 175 _sre_SRE_Pattern_match(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _sre_SRE_Pattern_match() argument 224 return_value = _sre_SRE_Pattern_match_impl(self, cls, string, pos, endpos); in _sre_SRE_Pattern_match() 240 _sre_SRE_Pattern_fullmatch_impl(PatternObject *self, PyTypeObject *cls, 245 _sre_SRE_Pattern_fullmatch(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _sre_SRE_Pattern_fullmatch() argument 294 return_value = _sre_SRE_Pattern_fullmatch_impl(self, cls, string, pos, endpos); in _sre_SRE_Pattern_fullmatch() 312 _sre_SRE_Pattern_search_impl(PatternObject *self, PyTypeObject *cls, 317 _sre_SRE_Pattern_search(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _sre_SRE_Pattern_search() argument 366 return_value = _sre_SRE_Pattern_search_impl(self, cls, string, pos, endpos); in _sre_SRE_Pattern_search() 453 _sre_SRE_Pattern_finditer_impl(PatternObject *self, PyTypeObject *cls, 458 _sre_SRE_Pattern_finditer(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _sre_SRE_Pattern_finditer() argument 527 _sre_SRE_Pattern_scanner(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _sre_SRE_Pattern_scanner() argument 647 _sre_SRE_Pattern_sub(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _sre_SRE_Pattern_sub() argument 701 _sre_SRE_Pattern_subn(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _sre_SRE_Pattern_subn() argument 1090 _sre_SRE_Scanner_match(ScannerObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _sre_SRE_Scanner_match() argument 1111 _sre_SRE_Scanner_search(ScannerObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _sre_SRE_Scanner_search() argument [all...] |