Home
last modified time | relevance | path

Searched refs:cls (Results 26 - 50 of 881) sorted by relevance

12345678910>>...36

/third_party/python/Lib/idlelib/idle_test/
H A Dtest_iomenu.py21 def setUpClass(cls):
23 cls.root = Tk()
24 cls.root.withdraw()
25 cls.editwin = EditorWindow(root=cls.root)
26 cls.io = iomenu.IOBinding(cls.editwin)
29 def tearDownClass(cls):
30 cls.io.close()
31 cls
[all...]
H A Dtest_format.py54 def setUpClass(cls):
56 cls.text = Text()
272 def setUpClass(cls):
274 cls.root = Tk()
275 cls.root.withdraw()
276 editor = Editor(root=cls.root)
277 cls.text = editor.text.text # Test code does not need the wrapper.
278 cls.formatter = ft.FormatParagraph(editor).format_paragraph_event
282 def tearDownClass(cls):
283 del cls
[all...]
H A Dtest_runscript.py13 def setUpClass(cls):
15 cls.root = Tk()
16 cls.root.withdraw()
19 def tearDownClass(cls):
20 cls.root.update_idletasks()
21 for id in cls.root.tk.call('after', 'info'):
22 cls.root.after_cancel(id) # Need for EditorWindow.
23 cls.root.destroy()
24 del cls.root
H A Dtest_parenmatch.py26 def setUpClass(cls):
27 cls.root = Tk()
28 cls.root.withdraw()
29 cls.text = Text(cls.root)
30 cls.editwin = DummyEditwin(cls.text)
31 cls.editwin.text_frame = Mock()
34 def tearDownClass(cls):
35 del cls
[all...]
H A Dtest_filelist.py11 def setUpClass(cls):
13 cls.root = Tk()
14 cls.root.withdraw()
17 def tearDownClass(cls):
18 cls.root.update_idletasks()
19 for id in cls.root.tk.call('after', 'info'):
20 cls.root.after_cancel(id)
21 cls.root.destroy()
22 del cls.root
H A Dtest_autoexpand.py17 def setUpClass(cls):
19 cls.tk = Tk()
20 cls.text = Text(cls.tk)
21 cls.auto_expand = AutoExpand(DummyEditwin(cls.text))
22 cls.auto_expand.bell = lambda: None
32 ## cls.text = Text()
33 ## cls.text.bell = lambda: None
36 ## cls
[all...]
H A Dtest_replace.py20 def setUpClass(cls):
21 cls.root = Tk()
22 cls.root.withdraw()
24 cls.engine = se.SearchEngine(cls.root)
25 cls.dialog = ReplaceDialog(cls.root, cls.engine)
26 cls.dialog.bell = lambda: None
27 cls
[all...]
H A Dtest_multicall.py12 def setUpClass(cls):
14 cls.root = Tk()
15 cls.root.withdraw()
16 cls.mc = multicall.MultiCallCreator(Text)
19 def tearDownClass(cls):
20 del cls.mc
21 cls.root.update_idletasks()
22 ## for id in cls.root.tk.call('after', 'info'):
23 ## cls.root.after_cancel(id) # Need for EditorWindow.
24 cls
[all...]
H A Dtest_help.py14 def setUpClass(cls):
16 cls.root = root = Tk()
19 cls.frame = help.HelpFrame(root, helpfile)
22 def tearDownClass(cls):
23 del cls.frame
24 cls.root.update_idletasks()
25 cls.root.destroy()
26 del cls.root
H A Dtest_browser.py21 def setUpClass(cls):
23 cls.root = Tk()
24 cls.root.withdraw()
25 cls.mb = browser.ModuleBrowser(cls.root, __file__, _utest=True)
28 def tearDownClass(cls):
29 cls.mb.close()
30 cls.root.update_idletasks()
31 cls.root.destroy()
32 del cls
[all...]
H A Dtest_sidebar.py41 def setUpClass(cls):
43 cls.root = tk.Tk()
44 cls.root.withdraw()
46 cls.text_frame = tk.Frame(cls.root)
47 cls.text_frame.pack(side=tk.LEFT, fill=tk.BOTH, expand=True)
48 cls.text_frame.rowconfigure(1, weight=1)
49 cls.text_frame.columnconfigure(1, weight=1)
51 cls.text = tk.Text(cls
[all...]
/third_party/python/Lib/
H A Denum.py482 def __prepare__(metacls, cls, bases, **kwds):
484 metacls._check_for_existing_members_(cls, bases)
487 enum_dict._cls_name = cls
489 member_type, first_enum = metacls._get_mixins_(cls, bases)
496 def __new__(metacls, cls, bases, classdict, *, boundary=None, _simple=False, **kwds):
503 return super().__new__(metacls, cls, bases, classdict, **kwds)
527 member_type, first_enum = metacls._get_mixins_(cls, bases)
546 classdict['_value_repr_'] = metacls._find_data_repr_(cls, bases)
559 enum_class = super().__new__(metacls, cls, bases, classdict, **kwds)
639 Flag is None and cls !
[all...]
H A Dcopyreg.py47 def _reconstructor(cls, base, state):
49 obj = object.__new__(cls)
51 obj = base.__new__(cls, state)
63 cls = self.__class__
64 for base in cls.__mro__:
75 if base is cls:
76 raise TypeError(f"cannot pickle {cls.__name__!r} object")
78 args = (cls, base, state)
83 raise TypeError(f"cannot pickle {cls.__name__!r} object: "
104 def __newobj__(cls, *arg
[all...]
H A Dfunctools.py188 def total_ordering(cls):
191 roots = {op for op in _convert if getattr(cls, op, None) is not getattr(object, op, None)}
198 setattr(cls, opname, opfunc)
199 return cls
283 def __new__(cls, func, /, *args, **keywords):
292 self = super(partial, cls).__new__(cls)
363 # flattening is mandatory in order to place cls/self before all
378 format_string = "{module}.{cls}({func}, {args}, {keywords})"
380 cls
[all...]
/kernel/linux/linux-6.6/scripts/
H A Drust_is_available_test.py27 def generate_executable(cls, content):
28 path = pathlib.Path(cls.tempdir.name)
37 def generate_clang(cls, stdout):
38 return cls.generate_executable(f"""#!/usr/bin/env python3
41 print({repr("Clang " + " ".join(cls.llvm_default_version.split(" ")))})
47 def generate_rustc(cls, stdout):
48 return cls.generate_executable(f"""#!/usr/bin/env python3
51 print({repr(cls.rust_default_sysroot)})
57 def generate_bindgen(cls, version_stdout, libclang_stderr):
58 return cls
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32.c46 struct tc_cls_u32_offload *cls, in fill_match_fields()
55 for (i = 0; i < cls->knode.sel->nkeys; i++) { in fill_match_fields()
56 off = cls->knode.sel->keys[i].off; in fill_match_fields()
57 val = cls->knode.sel->keys[i].val; in fill_match_fields()
58 mask = cls->knode.sel->keys[i].mask; in fill_match_fields()
62 if (!cls->knode.sel->keys[i].offmask) in fill_match_fields()
66 if (cls->knode.sel->keys[i].offmask) in fill_match_fields()
92 struct tc_cls_u32_offload *cls) in fill_action_fields()
99 exts = cls->knode.exts; in fill_action_fields()
149 int cxgb4_config_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) in cxgb4_config_knode() argument
44 fill_match_fields(struct adapter *adap, struct ch_filter_specification *fs, struct tc_cls_u32_offload *cls, const struct cxgb4_match_field *entry, bool next_header) fill_match_fields() argument
90 fill_action_fields(struct adapter *adap, struct ch_filter_specification *fs, struct tc_cls_u32_offload *cls) fill_action_fields() argument
352 cxgb4_delete_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) cxgb4_delete_knode() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32.c46 struct tc_cls_u32_offload *cls, in fill_match_fields()
55 for (i = 0; i < cls->knode.sel->nkeys; i++) { in fill_match_fields()
56 off = cls->knode.sel->keys[i].off; in fill_match_fields()
57 val = cls->knode.sel->keys[i].val; in fill_match_fields()
58 mask = cls->knode.sel->keys[i].mask; in fill_match_fields()
62 if (!cls->knode.sel->keys[i].offmask) in fill_match_fields()
66 if (cls->knode.sel->keys[i].offmask) in fill_match_fields()
92 struct tc_cls_u32_offload *cls) in fill_action_fields()
99 exts = cls->knode.exts; in fill_action_fields()
149 int cxgb4_config_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) in cxgb4_config_knode() argument
44 fill_match_fields(struct adapter *adap, struct ch_filter_specification *fs, struct tc_cls_u32_offload *cls, const struct cxgb4_match_field *entry, bool next_header) fill_match_fields() argument
90 fill_action_fields(struct adapter *adap, struct ch_filter_specification *fs, struct tc_cls_u32_offload *cls) fill_action_fields() argument
352 cxgb4_delete_knode(struct net_device *dev, struct tc_cls_u32_offload *cls) cxgb4_delete_knode() argument
[all...]
/third_party/python/Tools/c-analyzer/c_parser/
H A Dinfo.py35 def _from_raw(cls, raw):
38 elif isinstance(raw, cls):
41 # We could use cls[raw] for the upper-case form,
43 return cls(raw.lower())
48 def by_priority(cls, group=None):
50 return cls._ALL_BY_PRIORITY.copy()
52 return cls._TYPE_DECLS_BY_PRIORITY.copy()
54 return cls._ALL_DECLS_BY_PRIORITY.copy()
62 def is_type_decl(cls, kind):
63 if kind in cls
[all...]
/third_party/python/Modules/clinic/
H A D_curses_panel.c.h15 _curses_panel_panel_bottom_impl(PyCursesPanelObject *self, PyTypeObject *cls);
18 _curses_panel_panel_bottom(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _curses_panel_panel_bottom() argument
24 return _curses_panel_panel_bottom_impl(self, cls); in _curses_panel_panel_bottom()
39 _curses_panel_panel_hide_impl(PyCursesPanelObject *self, PyTypeObject *cls);
42 _curses_panel_panel_hide(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _curses_panel_panel_hide() argument
48 return _curses_panel_panel_hide_impl(self, cls); in _curses_panel_panel_hide()
61 _curses_panel_panel_show_impl(PyCursesPanelObject *self, PyTypeObject *cls);
64 _curses_panel_panel_show(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _curses_panel_panel_show() argument
70 return _curses_panel_panel_show_impl(self, cls); in _curses_panel_panel_show()
83 _curses_panel_panel_top_impl(PyCursesPanelObject *self, PyTypeObject *cls);
86 _curses_panel_panel_top(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _curses_panel_panel_top() argument
163 _curses_panel_panel_move(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _curses_panel_panel_move() argument
223 _curses_panel_panel_replace(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _curses_panel_panel_replace() argument
260 _curses_panel_panel_set_userptr(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _curses_panel_panel_set_userptr() argument
293 _curses_panel_panel_userptr(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _curses_panel_panel_userptr() argument
[all...]
H A D_testmultiphase.c.h19 PyTypeObject *cls);
22 _testmultiphase_StateAccessType_get_defining_module(StateAccessTypeObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _testmultiphase_StateAccessType_get_defining_module() argument
28 return _testmultiphase_StateAccessType_get_defining_module_impl(self, cls); in _testmultiphase_StateAccessType_get_defining_module()
42 PyTypeObject *cls);
45 _testmultiphase_StateAccessType_getmodulebydef_bad_def(StateAccessTypeObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _testmultiphase_StateAccessType_getmodulebydef_bad_def() argument
51 return _testmultiphase_StateAccessType_getmodulebydef_bad_def_impl(self, cls); in _testmultiphase_StateAccessType_getmodulebydef_bad_def()
69 PyTypeObject *cls,
73 _testmultiphase_StateAccessType_increment_count_clinic(StateAccessTypeObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _testmultiphase_StateAccessType_increment_count_clinic() argument
108 return_value = _testmultiphase_StateAccessType_increment_count_clinic_impl(self, cls, n, twice); in _testmultiphase_StateAccessType_increment_count_clinic()
125 PyTypeObject *cls);
128 _testmultiphase_StateAccessType_get_count(StateAccessTypeObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _testmultiphase_StateAccessType_get_count() argument
[all...]
/third_party/node/tools/inspector_protocol/jinja2/
H A D_compat.py69 def implements_iterator(cls):
70 cls.next = cls.__next__
71 del cls.__next__
72 return cls
74 def implements_to_string(cls):
75 cls.__unicode__ = cls.__str__
76 cls.__str__ = lambda x: x.__unicode__().encode('utf-8')
77 return cls
[all...]
/kernel/linux/linux-5.10/fs/cifs/
H A Dasn1.c157 unsigned int *cls, unsigned int *con, unsigned int *tag) in asn1_id_decode()
164 *cls = (ch & 0xC0) >> 6; in asn1_id_decode()
214 unsigned int *cls, unsigned int *con, unsigned int *tag) in asn1_header_decode()
219 if (!asn1_id_decode(ctx, cls, con, tag)) in asn1_header_decode()
490 unsigned int cls, con, tag, oidlen, rc; in decode_negTokenInit() local
497 if (asn1_header_decode(&ctx, &end, &cls, &con, &tag) == 0) { in decode_negTokenInit()
500 } else if ((cls != ASN1_APL) || (con != ASN1_CON) in decode_negTokenInit()
502 cifs_dbg(FYI, "cls = %d con = %d tag = %d\n", cls, con, tag); in decode_negTokenInit()
507 rc = asn1_header_decode(&ctx, &end, &cls, in decode_negTokenInit()
156 asn1_id_decode(struct asn1_ctx *ctx, unsigned int *cls, unsigned int *con, unsigned int *tag) asn1_id_decode() argument
212 asn1_header_decode(struct asn1_ctx *ctx, unsigned char **eoc, unsigned int *cls, unsigned int *con, unsigned int *tag) asn1_header_decode() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_tc.c29 struct tc_cls_u32_offload *cls, in tc_find_entry()
33 u32 loc = cls->knode.handle; in tc_find_entry()
59 struct tc_cls_u32_offload *cls) in tc_fill_actions()
66 exts = cls->knode.exts; in tc_fill_actions()
92 struct tc_cls_u32_offload *cls) in tc_fill_entry()
95 struct tc_u32_sel *sel = cls->knode.sel; in tc_fill_entry()
97 u32 prio = cls->common.prio << 16; in tc_fill_entry()
108 switch (ntohs(cls->common.protocol)) { in tc_fill_entry()
124 entry = tc_find_entry(priv, cls, true); in tc_fill_entry()
129 frag = tc_find_entry(priv, cls, tru in tc_fill_entry()
28 tc_find_entry(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls, bool free) tc_find_entry() argument
57 tc_fill_actions(struct stmmac_tc_entry *entry, struct stmmac_tc_entry *frag, struct tc_cls_u32_offload *cls) tc_fill_actions() argument
91 tc_fill_entry(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_fill_entry() argument
171 tc_unfill_entry(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_unfill_entry() argument
188 tc_config_knode(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_config_knode() argument
209 tc_delete_knode(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_delete_knode() argument
219 tc_setup_cls_u32(struct stmmac_priv *priv, struct tc_cls_u32_offload *cls) tc_setup_cls_u32() argument
458 tc_add_basic_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, struct stmmac_flow_entry *entry) tc_add_basic_flow() argument
476 tc_add_ip4_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, struct stmmac_flow_entry *entry) tc_add_ip4_flow() argument
511 tc_add_ports_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, struct stmmac_flow_entry *entry) tc_add_ports_flow() argument
560 tc_find_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls, bool get_free) tc_find_flow() argument
587 tc_add_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_add_flow() argument
618 tc_del_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_del_flow() argument
641 tc_find_rfs(struct stmmac_priv *priv, struct flow_cls_offload *cls, bool get_free) tc_find_rfs() argument
661 tc_add_vlan_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_add_vlan_flow() argument
712 tc_del_vlan_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_del_vlan_flow() argument
732 tc_add_ethtype_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_add_ethtype_flow() argument
804 tc_del_ethtype_flow(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_del_ethtype_flow() argument
840 tc_add_flow_cls(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_add_flow_cls() argument
856 tc_del_flow_cls(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_del_flow_cls() argument
872 tc_setup_cls(struct stmmac_priv *priv, struct flow_cls_offload *cls) tc_setup_cls() argument
[all...]
/third_party/python/Lib/test/
H A Dtest_super.py10 def cm(cls):
11 return (cls, 'A')
17 def cm(cls):
18 return (cls, super().cm(), 'B')
24 def cm(cls):
25 return (cls, super().cm(), 'C')
30 def cm(cls):
31 return (cls, super().cm(), 'D')
133 def f(cls):
151 def __new__(cls, nam
[all...]
/third_party/lzma/CPP/7zip/Common/
H A DRegisterCodec.h25 #define REGISTER_CODEC_CREATE_2(name, cls, i) static void *name() { return (void *)(i *)(new cls); }
26 #define REGISTER_CODEC_CREATE(name, cls) REGISTER_CODEC_CREATE_2(name, cls, ICompressCoder)
64 #define REGISTER_FILTER_CREATE(name, cls) REGISTER_CODEC_CREATE_2(name, cls, ICompressFilter)
99 #define REGISTER_HASHER(cls, id, name, size) \
100 Z7_COM7F_IMF2(UInt32, cls::GetDigestSize()) { return size; } \
101 static IHasher *CreateHasherSpec() { return new cls(); } \
103 struct REGISTER_HASHER_NAME(cls) { REGISTER_HASHER_NAM
[all...]

Completed in 12 milliseconds

12345678910>>...36