/third_party/python/Lib/asyncio/ |
H A D | __main__.py | 16 def __init__(self, locals, loop): 18 self.compile.compiler.flags |= ast.PyCF_ALLOW_TOP_LEVEL_AWAIT 20 self.loop = loop 22 def runcode(self, code): 32 func = types.FunctionType(code, self.locals) 50 repl_future = self.loop.create_task(coro) 63 self.write("\nKeyboardInterrupt\n") 65 self.showtraceback() 70 def run(self):
|
/third_party/python/Modules/clinic/ |
H A D | md5module.c.h | 6 "copy($self, /)\n" 15 MD5Type_copy_impl(MD5object *self, PyTypeObject *cls); 18 MD5Type_copy(MD5object *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in MD5Type_copy() argument 24 return MD5Type_copy_impl(self, cls); in MD5Type_copy() 28 "digest($self, /)\n" 37 MD5Type_digest_impl(MD5object *self); 40 MD5Type_digest(MD5object *self, PyObject *Py_UNUSED(ignored)) in MD5Type_digest() argument 42 return MD5Type_digest_impl(self); in MD5Type_digest() 46 "hexdigest($self, /)\n" 55 MD5Type_hexdigest_impl(MD5object *self); 58 MD5Type_hexdigest(MD5object *self, PyObject *Py_UNUSED(ignored)) MD5Type_hexdigest() argument [all...] |
H A D | sha1module.c.h | 6 "copy($self, /)\n" 15 SHA1Type_copy_impl(SHA1object *self, PyTypeObject *cls); 18 SHA1Type_copy(SHA1object *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in SHA1Type_copy() argument 24 return SHA1Type_copy_impl(self, cls); in SHA1Type_copy() 28 "digest($self, /)\n" 37 SHA1Type_digest_impl(SHA1object *self); 40 SHA1Type_digest(SHA1object *self, PyObject *Py_UNUSED(ignored)) in SHA1Type_digest() argument 42 return SHA1Type_digest_impl(self); in SHA1Type_digest() 46 "hexdigest($self, /)\n" 55 SHA1Type_hexdigest_impl(SHA1object *self); 58 SHA1Type_hexdigest(SHA1object *self, PyObject *Py_UNUSED(ignored)) SHA1Type_hexdigest() argument [all...] |
/third_party/vk-gl-cts/modules/gles3/scripts/ |
H A D | gen-invalid-texture-funcs.py | 57 def __init__(self, funcname, args): 58 self.name = string.join([s.lower() for s in [funcname] + args], "_") 59 self.funcname = funcname 60 self.args = args 62 def __str__(self): 63 samplerType = self.args[0] 65 lookup = self.funcname + "(s" 66 for arg in self.args[1:]: 70 params = { "NAME": self.name, "SAMPLERTYPE": samplerType, "LOOKUP": lookup }
|
/test/testfwk/developer_test/src/core/command/ |
H A D | console.py | 66 def __init__(self):
85 def _params_post_processing(self, options):
88 test_args = self._parse_combination_param(options.testargs)
380 def handler_ctrl_c(self, signalnum, frame):
383 def handler_ctrl_z(self, signalnum, frame):
386 def command_parser(self, args):
390 options, _, valid_param = self.argument_parser(para_list)
401 if "productform" in self.wizard_dic.keys():
402 productform = self.wizard_dic["productform"]
408 self [all...] |
/third_party/python/Modules/ |
H A D | _curses_panel.c | 189 _curses_panel_panel_bottom_impl(PyCursesPanelObject *self, PyTypeObject *cls) in _curses_panel_panel_bottom_impl() argument 193 return PyCursesCheckERR(state, bottom_panel(self->pan), "bottom"); in _curses_panel_panel_bottom_impl() 207 _curses_panel_panel_hide_impl(PyCursesPanelObject *self, PyTypeObject *cls) in _curses_panel_panel_hide_impl() argument 211 return PyCursesCheckERR(state, hide_panel(self->pan), "hide"); in _curses_panel_panel_hide_impl() 223 _curses_panel_panel_show_impl(PyCursesPanelObject *self, PyTypeObject *cls) in _curses_panel_panel_show_impl() argument 227 return PyCursesCheckERR(state, show_panel(self->pan), "show"); in _curses_panel_panel_show_impl() 239 _curses_panel_panel_top_impl(PyCursesPanelObject *self, PyTypeObject *cls) in _curses_panel_panel_top_impl() argument 243 return PyCursesCheckERR(state, top_panel(self->pan), "top"); in _curses_panel_panel_top_impl() 298 _curses_panel_panel_above_impl(PyCursesPanelObject *self) in _curses_panel_panel_above_impl() argument 304 pan = panel_above(self in _curses_panel_panel_above_impl() 329 _curses_panel_panel_below_impl(PyCursesPanelObject *self) _curses_panel_panel_below_impl() argument 358 _curses_panel_panel_hidden_impl(PyCursesPanelObject *self) _curses_panel_panel_hidden_impl() argument 379 _curses_panel_panel_move_impl(PyCursesPanelObject *self, PyTypeObject *cls, int y, int x) _curses_panel_panel_move_impl() argument 394 _curses_panel_panel_window_impl(PyCursesPanelObject *self) _curses_panel_panel_window_impl() argument 412 _curses_panel_panel_replace_impl(PyCursesPanelObject *self, PyTypeObject *cls, PyCursesWindowObject *win) _curses_panel_panel_replace_impl() argument 447 _curses_panel_panel_set_userptr_impl(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *obj) _curses_panel_panel_set_userptr_impl() argument 476 _curses_panel_panel_userptr_impl(PyCursesPanelObject *self, PyTypeObject *cls) _curses_panel_panel_userptr_impl() argument [all...] |
H A D | _struct.c | 39 #define get_struct_state_structinst(self) \ 40 (get_struct_state(PyType_GetModuleByDef(Py_TYPE(self), &_structmodule))) 41 #define get_struct_state_iterinst(self) \ 42 (get_struct_state(PyType_GetModule(Py_TYPE(self)))) 111 def parse_arg(self, argname, displayname): 116 """.format(argname=argname, paramname=self.name, 117 converter=self.converter) 119 def cleanup(self): 120 return "Py_XDECREF(%s);\n" % self.name 1299 prepare_s(PyStructObject *self) in prepare_s() argument 1439 PyObject *self; s_new() local 1470 Struct___init___impl(PyStructObject *self, PyObject *format) Struct___init___impl() argument 1584 Struct_unpack_impl(PyStructObject *self, Py_buffer *buffer) Struct_unpack_impl() argument 1615 Struct_unpack_from_impl(PyStructObject *self, Py_buffer *buffer, Py_ssize_t offset) Struct_unpack_from_impl() argument 1667 unpackiter_dealloc(unpackiterobject *self) unpackiter_dealloc() argument 1679 unpackiter_traverse(unpackiterobject *self, visitproc visit, void *arg) unpackiter_traverse() argument 1688 unpackiter_len(unpackiterobject *self, PyObject *Py_UNUSED(ignored)) unpackiter_len() argument 1704 unpackiter_iternext(unpackiterobject *self) unpackiter_iternext() argument 1764 Struct_iter_unpack(PyStructObject *self, PyObject *buffer) Struct_iter_unpack() argument 1900 s_pack(PyObject *self, PyObject *const *args, Py_ssize_t nargs) s_pack() argument 1944 s_pack_into(PyObject *self, PyObject *const *args, Py_ssize_t nargs) s_pack_into() argument 2038 s_get_format(PyStructObject *self, void *unused) s_get_format() argument 2045 s_get_size(PyStructObject *self, void *unused) s_get_size() argument 2054 s_sizeof(PyStructObject *self, void *unused) s_sizeof() argument [all...] |
/third_party/python/Lib/test/libregrtest/ |
H A D | runtest.py | 22 self, 27 self.name = name 28 self.duration_sec = duration_sec 29 self.xml_data = xml_data 31 def __str__(self) -> str: 32 return f"{self.name} finished" 36 def __str__(self) -> str: 37 return f"{self.name} passed" 42 self, 50 self [all...] |
/third_party/vk-gl-cts/scripts/ |
H A D | run_nightly.py | 87 def __init__(self, name, buildConfig, generator, binaryName, testset, args = [], exclude = [], ignore = []): 88 self.name = name 89 self.buildConfig = buildConfig 90 self.generator = generator 91 self.binaryName = binaryName 92 self.testset = testset 93 self.args = args 94 self.exclude = exclude 95 self.ignore = ignore 97 def getBinaryPath(self, basePat [all...] |
/third_party/python/Objects/ |
H A D | bytesobject.c | 1489 bytes_contains(PyObject *self, PyObject *arg) in bytes_contains() argument 1491 return _Py_bytes_contains(PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), arg); in bytes_contains() 1596 bytes_subscript(PyBytesObject* self, PyObject* item) in bytes_subscript() argument 1603 i += PyBytes_GET_SIZE(self); in bytes_subscript() 1604 if (i < 0 || i >= PyBytes_GET_SIZE(self)) { in bytes_subscript() 1609 return _PyLong_FromUnsignedChar((unsigned char)self->ob_sval[i]); in bytes_subscript() 1621 slicelength = PySlice_AdjustIndices(PyBytes_GET_SIZE(self), &start, in bytes_subscript() 1628 slicelength == PyBytes_GET_SIZE(self) && in bytes_subscript() 1629 PyBytes_CheckExact(self)) { in bytes_subscript() 1662 bytes_buffer_getbuffer(PyBytesObject *self, Py_buffer *view, int flags) bytes_buffer_getbuffer() argument 1697 bytes___bytes___impl(PyBytesObject *self) bytes___bytes___impl() argument 1729 bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit) bytes_split_impl() argument 1768 bytes_partition_impl(PyBytesObject *self, Py_buffer *sep) bytes_partition_impl() argument 1795 bytes_rpartition_impl(PyBytesObject *self, Py_buffer *sep) bytes_rpartition_impl() argument 1814 bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit) bytes_rsplit_impl() argument 1853 bytes_join(PyBytesObject *self, PyObject *iterable_of_bytes) bytes_join() argument 1868 bytes_find(PyBytesObject *self, PyObject *args) bytes_find() argument 1874 bytes_index(PyBytesObject *self, PyObject *args) bytes_index() argument 1881 bytes_rfind(PyBytesObject *self, PyObject *args) bytes_rfind() argument 1888 bytes_rindex(PyBytesObject *self, PyObject *args) bytes_rindex() argument 1895 do_xstrip(PyBytesObject *self, int striptype, PyObject *sepobj) do_xstrip() argument 1936 do_strip(PyBytesObject *self, int striptype) do_strip() argument 1966 do_argstrip(PyBytesObject *self, int striptype, PyObject *bytes) do_argstrip() argument 1986 bytes_strip_impl(PyBytesObject *self, PyObject *bytes) bytes_strip_impl() argument 2004 bytes_lstrip_impl(PyBytesObject *self, PyObject *bytes) bytes_lstrip_impl() argument 2022 bytes_rstrip_impl(PyBytesObject *self, PyObject *bytes) bytes_rstrip_impl() argument 2030 bytes_count(PyBytesObject *self, PyObject *args) bytes_count() argument 2051 bytes_translate_impl(PyBytesObject *self, PyObject *table, PyObject *deletechars) bytes_translate_impl() argument 2209 bytes_replace_impl(PyBytesObject *self, Py_buffer *old, Py_buffer *new, Py_ssize_t count) bytes_replace_impl() argument 2233 bytes_removeprefix_impl(PyBytesObject *self, Py_buffer *prefix) bytes_removeprefix_impl() argument 2271 bytes_removesuffix_impl(PyBytesObject *self, Py_buffer *suffix) bytes_removesuffix_impl() argument 2297 bytes_startswith(PyBytesObject *self, PyObject *args) bytes_startswith() argument 2303 bytes_endswith(PyBytesObject *self, PyObject *args) bytes_endswith() argument 2325 bytes_decode_impl(PyBytesObject *self, const char *encoding, const char *errors) bytes_decode_impl() argument 2345 bytes_splitlines_impl(PyBytesObject *self, int keepends) bytes_splitlines_impl() argument 2479 bytes_hex_impl(PyBytesObject *self, PyObject *sep, int bytes_per_sep) bytes_hex_impl() argument 2558 bytes_mod(PyObject *self, PyObject *arg) bytes_mod() argument 2887 bytes_alloc(PyTypeObject *self, Py_ssize_t nitems) bytes_alloc() argument [all...] |
/kernel/linux/linux-5.10/scripts/gdb/linux/ |
H A D | device.py | 100 def __init__(self): 101 super(LxDeviceListBus, self).__init__('lx-device-list-bus', gdb.COMMAND_DATA) 103 def invoke(self, arg, from_tty): 120 def __init__(self): 121 super(LxDeviceListClass, self).__init__('lx-device-list-class', gdb.COMMAND_DATA) 123 def invoke(self, arg, from_tty): 138 def __init__(self): 139 super(LxDeviceListTree, self).__init__('lx-device-list-tree', gdb.COMMAND_DATA) 141 def invoke(self, arg, from_tty): 153 def __init__(self) [all...] |
/kernel/linux/linux-6.6/scripts/gdb/linux/ |
H A D | device.py | 100 def __init__(self): 101 super(LxDeviceListBus, self).__init__('lx-device-list-bus', gdb.COMMAND_DATA) 103 def invoke(self, arg, from_tty): 120 def __init__(self): 121 super(LxDeviceListClass, self).__init__('lx-device-list-class', gdb.COMMAND_DATA) 123 def invoke(self, arg, from_tty): 138 def __init__(self): 139 super(LxDeviceListTree, self).__init__('lx-device-list-tree', gdb.COMMAND_DATA) 141 def invoke(self, arg, from_tty): 153 def __init__(self) [all...] |
/third_party/protobuf/python/google/protobuf/pyext/ |
H A D | message.h | 178 // The caller must fill self->message, self->owner and eventually self->parent. 190 CMessage* self, const FieldDescriptor* field_descriptor); 196 int DeleteRepeatedField(CMessage* self, 201 int InternalSetScalar(CMessage* self, 216 bool SetCompositeField(CMessage* self, const FieldDescriptor* field, 219 bool SetSubmessage(CMessage* self, CMessage* submessage); 225 PyObject* Clear(CMessage* self); 231 int ClearFieldByDescriptor(CMessage* self, cons [all...] |
/third_party/python/Objects/stringlib/clinic/ |
H A D | transmogrify.h.h | 6 "expandtabs($self, /, tabsize=8)\n" 17 stringlib_expandtabs_impl(PyObject *self, int tabsize); 20 stringlib_expandtabs(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in stringlib_expandtabs() argument 41 return_value = stringlib_expandtabs_impl(self, tabsize); in stringlib_expandtabs() 48 "ljust($self, width, fillchar=b\' \', /)\n" 59 stringlib_ljust_impl(PyObject *self, Py_ssize_t width, char fillchar); 62 stringlib_ljust(PyObject *self, PyObject *const *args, Py_ssize_t nargs) in stringlib_ljust() argument 97 return_value = stringlib_ljust_impl(self, width, fillchar); in stringlib_ljust() 104 "rjust($self, width, fillchar=b\' \', /)\n" 115 stringlib_rjust_impl(PyObject *self, Py_ssize_ 118 stringlib_rjust(PyObject *self, PyObject *const *args, Py_ssize_t nargs) stringlib_rjust() argument 174 stringlib_center(PyObject *self, PyObject *const *args, Py_ssize_t nargs) stringlib_center() argument 230 stringlib_zfill(PyObject *self, PyObject *arg) stringlib_zfill() argument [all...] |
/third_party/python/Lib/ |
H A D | timeit.py | 102 def __init__(self, stmt="pass", setup="pass", timer=default_timer, 105 self.timer = timer 132 self.src = src # Save for traceback display 135 self.inner = local_ns["inner"] 137 def print_exc(self, file=None): 155 if self.src is not None: 156 linecache.cache[dummy_src_name] = (len(self.src), 158 self.src.split("\n"), 164 def timeit(self, number=default_number): 178 timing = self [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/sdsi/ |
H A D | sdsi_test.py | 41 def test_driver_loaded(self): 48 def read_value(self, file): 53 def get_dev_folder(self, socket): 56 def test_sysfs_files_exist(self, socket): 57 folder = self.get_dev_folder(socket) 65 def test_sysfs_file_permissions(self, socket): 66 folder = self.get_dev_folder(socket) 78 def test_sysfs_file_ownership(self, socket): 79 folder = self.get_dev_folder(socket) 101 def test_sysfs_file_sizes(self, socke [all...] |
/third_party/node/deps/brotli/c/enc/ |
H A D | hash_longest_match_quickly_inc.h | 47 HasherCommon* common, HashLongestMatchQuickly* BROTLI_RESTRICT self, in Initialize() 49 self->common = common; in Initialize() 52 self->buckets_ = (uint32_t*)common->extra; in Initialize() 56 HashLongestMatchQuickly* BROTLI_RESTRICT self, BROTLI_BOOL one_shot, in Prepare() 58 uint32_t* BROTLI_RESTRICT buckets = self->buckets_; in Prepare() 96 HashLongestMatchQuickly* BROTLI_RESTRICT self, in Store() 100 self->buckets_[key] = (uint32_t)ix; in Store() 104 self->buckets_[(key + off) & BUCKET_MASK] = (uint32_t)ix; in Store() 109 HashLongestMatchQuickly* BROTLI_RESTRICT self, in StoreRange() 114 FN(Store)(self, dat in StoreRange() 46 Initialize( HasherCommon* common, HashLongestMatchQuickly* BROTLI_RESTRICT self, const BrotliEncoderParams* params) Initialize() argument 55 Prepare( HashLongestMatchQuickly* BROTLI_RESTRICT self, BROTLI_BOOL one_shot, size_t input_size, const uint8_t* BROTLI_RESTRICT data) Prepare() argument 95 Store( HashLongestMatchQuickly* BROTLI_RESTRICT self, const uint8_t* BROTLI_RESTRICT data, const size_t mask, const size_t ix) Store() argument 108 StoreRange( HashLongestMatchQuickly* BROTLI_RESTRICT self, const uint8_t* BROTLI_RESTRICT data, const size_t mask, const size_t ix_start, const size_t ix_end) StoreRange() argument 118 StitchToPreviousBlock( HashLongestMatchQuickly* BROTLI_RESTRICT self, size_t num_bytes, size_t position, const uint8_t* ringbuffer, size_t ringbuffer_mask) StitchToPreviousBlock() argument 132 PrepareDistanceCache( HashLongestMatchQuickly* BROTLI_RESTRICT self, int* BROTLI_RESTRICT distance_cache) PrepareDistanceCache() argument 147 FindLongestMatch( HashLongestMatchQuickly* BROTLI_RESTRICT self, const BrotliEncoderDictionary* dictionary, const uint8_t* BROTLI_RESTRICT data, const size_t ring_buffer_mask, const int* BROTLI_RESTRICT distance_cache, const size_t cur_ix, const size_t max_length, const size_t max_backward, const size_t dictionary_distance, const size_t max_distance, HasherSearchResult* BROTLI_RESTRICT out) FindLongestMatch() argument [all...] |
/third_party/libinput/tools/ |
H A D | test_tool_option_parsing.py | 73 def __init__(self, subtool=None): 74 self.libinput_tool = "@TOOL_PATH@" 75 self.subtool = subtool 77 def run_command(self, args): 78 args = [self.libinput_tool] + args 79 if self.subtool is not None: 80 args.insert(1, self.subtool) 84 def run_command_success(self, args): 85 rc, stdout, stderr = self.run_command(args) 91 def run_command_invalid(self, arg [all...] |
/third_party/python/Tools/scripts/ |
H A D | generate_global_objects.py | 135 def __init__(self, file): 136 self.level = 0 137 self.file = file 138 self.continuation = [False] 141 def indent(self): 142 save_level = self.level 144 self.level += 1 147 self.level = save_level 149 def write(self, arg): 151 if self [all...] |
/third_party/skia/third_party/externals/brotli/c/enc/ |
H A D | hash_longest_match_quickly_inc.h | 47 HasherCommon* common, HashLongestMatchQuickly* BROTLI_RESTRICT self, in Initialize() 49 self->common = common; in Initialize() 52 self->buckets_ = (uint32_t*)common->extra; in Initialize() 56 HashLongestMatchQuickly* BROTLI_RESTRICT self, BROTLI_BOOL one_shot, in Prepare() 58 uint32_t* BROTLI_RESTRICT buckets = self->buckets_; in Prepare() 96 HashLongestMatchQuickly* BROTLI_RESTRICT self, in Store() 100 self->buckets_[key] = (uint32_t)ix; in Store() 104 self->buckets_[(key + off) & BUCKET_MASK] = (uint32_t)ix; in Store() 109 HashLongestMatchQuickly* BROTLI_RESTRICT self, in StoreRange() 114 FN(Store)(self, dat in StoreRange() 46 Initialize( HasherCommon* common, HashLongestMatchQuickly* BROTLI_RESTRICT self, const BrotliEncoderParams* params) Initialize() argument 55 Prepare( HashLongestMatchQuickly* BROTLI_RESTRICT self, BROTLI_BOOL one_shot, size_t input_size, const uint8_t* BROTLI_RESTRICT data) Prepare() argument 95 Store( HashLongestMatchQuickly* BROTLI_RESTRICT self, const uint8_t* BROTLI_RESTRICT data, const size_t mask, const size_t ix) Store() argument 108 StoreRange( HashLongestMatchQuickly* BROTLI_RESTRICT self, const uint8_t* BROTLI_RESTRICT data, const size_t mask, const size_t ix_start, const size_t ix_end) StoreRange() argument 118 StitchToPreviousBlock( HashLongestMatchQuickly* BROTLI_RESTRICT self, size_t num_bytes, size_t position, const uint8_t* ringbuffer, size_t ringbuffer_mask) StitchToPreviousBlock() argument 132 PrepareDistanceCache( HashLongestMatchQuickly* BROTLI_RESTRICT self, int* BROTLI_RESTRICT distance_cache) PrepareDistanceCache() argument 147 FindLongestMatch( HashLongestMatchQuickly* BROTLI_RESTRICT self, const BrotliEncoderDictionary* dictionary, const uint8_t* BROTLI_RESTRICT data, const size_t ring_buffer_mask, const int* BROTLI_RESTRICT distance_cache, const size_t cur_ix, const size_t max_length, const size_t max_backward, const size_t dictionary_distance, const size_t max_distance, HasherSearchResult* BROTLI_RESTRICT out) FindLongestMatch() argument [all...] |
/third_party/python/Lib/lib2to3/ |
H A D | btm_utils.py | 21 def __init__(self, type=None, name=None): 22 self.type = type 23 self.name = name 24 self.children = [] 25 self.leaf = False 26 self.parent = None 27 self.alternatives = [] 28 self.group = [] 30 def __repr__(self): 31 return str(self [all...] |
/foundation/ability/idl_tool/test/sa_test/ |
H A D | keyword_cacheable_test_002.py | 23 def get_file_name(self): 26 def run_cpp(self): 27 self.set_gen_cpp_env() 28 return self.run_choose(True) 30 def run(self): 31 return self.run_cpp()
|
H A D | keyword_cacheable_test_003.py | 23 def get_file_name(self): 26 def run_cpp(self): 27 self.set_gen_cpp_env() 28 return self.run_choose(False) 30 def run(self): 31 return self.run_cpp()
|
/foundation/ability/idl_tool/test/hdi_unittest/hdi_gen_test/ |
H A D | standard_interface_idl.py | 23 def get_file_name(self): 26 def run_cpp(self): 27 self.set_gen_cpp_env() 28 return self.run_choose(True) 30 def run(self): 31 return self.run_cpp()
|
H A D | standard_callback_idl.py | 23 def get_file_name(self): 26 def run_cpp(self): 27 self.set_gen_cpp_env() 28 return self.run_choose(True) 30 def run(self): 31 return self.run_cpp()
|