/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_autocomplete_w.py | 27 def test_init(self): 28 self.assertEqual(self.acw.widget, self.text)
|
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/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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_symmetric.sh | 234 bridge vlan add vid 10 dev br1 self 235 bridge vlan add vid 20 dev br1 self 236 bridge vlan add vid 4001 dev br1 self 238 bridge fdb add 00:00:5e:00:01:01 dev br1 self local vlan 10 239 bridge fdb add 00:00:5e:00:01:01 dev br1 self local vlan 20 250 bridge fdb del 00:00:5e:00:01:01 dev br1 self local vlan 20 251 bridge fdb del 00:00:5e:00:01:01 dev br1 self local vlan 10 253 bridge vlan del vid 4001 dev br1 self 254 bridge vlan del vid 20 dev br1 self 255 bridge vlan del vid 10 dev br1 self [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_symmetric.sh | 234 bridge vlan add vid 10 dev br1 self 235 bridge vlan add vid 20 dev br1 self 236 bridge vlan add vid 4001 dev br1 self 238 bridge fdb add 00:00:5e:00:01:01 dev br1 self local vlan 10 239 bridge fdb add 00:00:5e:00:01:01 dev br1 self local vlan 20 250 bridge fdb del 00:00:5e:00:01:01 dev br1 self local vlan 20 251 bridge fdb del 00:00:5e:00:01:01 dev br1 self local vlan 10 253 bridge vlan del vid 4001 dev br1 self 254 bridge vlan del vid 20 dev br1 self 255 bridge vlan del vid 10 dev br1 self [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')
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
H A D | sys_miata.c | 210 else if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle() 211 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle() 218 if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle() 219 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle() 226 dev = dev->bus->self; in miata_swizzle() 229 } while (dev->bus->self); in miata_swizzle()
|
/kernel/linux/linux-6.6/arch/alpha/kernel/ |
H A D | sys_miata.c | 210 else if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle() 211 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle() 218 if ((PCI_SLOT(dev->bus->self->devfn) == 8) || in miata_swizzle() 219 (PCI_SLOT(dev->bus->self->devfn) == 20)) { in miata_swizzle() 226 dev = dev->bus->self; in miata_swizzle() 229 } while (dev->bus->self); in miata_swizzle()
|
/kernel/linux/linux-6.6/tools/testing/selftests/user_events/ |
H A D | dyn_test.c | 130 ASSERT_NE(-1, check_match(&self->check, x, y, &match)); \ 137 ASSERT_NE(-1, check_match(&self->check, x, y, &match)); \ 141 #define TEST_PARSE(x) ASSERT_NE(-1, parse(&self->check, x)) 143 #define TEST_NPARSE(x) ASSERT_EQ(-1, parse(&self->check, x)) 151 USER_EVENT_FIXTURE_SETUP(return, self->umount); in FIXTURE_SETUP() 155 USER_EVENT_FIXTURE_TEARDOWN(self->umount); in FIXTURE_TEARDOWN()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/ |
H A D | 4-1.c | 33 pthread_t self = pthread_self(); in thr_func() local 37 (void *)self); in thr_func() 41 (void *)self); in thr_func() 45 (void *)self); in thr_func() 51 fprintf(stderr, "[Thread 0x%p] was wakened\n", (void *)self); in thr_func() 56 (void *)self); in thr_func()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/ |
H A D | 4-1.c | 48 pthread_t self = pthread_self(); in thr_func() local 52 (void *)self); in thr_func() 55 fprintf(stderr, "[Thread 0x%p] started\n", (void *)self); in thr_func() 59 (void *)self); in thr_func() 65 fprintf(stderr, "[Thread 0x%p] was wakened\n", (void *)self); in thr_func() 70 (void *)self); in thr_func()
|
/third_party/python/Lib/test/ |
H A D | inspect_fodder2.py | 118 def method(self): 151 def func151(self): 162 def func162(self): 187 def func186(self): 219 def func219(self): 232 async def func232(self):
|
/third_party/python/Lib/encodings/ |
H A D | uu_codec.py | 71 def encode(self, input, errors='strict'): 74 def decode(self, input, errors='strict'): 78 def encode(self, input, final=False): 79 return uu_encode(input, self.errors)[0] 82 def decode(self, input, final=False): 83 return uu_decode(input, self.errors)[0]
|
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
H A D | CodedOutputStream.php | 58 $bytes = str_repeat(chr(0), self::MAX_VARINT64_BYTES); 59 $size = self::writeVarintToArray($value, $bytes, $trim); 65 $bytes = str_repeat(chr(0), self::MAX_VARINT64_BYTES); 66 $size = self::writeVarintToArray($value, $bytes); 73 $size = self::writeLittleEndian32ToArray($value, $bytes); 80 $size = self::writeLittleEndian64ToArray($value, $bytes);
|
/build/ohos/sdk/ |
H A D | parse_sdk_description.py | 41 def __init__(self, os_type): 42 self.os_type = os_type 43 self.targets = [] 45 def add_target(self, target): 46 if target not in self.targets: 47 self.targets.append(target) 49 def get_targets(self): 50 return self.targets
|
/third_party/node/lib/internal/fs/ |
H A D | watchers.js | 67 function emitStop(self) { 68 self.emit('stop'); 84 const self = this[owner_symbol]; 85 if (self[kOldStatus] === -1 && 91 self[kOldStatus] = newStatus; 92 self.emit('change', getStatsFromBinding(stats), 197 // TODO(joyeecheung): we may check self._handle.initialized here 290 function emitCloseNT(self) { 291 self.emit('close');
|
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/ |
H A D | db.js | 278 let self = this; 417 if (self.seen.has(key)) { 427 let dirPath = fsPath.join(self.outputDir, expression.type); 438 let relPath = fsPath.relative(self.outputDir, filePath); 441 self.seen.add(key); 442 self.index.all.push(relPath); 445 self.index.superStatements.push(relPath); 447 self.index.statements.push(relPath);
|
/third_party/python/Lib/re/ |
H A D | __init__.py | 338 def __init__(self, lexicon, flags=0): 342 self.lexicon = lexicon 354 self.scanner = _compiler.compile(p) 355 def scan(self, string): 358 match = self.scanner.scanner(string).match 367 action = self.lexicon[m.lastindex-1][1] 369 self.match = m 370 action = action(self, m.group())
|
/third_party/python/Objects/ |
H A D | namespaceobject.c | 25 PyObject *self; in namespace_new() local 28 self = type->tp_alloc(type, 0); in namespace_new() 29 if (self != NULL) { in namespace_new() 30 _PyNamespaceObject *ns = (_PyNamespaceObject *)self; in namespace_new() 37 return self; in namespace_new() 165 namespace_richcompare(PyObject *self, PyObject *other, int op) in namespace_richcompare() argument 167 if (PyObject_TypeCheck(self, &_PyNamespace_Type) && in namespace_richcompare() 169 return PyObject_RichCompare(((_PyNamespaceObject *)self)->ns_dict, in namespace_richcompare()
|