/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_calltip_w.py | 25 def test_init(self): 26 self.assertEqual(self.calltip.anchor_widget, self.text)
|
H A D | test_tree.py | 22 def test_init(self): 25 self.root, bg="white", highlightthickness=0, takefocus=1) 34 def test_wheel_event(self): 40 self.assertTupleEqual(widget.expected, args) 56 self.assertEqual(res, "break")
|
/third_party/python/Lib/tkinter/ |
H A D | colorchooser.py | 35 def _fixoptions(self): 41 color = self.options["initialcolor"] 44 self.options["initialcolor"] = "#%02x%02x%02x" % color 48 def _fixresult(self, widget, result):
|
/third_party/python/Modules/ |
H A D | _json.c | 83 py_encode_basestring_ascii(PyObject* Py_UNUSED(self), PyObject *pystr); 91 scanner_dealloc(PyObject *self); 93 scanner_clear(PyScannerObject *self); 97 encoder_dealloc(PyObject *self); 99 encoder_clear(PyEncoderObject *self); 570 py_scanstring(PyObject* Py_UNUSED(self), PyObject *args) 599 py_encode_basestring_ascii(PyObject* Py_UNUSED(self), PyObject *pystr) 624 py_encode_basestring(PyObject* Py_UNUSED(self), PyObject *pystr) 642 scanner_dealloc(PyObject *self) in scanner_dealloc() argument 644 PyTypeObject *tp = Py_TYPE(self); in scanner_dealloc() 653 scanner_traverse(PyScannerObject *self, visitproc visit, void *arg) scanner_traverse() argument 666 scanner_clear(PyScannerObject *self) scanner_clear() argument 1139 scanner_call(PyScannerObject *self, PyObject *args, PyObject *kwds) scanner_call() argument 1292 encoder_call(PyEncoderObject *self, PyObject *args, PyObject *kwds) encoder_call() argument 1739 encoder_dealloc(PyObject *self) encoder_dealloc() argument 1750 encoder_traverse(PyEncoderObject *self, visitproc visit, void *arg) encoder_traverse() argument 1763 encoder_clear(PyEncoderObject *self) encoder_clear() argument [all...] |
/third_party/littlefs/scripts/ |
H A D | perfbd.py | 51 def __str__(self): 52 if self.x == m.inf: 54 elif self.x == -m.inf: 57 return str(self.x) 59 def __int__(self): 60 assert not m.isinf(self.x) 61 return self.x 63 def __float__(self): 64 return float(self.x) 67 def table(self) [all...] |
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
H A D | bcm_ring.h | 149 ((ring)->self == (ring))) 164 struct bcm_ring *self; /* ptr to self for IS VALID test */ member 189 static INLINE void bcm_ring_sync_read(bcm_ring_t *peer, const bcm_ring_t *self); 190 static INLINE void bcm_ring_sync_write(bcm_ring_t *peer, const bcm_ring_t *self); 207 ring->self = ring; in bcm_ring_init() 401 * @self: pointer to consumer's ring context 404 bcm_ring_sync_read(bcm_ring_t *peer, const bcm_ring_t *self) in bcm_ring_sync_read() argument 407 RING_ASSERT(BCM_RING_IS_VALID(self)); in bcm_ring_sync_read() 408 peer->read = self in bcm_ring_sync_read() 417 bcm_ring_sync_write(bcm_ring_t *peer, const bcm_ring_t *self) bcm_ring_sync_write() argument [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/ |
H A D | _parser.py | 14 def __init__(self, value: str) -> None: 15 self.value = value 17 def __str__(self) -> str: 18 return self.value 20 def __repr__(self) -> str: 21 return f"<{self.__class__.__name__}('{self}')>" 23 def serialize(self) -> str: 28 def serialize(self) -> str: 29 return str(self) [all...] |
/foundation/ability/ability_runtime/services/appmgr/src/ |
H A D | app_state_observer_manager.cpp | 207 auto self = weak.lock(); in OnAppStarted() 208 if (self == nullptr) { in OnAppStarted() 209 TAG_LOGE(AAFwkTag::APPMGR, "null self"); in OnAppStarted() 213 self->HandleOnAppStarted(appRecord); in OnAppStarted() 226 auto self = weak.lock(); in OnAppStopped() 227 if (self == nullptr) { in OnAppStopped() 228 TAG_LOGE(AAFwkTag::APPMGR, "null self"); in OnAppStopped() 232 self->HandleOnAppStopped(appRecord); in OnAppStopped() 250 auto self = weak.lock(); in OnAppStateChanged() 251 if (self in OnAppStateChanged() [all...] |
/third_party/benchmark/bindings/python/google_benchmark/ |
H A D | __init__.py | 84 def __init__(self, func): 85 self.func = func 86 self.builder_calls = [] 95 def __getattr__(self, builder_name): 104 options = self.make(func_or_options)
|
/third_party/python/Lib/xml/dom/ |
H A D | __init__.py | 66 def __init__(self, *args, **kw): 67 if self.__class__ is DOMException: 70 Exception.__init__(self, *args, **kw) 72 def _get_code(self): 73 return self.code
|
/third_party/python/Lib/test/test_email/ |
H A D | torture_test.py | 35 def _msgobj(self, filename): 47 def test_mondo_message(self): 48 eq = self.assertEqual 49 neq = self.ndiffAssertEqual 50 msg = self._msgobj('crispin-torture.txt')
|
/foundation/ai/ai_engine/services/server/plugin_manager/ |
H A D | get_config_ini.py | 62 def optionxform(self, optionstr): 94 def __init__(self): 97 def get_files_in_folder(self, build_folder, plugin_list): 123 def get_config_ini(self, file_path_list, board_name): 153 def copy_config_ini(self, build_folder, out_folder, board_name, 165 ini_file_list = self.get_files_in_folder(build_folder, plugin_list) 166 ini_cfg_obj = self.get_config_ini(ini_file_list, board_name)
|
/third_party/jerryscript/targets/mbedos5/tools/ |
H A D | generate_pins.py | 95 def __init__(self, filter_names=None): 96 self.names = filter_names or [] 98 def visit(self, node): 102 value = self.visit_typedecl(node) 106 value = value or self.visit(child_node) 110 def visit_typedecl(self, node): 114 if node.declname in self.names:
|
/third_party/node/src/ |
H A D | base_object.cc | 32 metadata->self = nullptr; in ~BaseObject() 101 metadata->self = this; in pointer_data() 129 BaseObject* self = static_cast<BaseObject*>(data); in DeleteMe() local 130 if (self->has_pointer_data() && self->pointer_data()->strong_ptr_count > 0) { in DeleteMe() 131 return self->Detach(); in DeleteMe() 133 delete self; in DeleteMe()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
H A D | 1-6.c | 200 static int get_prio(struct tcase *self) in get_prio() argument 202 switch (self->prio) { in get_prio() 204 return sched_get_priority_min(self->sched_policy); in get_prio() 207 return (sched_get_priority_min(self->sched_policy) + in get_prio() 208 sched_get_priority_max(self->sched_policy)) / 2; in get_prio() 211 return sched_get_priority_max(self->sched_policy) - 1; in get_prio() 215 printf("Wrong self->prio %i\n", self->prio); in get_prio()
|
/foundation/communication/dsoftbus/tests/core/discovery/ipc/ |
H A D | remote_object_mock.cpp | 36 void RemoteObjectMock::SetSelf(const sptr<RemoteObjectMock> &self) in SetSelf() argument 38 instance_ = self; in SetSelf() 46 void RemoteObjectMock::SetupStub(const sptr<RemoteObjectMock> &self) in SetupStub() argument 48 SetSelf(self); in SetupStub()
|
/third_party/mbedtls/scripts/mbedtls_dev/ |
H A D | logging_util.py | 26 def __init__(self, max_level, name=''): 28 self.max_level = max_level 30 def filter(self, record: logging.LogRecord) -> bool: 31 return record.levelno <= self.max_level
|
/third_party/jinja2/ |
H A D | optimizer.py | 27 def __init__(self, environment: "t.Optional[Environment]") -> None: 28 self.environment = environment 31 self, node: nodes.Node, *args: t.Any, **kwargs: t.Any 42 environment=self.environment,
|
/third_party/mesa3d/src/mapi/glapi/gen/ |
H A D | api_vtxfmt_init_h.py | 35 def __init__(self): 38 self.name = 'api_vtxfmt_init_h.py' 39 self.license = license.bsd_license_template % ( 44 def printBody(self, api):
|
/third_party/ltp/testcases/realtime/func/pi-tests/ |
H A D | parse-testpi2.py | 34 def __init__(self,filename): 35 Log.__init__(self,filename) 37 def eval(self): 44 for line in self.read():
|
H A D | parse-testpi1.py | 33 def __init__(self,filename): 34 Log.__init__(self,filename) 36 def eval(self): 41 for line in self.read():
|
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | target-s390.c | 7 static void init_s390(const struct target *self) in init_s390() argument 18 static void predefine_s390(const struct target *self) in predefine_s390() argument 51 static void predefine_s390x(const struct target *self) in predefine_s390x() argument 56 predefine_s390(self); in predefine_s390x()
|
/third_party/python/Tools/c-analyzer/c_common/ |
H A D | logging.py | 57 def __init__(self, verbosity=VERBOSITY): 58 self.verbosity = verbosity 60 def info(self, *args, **kwargs): 61 if self.verbosity < 3:
|
/third_party/python/Lib/distutils/tests/ |
H A D | test_log.py | 11 def test_non_ascii(self): 17 with self.subTest(errors=errors): 32 self.assertEqual(stdout.read().rstrip(), 37 self.assertEqual(stderr.read().rstrip(),
|
/third_party/python/Lib/encodings/ |
H A D | raw_unicode_escape.py | 21 def encode(self, input, final=False): 22 return codecs.raw_unicode_escape_encode(input, self.errors)[0] 25 def _buffer_decode(self, input, errors, final): 32 def decode(self, input, errors='strict'):
|