Home
last modified time | relevance | path

Searched refs:self (Results 1976 - 2000 of 6106) sorted by relevance

1...<<71727374757677787980>>...245

/third_party/node/deps/v8/tools/
H A Drun-wasm-api-tests.py76 def __init__(self, name, outdir, tempdir):
77 self.name = name
78 self.outdir = outdir
79 self.tempdir = tempdir
80 self.src_file_basename = os.path.join(WASM_PATH, "example", name)
81 self.dst_file_basename = os.path.join(tempdir, name)
82 self.lib_file = os.path.join(outdir, "obj", "libwee8.a")
83 if not os.path.exists(self.lib_file):
87 src_wasm_file = self.src_file_basename + ".wasm"
88 dst_wasm_file = self
[all...]
/third_party/python/Modules/
H A Dxxmodule.c11 local variables other than 'self'. If your object type is needed in
33 XxoObject *self; in newXxoObject() local
34 self = PyObject_New(XxoObject, &Xxo_Type); in newXxoObject()
35 if (self == NULL) in newXxoObject()
37 self->x_attr = NULL; in newXxoObject()
38 return self; in newXxoObject()
44 Xxo_dealloc(XxoObject *self) in Xxo_dealloc() argument
46 Py_XDECREF(self->x_attr); in Xxo_dealloc()
47 PyObject_Free(self); in Xxo_dealloc()
51 Xxo_demo(XxoObject *self, PyObjec argument
66 Xxo_getattro(XxoObject *self, PyObject *name) Xxo_getattro() argument
82 Xxo_setattr(XxoObject *self, const char *name, PyObject *v) Xxo_setattr() argument
155 xx_foo(PyObject *self, PyObject *args) xx_foo() argument
169 xx_new(PyObject *self, PyObject *args) xx_new() argument
184 xx_bug(PyObject *self, PyObject *args) xx_bug() argument
205 xx_roj(PyObject *self, PyObject *args) xx_roj() argument
267 null_richcompare(PyObject *self, PyObject *other, int op) null_richcompare() argument
[all...]
H A D_zoneinfo.c112 load_data(PyZoneInfo_ZoneInfo *self, PyObject *file_obj);
161 find_ttinfo(PyZoneInfo_ZoneInfo *self, PyObject *dt);
199 PyObject *self = (PyObject *)(type->tp_alloc(type, 0)); in zoneinfo_new_instance() local
200 if (self == NULL) { in zoneinfo_new_instance()
211 if (load_data((PyZoneInfo_ZoneInfo *)self, file_obj)) { in zoneinfo_new_instance()
223 ((PyZoneInfo_ZoneInfo *)self)->key = key; in zoneinfo_new_instance()
228 Py_XDECREF(self); in zoneinfo_new_instance()
229 self = NULL; in zoneinfo_new_instance()
237 Py_CLEAR(self); in zoneinfo_new_instance()
243 return self; in zoneinfo_new_instance()
306 PyZoneInfo_ZoneInfo *self = (PyZoneInfo_ZoneInfo *)obj_self; zoneinfo_dealloc() local
347 PyZoneInfo_ZoneInfo *self = NULL; zoneinfo_from_file() local
463 zoneinfo_utcoffset(PyObject *self, PyObject *dt) zoneinfo_utcoffset() argument
474 zoneinfo_dst(PyObject *self, PyObject *dt) zoneinfo_dst() argument
485 zoneinfo_tzname(PyObject *self, PyObject *dt) zoneinfo_tzname() argument
512 PyZoneInfo_ZoneInfo *self = (PyZoneInfo_ZoneInfo *)obj_self; zoneinfo_fromutc() local
616 zoneinfo_repr(PyZoneInfo_ZoneInfo *self) zoneinfo_repr() argument
633 zoneinfo_str(PyZoneInfo_ZoneInfo *self) zoneinfo_str() argument
659 PyZoneInfo_ZoneInfo *self = (PyZoneInfo_ZoneInfo *)obj_self; zoneinfo_reduce() local
836 load_data(PyZoneInfo_ZoneInfo *self, PyObject *file_obj) load_data() argument
1171 CalendarRule *self = (CalendarRule *)base_self; calendarrule_year_to_timestamp() local
1270 DayRule *self = (DayRule *)base_self; dayrule_year_to_timestamp() local
2134 find_ttinfo(PyZoneInfo_ZoneInfo *self, PyObject *dt) find_ttinfo() argument
[all...]
/third_party/python/Lib/tkinter/
H A Dcommondialog.py20 def __init__(self, master=None, **options):
23 self.master = master
24 self.options = options
26 def _fixoptions(self):
29 def _fixresult(self, widget, result):
32 def show(self, **options):
36 self.options[k] = v
38 self._fixoptions()
40 master = self.master
44 self
[all...]
/base/update/packaging_tools/test/
H A Dtest_build_update.py40 def setUp(self):
43 def tearDown(self):
46 def test_update_pkg(self):
67 self.assertEqual(pkg_re, True)
71 def test_updater_partitions(self):
94 self.assertEqual(pkg_re, True)
97 def test_updater_partitions2(self):
120 self.assertEqual(pkg_re, 0)
125 def test_update_pkg_nozip(self):
145 self
[all...]
/third_party/musl/src/thread/
H A Dpthread_create.c65 pthread_t self = __pthread_self(); in __pthread_exit() local
68 self->canceldisable = 1; in __pthread_exit()
69 self->cancelasync = 0; in __pthread_exit()
70 self->result = result; in __pthread_exit()
72 while (self->cancelbuf) { in __pthread_exit()
73 void (*f)(void *) = self->cancelbuf->__f; in __pthread_exit()
74 void *x = self->cancelbuf->__x; in __pthread_exit()
75 self->cancelbuf = self->cancelbuf->__next; in __pthread_exit()
85 int state = a_cas(&self in __pthread_exit()
186 struct pthread *self = __pthread_self(); __do_cleanup_push() local
250 struct pthread *self, *new; __pthread_create() local
416 struct pthread *self = __pthread_self(); __pthread_list_find() local
[all...]
/third_party/python/Modules/cjkcodecs/clinic/
H A Dmultibytecodec.c.h6 "encode($self, /, input, errors=None)\n"
20 _multibytecodec_MultibyteCodec_encode_impl(MultibyteCodecObject *self,
25 _multibytecodec_MultibyteCodec_encode(MultibyteCodecObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _multibytecodec_MultibyteCodec_encode() argument
62 return_value = _multibytecodec_MultibyteCodec_encode_impl(self, input, errors); in _multibytecodec_MultibyteCodec_encode()
69 "decode($self, /, input, errors=None)\n"
83 _multibytecodec_MultibyteCodec_decode_impl(MultibyteCodecObject *self,
88 _multibytecodec_MultibyteCodec_decode(MultibyteCodecObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _multibytecodec_MultibyteCodec_decode() argument
131 return_value = _multibytecodec_MultibyteCodec_decode_impl(self, &input, errors); in _multibytecodec_MultibyteCodec_decode()
143 "encode($self, /, input, final=False)\n"
151 _multibytecodec_MultibyteIncrementalEncoder_encode_impl(MultibyteIncrementalEncoderObject *self,
156 _multibytecodec_MultibyteIncrementalEncoder_encode(MultibyteIncrementalEncoderObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _multibytecodec_MultibyteIncrementalEncoder_encode() argument
197 _multibytecodec_MultibyteIncrementalEncoder_getstate(MultibyteIncrementalEncoderObject *self, PyObject *Py_UNUSED(ignored)) _multibytecodec_MultibyteIncrementalEncoder_getstate() argument
215 _multibytecodec_MultibyteIncrementalEncoder_setstate(MultibyteIncrementalEncoderObject *self, PyObject *arg) _multibytecodec_MultibyteIncrementalEncoder_setstate() argument
243 _multibytecodec_MultibyteIncrementalEncoder_reset(MultibyteIncrementalEncoderObject *self, PyObject *Py_UNUSED(ignored)) _multibytecodec_MultibyteIncrementalEncoder_reset() argument
262 _multibytecodec_MultibyteIncrementalDecoder_decode(MultibyteIncrementalDecoderObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _multibytecodec_MultibyteIncrementalDecoder_decode() argument
314 _multibytecodec_MultibyteIncrementalDecoder_getstate(MultibyteIncrementalDecoderObject *self, PyObject *Py_UNUSED(ignored)) _multibytecodec_MultibyteIncrementalDecoder_getstate() argument
332 _multibytecodec_MultibyteIncrementalDecoder_setstate(MultibyteIncrementalDecoderObject *self, PyObject *arg) _multibytecodec_MultibyteIncrementalDecoder_setstate() argument
360 _multibytecodec_MultibyteIncrementalDecoder_reset(MultibyteIncrementalDecoderObject *self, PyObject *Py_UNUSED(ignored)) _multibytecodec_MultibyteIncrementalDecoder_reset() argument
378 _multibytecodec_MultibyteStreamReader_read(MultibyteStreamReaderObject *self, PyObject *const *args, Py_ssize_t nargs) _multibytecodec_MultibyteStreamReader_read() argument
410 _multibytecodec_MultibyteStreamReader_readline(MultibyteStreamReaderObject *self, PyObject *const *args, Py_ssize_t nargs) _multibytecodec_MultibyteStreamReader_readline() argument
442 _multibytecodec_MultibyteStreamReader_readlines(MultibyteStreamReaderObject *self, PyObject *const *args, Py_ssize_t nargs) _multibytecodec_MultibyteStreamReader_readlines() argument
473 _multibytecodec_MultibyteStreamReader_reset(MultibyteStreamReaderObject *self, PyObject *Py_UNUSED(ignored)) _multibytecodec_MultibyteStreamReader_reset() argument
492 _multibytecodec_MultibyteStreamWriter_write(MultibyteStreamWriterObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _multibytecodec_MultibyteStreamWriter_write() argument
525 _multibytecodec_MultibyteStreamWriter_writelines(MultibyteStreamWriterObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _multibytecodec_MultibyteStreamWriter_writelines() argument
557 _multibytecodec_MultibyteStreamWriter_reset(MultibyteStreamWriterObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _multibytecodec_MultibyteStreamWriter_reset() argument
[all...]
/third_party/python/Lib/venv/
H A D__init__.py46 def __init__(self, system_site_packages=False, clear=False,
49 self.system_site_packages = system_site_packages
50 self.clear = clear
51 self.symlinks = symlinks
52 self.upgrade = upgrade
53 self.with_pip = with_pip
54 self.orig_prompt = prompt
57 self.prompt = prompt
58 self.upgrade_deps = upgrade_deps
60 def create(self, env_di
[all...]
/third_party/python/Modules/clinic/
H A Dselectmodule.c.h68 "register($self, fd,\n"
83 select_poll_register_impl(pollObject *self, int fd, unsigned short eventmask);
86 select_poll_register(pollObject *self, PyObject *const *args, Py_ssize_t nargs) in select_poll_register() argument
105 return_value = select_poll_register_impl(self, fd, eventmask); in select_poll_register()
116 "modify($self, fd, eventmask, /)\n"
131 select_poll_modify_impl(pollObject *self, int fd, unsigned short eventmask);
134 select_poll_modify(pollObject *self, PyObject *const *args, Py_ssize_t nargs) in select_poll_modify() argument
149 return_value = select_poll_modify_impl(self, fd, eventmask); in select_poll_modify()
160 "unregister($self, fd, /)\n"
169 select_poll_unregister_impl(pollObject *self, in
172 select_poll_unregister(pollObject *self, PyObject *arg) select_poll_unregister() argument
210 select_poll_poll(pollObject *self, PyObject *const *args, Py_ssize_t nargs) select_poll_poll() argument
254 select_devpoll_register(devpollObject *self, PyObject *const *args, Py_ssize_t nargs) select_devpoll_register() argument
304 select_devpoll_modify(devpollObject *self, PyObject *const *args, Py_ssize_t nargs) select_devpoll_modify() argument
346 select_devpoll_unregister(devpollObject *self, PyObject *arg) select_devpoll_unregister() argument
384 select_devpoll_poll(devpollObject *self, PyObject *const *args, Py_ssize_t nargs) select_devpoll_poll() argument
422 select_devpoll_close(devpollObject *self, PyObject *Py_UNUSED(ignored)) select_devpoll_close() argument
444 select_devpoll_fileno(devpollObject *self, PyObject *Py_UNUSED(ignored)) select_devpoll_fileno() argument
580 select_epoll_close(pyEpoll_Object *self, PyObject *Py_UNUSED(ignored)) select_epoll_close() argument
602 select_epoll_fileno(pyEpoll_Object *self, PyObject *Py_UNUSED(ignored)) select_epoll_fileno() argument
665 select_epoll_register(pyEpoll_Object *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) select_epoll_register() argument
719 select_epoll_modify(pyEpoll_Object *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) select_epoll_modify() argument
765 select_epoll_unregister(pyEpoll_Object *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) select_epoll_unregister() argument
813 select_epoll_poll(pyEpoll_Object *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) select_epoll_poll() argument
863 select_epoll___enter__(pyEpoll_Object *self, PyObject *Py_UNUSED(ignored)) select_epoll___enter__() argument
885 select_epoll___exit__(pyEpoll_Object *self, PyObject *const *args, Py_ssize_t nargs) select_epoll___exit__() argument
979 select_kqueue_close(kqueue_queue_Object *self, PyObject *Py_UNUSED(ignored)) select_kqueue_close() argument
1001 select_kqueue_fileno(kqueue_queue_Object *self, PyObject *Py_UNUSED(ignored)) select_kqueue_fileno() argument
1065 select_kqueue_control(kqueue_queue_Object *self, PyObject *const *args, Py_ssize_t nargs) select_kqueue_control() argument
[all...]
/third_party/python/Python/
H A Dhamt.c687 hamt_node_bitmap_assoc(PyHamtNode_Bitmap *self, in hamt_node_bitmap_assoc() argument
693 Return: a new node, or self if key/val already is in the in hamt_node_bitmap_assoc()
701 uint32_t idx = hamt_bitindex(self->b_bitmap, bit); in hamt_node_bitmap_assoc()
717 if (self->b_bitmap & bit) { in hamt_node_bitmap_assoc()
723 assert(val_idx < (size_t)Py_SIZE(self)); in hamt_node_bitmap_assoc()
725 PyObject *key_or_null = self->b_array[key_idx]; in hamt_node_bitmap_assoc()
726 PyObject *val_or_node = self->b_array[val_idx]; in hamt_node_bitmap_assoc()
743 Py_INCREF(self); in hamt_node_bitmap_assoc()
744 return (PyHamtNode *)self; in hamt_node_bitmap_assoc()
747 PyHamtNode_Bitmap *ret = hamt_node_bitmap_clone(self); in hamt_node_bitmap_assoc()
955 hamt_node_bitmap_without(PyHamtNode_Bitmap *self, uint32_t shift, int32_t hash, PyObject *key, PyHamtNode **new_node) hamt_node_bitmap_without() argument
1095 hamt_node_bitmap_find(PyHamtNode_Bitmap *self, uint32_t shift, int32_t hash, PyObject *key, PyObject **val) hamt_node_bitmap_find() argument
1146 hamt_node_bitmap_traverse(PyHamtNode_Bitmap *self, visitproc visit, void *arg) hamt_node_bitmap_traverse() argument
1160 hamt_node_bitmap_dealloc(PyHamtNode_Bitmap *self) hamt_node_bitmap_dealloc() argument
1289 hamt_node_collision_find_index(PyHamtNode_Collision *self, PyObject *key, Py_ssize_t *idx) hamt_node_collision_find_index() argument
1316 hamt_node_collision_assoc(PyHamtNode_Collision *self, uint32_t shift, int32_t hash, PyObject *key, PyObject *val, int* added_leaf) hamt_node_collision_assoc() argument
1434 hamt_node_collision_without(PyHamtNode_Collision *self, uint32_t shift, int32_t hash, PyObject *key, PyHamtNode **new_node) hamt_node_collision_without() argument
1528 hamt_node_collision_find(PyHamtNode_Collision *self, uint32_t shift, int32_t hash, PyObject *key, PyObject **val) hamt_node_collision_find() argument
1554 hamt_node_collision_traverse(PyHamtNode_Collision *self, visitproc visit, void *arg) hamt_node_collision_traverse() argument
1569 hamt_node_collision_dealloc(PyHamtNode_Collision *self) hamt_node_collision_dealloc() argument
1677 hamt_node_array_assoc(PyHamtNode_Array *self, uint32_t shift, int32_t hash, PyObject *key, PyObject *val, int* added_leaf) hamt_node_array_assoc() argument
1761 hamt_node_array_without(PyHamtNode_Array *self, uint32_t shift, int32_t hash, PyObject *key, PyHamtNode **new_node) hamt_node_array_without() argument
1919 hamt_node_array_find(PyHamtNode_Array *self, uint32_t shift, int32_t hash, PyObject *key, PyObject **val) hamt_node_array_find() argument
1939 hamt_node_array_traverse(PyHamtNode_Array *self, visitproc visit, void *arg) hamt_node_array_traverse() argument
1954 hamt_node_array_dealloc(PyHamtNode_Array *self) hamt_node_array_dealloc() argument
2510 hamt_dump(PyHamtObject *self) hamt_dump() argument
2707 hamt_tp_clear(PyHamtObject *self) hamt_tp_clear() argument
2715 hamt_tp_traverse(PyHamtObject *self, visitproc visit, void *arg) hamt_tp_traverse() argument
2722 hamt_tp_dealloc(PyHamtObject *self) hamt_tp_dealloc() argument
2758 hamt_tp_contains(PyHamtObject *self, PyObject *key) hamt_tp_contains() argument
2765 hamt_tp_subscript(PyHamtObject *self, PyObject *key) hamt_tp_subscript() argument
2784 hamt_tp_len(PyHamtObject *self) hamt_tp_len() argument
2790 hamt_tp_iter(PyHamtObject *self) hamt_tp_iter() argument
2796 hamt_py_set(PyHamtObject *self, PyObject *args) hamt_py_set() argument
2809 hamt_py_get(PyHamtObject *self, PyObject *args) hamt_py_get() argument
2838 hamt_py_delete(PyHamtObject *self, PyObject *key) hamt_py_delete() argument
2844 hamt_py_items(PyHamtObject *self, PyObject *args) hamt_py_items() argument
2850 hamt_py_values(PyHamtObject *self, PyObject *args) hamt_py_values() argument
2856 hamt_py_keys(PyHamtObject *self, PyObject *Py_UNUSED(args)) hamt_py_keys() argument
2863 hamt_py_dump(PyHamtObject *self, PyObject *Py_UNUSED(args)) hamt_py_dump() argument
[all...]
/base/security/crypto_framework/interfaces/inner_api/crypto_operation/
H A Dsignature.h39 HcfResult (*init)(HcfSign *self, HcfParamsSpec *params, HcfPriKey *privateKey);
41 HcfResult (*update)(HcfSign *self, HcfBlob *data);
43 HcfResult (*sign)(HcfSign *self, HcfBlob *data, HcfBlob *returnSignatureData);
45 const char *(*getAlgoName)(HcfSign *self);
47 HcfResult (*setSignSpecInt)(HcfSign *self, SignSpecItem item, int32_t saltLen);
49 HcfResult (*getSignSpecString)(HcfSign *self, SignSpecItem item, char **returnString);
51 HcfResult (*getSignSpecInt)(HcfSign *self, SignSpecItem item, int32_t *returnInt);
53 HcfResult (*setSignSpecUint8Array)(HcfSign *self, SignSpecItem item, HcfBlob blob);
61 HcfResult (*init)(HcfVerify *self, HcfParamsSpec *params, HcfPubKey *publicKey);
63 HcfResult (*update)(HcfVerify *self, HcfBlo
[all...]
/drivers/peripheral/audio/interfaces/sound/v1_0/
H A Diaudio_adapter_vdi.h34 int32_t (*InitAllPorts)(struct IAudioAdapterVdi *self);
35 int32_t (*CreateRender)(struct IAudioAdapterVdi *self, const struct AudioDeviceDescriptorVdi *desc,
37 int32_t (*DestroyRender)(struct IAudioAdapterVdi *self, struct IAudioRenderVdi *render);
38 int32_t (*CreateCapture)(struct IAudioAdapterVdi *self, const struct AudioDeviceDescriptorVdi *desc,
40 int32_t (*DestroyCapture)(struct IAudioAdapterVdi *self, struct IAudioCaptureVdi *capture);
41 int32_t (*GetPortCapability)(struct IAudioAdapterVdi *self, const struct AudioPortVdi *port,
43 int32_t (*SetPassthroughMode)(struct IAudioAdapterVdi *self, const struct AudioPortVdi *port,
45 int32_t (*GetPassthroughMode)(struct IAudioAdapterVdi *self, const struct AudioPortVdi *port,
47 int32_t (*GetDeviceStatus)(struct IAudioAdapterVdi *self, struct AudioDeviceStatusVdi *status);
48 int32_t (*UpdateAudioRoute)(struct IAudioAdapterVdi *self, cons
[all...]
/third_party/mesa3d/.gitlab-ci/bare-metal/
H A Dpoe_run.py33 def __init__(self, args, test_timeout):
34 self.powerup = args.powerup
35 self.powerdown = args.powerdown
36 self.ser = SerialBuffer(
38 self.test_timeout = test_timeout
40 def print_error(self, message):
45 def logged_system(self, cmd):
49 def run(self):
50 if self.logged_system(self
[all...]
/third_party/mesa3d/ohos/
H A DmodifyDtsi.py28 def __init__(self, filePath) -> None:
29 self.filePath = filePath
30 self.lines = []
32 fp = open(self.filePath, 'r')
34 self.lines.append(line)
37 def saveAndClose(self):
38 s = ''.join(self.lines)
39 self.lines.clear()
40 fp = open(self.filePath, 'w')
44 def positionSearch(self, positionTex
[all...]
/third_party/python/Lib/ctypes/test/
H A Dtest_anon.py7 def test_anon(self):
18 self.assertEqual(Y.a.offset, sizeof(c_int))
19 self.assertEqual(Y.b.offset, sizeof(c_int))
21 self.assertEqual(ANON.a.offset, 0)
22 self.assertEqual(ANON.b.offset, 0)
24 def test_anon_nonseq(self):
26 self.assertRaises(TypeError,
31 def test_anon_nonmember(self):
33 self.assertRaises(AttributeError,
40 def test_issue31490(self)
[all...]
H A Dtest_simplesubclasses.py5 def __eq__(self, other):
8 return self.value == other.value
12 def test_compare(self):
13 self.assertEqual(MyInt(3), MyInt(3))
14 self.assertNotEqual(MyInt(42), MyInt(43))
16 def test_ignore_retval(self):
24 self.assertEqual(None, cb())
27 def test_int_callback(self):
35 self.assertEqual(None, cb(42))
36 self
[all...]
/third_party/python/Lib/lib2to3/fixes/
H A Dfix_imports.py96 def build_pattern(self):
97 return "|".join(build_pattern(self.mapping))
99 def compile_pattern(self):
102 self.PATTERN = self.build_pattern()
103 super(FixImports, self).compile_pattern()
106 def match(self, node):
107 match = super(FixImports, self).match
118 def start_tree(self, tree, filename):
119 super(FixImports, self)
[all...]
/third_party/python/Lib/multiprocessing/
H A Dpopen_spawn_posix.py17 def __init__(self, fd):
18 self.fd = fd
19 def detach(self):
20 return self.fd
30 def __init__(self, process_obj):
31 self._fds = []
34 def duplicate_for_child(self, fd):
35 self._fds.append(fd)
38 def _launch(self, process_obj):
41 self
[all...]
/third_party/python/Lib/test/
H A Dtest_bigaddrspace.py22 def test_concat(self):
28 self.assertRaises(OverflowError, operator.add, x, b"x" * 128)
33 def test_optimized_concat(self):
37 with self.assertRaises(OverflowError) as cm:
41 with self.assertRaises(OverflowError) as cm:
48 def test_repeat(self):
51 self.assertRaises(OverflowError, operator.mul, x, 128)
61 def test_concat(self):
64 x = "x" * int(MAX_Py_ssize_t // (1.1 * self.unicodesize))
67 self
[all...]
H A Dtest_cprofile.py18 def get_expected_output(self):
21 def test_bad_counter_during_dealloc(self):
32 self.assertEqual(cm.unraisable.exc_type, TypeError)
34 def test_profile_enable_disable(self):
35 prof = self.profilerclass()
37 self.addCleanup(prof.disable)
40 self.assertIs(sys.getprofile(), prof)
43 self.assertIs(sys.getprofile(), None)
45 def test_profile_as_context_manager(self):
46 prof = self
[all...]
/third_party/protobuf/python/google/protobuf/
H A Dsymbol_database.py69 def RegisterMessage(self, message):
83 self._classes[desc] = message
84 self.RegisterMessageDescriptor(desc)
87 def RegisterMessageDescriptor(self, message_descriptor):
95 self.pool._AddDescriptor(message_descriptor)
97 def RegisterEnumDescriptor(self, enum_descriptor):
108 self.pool._AddEnumDescriptor(enum_descriptor)
111 def RegisterServiceDescriptor(self, service_descriptor):
120 self.pool._AddServiceDescriptor(service_descriptor)
122 def RegisterFileDescriptor(self, file_descripto
[all...]
/third_party/node/deps/v8/tools/testrunner/testproc/
H A Dresult.py8 def is_skipped(self):
12 def is_grouped(self):
16 def is_rerun(self):
23 def __init__(self, has_unexpected_output, output, cmd=None):
24 self.has_unexpected_output = has_unexpected_output
25 self.output = output
26 self.cmd = cmd
47 def __init__(self, results):
48 self.results = results
51 def is_grouped(self)
[all...]
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_multicall.py27 def test_creator(self):
28 mc = self.mc
29 self.assertIs(multicall._multicall_dict[Text], mc)
30 self.assertTrue(issubclass(mc, Text))
32 self.assertIs(mc, mc2)
34 def test_init(self):
35 mctext = self.mc(self.root)
36 self.assertIsInstance(mctext._MultiCall__binders, list)
38 def test_yview(self)
[all...]
/third_party/python/Lib/unittest/test/testmock/
H A Dtestsentinel.py9 def testSentinels(self):
10 self.assertEqual(sentinel.whatever, sentinel.whatever,
12 self.assertNotEqual(sentinel.whatever, sentinel.whateverelse,
16 def testSentinelName(self):
17 self.assertEqual(str(sentinel.whatever), 'sentinel.whatever',
21 def testDEFAULT(self):
22 self.assertIs(DEFAULT, sentinel.DEFAULT)
24 def testBases(self):
26 self.assertRaises(AttributeError, lambda: sentinel.__bases__)
28 def testPickle(self)
[all...]
/third_party/skia/tools/skpbench/
H A D_hardware_nexus_6p.py13 def __init__(self, adb):
14 HardwareAndroid.__init__(self, adb)
16 def __enter__(self):
17 HardwareAndroid.__enter__(self)
18 if not self._adb.is_root():
19 return self
22 self._adb.shell('''\
32 self._adb.shell('''\
39 self._adb.shell('''\
53 self
[all...]

Completed in 13 milliseconds

1...<<71727374757677787980>>...245