Home
last modified time | relevance | path

Searched refs:self (Results 2076 - 2100 of 6061) sorted by relevance

1...<<81828384858687888990>>...243

/third_party/vk-gl-cts/modules/gles2/scripts/
H A Dgen-swizzles.py95 def __init__(self, *args):
96 self.lists = list(args)
97 self.numLists = len(args)
98 self.numCombinations = reduce(operator.mul, map(len, self.lists), 1)
99 print(self.lists)
100 print(self.numCombinations)
102 def iterate(self):
103 return [tuple(map(lambda x: x[0], self.lists))]
167 def __init__(self, nam
[all...]
H A Dgen-conversions.py161 def __init__(self, name, inputs, outputs, op):
162 self.name = name
163 self.inputs = inputs
164 self.outputs = outputs
165 self.op = op
167 def __str__(self):
169 "NAME": self.name,
170 "VALUES": genValues(self.inputs, self.outputs),
171 "OP": self
[all...]
/third_party/skia/third_party/externals/brotli/python/
H A D_brotli.cc151 static void brotli_Compressor_dealloc(brotli_Compressor* self) { in brotli_Compressor_dealloc() argument
152 BrotliEncoderDestroyInstance(self->enc); in brotli_Compressor_dealloc()
154 Py_TYPE(self)->tp_free((PyObject*)self); in brotli_Compressor_dealloc()
156 self->ob_type->tp_free((PyObject*)self); in brotli_Compressor_dealloc()
161 brotli_Compressor *self; in brotli_Compressor_new() local
162 self = (brotli_Compressor *)type->tp_alloc(type, 0); in brotli_Compressor_new()
164 if (self != NULL) { in brotli_Compressor_new()
165 self in brotli_Compressor_new()
171 brotli_Compressor_init(brotli_Compressor *self, PyObject *args, PyObject *keywds) brotli_Compressor_init() argument
223 brotli_Compressor_process(brotli_Compressor *self, PyObject *args) brotli_Compressor_process() argument
271 brotli_Compressor_flush(brotli_Compressor *self) brotli_Compressor_flush() argument
311 brotli_Compressor_finish(brotli_Compressor *self) brotli_Compressor_finish() argument
437 brotli_Decompressor_dealloc(brotli_Decompressor* self) brotli_Decompressor_dealloc() argument
447 brotli_Decompressor *self; brotli_Decompressor_new() local
457 brotli_Decompressor_init(brotli_Decompressor *self, PyObject *args, PyObject *keywds) brotli_Decompressor_init() argument
492 brotli_Decompressor_process(brotli_Decompressor *self, PyObject *args) brotli_Decompressor_process() argument
539 brotli_Decompressor_is_finished(brotli_Decompressor *self) brotli_Decompressor_is_finished() argument
637 brotli_decompress(PyObject *self, PyObject *args, PyObject *keywds) brotli_decompress() argument
[all...]
/base/security/crypto_framework/frameworks/crypto_operation/
H A Drand.c71 static HcfResult GenerateRandom(HcfRand *self, int32_t numBytes, HcfBlob *random) in GenerateRandom() argument
73 if ((self == NULL) || (random == NULL)) { in GenerateRandom()
81 if (!HcfIsClassMatch((HcfObjectBase *)self, GetRandClass())) { in GenerateRandom()
85 return ((HcfRandImpl *)self)->spiObj->engineGenerateRandom( in GenerateRandom()
86 ((HcfRandImpl *)self)->spiObj, numBytes, random); in GenerateRandom()
89 static const char *GetAlgoName(HcfRand *self) in GetAlgoName() argument
91 if (self == NULL) { in GetAlgoName()
92 LOGE("The input self ptr is NULL!"); in GetAlgoName()
95 if (!HcfIsClassMatch((HcfObjectBase *)self, GetRandClass())) { in GetAlgoName()
99 return ((HcfRandImpl *)self) in GetAlgoName()
102 SetSeed(HcfRand *self, HcfBlob *seed) SetSeed() argument
117 HcfRandDestroy(HcfObjectBase *self) HcfRandDestroy() argument
[all...]
/drivers/peripheral/codec/interfaces/include/
H A Dcodec_component_if.h68 * @param self Indicates the pointer to the target codec component.
76 int32_t (*GetComponentVersion)(struct CodecComponentType *self, struct CompVerInfo *verInfo);
84 * @param self Indicates the pointer to the target codec component.
97 int32_t (*SendCommand)(struct CodecComponentType *self, enum OMX_COMMANDTYPE cmd, uint32_t param,
106 * @param self Indicates the pointer to the target codec component.
117 int32_t (*GetParameter)(struct CodecComponentType *self, uint32_t paramIndex, int8_t *paramStruct,
126 * @param self Indicates the pointer to the target codec component.
137 int32_t (*SetParameter)(struct CodecComponentType *self, uint32_t index, int8_t *paramStruct,
145 * @param self Indicates the pointer to the target codec component.
156 int32_t (*GetConfig)(struct CodecComponentType *self, uint32_
[all...]
/kernel/linux/linux-6.6/Documentation/sphinx/
H A Dkernel_feat.py70 def warn(self, message, **replace):
71 replace["fname"] = self.state.document.current_source
72 replace["line_no"] = replace.get("line_no", self.lineno)
74 self.state.document.settings.env.app.warn(message, prefix="")
76 def run(self):
77 doc = self.state.document
79 raise self.warning("docutils: file insertion disabled")
90 os.path.join(srctree, 'Documentation', self.arguments[0]),
93 if len(self.arguments) > 1:
94 args.extend(['--arch', self
[all...]
/test/testfwk/xdevice/src/xdevice/_core/context/
H A Dabs.py40 def exec_command(self, command, options):
44 if exec_type in self._exec_type_():
45 self._exec_task(options)
49 def _register(self):
52 ContextImpl().update_state(ActiveState(self))
56 def _exec_task(self, options):
61 self.remove_life_stage_listener()
62 self._register()
65 self._on_task_prepare_(options)
66 task = self
[all...]
/third_party/mbedtls/scripts/mbedtls_dev/
H A Dc_parsing_helper.py40 def __init__(self, decl: str) -> None:
41 self.decl = decl.strip()
42 m = self._DECLARATION_RE.match(self.decl)
44 raise ValueError(self.decl)
45 self.type = self.normalize_type(m.group('type')) #type: str
46 self.name = m.group('name') #type: Optional[str]
47 self.suffix = m.group('suffix') if m.group('suffix') else '' #type: str
57 def __init__(self, #pylin
[all...]
/third_party/python/Lib/ctypes/test/
H A Dtest_refcounts.py15 def test_1(self):
26 self.assertEqual(grc(callback), 2)
29 self.assertGreater(grc(callback), 2)
31 self.assertEqual(result, -18)
36 self.assertEqual(grc(callback), 2)
40 def test_refcount(self):
45 self.assertEqual(grc(func), 2)
49 self.assertGreater(grc(func), 2)
53 self.assertGreaterEqual(grc(func), 2)
57 self
[all...]
/third_party/python/Lib/idlelib/
H A Dsearch.py65 def create_widgets(self):
67 SearchDialogBase.create_widgets(self)
69 self.make_button("Find Next", self.default_command, isdef=True)
71 def default_command(self, event=None):
73 if not self.engine.getprog():
75 self.find_again(self.text)
77 def find_again(self, text):
93 if not self
[all...]
/third_party/python/Lib/
H A Drlcompleter.py42 def __init__(self, namespace = None):
64 self.use_main_ns = 1
66 self.use_main_ns = 0
67 self.namespace = namespace
69 def complete(self, text, state):
76 if self.use_main_ns:
77 self.namespace = __main__.__dict__
92 self.matches = self.attr_matches(text)
94 self
[all...]
/third_party/python/Lib/importlib/
H A D_bootstrap.py71 def __init__(self, name):
72 self.lock = _thread.allocate_lock()
73 self.wakeup = _thread.allocate_lock()
74 self.name = name
75 self.owner = None
76 self.count = 0
77 self.waiters = 0
79 def has_deadlock(self):
82 tid = self.owner
100 def acquire(self)
[all...]
/test/testfwk/developer_test/local_coverage/keyword_registration/
H A Dkeyword_filter.py39 def __init__(self, report_path):
40 self.report_path = report_path
42 def gcov_file_generator(self):
46 for root_path, _, files in os.walk(self.report_path):
53 def modify_report_style(self):
58 for root_path, _, files in os.walk(self.report_path):
74 def get_statistic_path(self, gcov_file_path: str):
85 os.path.normcase(os.path.join(self.report_path, file_name))
93 def __init__(self, report_path):
94 self
[all...]
/third_party/python/Objects/
H A Dweakrefobject.c22 static PyObject *weakref_vectorcall(PyWeakReference *self, PyObject *const *args, size_t nargsf, PyObject *kwnames);
25 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback) in init_weakref() argument
27 self->hash = -1; in init_weakref()
28 self->wr_object = ob; in init_weakref()
29 self->wr_prev = NULL; in init_weakref()
30 self->wr_next = NULL; in init_weakref()
31 self->wr_callback = Py_XNewRef(callback); in init_weakref()
32 self->vectorcall = (vectorcallfunc)weakref_vectorcall; in init_weakref()
55 clear_weakref(PyWeakReference *self) in clear_weakref() argument
57 PyObject *callback = self in clear_weakref()
93 _PyWeakref_ClearRef(PyWeakReference *self) _PyWeakref_ClearRef() argument
107 weakref_dealloc(PyObject *self) weakref_dealloc() argument
116 gc_traverse(PyWeakReference *self, visitproc visit, void *arg) gc_traverse() argument
124 gc_clear(PyWeakReference *self) gc_clear() argument
132 weakref_vectorcall(PyWeakReference *self, PyObject *const *args, size_t nargsf, PyObject *kwnames) weakref_vectorcall() argument
146 weakref_hash(PyWeakReference *self) weakref_hash() argument
163 weakref_repr(PyWeakReference *self) weakref_repr() argument
199 weakref_richcompare(PyWeakReference* self, PyWeakReference* other, int op) weakref_richcompare() argument
291 PyWeakReference *self = NULL; weakref___new__() local
343 weakref___init__(PyObject *self, PyObject *args, PyObject *kwargs) weakref___init__() argument
556 proxy_dealloc(PyWeakReference *self) proxy_dealloc() argument
[all...]
/third_party/protobuf/python/google/protobuf/pyext/
H A Dmessage_factory.cc106 PyMessageFactory* self = reinterpret_cast<PyMessageFactory*>(pself); in Dealloc() local
109 for (iterator it = self->classes_by_descriptor->begin(); in Dealloc()
110 it != self->classes_by_descriptor->end(); ++it) { in Dealloc()
113 delete self->classes_by_descriptor; in Dealloc()
114 delete self->message_factory; in Dealloc()
115 Py_CLEAR(self->pool); in Dealloc()
116 Py_TYPE(self)->tp_free(pself); in Dealloc()
120 PyMessageFactory* self = reinterpret_cast<PyMessageFactory*>(pself); in GcTraverse() local
121 Py_VISIT(self->pool); in GcTraverse()
122 for (const auto& desc_and_class : *self in GcTraverse()
129 PyMessageFactory* self = reinterpret_cast<PyMessageFactory*>(pself); GcClear() local
140 RegisterMessageClass(PyMessageFactory* self, const Descriptor* message_descriptor, CMessageClass* message_class) RegisterMessageClass() argument
155 GetOrCreateMessageClass(PyMessageFactory* self, const Descriptor* descriptor) GetOrCreateMessageClass() argument
223 GetMessageClass(PyMessageFactory* self, const Descriptor* message_descriptor) GetMessageClass() argument
239 GetPool(PyMessageFactory* self, void* closure) GetPool() argument
[all...]
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/
H A Demulator.py37 def __get_serial__(self):
40 def __set_serial__(self, device_sn=""):
43 def __init__(self, device_sn=""):
44 self.device_sn = device_sn
45 self.is_timeout = False
46 self.device_log_proc = None
47 self.test_device_state = TestDeviceState.ONLINE
48 self.device_allocation_state = DeviceAllocationState.available
50 def __serial__(self):
51 return self
[all...]
/third_party/typescript/tests/baselines/reference/
H A DrecursiveExportAssignmentAndFindAliasedType7.js4 import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleD");
5 var selfVar = self;
9 import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleE");
10 export = self;
13 import self = require("recursiveExportAssignmentAndFindAliasedType7_moduleC");
14 export = self;
26 define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType7_moduleC"], function (require, exports, self) {
28 return self;
31 define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType7_moduleE"], function (require, exports, self) {
33 return self;
[all...]
/third_party/python/Lib/test/
H A Dtest_unicode_identifiers.py5 def test_valid(self):
11 self.assertEqual(getattr(T, "\xe4"), 1)
12 self.assertEqual(getattr(T, "\u03bc"), 2)
13 self.assertEqual(getattr(T, '\u87d2'), 3)
14 self.assertEqual(getattr(T, 'x\U000E0100'), 4)
16 def test_non_bmp_normalized(self):
18 self.assertIn("Unicode", dir())
20 def test_invalid(self):
24 self.assertEqual(str(err),
26 self
[all...]
/third_party/skia/infra/bots/recipe_modules/builder_name_schema/
H A Dapi.py15 def __init__(self, *args, **kwargs):
16 super(BuilderNameSchemaApi, self).__init__(*args, **kwargs)
19 self.BUILDER_NAME_SCHEMA = builder_name_schema.BUILDER_NAME_SCHEMA
20 self.BUILDER_NAME_SEP = builder_name_schema.BUILDER_NAME_SEP
22 self.BUILDER_ROLE_BUILD = builder_name_schema.BUILDER_ROLE_BUILD
23 self.BUILDER_ROLE_HOUSEKEEPER = builder_name_schema.BUILDER_ROLE_HOUSEKEEPER
24 self.BUILDER_ROLE_INFRA = builder_name_schema.BUILDER_ROLE_INFRA
25 self.BUILDER_ROLE_PERF = builder_name_schema.BUILDER_ROLE_PERF
26 self.BUILDER_ROLE_TEST = builder_name_schema.BUILDER_ROLE_TEST
27 self
[all...]
/third_party/python/Modules/
H A D_hashopenssl.c432 EVP_hash(EVPobject *self, const void *vp, Py_ssize_t len) in EVP_hash() argument
441 if (!EVP_DigestUpdate(self->ctx, (const void*)cp, process)) { in EVP_hash()
454 EVP_dealloc(EVPobject *self) in EVP_dealloc() argument
456 PyTypeObject *tp = Py_TYPE(self); in EVP_dealloc()
457 if (self->lock != NULL) in EVP_dealloc()
458 PyThread_free_lock(self->lock); in EVP_dealloc()
459 EVP_MD_CTX_free(self->ctx); in EVP_dealloc()
460 PyObject_Free(self); in EVP_dealloc()
465 locked_EVP_MD_CTX_copy(EVP_MD_CTX *new_ctx_p, EVPobject *self) in locked_EVP_MD_CTX_copy() argument
468 ENTER_HASHLIB(self); in locked_EVP_MD_CTX_copy()
483 EVP_copy_impl(EVPobject *self) EVP_copy_impl() argument
505 EVP_digest_impl(EVPobject *self) EVP_digest_impl() argument
540 EVP_hexdigest_impl(EVPobject *self) EVP_hexdigest_impl() argument
578 EVP_update(EVPobject *self, PyObject *obj) EVP_update() argument
617 EVP_get_block_size(EVPobject *self, void *closure) EVP_get_block_size() argument
625 EVP_get_digest_size(EVPobject *self, void *closure) EVP_get_digest_size() argument
633 EVP_get_name(EVPobject *self, void *closure) EVP_get_name() argument
656 EVP_repr(EVPobject *self) EVP_repr() argument
715 EVPXOF_digest_impl(EVPobject *self, Py_ssize_t length) EVPXOF_digest_impl() argument
759 EVPXOF_hexdigest_impl(EVPobject *self, Py_ssize_t length) EVPXOF_hexdigest_impl() argument
807 EVPXOF_get_digest_size(EVPobject *self, void *closure) EVPXOF_get_digest_size() argument
863 EVPobject *self = NULL; py_evp_fromname() local
1498 HMACobject *self = NULL; _hashlib_hmac_new_impl() local
1559 locked_HMAC_CTX_copy(HMAC_CTX *new_ctx_p, HMACobject *self) locked_HMAC_CTX_copy() argument
1569 _hmac_digest_size(HMACobject *self) _hmac_digest_size() argument
1577 _hmac_update(HMACobject *self, PyObject *obj) _hmac_update() argument
1615 _hashlib_HMAC_copy_impl(HMACobject *self) _hashlib_HMAC_copy_impl() argument
1641 _hmac_dealloc(HMACobject *self) _hmac_dealloc() argument
1653 _hmac_repr(HMACobject *self) _hmac_repr() argument
1674 _hashlib_HMAC_update_impl(HMACobject *self, PyObject *msg) _hashlib_HMAC_update_impl() argument
1684 _hmac_digest(HMACobject *self, unsigned char *buf, unsigned int len) _hmac_digest() argument
1710 _hashlib_HMAC_digest_impl(HMACobject *self) _hashlib_HMAC_digest_impl() argument
1735 _hashlib_HMAC_hexdigest_impl(HMACobject *self) _hashlib_HMAC_hexdigest_impl() argument
1751 _hashlib_hmac_get_digest_size(HMACobject *self, void *closure) _hashlib_hmac_get_digest_size() argument
1761 _hashlib_hmac_get_block_size(HMACobject *self, void *closure) _hashlib_hmac_get_block_size() argument
1771 _hashlib_hmac_get_name(HMACobject *self, void *closure) _hashlib_hmac_get_name() argument
[all...]
H A D_abc.c45 abc_data_traverse(_abc_data *self, visitproc visit, void *arg) in abc_data_traverse() argument
47 Py_VISIT(Py_TYPE(self)); in abc_data_traverse()
48 Py_VISIT(self->_abc_registry); in abc_data_traverse()
49 Py_VISIT(self->_abc_cache); in abc_data_traverse()
50 Py_VISIT(self->_abc_negative_cache); in abc_data_traverse()
55 abc_data_clear(_abc_data *self) in abc_data_clear() argument
57 Py_CLEAR(self->_abc_registry); in abc_data_clear()
58 Py_CLEAR(self->_abc_cache); in abc_data_clear()
59 Py_CLEAR(self->_abc_negative_cache); in abc_data_clear()
64 abc_data_dealloc(_abc_data *self) in abc_data_dealloc() argument
76 _abc_data *self = (_abc_data *) type->tp_alloc(type, 0); abc_data_new() local
115 _get_impl(PyObject *module, PyObject *self) _get_impl() argument
216 _abc__reset_registry(PyObject *module, PyObject *self) _abc__reset_registry() argument
243 _abc__reset_caches(PyObject *module, PyObject *self) _abc__reset_caches() argument
278 _abc__get_dump(PyObject *module, PyObject *self) _abc__get_dump() argument
296 compute_abstract_methods(PyObject *self) compute_abstract_methods() argument
430 _abc__abc_init(PyObject *module, PyObject *self) _abc__abc_init() argument
518 _abc__abc_register_impl(PyObject *module, PyObject *self, PyObject *subclass) _abc__abc_register_impl() argument
580 _abc__abc_instancecheck_impl(PyObject *module, PyObject *self, PyObject *instance) _abc__abc_instancecheck_impl() argument
669 _abc__abc_subclasscheck_impl(PyObject *module, PyObject *self, PyObject *subclass) _abc__abc_subclasscheck_impl() argument
[all...]
/kernel/linux/linux-6.6/tools/perf/scripts/python/
H A Dgecko.py128 def _intern_stack(self, frame_id: int, prefix_id: Optional[int]) -> int:
132 stack_id = self.stackMap.get(key)
135 stack_id = len(self.stackTable)
136 self.stackTable.append(Stack(prefix_id=prefix_id, frame_id=frame_id))
137 self.stackMap[key] = stack_id
140 def _intern_string(self, string: str) -> int:
142 string_id = self.stringMap.get(string)
145 string_id = len(self.stringTable)
146 self.stringTable.append(string)
147 self
[all...]
/third_party/python/Tools/scripts/
H A Dfixdiv.py316 def __init__(self, fp, window=5, lineno=1):
317 self.fp = fp
318 self.window = 5
319 self.lineno = 1
320 self.eoflookahead = 0
321 self.lookahead = []
322 self.buffer = []
323 def fill(self):
324 while len(self.lookahead) < self
[all...]
/third_party/python/Modules/_multiprocessing/clinic/
H A Dsemaphore.c.h8 "acquire($self, /, block=True, timeout=None)\n"
17 _multiprocessing_SemLock_acquire_impl(SemLockObject *self, int blocking,
21 _multiprocessing_SemLock_acquire(SemLockObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _multiprocessing_SemLock_acquire() argument
49 return_value = _multiprocessing_SemLock_acquire_impl(self, blocking, timeout_obj); in _multiprocessing_SemLock_acquire()
60 "release($self, /)\n"
69 _multiprocessing_SemLock_release_impl(SemLockObject *self);
72 _multiprocessing_SemLock_release(SemLockObject *self, PyObject *Py_UNUSED(ignored)) in _multiprocessing_SemLock_release() argument
74 return _multiprocessing_SemLock_release_impl(self); in _multiprocessing_SemLock_release()
82 "acquire($self, /, block=True, timeout=None)\n"
91 _multiprocessing_SemLock_acquire_impl(SemLockObject *self, in
95 _multiprocessing_SemLock_acquire(SemLockObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _multiprocessing_SemLock_acquire() argument
146 _multiprocessing_SemLock_release(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock_release() argument
266 _multiprocessing_SemLock__count(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock__count() argument
288 _multiprocessing_SemLock__is_mine(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock__is_mine() argument
310 _multiprocessing_SemLock__get_value(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock__get_value() argument
332 _multiprocessing_SemLock__is_zero(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock__is_zero() argument
354 _multiprocessing_SemLock__after_fork(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock__after_fork() argument
376 _multiprocessing_SemLock___enter__(SemLockObject *self, PyObject *Py_UNUSED(ignored)) _multiprocessing_SemLock___enter__() argument
400 _multiprocessing_SemLock___exit__(SemLockObject *self, PyObject *const *args, Py_ssize_t nargs) _multiprocessing_SemLock___exit__() argument
[all...]
/third_party/python/Lib/json/
H A Dencoder.py105 def __init__(self, *, skipkeys=False, ensure_ascii=True,
148 self.skipkeys = skipkeys
149 self.ensure_ascii = ensure_ascii
150 self.check_circular = check_circular
151 self.allow_nan = allow_nan
152 self.sort_keys = sort_keys
153 self.indent = indent
155 self.item_separator, self.key_separator = separators
157 self
[all...]

Completed in 14 milliseconds

1...<<81828384858687888990>>...243