/third_party/python/Modules/ |
H A D | _lsprof.c | 170 PyObject *self = fn->m_self; in normalizeUserObj() local 175 PyObject *mo = _PyType_Lookup(Py_TYPE(self), name); in normalizeUserObj() 199 ProfilerEntry *self; in newProfilerEntry() local 200 self = (ProfilerEntry*) PyMem_Malloc(sizeof(ProfilerEntry)); in newProfilerEntry() 201 if (self == NULL) { in newProfilerEntry() 208 PyMem_Free(self); in newProfilerEntry() 212 self->header.key = key; in newProfilerEntry() 213 self->userObj = userObj; in newProfilerEntry() 214 self->tt = 0; in newProfilerEntry() 215 self in newProfilerEntry() 240 ProfilerSubEntry *self; newSubEntry() local 290 initContext(ProfilerObject *pObj, ProfilerContext *self, ProfilerEntry *entry) initContext() argument 310 Stop(ProfilerObject *pObj, ProfilerContext *self, ProfilerEntry *entry) Stop() argument 339 ptrace_enter_call(PyObject *self, void *key, PyObject *userObj) ptrace_enter_call() argument 383 ptrace_leave_call(PyObject *self, void *key) ptrace_leave_call() argument 406 profiler_callback(PyObject *self, PyFrameObject *frame, int what, PyObject *arg) profiler_callback() argument 609 _lsprof_Profiler_getstats_impl(ProfilerObject *self, PyTypeObject *cls) _lsprof_Profiler_getstats_impl() argument 668 profiler_enable(ProfilerObject *self, PyObject *args, PyObject *kwds) profiler_enable() argument 712 profiler_disable(ProfilerObject *self, PyObject* noarg) profiler_disable() argument [all...] |
H A D | arraymodule.c | 128 array_resize(arrayobject *self, Py_ssize_t newsize) in array_resize() argument 133 if (self->ob_exports > 0 && newsize != Py_SIZE(self)) { in array_resize() 144 if (self->allocated >= newsize && in array_resize() 145 Py_SIZE(self) < newsize + 16 && in array_resize() 146 self->ob_item != NULL) { in array_resize() 147 Py_SET_SIZE(self, newsize); in array_resize() 152 PyMem_Free(self->ob_item); in array_resize() 153 self->ob_item = NULL; in array_resize() 154 Py_SET_SIZE(self, in array_resize() 637 ins1(arrayobject *self, Py_ssize_t where, PyObject *v) ins1() argument 852 array_array___copy___impl(arrayobject *self) array_array___copy___impl() argument 868 array_array___deepcopy__(arrayobject *self, PyObject *unused) array_array___deepcopy__() argument 994 array_iter_extend(arrayobject *self, PyObject *bb) array_iter_extend() argument 1017 array_do_extend(array_state *state, arrayobject *self, PyObject *bb) array_do_extend() argument 1050 array_inplace_concat(arrayobject *self, PyObject *bb) array_inplace_concat() argument 1067 array_inplace_repeat(arrayobject *self, Py_ssize_t n) array_inplace_repeat() argument 1093 ins(arrayobject *self, Py_ssize_t where, PyObject *v) ins() argument 1110 array_array_count(arrayobject *self, PyObject *v) array_array_count() argument 1148 array_array_index_impl(arrayobject *self, PyObject *v, Py_ssize_t start, Py_ssize_t stop) array_array_index_impl() argument 1183 array_contains(arrayobject *self, PyObject *v) array_contains() argument 1208 array_array_remove(arrayobject *self, PyObject *v) array_array_remove() argument 1246 array_array_pop_impl(arrayobject *self, Py_ssize_t i) array_array_pop_impl() argument 1283 array_array_extend_impl(arrayobject *self, PyTypeObject *cls, PyObject *bb) array_array_extend_impl() argument 1304 array_array_insert_impl(arrayobject *self, Py_ssize_t i, PyObject *v) array_array_insert_impl() argument 1320 array_array_buffer_info_impl(arrayobject *self) array_array_buffer_info_impl() argument 1356 array_array_append(arrayobject *self, PyObject *v) array_array_append() argument 1372 array_array_byteswap_impl(arrayobject *self) array_array_byteswap_impl() argument 1429 array_array_reverse_impl(arrayobject *self) array_array_reverse_impl() argument 1467 array_array_fromfile_impl(arrayobject *self, PyTypeObject *cls, PyObject *f, Py_ssize_t n) array_array_fromfile_impl() argument 1530 array_array_tofile_impl(arrayobject *self, PyTypeObject *cls, PyObject *f) array_array_tofile_impl() argument 1578 array_array_fromlist(arrayobject *self, PyObject *list) array_array_fromlist() argument 1618 array_array_tolist_impl(arrayobject *self) array_array_tolist_impl() argument 1640 frombytes(arrayobject *self, Py_buffer *buffer) frombytes() argument 1685 array_array_frombytes_impl(arrayobject *self, Py_buffer *buffer) array_array_frombytes_impl() argument 1698 array_array_tobytes_impl(arrayobject *self) array_array_tobytes_impl() argument 1723 array_array_fromunicode_impl(arrayobject *self, PyObject *ustr) array_array_fromunicode_impl() argument 1761 array_array_tounicode_impl(arrayobject *self) array_array_tounicode_impl() argument 1779 array_array___sizeof___impl(arrayobject *self) array_array___sizeof___impl() argument 2186 array_array___reduce_ex___impl(arrayobject *self, PyTypeObject *cls, PyObject *value) array_array___reduce_ex___impl() argument 2343 array_subscr(arrayobject* self, PyObject* item) array_subscr() argument 2406 array_ass_subscr(arrayobject* self, PyObject* item, PyObject* value) array_ass_subscr() argument 2567 array_buffer_getbuf(arrayobject *self, Py_buffer *view, int flags) array_buffer_getbuf() argument 2608 array_buffer_relbuf(arrayobject *self, Py_buffer *view) array_buffer_relbuf() argument 2720 arrayobject *self = (arrayobject *)a; array_new() local 2729 arrayobject *self = (arrayobject *)a; array_new() local 2951 array_arrayiterator___reduce___impl(arrayiterobject *self, PyTypeObject *cls) array_arrayiterator___reduce___impl() argument 2974 array_arrayiterator___setstate__(arrayiterobject *self, PyObject *state) array_arrayiterator___setstate__() argument [all...] |
H A D | _ssl.c | 418 SSLError_str(PyOSErrorObject *self) in SSLError_str() argument 420 if (self->strerror != NULL && PyUnicode_Check(self->strerror)) { in SSLError_str() 421 Py_INCREF(self->strerror); in SSLError_str() 422 return self->strerror; in SSLError_str() 425 return PyObject_Str(self->args); in SSLError_str() 718 _ssl_configure_hostname(PySSLSocket *self, const char* server_hostname) in _ssl_configure_hostname() argument 750 self->server_hostname = hostname; in _ssl_configure_hostname() 754 if (!SSL_set_tlsext_host_name(self->ssl, server_hostname)) { in _ssl_configure_hostname() 755 _setSSLError(get_state_sock(self), NUL in _ssl_configure_hostname() 790 PySSLSocket *self; newPySSLSocket() local 929 _ssl__SSLSocket_do_handshake_impl(PySSLSocket *self) _ssl__SSLSocket_do_handshake_impl() argument 1819 _ssl__SSLSocket_getpeercert_impl(PySSLSocket *self, int binary_mode) _ssl__SSLSocket_getpeercert_impl() argument 1855 _ssl__SSLSocket_get_verified_chain_impl(PySSLSocket *self) _ssl__SSLSocket_get_verified_chain_impl() argument 1872 _ssl__SSLSocket_get_unverified_chain_impl(PySSLSocket *self) _ssl__SSLSocket_get_unverified_chain_impl() argument 2010 _ssl__SSLSocket_shared_ciphers_impl(PySSLSocket *self) _ssl__SSLSocket_shared_ciphers_impl() argument 2059 _ssl__SSLSocket_cipher_impl(PySSLSocket *self) _ssl__SSLSocket_cipher_impl() argument 2077 _ssl__SSLSocket_version_impl(PySSLSocket *self) _ssl__SSLSocket_version_impl() argument 2099 _ssl__SSLSocket_selected_alpn_protocol_impl(PySSLSocket *self) _ssl__SSLSocket_selected_alpn_protocol_impl() argument 2117 _ssl__SSLSocket_compression_impl(PySSLSocket *self) _ssl__SSLSocket_compression_impl() argument 2138 PySSL_get_context(PySSLSocket *self, void *closure) PySSL_get_context() argument 2143 PySSL_set_context(PySSLSocket *self, PyObject *value, void *closure) PySSL_set_context() argument 2173 PySSL_get_server_side(PySSLSocket *self, void *c) PySSL_get_server_side() argument 2182 PySSL_get_server_hostname(PySSLSocket *self, void *c) PySSL_get_server_hostname() argument 2194 PySSL_get_owner(PySSLSocket *self, void *c) PySSL_get_owner() argument 2207 PySSL_set_owner(PySSLSocket *self, PyObject *value, void *c) PySSL_set_owner() argument 2220 PySSL_traverse(PySSLSocket *self, visitproc visit, void *arg) PySSL_traverse() argument 2230 PySSL_clear(PySSLSocket *self) PySSL_clear() argument 2239 PySSL_dealloc(PySSLSocket *self) PySSL_dealloc() argument 2335 _ssl__SSLSocket_write_impl(PySSLSocket *self, Py_buffer *b) _ssl__SSLSocket_write_impl() argument 2440 _ssl__SSLSocket_pending_impl(PySSLSocket *self) _ssl__SSLSocket_pending_impl() argument 2470 _ssl__SSLSocket_read_impl(PySSLSocket *self, Py_ssize_t len, int group_right_1, Py_buffer *buffer) _ssl__SSLSocket_read_impl() argument 2607 _ssl__SSLSocket_shutdown_impl(PySSLSocket *self) _ssl__SSLSocket_shutdown_impl() argument 2731 _ssl__SSLSocket_get_channel_binding_impl(PySSLSocket *self, const char *cb_type) _ssl__SSLSocket_get_channel_binding_impl() argument 2771 _ssl__SSLSocket_verify_client_post_handshake_impl(PySSLSocket *self) _ssl__SSLSocket_verify_client_post_handshake_impl() argument 2830 PySSL_get_session(PySSLSocket *self, void *closure) PySSL_get_session() argument 2863 PySSL_set_session(PySSLSocket *self, PyObject *value, void *closure) PySSL_set_session() argument 2911 PySSL_get_session_reused(PySSLSocket *self, void *closure) PySSL_get_session_reused() argument 2979 _set_verify_mode(PySSLContext *self, enum py_ssl_cert_requirements n) _set_verify_mode() argument 3020 PySSLContext *self; _ssl__SSLContext_impl() local 3215 context_traverse(PySSLContext *self, visitproc visit, void *arg) context_traverse() argument 3224 context_clear(PySSLContext *self) context_clear() argument 3239 context_dealloc(PySSLContext *self) context_dealloc() argument 3258 _ssl__SSLContext_set_ciphers_impl(PySSLContext *self, const char *cipherlist) _ssl__SSLContext_set_ciphers_impl() argument 3279 _ssl__SSLContext_get_ciphers_impl(PySSLContext *self) _ssl__SSLContext_get_ciphers_impl() argument 3361 _ssl__SSLContext__set_alpn_protocols_impl(PySSLContext *self, Py_buffer *protos) _ssl__SSLContext__set_alpn_protocols_impl() argument 3386 get_verify_mode(PySSLContext *self, void *c) get_verify_mode() argument 3405 set_verify_mode(PySSLContext *self, PyObject *arg, void *c) set_verify_mode() argument 3420 get_verify_flags(PySSLContext *self, void *c) get_verify_flags() argument 3431 set_verify_flags(PySSLContext *self, PyObject *arg, void *c) set_verify_flags() argument 3459 set_min_max_proto_version(PySSLContext *self, PyObject *arg, int what) set_min_max_proto_version() argument 3545 get_minimum_version(PySSLContext *self, void *c) get_minimum_version() argument 3555 set_minimum_version(PySSLContext *self, PyObject *arg, void *c) set_minimum_version() argument 3561 get_maximum_version(PySSLContext *self, void *c) get_maximum_version() argument 3571 set_maximum_version(PySSLContext *self, PyObject *arg, void *c) set_maximum_version() argument 3578 get_num_tickets(PySSLContext *self, void *c) get_num_tickets() argument 3584 set_num_tickets(PySSLContext *self, PyObject *arg, void *c) set_num_tickets() argument 3610 get_security_level(PySSLContext *self, void *c) get_security_level() argument 3617 get_options(PySSLContext *self, void *c) get_options() argument 3623 set_options(PySSLContext *self, PyObject *arg, void *c) set_options() argument 3652 get_host_flags(PySSLContext *self, void *c) get_host_flags() argument 3658 set_host_flags(PySSLContext *self, PyObject *arg, void *c) set_host_flags() argument 3673 get_check_hostname(PySSLContext *self, void *c) get_check_hostname() argument 3679 set_check_hostname(PySSLContext *self, PyObject *arg, void *c) set_check_hostname() argument 3696 get_post_handshake_auth(PySSLContext *self, void *c) get_post_handshake_auth() argument 3706 set_post_handshake_auth(PySSLContext *self, PyObject *arg, void *c) set_post_handshake_auth() argument 3726 get_protocol(PySSLContext *self, void *c) get_protocol() argument 3848 _ssl__SSLContext_load_cert_chain_impl(PySSLContext *self, PyObject *certfile, PyObject *keyfile, PyObject *password) _ssl__SSLContext_load_cert_chain_impl() argument 3949 _add_ca_certs(PySSLContext *self, const void *data, Py_ssize_t len, int filetype) _add_ca_certs() argument 4050 _ssl__SSLContext_load_verify_locations_impl(PySSLContext *self, PyObject *cafile, PyObject *capath, PyObject *cadata) _ssl__SSLContext_load_verify_locations_impl() argument 4176 _ssl__SSLContext_load_dh_params(PySSLContext *self, PyObject *filepath) _ssl__SSLContext_load_dh_params() argument 4221 _ssl__SSLContext__wrap_socket_impl(PySSLContext *self, PyObject *sock, int server_side, PyObject *hostname_obj, PyObject *owner, PyObject *session) _ssl__SSLContext__wrap_socket_impl() argument 4258 _ssl__SSLContext__wrap_bio_impl(PySSLContext *self, PySSLMemoryBIO *incoming, PySSLMemoryBIO *outgoing, int server_side, PyObject *hostname_obj, PyObject *owner, PyObject *session) _ssl__SSLContext__wrap_bio_impl() argument 4287 _ssl__SSLContext_session_stats_impl(PySSLContext *self) _ssl__SSLContext_session_stats_impl() argument 4331 _ssl__SSLContext_set_default_verify_paths_impl(PySSLContext *self) _ssl__SSLContext_set_default_verify_paths_impl() argument 4353 _ssl__SSLContext_set_ecdh_curve(PySSLContext *self, PyObject *name) _ssl__SSLContext_set_ecdh_curve() argument 4490 get_sni_callback(PySSLContext *self, void *c) get_sni_callback() argument 4501 set_sni_callback(PySSLContext *self, PyObject *arg, void *c) set_sni_callback() argument 4591 _ssl__SSLContext_cert_store_stats_impl(PySSLContext *self) _ssl__SSLContext_cert_store_stats_impl() argument 4642 _ssl__SSLContext_get_ca_certs_impl(PySSLContext *self, int binary_form) _ssl__SSLContext_get_ca_certs_impl() argument 4789 PySSLMemoryBIO *self; _ssl_MemoryBIO_impl() local 4815 memory_bio_traverse(PySSLMemoryBIO *self, visitproc visit, void *arg) memory_bio_traverse() argument 4822 memory_bio_dealloc(PySSLMemoryBIO *self) memory_bio_dealloc() argument 4832 memory_bio_get_pending(PySSLMemoryBIO *self, void *c) memory_bio_get_pending() argument 4841 memory_bio_get_eof(PySSLMemoryBIO *self, void *c) memory_bio_get_eof() argument 4864 _ssl_MemoryBIO_read_impl(PySSLMemoryBIO *self, int len) _ssl_MemoryBIO_read_impl() argument 4905 _ssl_MemoryBIO_write_impl(PySSLMemoryBIO *self, Py_buffer *b) _ssl_MemoryBIO_write_impl() argument 4944 _ssl_MemoryBIO_write_eof_impl(PySSLMemoryBIO *self) _ssl_MemoryBIO_write_eof_impl() argument 4993 PySSLSession_dealloc(PySSLSession *self) PySSLSession_dealloc() argument 5065 PySSLSession_traverse(PySSLSession *self, visitproc visit, void *arg) PySSLSession_traverse() argument 5073 PySSLSession_clear(PySSLSession *self) PySSLSession_clear() argument 5081 PySSLSession_get_time(PySSLSession *self, void *closure) PySSLSession_get_time() argument 5090 PySSLSession_get_timeout(PySSLSession *self, void *closure) PySSLSession_get_timeout() argument 5099 PySSLSession_get_ticket_lifetime_hint(PySSLSession *self, void *closure) PySSLSession_get_ticket_lifetime_hint() argument 5109 PySSLSession_get_session_id(PySSLSession *self, void *closure) PySSLSession_get_session_id() argument 5121 PySSLSession_get_has_ticket(PySSLSession *self, void *closure) PySSLSession_get_has_ticket() argument [all...] |
/third_party/googletest/googletest/test/ |
H A D | googletest-break-on-failure-unittest.py | 95 def RunAndVerify(self, env_var_value, flag_value, expect_seg_fault): 138 self.assert_(has_seg_fault == expect_seg_fault, msg) 140 def testDefaultBehavior(self): 143 self.RunAndVerify(env_var_value=None, 147 def testEnvVar(self): 150 self.RunAndVerify(env_var_value='0', 153 self.RunAndVerify(env_var_value='1', 157 def testFlag(self): 160 self.RunAndVerify(env_var_value=None, 163 self [all...] |
/third_party/python/Lib/ctypes/test/ |
H A D | test_varsize_struct.py | 5 def test_resize(self): 10 self.assertEqual(sizeof(X), sizeof(c_int) * 2) 14 self.assertEqual(sizeof(x), sizeof(c_int) * 2) 19 self.assertEqual(sizeof(x), new_size) 20 self.assertEqual((x.item, x.array[0]), (42, 100)) 25 self.assertEqual(sizeof(x), new_size) 26 self.assertEqual((x.item, x.array[0]), (42, 100)) 31 self.assertEqual(sizeof(x), new_size) 32 self.assertEqual((x.item, x.array[0]), (42, 100)) 34 def test_array_invalid_length(self) [all...] |
/third_party/vk-gl-cts/external/openglcts/scripts/ |
H A D | verify_kc_cts_rev.py | 42 def __init__(self, baseDir, extractDir): 43 self.baseDir = baseDir 44 self.extractDir = extractDir 46 def clean (self): 47 fullDstPath = os.path.join(EXTERNAL_DIR, self.baseDir, self.extractDir) 52 def __init__(self, url, revision, baseDir, extractDir = "src"): 53 Source.__init__(self, baseDir, extractDir) 54 self.url = url 55 self [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/alsa/ |
H A D | test-pcmtest-driver.c | 138 self->params.buffer_size = 16384; in FIXTURE_SETUP() 139 self->params.period_size = 4096; in FIXTURE_SETUP() 140 self->params.channels = CH_NUM; in FIXTURE_SETUP() 141 self->params.rate = 8000; in FIXTURE_SETUP() 142 self->params.access = SND_PCM_ACCESS_RW_INTERLEAVED; in FIXTURE_SETUP() 143 self->params.format = SND_PCM_FORMAT_S16_LE; in FIXTURE_SETUP() 144 self->card = -1; in FIXTURE_SETUP() 145 self->params.sample_size = snd_pcm_format_physical_width(self->params.format) / 8; in FIXTURE_SETUP() 147 self in FIXTURE_SETUP() [all...] |
/third_party/mbedtls/scripts/ |
H A D | assemble_changelog.py | 35 def __init__(self, filename, line_number, message, *args, **kwargs): 41 def __init__(self, line_offset, error_message): 42 self.line_offset = line_offset 43 self.error_message = error_message 47 def __init__(self, filename, line): 52 def __init__(self, filenames): 202 def add_categories_from_text(self, filename, line_offset, 206 categories = self.format.split_categories(text) 212 category.name not in self.categories: 221 if not self [all...] |
/third_party/python/Lib/ |
H A D | warnings.py | 403 def __init__(self, message, category, filename, lineno, file=None, 405 self.message = message 406 self.category = category 407 self.filename = filename 408 self.lineno = lineno 409 self.file = file 410 self.line = line 411 self.source = source 412 self._category_name = category.__name__ if category else None 414 def __str__(self) [all...] |
H A D | cProfile.py | 41 def print_stats(self, sort=-1): 43 pstats.Stats(self).strip_dirs().sort_stats(sort).print_stats() 45 def dump_stats(self, file): 48 self.create_stats() 49 marshal.dump(self.stats, f) 51 def create_stats(self): 52 self.disable() 53 self.snapshot_stats() 55 def snapshot_stats(self): 56 entries = self [all...] |
/kernel/linux/linux-6.6/tools/workqueue/ |
H A D | wq_monitor.py | 77 def __init__(self, wq): 78 self.name = wq.name.string_().decode() 79 self.unbound = wq.flags & WQ_UNBOUND != 0 80 self.mem_reclaim = wq.flags & WQ_MEM_RECLAIM != 0 81 self.stats = [0] * PWQ_NR_STATS 84 self.stats[i] += int(pwq.stats[i]) 86 def dict(self, now): 88 'name' : self.name, 89 'unbound' : self.unbound, 90 'mem_reclaim' : self [all...] |
/third_party/PyYAML/examples/yaml-highlight/ |
H A D | yaml_hl.py | 7 def __init__(self, header=None, footer=None, 9 self.header = header 10 self.footer = footer 11 self.replaces = replaces 12 self.substitutions = {} 25 self.substitutions[cls, -1] = start 27 self.substitutions[cls, +1] = end 29 def __setstate__(self, state): 30 self.__init__(**state) 39 def __init__(self, option [all...] |
/third_party/python/Lib/test/test_email/ |
H A D | __init__.py | 33 def __init__(self, *args, **kw): 35 self.addTypeEqualityFunc(bytes, self.assertBytesEqual) 40 def _msgobj(self, filename): 42 return email.message_from_file(fp, policy=self.policy) 44 def _str_msg(self, string, message=None, policy=None): 46 policy = self.policy 48 message = self.message 51 def _bytes_msg(self, bytestring, message=None, policy=None): 53 policy = self [all...] |
/kernel/linux/linux-6.6/tools/testing/kunit/ |
H A D | kunit_parser.py | 39 def __init__(self) -> None: 41 self.status = TestStatus.TEST_CRASHED 42 self.name = '' 43 self.expected_count = 0 # type: Optional[int] 44 self.subtests = [] # type: List[Test] 45 self.log = [] # type: List[str] 46 self.counts = TestCounts() 48 def __str__(self) -> str: 50 return (f'Test({self.status}, {self [all...] |
/third_party/mesa3d/src/vulkan/util/ |
H A D | vk_dispatch_table_gen.py | 598 def __init__(self, string, num): 599 self.string = string 600 self.num = num 606 self.hash = h 608 self.offset = None 614 def __init__(self): 615 self.baked = False 616 self.strings = {} 618 def add_string(self, string, num): 619 assert not self [all...] |
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | gen-vowel-constraints.py | 55 def __init__ (self, constraint): 62 self._c = constraint 64 def add (self, constraint): 70 if isinstance (self._c, list): 71 if constraint == self._c[:len (constraint)]: 72 self._c = constraint 73 elif self._c != constraint[:len (self._c)]: 74 self._c = {self [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/nci/ |
H A D | nci_dev.c | 410 self->open_state = false; in FIXTURE_SETUP() 411 self->proto = VIRTUAL_NFC_PROTOCOLS; in FIXTURE_SETUP() 412 self->isNCI2 = variant->isNCI2; in FIXTURE_SETUP() 414 self->sd = create_nl_socket(); in FIXTURE_SETUP() 415 ASSERT_NE(self->sd, -1); in FIXTURE_SETUP() 417 self->pid = getpid(); in FIXTURE_SETUP() 418 self->fid = get_family_id(self->sd, self->pid, &event_group); in FIXTURE_SETUP() 419 ASSERT_NE(self in FIXTURE_SETUP() [all...] |
/third_party/benchmark/tools/gbench/ |
H A D | report.py | 15 def __init__(self, name, code): 16 self.name = name 17 self.code = code 19 def __repr__(self): 20 return '%s%r' % (self.__class__.__name__, 21 (self.name, self.code)) 23 def __format__(self, format): 24 return self.code 398 def load_results(self) [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | gen_vk_internal_shaders.py | 346 def __init__(self, shader_file, preprocessor_args, output_path, variable_name): 348 self.process = subprocess.Popen( 351 self.output_path = output_path 352 self.variable_name = variable_name 354 self.shader_file = shader_file 356 def wait(self, queue): 357 (out, err) = self.process.communicate() 358 if self.process.returncode == 0: 369 compressed_blob = read_and_compress_spirv_blob(self.output_path) 373 write_compressed_spirv_blob_as_c_array(self [all...] |
/third_party/node/tools/gyp/pylib/gyp/generator/ |
H A D | analyzer.py | 238 def __init__(self, name): 239 self.deps = set() 240 self.match_status = MATCH_STATUS_TBD 241 self.back_deps = set() 242 self.name = name 245 self.visited = False 246 self.requires_build = False 247 self.added_to_compile_targets = False 248 self.in_roots = False 249 self [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ |
H A D | analyzer.py | 238 def __init__(self, name): 239 self.deps = set() 240 self.match_status = MATCH_STATUS_TBD 241 self.back_deps = set() 242 self.name = name 245 self.visited = False 246 self.requires_build = False 247 self.added_to_compile_targets = False 248 self.in_roots = False 249 self [all...] |
/third_party/python/Modules/clinic/ |
H A D | arraymodule.c.h | 6 "__copy__($self, /)\n" 15 array_array___copy___impl(arrayobject *self); 18 array_array___copy__(arrayobject *self, PyObject *Py_UNUSED(ignored)) in array_array___copy__() argument 20 return array_array___copy___impl(self); in array_array___copy__() 24 "__deepcopy__($self, unused, /)\n" 33 "count($self, v, /)\n" 42 "index($self, v, start=0, stop=sys.maxsize, /)\n" 53 array_array_index_impl(arrayobject *self, PyObject *v, Py_ssize_t start, 57 array_array_index(arrayobject *self, PyObject *const *args, Py_ssize_t nargs) in array_array_index() argument 81 return_value = array_array_index_impl(self, in array_array_index() 111 array_array_pop(arrayobject *self, PyObject *const *args, Py_ssize_t nargs) array_array_pop() argument 154 array_array_extend(arrayobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) array_array_extend() argument 186 array_array_insert(arrayobject *self, PyObject *const *args, Py_ssize_t nargs) array_array_insert() argument 230 array_array_buffer_info(arrayobject *self, PyObject *Py_UNUSED(ignored)) array_array_buffer_info() argument 260 array_array_byteswap(arrayobject *self, PyObject *Py_UNUSED(ignored)) array_array_byteswap() argument 278 array_array_reverse(arrayobject *self, PyObject *Py_UNUSED(ignored)) array_array_reverse() argument 297 array_array_fromfile(arrayobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) array_array_fromfile() argument 342 array_array_tofile(arrayobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) array_array_tofile() argument 383 array_array_tolist(arrayobject *self, PyObject *Py_UNUSED(ignored)) array_array_tolist() argument 401 array_array_frombytes(arrayobject *self, PyObject *arg) array_array_frombytes() argument 437 array_array_tobytes(arrayobject *self, PyObject *Py_UNUSED(ignored)) array_array_tobytes() argument 459 array_array_fromunicode(arrayobject *self, PyObject *arg) array_array_fromunicode() argument 495 array_array_tounicode(arrayobject *self, PyObject *Py_UNUSED(ignored)) array_array_tounicode() argument 513 array_array___sizeof__(arrayobject *self, PyObject *Py_UNUSED(ignored)) array_array___sizeof__() argument 584 array_array___reduce_ex__(arrayobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) array_array___reduce_ex__() argument 616 array_arrayiterator___reduce__(arrayiterobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) array_arrayiterator___reduce__() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | tls.c | 40 self->notls = false; in FIXTURE_SETUP() 47 self->fd = socket(AF_INET, SOCK_STREAM, 0); in FIXTURE_SETUP() 58 ret = connect(self->fd, &addr, sizeof(addr)); in FIXTURE_SETUP() 61 self->cfd = accept(sfd, &addr, &len); in FIXTURE_SETUP() 62 ASSERT_GE(self->cfd, 0); in FIXTURE_SETUP() 66 ret = setsockopt(self->fd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls")); in FIXTURE_SETUP() 69 self->notls = true; in FIXTURE_SETUP() 74 ret = setsockopt(self->cfd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls")); in FIXTURE_SETUP() 80 close(self->fd); in FIXTURE_TEARDOWN() 81 close(self in FIXTURE_TEARDOWN() 216 chunked_sendfile(struct __test_metadata *_metadata, struct _test_data_tls *self, uint16_t chunk_size, uint16_t extra_payload_size) chunked_sendfile() argument 1004 test_mutliproc(struct __test_metadata *_metadata, struct _test_data_tls *self, bool sendpg, unsigned int n_readers, unsigned int n_writers) test_mutliproc() argument [all...] |
/third_party/node/deps/v8/third_party/test262-harness/test/ |
H A D | test_common.py | 25 def test_test(self): 28 def test_overview(self): 33 self.assertEqual("""The production Block { } in strict code can't contain function 36 self.assertEqual("bestPractice/Sbp_A1_T1.js", record['path']) 37 self.assertEqual("Trying to declare function at the Block statement", 39 self.assertEqual("", record['onlyStrict']) 40 self.assertEqual("SyntaxError", record['negative']) 41 self.assertEqual("http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls", 47 def test_overview(self): 52 self [all...] |
/third_party/python/Lib/test/test_json/ |
H A D | test_separators.py | 6 def test_separators(self): 32 d1 = self.dumps(h) 33 d2 = self.dumps(h, indent=2, sort_keys=True, separators=(' ,', ' : ')) 35 h1 = self.loads(d1) 36 h2 = self.loads(d2) 38 self.assertEqual(h1, h) 39 self.assertEqual(h2, h) 40 self.assertEqual(d2, expect) 42 def test_illegal_separators(self): 44 self [all...] |