Home
last modified time | relevance | path

Searched refs:self (Results 3101 - 3125 of 6519) sorted by relevance

1...<<121122123124125126127128129130>>...261

/third_party/python/Lib/ctypes/test/
H A Dtest_array_in_pointer.py20 def test(self):
29 self.assertEqual("00-00-00-00", dump(val_array))
38 self.assertEqual(
43 def test_2(self):
48 self.assertEqual("00-00-00-00", dump(val_array))
58 self.assertEqual(
/third_party/python/Doc/includes/
H A Dsublist.c10 SubList_increment(SubListObject *self, PyObject *unused) in SubList_increment() argument
12 self->state++; in SubList_increment()
13 return PyLong_FromLong(self->state); in SubList_increment()
23 SubList_init(SubListObject *self, PyObject *args, PyObject *kwds) in SubList_init() argument
25 if (PyList_Type.tp_init((PyObject *) self, args, kwds) < 0) in SubList_init()
27 self->state = 0; in SubList_init()
/third_party/skia/third_party/externals/angle2/third_party/logdog/logdog/
H A Dbootstrap.py69 def stream_client(self, reg=None):
86 self.streamserver_uri,
87 project=self.project,
88 prefix=self.prefix,
89 coordinator_host=self.coordinator_host,
90 namespace=self.namespace)
H A Dstreamname.py155 def validate(self):
158 validate_stream_name(self.prefix)
161 self.prefix,
166 validate_stream_name(self.name)
169 self.name,
173 def __str__(self):
174 return '%s/+/%s' % (self.prefix, self.name)
/third_party/python/Modules/_ssl/clinic/
H A Dcert.c.h6 "public_bytes($self, /, format=Encoding.PEM)\n"
14 _ssl_Certificate_public_bytes_impl(PySSLCertificate *self, int format);
17 _ssl_Certificate_public_bytes(PySSLCertificate *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _ssl_Certificate_public_bytes() argument
38 return_value = _ssl_Certificate_public_bytes_impl(self, format); in _ssl_Certificate_public_bytes()
45 "get_info($self, /)\n"
53 _ssl_Certificate_get_info_impl(PySSLCertificate *self);
56 _ssl_Certificate_get_info(PySSLCertificate *self, PyObject *Py_UNUSED(ignored)) in _ssl_Certificate_get_info() argument
58 return _ssl_Certificate_get_info_impl(self); in _ssl_Certificate_get_info()
/third_party/python/Lib/encodings/
H A Dhex_codec.py22 def encode(self, input, errors='strict'):
24 def decode(self, input, errors='strict'):
28 def encode(self, input, final=False):
29 assert self.errors == 'strict'
33 def decode(self, input, final=False):
34 assert self.errors == 'strict'
H A Dbase64_codec.py22 def encode(self, input, errors='strict'):
24 def decode(self, input, errors='strict'):
28 def encode(self, input, final=False):
29 assert self.errors == 'strict'
33 def decode(self, input, final=False):
34 assert self.errors == 'strict'
/third_party/skia/infra/bots/
H A Dzip_utils_test.py22 def test_zip_unzip(self):
40 test_utils.compare_trees(self, 'input', 'output')
42 def test_to_skip(self):
58 # use self._compare_trees to check the results.
65 test_utils.compare_trees(self, 'input', 'output')
67 def test_nonexistent_dir(self):
69 with self.assertRaises(IOError):
/third_party/littlefs/scripts/
H A Dstack.py42 def __str__(self):
43 if self.x == m.inf:
45 elif self.x == -m.inf:
48 return str(self.x)
50 def __int__(self):
51 assert not m.isinf(self.x)
52 return self.x
54 def __float__(self):
55 return float(self.x)
58 def table(self)
[all...]
/kernel/linux/linux-5.10/tools/testing/kunit/
H A Dkunit_parser.py20 def __init__(self):
21 self.status = None
22 self.name = None
23 self.cases = []
25 def __str__(self):
26 return 'TestSuite(' + self.status + ',' + self.name + ',' + str(self.cases) + ')'
28 def __repr__(self):
29 return str(self)
[all...]
/third_party/python/Tools/c-analyzer/cpython/
H A D_capi.py193 self = cls(filename, lno, name, kind, level)
195 self._text = (prev + line).rstrip().splitlines()
197 self._text = [line.rstrip()]
198 return self, None
201 def relfile(self):
202 return self.file[len(REPO_ROOT) + 1:]
205 def text(self):
207 return self._text
210 self._text = []
211 if self
[all...]
/third_party/python/Lib/test/
H A Daudit-tests.py20 def __init__(self, raise_on_events=None, exc_type=RuntimeError):
21 self.raise_on_events = raise_on_events or ()
22 self.exc_type = exc_type
23 self.seen = []
24 self.closed = False
26 def __enter__(self, *a):
27 sys.addaudithook(self)
28 return self
30 def __exit__(self, *a):
31 self
[all...]
/third_party/python/Objects/clinic/
H A Dcodeobject.c.h160 "replace($self, /, *, co_argcount=-1, co_posonlyargcount=-1,\n"
174 code_replace_impl(PyCodeObject *self, int co_argcount,
186 code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in code_replace() argument
193 int co_argcount = self->co_argcount; in code_replace()
194 int co_posonlyargcount = self->co_posonlyargcount; in code_replace()
195 int co_kwonlyargcount = self->co_kwonlyargcount; in code_replace()
196 int co_nlocals = self->co_nlocals; in code_replace()
197 int co_stacksize = self->co_stacksize; in code_replace()
198 int co_flags = self->co_flags; in code_replace()
199 int co_firstlineno = self in code_replace()
418 code__varname_from_oparg(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) code__varname_from_oparg() argument
[all...]
/third_party/skia/modules/canvaskit/
H A Dskottie_bindings.cpp289 .function("version", optional_override([](skottie::Animation& self)->std::string { in EMSCRIPTEN_BINDINGS()
290 return std::string(self.version().c_str()); in EMSCRIPTEN_BINDINGS()
292 .function("_size", optional_override([](skottie::Animation& self, in EMSCRIPTEN_BINDINGS()
295 *output = self.size(); in EMSCRIPTEN_BINDINGS()
299 .function("seek", optional_override([](skottie::Animation& self, SkScalar t)->void { in EMSCRIPTEN_BINDINGS()
300 self.seek(t); in EMSCRIPTEN_BINDINGS()
302 .function("seekFrame", optional_override([](skottie::Animation& self, double t)->void { in EMSCRIPTEN_BINDINGS()
303 self.seekFrame(t); in EMSCRIPTEN_BINDINGS()
305 .function("_render", optional_override([](skottie::Animation& self, SkCanvas* canvas, in EMSCRIPTEN_BINDINGS()
308 self in EMSCRIPTEN_BINDINGS()
[all...]
/third_party/python/Modules/
H A D_testbuffer.c222 ndarray_dealloc(NDArrayObject *self) in ndarray_dealloc() argument
224 if (self->head) { in ndarray_dealloc()
225 if (ND_IS_CONSUMER(self)) { in ndarray_dealloc()
226 Py_buffer *base = &self->head->base; in ndarray_dealloc()
227 if (self->head->flags & ND_OWN_ARRAYS) { in ndarray_dealloc()
235 while (self->head) in ndarray_dealloc()
236 ndbuf_pop(self); in ndarray_dealloc()
239 PyObject_Free(self); in ndarray_dealloc()
1280 ndarray_init(PyObject *self, PyObject *args, PyObject *kwds) in ndarray_init() argument
1282 NDArrayObject *nd = (NDArrayObject *)self; in ndarray_init()
1346 ndarray_push(PyObject *self, PyObject *args, PyObject *kwds) ndarray_push() argument
1388 ndarray_pop(PyObject *self, PyObject *dummy) ndarray_pop() argument
1417 ndarray_getbuf(NDArrayObject *self, Py_buffer *view, int flags) ndarray_getbuf() argument
1535 ndarray_releasebuf(NDArrayObject *self, Py_buffer *view) ndarray_releasebuf() argument
1588 ndarray_item(NDArrayObject *self, Py_ssize_t index) ndarray_item() argument
1780 ndarray_subscript(NDArrayObject *self, PyObject *key) ndarray_subscript() argument
1865 ndarray_ass_subscript(NDArrayObject *self, PyObject *key, PyObject *value) ndarray_ass_subscript() argument
1922 slice_indices(PyObject *self, PyObject *args) slice_indices() argument
2004 ndarray_get_flags(NDArrayObject *self, void *closure) ndarray_get_flags() argument
2010 ndarray_get_offset(NDArrayObject *self, void *closure) ndarray_get_offset() argument
2017 ndarray_get_obj(NDArrayObject *self, void *closure) ndarray_get_obj() argument
2029 ndarray_get_nbytes(NDArrayObject *self, void *closure) ndarray_get_nbytes() argument
2036 ndarray_get_readonly(NDArrayObject *self, void *closure) ndarray_get_readonly() argument
2043 ndarray_get_itemsize(NDArrayObject *self, void *closure) ndarray_get_itemsize() argument
2050 ndarray_get_format(NDArrayObject *self, void *closure) ndarray_get_format() argument
2058 ndarray_get_ndim(NDArrayObject *self, void *closure) ndarray_get_ndim() argument
2065 ndarray_get_shape(NDArrayObject *self, void *closure) ndarray_get_shape() argument
2072 ndarray_get_strides(NDArrayObject *self, void *closure) ndarray_get_strides() argument
2079 ndarray_get_suboffsets(NDArrayObject *self, void *closure) ndarray_get_suboffsets() argument
2086 ndarray_c_contig(PyObject *self, PyObject *dummy) ndarray_c_contig() argument
2100 ndarray_fortran_contig(PyObject *self, PyObject *dummy) ndarray_fortran_contig() argument
2114 ndarray_contig(PyObject *self, PyObject *dummy) ndarray_contig() argument
2150 ndarray_tolist(PyObject *self, PyObject *dummy) ndarray_tolist() argument
2156 ndarray_tobytes(PyObject *self, PyObject *dummy) ndarray_tobytes() argument
2196 ndarray_add_suboffsets(PyObject *self, PyObject *dummy) ndarray_add_suboffsets() argument
2232 ndarray_memoryview_from_buffer(PyObject *self, PyObject *dummy) ndarray_memoryview_from_buffer() argument
2306 get_pointer(PyObject *self, PyObject *args) get_pointer() argument
2355 get_sizeof_void_p(PyObject *self, PyObject *Py_UNUSED(ignored)) get_sizeof_void_p() argument
2391 get_contiguous(PyObject *self, PyObject *args) get_contiguous() argument
2428 py_buffer_to_contiguous(PyObject *self, PyObject *args) py_buffer_to_contiguous() argument
2503 cmp_contig(PyObject *self, PyObject *args) cmp_contig() argument
2567 is_contiguous(PyObject *self, PyObject *args) is_contiguous() argument
2605 ndarray_hash(PyObject *self) ndarray_hash() argument
2719 staticarray_init(PyObject *self, PyObject *args, PyObject *kwds) staticarray_init() argument
2735 staticarray_dealloc(StaticArrayObject *self) staticarray_dealloc() argument
2743 staticarray_getbuf(StaticArrayObject *self, Py_buffer *view, int flags) staticarray_getbuf() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
H A Dvxlan_fdb_veto.sh52 bridge fdb add 01:02:03:04:05:06 dev vxlan0 self static \
56 bridge fdb add 01:02:03:04:05:06 dev vxlan0 self static \
67 bridge fdb add 00:01:02:03:04:05 dev vxlan0 self static \
71 bridge fdb replace 00:01:02:03:04:05 dev vxlan0 self static \
75 bridge fdb replace 00:01:02:03:04:05 dev vxlan0 self static \
87 bridge fdb add 00:00:00:00:00:00 dev vxlan0 self static \
91 bridge fdb append 00:00:00:00:00:00 dev vxlan0 self static \
95 bridge fdb append 00:00:00:00:00:00 dev vxlan0 self static \
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dcgrp_kfunc_success.c141 struct cgroup *self, *ancestor1, *invalid; in BPF_PROG() local
146 self = bpf_cgroup_ancestor(cgrp, cgrp->level); in BPF_PROG()
147 if (!self) { in BPF_PROG()
152 if (self->self.id != cgrp->self.id) { in BPF_PROG()
153 bpf_cgroup_release(self); in BPF_PROG()
157 bpf_cgroup_release(self); in BPF_PROG()
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
H A Dvxlan_fdb_veto.sh67 bridge fdb add 01:02:03:04:05:06 dev vxlan0 self static \
71 bridge fdb add 01:02:03:04:05:06 dev vxlan0 self static \
82 bridge fdb add 00:01:02:03:04:05 dev vxlan0 self static \
86 bridge fdb replace 00:01:02:03:04:05 dev vxlan0 self static \
90 bridge fdb replace 00:01:02:03:04:05 dev vxlan0 self static \
102 bridge fdb add 00:00:00:00:00:00 dev vxlan0 self static \
106 bridge fdb append 00:00:00:00:00:00 dev vxlan0 self static \
110 bridge fdb append 00:00:00:00:00:00 dev vxlan0 self static \
/test/testfwk/xdevice/src/xdevice/_core/
H A Derror.py46 def __repr__(self):
47 msg = "[{}-{}] {}".format(self.category, self.code, self.error)
48 if self.suggestions:
49 msg += " [Suggestions] {}".format(self.suggestions)
52 def format(self, *args, **kwargs):
59 return self.__str__().format(*args, **kwargs)
/test/xts/hats/hdf/wlan/hdi_service/
H A Dwlan_callback_impl.c30 static int32_t WlanCallbackResetDriver(struct IWlanCallback *self, uint32_t event, int32_t code, const char *ifName) in WlanCallbackResetDriver() argument
32 (void)self; in WlanCallbackResetDriver()
58 static int32_t WlanCallbackScanResult(struct IWlanCallback *self, uint32_t event, in WlanCallbackScanResult() argument
61 (void)self; in WlanCallbackScanResult()
75 static int32_t WlanCallbackScanResults(struct IWlanCallback *self, uint32_t event, in WlanCallbackScanResults() argument
79 (void)self; in WlanCallbackScanResults()
97 static int32_t WlanCallbackNetlinkMessage(struct IWlanCallback *self, const uint8_t *msg, uint32_t msgLen) in WlanCallbackNetlinkMessage() argument
100 (void)self; in WlanCallbackNetlinkMessage()
/third_party/mesa3d/docs/_exts/
H A Dnir.py110 def run(self):
111 return [build_alu_op_desc(self.state, self.env, op)
135 def add_alu_op_ref(self, op):
137 self.data['alu-op-refs'].append((op.name, self.env.docname))
140 def resolve_xref(self, env, fromdocname, builder, typ, target, node,
142 for opname, todocname in self.data['alu-op-refs']:
/third_party/musl/porting/linux/user/src/time/
H A Dtimer_create.c26 pthread_t self = __pthread_self(); in cleanup_fromsig() local
29 self->cancel = 0; in cleanup_fromsig()
30 self->canceldisable = 0; in cleanup_fromsig()
31 self->cancelasync = 0; in cleanup_fromsig()
33 self->cancelbuf = 0; in cleanup_fromsig()
40 pthread_t self = __pthread_self(); in start() local
56 if (self->timer_id < 0) break; in start()
58 __syscall(SYS_timer_delete, self->timer_id & INT_MAX); in start()
/third_party/libinput/tools/
H A Dlibinput-list-kernel-devices.py59 def __init__(self, name, driver, vendor, product, devpath):
60 self.name = name
61 self.driver = driver
62 self.vendor = vendor
63 self.product = product
64 self.devpath = devpath
65 self.hidraws = []
66 self.evdevs = []
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
H A D2-1.c34 pthread_t self = pthread_self(); in thr_func() local
38 (void *)self); in thr_func()
42 (void *)self); in thr_func()
46 (void *)self); in thr_func()
55 "mutex again\n", (void *)self); in thr_func()
60 "mutex again\n", (void *)self); in thr_func()
65 "mutex\n", (void *)self); in thr_func()
69 fprintf(stderr, "[Thread 0x%p] released the mutex\n", (void *)self); in thr_func()
/third_party/skia/tools/fonts/
H A Dgenerate_fir_coeff.py110 def __init__(self, index, item):
111 self.index = index
112 self.item = item
113 def __lt__(self, other):
114 return self.item < other.item
115 def __repr__(self):
116 return "arr[%d] == %s" % (self.index, repr(self.item))

Completed in 13 milliseconds

1...<<121122123124125126127128129130>>...261