Home
last modified time | relevance | path

Searched refs:self (Results 1801 - 1825 of 6044) sorted by relevance

1...<<71727374757677787980>>...242

/third_party/python/Lib/ctypes/test/
H A Dtest_find.py54 def test_gl(self):
55 if self.gl is None:
56 self.skipTest('lib_gl not available')
57 self.gl.glClearIndex
59 def test_glu(self):
60 if self.glu is None:
61 self.skipTest('lib_glu not available')
62 self.glu.gluBeginCurve
64 def test_gle(self):
65 if self
[all...]
/third_party/python/Lib/importlib/resources/
H A Dabc.py18 def open_resource(self, resource: Text) -> BinaryIO:
30 def resource_path(self, resource: Text) -> Text:
43 def is_resource(self, path: Text) -> bool:
51 def contents(self) -> Iterable[str]:
67 def iterdir(self) -> Iterator["Traversable"]:
69 Yield Traversable objects in self
72 def read_bytes(self) -> bytes:
74 Read contents of self as bytes
76 with self.open('rb') as strm:
79 def read_text(self, encodin
[all...]
/third_party/protobuf/python/google/protobuf/internal/
H A Dkeywords_test.py44 def setUp(self):
45 super(KeywordsConflictTest, self).setUp()
46 self.pool = descriptor_pool.Default()
48 def testMessage(self):
51 self.assertEqual(message.int_field, 123)
52 des = self.pool.FindMessageTypeByName('google.protobuf.internal.class')
53 self.assertEqual(des.name, 'class')
55 def testNestedMessage(self):
58 self.assertEqual(message.nested_message.field, 234)
59 des = self
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/hid/tests/
H A Dtest_keyboard.py26 def __init__(self, rdesc, name=None, input_info=None):
29 self.keystates = {}
31 def _update_key_state(self, keys):
38 unused_keys = [k for k, v in self.keystates.items() if not v]
40 del self.keystates[key]
42 # self.keystates contains now the list of currently pressed keys,
44 for key in self.keystates.keys():
45 self.keystates[key] = False
49 self.keystates[key] = True
51 def _create_report_data(self)
[all...]
/third_party/python/Lib/
H A Drandom.py119 def __init__(self, x=None):
125 self.seed(x)
126 self.gauss_next = None
128 def seed(self, a=None, version=2):
164 self.gauss_next = None
166 def getstate(self):
168 return self.VERSION, super().getstate(), self.gauss_next
170 def setstate(self, state):
174 version, internalstate, self
[all...]
H A Ddifflib.py120 def __init__(self, isjunk=None, a='', b='', autojunk=True):
173 # DON'T USE! Only __chain_b uses this. Use "in self.bjunk".
179 self.isjunk = isjunk
180 self.a = self.b = None
181 self.autojunk = autojunk
182 self.set_seqs(a, b)
184 def set_seqs(self, a, b):
193 self.set_seq1(a)
194 self
[all...]
/third_party/node/deps/brotli/c/enc/
H A Dmetablock.c336 MemoryManager* m, ContextBlockSplitter* self, size_t alphabet_size, in InitContextBlockSplitter()
344 self->alphabet_size_ = alphabet_size; in InitContextBlockSplitter()
345 self->num_contexts_ = num_contexts; in InitContextBlockSplitter()
346 self->max_block_types_ = BROTLI_MAX_NUMBER_OF_BLOCK_TYPES / num_contexts; in InitContextBlockSplitter()
347 self->min_block_size_ = min_block_size; in InitContextBlockSplitter()
348 self->split_threshold_ = split_threshold; in InitContextBlockSplitter()
349 self->num_blocks_ = 0; in InitContextBlockSplitter()
350 self->split_ = split; in InitContextBlockSplitter()
351 self->histograms_size_ = histograms_size; in InitContextBlockSplitter()
352 self in InitContextBlockSplitter()
335 InitContextBlockSplitter( MemoryManager* m, ContextBlockSplitter* self, size_t alphabet_size, size_t num_contexts, size_t min_block_size, double split_threshold, size_t num_symbols, BlockSplit* split, HistogramLiteral** histograms, size_t* histograms_size) InitContextBlockSplitter() argument
382 ContextBlockSplitterFinishBlock( ContextBlockSplitter* self, MemoryManager* m, BROTLI_BOOL is_final) ContextBlockSplitterFinishBlock() argument
504 ContextBlockSplitterAddSymbol( ContextBlockSplitter* self, MemoryManager* m, size_t symbol, size_t context) ContextBlockSplitterAddSymbol() argument
[all...]
/third_party/skia/third_party/externals/brotli/c/enc/
H A Dmetablock.c336 MemoryManager* m, ContextBlockSplitter* self, size_t alphabet_size, in InitContextBlockSplitter()
344 self->alphabet_size_ = alphabet_size; in InitContextBlockSplitter()
345 self->num_contexts_ = num_contexts; in InitContextBlockSplitter()
346 self->max_block_types_ = BROTLI_MAX_NUMBER_OF_BLOCK_TYPES / num_contexts; in InitContextBlockSplitter()
347 self->min_block_size_ = min_block_size; in InitContextBlockSplitter()
348 self->split_threshold_ = split_threshold; in InitContextBlockSplitter()
349 self->num_blocks_ = 0; in InitContextBlockSplitter()
350 self->split_ = split; in InitContextBlockSplitter()
351 self->histograms_size_ = histograms_size; in InitContextBlockSplitter()
352 self in InitContextBlockSplitter()
335 InitContextBlockSplitter( MemoryManager* m, ContextBlockSplitter* self, size_t alphabet_size, size_t num_contexts, size_t min_block_size, double split_threshold, size_t num_symbols, BlockSplit* split, HistogramLiteral** histograms, size_t* histograms_size) InitContextBlockSplitter() argument
382 ContextBlockSplitterFinishBlock( ContextBlockSplitter* self, MemoryManager* m, BROTLI_BOOL is_final) ContextBlockSplitterFinishBlock() argument
504 ContextBlockSplitterAddSymbol( ContextBlockSplitter* self, MemoryManager* m, size_t symbol, size_t context) ContextBlockSplitterAddSymbol() argument
[all...]
/test/testfwk/xdevice/plugins/devicetest/driver/
H A Dwindows.py60 def __init__(self):
61 self.linux_host = ""
62 self.linux_directory = ""
63 self.hilog_file_pipes = []
65 def __check_environment__(self, device_options):
68 def __check_config__(self, config=None):
71 def __init_nfs_server__(self, request=None):
74 def __execute__(self, request):
76 # set self.config
77 self
[all...]
/third_party/python/Lib/multiprocessing/
H A Dforkserver.py34 def __init__(self):
35 self._forkserver_address = None
36 self._forkserver_alive_fd = None
37 self._forkserver_pid = None
38 self._inherited_fds = None
39 self._lock = threading.Lock()
40 self._preload_modules = ['__main__']
42 def _stop(self):
44 with self._lock:
45 self
[all...]
/third_party/mesa3d/bin/pick/
H A Dcore_test.py36 def unnominated_commit(self) -> 'core.Commit':
40 def nominated_commit(self) -> 'core.Commit':
46 def test_not_nominated(self, unnominated_commit: 'core.Commit'):
53 def test_nominated(self, nominated_commit: 'core.Commit'):
66 def test_not_nominated(self, unnominated_commit: 'core.Commit'):
72 def test_nominated(self, nominated_commit: 'core.Commit'):
85 def test_simple(self):
103 def test_single_branch(self):
121 def test_multiple_branches(self):
138 def test_no_branch(self)
[all...]
/third_party/mbedtls/tests/scripts/
H A Daudit-validity-dates.py55 def __init__(self, data_type: DataType, x509_obj):
56 self.data_type = data_type
58 self.locations = [] # type: typing.List[str]
59 self.fill_validity_duration(x509_obj)
60 self._obj = x509_obj
62 self._identifier = hashlib.sha1(self._obj.public_bytes(encoding)).hexdigest()
65 def identifier(self):
70 return self._identifier
72 def fill_validity_duration(self, x509_ob
[all...]
/third_party/musl/src/thread/linux/
H A Dpthread_create.c64 pthread_t self = __pthread_self(); in __pthread_reserve_signal_stack() local
65 self->signal_stack = stack; in __pthread_reserve_signal_stack()
74 pthread_t self = __pthread_self(); in __pthread_release_signal_stack() local
75 if (self->signal_stack == NULL) { in __pthread_release_signal_stack()
83 munmap(self->signal_stack, __default_guardsize); in __pthread_release_signal_stack()
87 self->signal_stack = NULL; in __pthread_release_signal_stack()
198 pthread_t self = __pthread_self(); in __pthread_exit() local
202 self->canceldisable = 1; in __pthread_exit()
203 self->cancelasync = 0; in __pthread_exit()
205 self in __pthread_exit()
339 struct pthread *self = __pthread_self(); __do_cleanup_push() local
424 struct pthread *self, *new; __pthread_create() local
605 struct pthread *self = __pthread_self(); __pthread_list_find() local
[all...]
/third_party/musl/porting/linux/user/src/thread/
H A Dpthread_create.c64 pthread_t self = __pthread_self(); in __pthread_reserve_signal_stack() local
65 self->signal_stack = stack; in __pthread_reserve_signal_stack()
74 pthread_t self = __pthread_self(); in __pthread_release_signal_stack() local
75 if (self->signal_stack == NULL) { in __pthread_release_signal_stack()
83 munmap(self->signal_stack, __default_guardsize); in __pthread_release_signal_stack()
87 self->signal_stack = NULL; in __pthread_release_signal_stack()
146 pthread_t self = __pthread_self(); in __pthread_exit() local
150 self->canceldisable = 1; in __pthread_exit()
151 self->cancelasync = 0; in __pthread_exit()
153 self in __pthread_exit()
275 struct pthread *self = __pthread_self(); __do_cleanup_push() local
360 struct pthread *self, *new; __pthread_create() local
541 struct pthread *self = __pthread_self(); __pthread_list_find() local
[all...]
/third_party/python/PC/clinic/
H A D_msi.c.h72 "Close($self, /)\n"
81 _msi_Database_Close_impl(msiobj *self);
84 _msi_Database_Close(msiobj *self, PyObject *Py_UNUSED(ignored)) in _msi_Database_Close() argument
86 return _msi_Database_Close_impl(self); in _msi_Database_Close()
90 "GetFieldCount($self, /)\n"
99 _msi_Record_GetFieldCount_impl(msiobj *self);
102 _msi_Record_GetFieldCount(msiobj *self, PyObject *Py_UNUSED(ignored)) in _msi_Record_GetFieldCount() argument
104 return _msi_Record_GetFieldCount_impl(self); in _msi_Record_GetFieldCount()
108 "GetInteger($self, field, /)\n"
117 _msi_Record_GetInteger_impl(msiobj *self, unsigne
120 _msi_Record_GetInteger(msiobj *self, PyObject *arg) _msi_Record_GetInteger() argument
148 _msi_Record_GetString(msiobj *self, PyObject *arg) _msi_Record_GetString() argument
176 _msi_Record_ClearData(msiobj *self, PyObject *Py_UNUSED(ignored)) _msi_Record_ClearData() argument
194 _msi_Record_SetString(msiobj *self, PyObject *const *args, Py_ssize_t nargs) _msi_Record_SetString() argument
243 _msi_Record_SetStream(msiobj *self, PyObject *const *args, Py_ssize_t nargs) _msi_Record_SetStream() argument
292 _msi_Record_SetInteger(msiobj *self, PyObject *const *args, Py_ssize_t nargs) _msi_Record_SetInteger() argument
331 _msi_SummaryInformation_GetProperty(msiobj *self, PyObject *arg) _msi_SummaryInformation_GetProperty() argument
359 _msi_SummaryInformation_GetPropertyCount(msiobj *self, PyObject *Py_UNUSED(ignored)) _msi_SummaryInformation_GetPropertyCount() argument
383 _msi_SummaryInformation_SetProperty(msiobj *self, PyObject *const *args, Py_ssize_t nargs) _msi_SummaryInformation_SetProperty() argument
416 _msi_SummaryInformation_Persist(msiobj *self, PyObject *Py_UNUSED(ignored)) _msi_SummaryInformation_Persist() argument
447 _msi_View_Fetch(msiobj *self, PyObject *Py_UNUSED(ignored)) _msi_View_Fetch() argument
468 _msi_View_GetColumnInfo(msiobj *self, PyObject *arg) _msi_View_GetColumnInfo() argument
501 _msi_View_Modify(msiobj *self, PyObject *const *args, Py_ssize_t nargs) _msi_View_Modify() argument
534 _msi_View_Close(msiobj *self, PyObject *Py_UNUSED(ignored)) _msi_View_Close() argument
555 _msi_Database_OpenView(msiobj *self, PyObject *arg) _msi_Database_OpenView() argument
596 _msi_Database_Commit(msiobj *self, PyObject *Py_UNUSED(ignored)) _msi_Database_Commit() argument
617 _msi_Database_GetSummaryInformation(msiobj *self, PyObject *arg) _msi_Database_GetSummaryInformation() argument
[all...]
/third_party/python/Lib/distutils/tests/
H A Dtest_install_lib.py19 def test_finalize_options(self):
20 dist = self.create_dist()[1]
24 self.assertEqual(cmd.compile, 1)
25 self.assertEqual(cmd.optimize, 0)
29 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
31 self.assertRaises(DistutilsOptionError, cmd.finalize_options)
35 self.assertEqual(cmd.optimize, 2)
39 def test_byte_compile(self):
40 project_dir, dist = self.create_dist()
46 self
[all...]
/third_party/python/Lib/test/
H A Dtest_profile.py24 def tearDown(self):
27 def get_expected_output(self):
51 def test_cprofile(self):
52 results = self.do_profiling()
53 expected = self.get_expected_output()
54 self.assertEqual(results[0], 1000)
56 for i, method in enumerate(self.methodnames):
61 f"{self.profilerclass.__name__} "
66 self.fail("\n".join(fail))
68 def test_calling_conventions(self)
[all...]
H A Dtest_mailcap.py76 def test_listmailcapfiles(self):
81 self.assertIsInstance(mcfiles, list)
83 self.assertIsInstance(m, str)
93 self.assertEqual(env_mailcaps, mcfiles)
95 def test_readmailcapfile(self):
98 with self.assertWarns(DeprecationWarning):
100 self.assertDictEqual(d, MAILCAPDICT_DEPRECATED)
102 def test_lookup(self):
107 self.assertListEqual(expected, actual)
117 self
[all...]
/third_party/python/Lib/idlelib/
H A Ddebugobj_r.py12 def __init__(self, item):
13 self.__item = item
15 def __getattr__(self, name):
16 value = getattr(self.__item, name)
19 def _GetSubList(self):
20 sub_list = self.__item._GetSubList()
26 def __init__(self, sockio, oid):
27 self.sockio = sockio
28 self.oid = oid
30 def __getattr__(self, nam
[all...]
/third_party/python/Lib/test/test_importlib/source/
H A Dtest_path_hook.py12 def path_hook(self):
13 return self.machinery.FileFinder.path_hook((self.machinery.SourceFileLoader,
14 self.machinery.SOURCE_SUFFIXES))
16 def test_success(self):
18 self.assertTrue(hasattr(self.path_hook()(mapping['.root']),
21 def test_success_legacy(self):
23 self.assertTrue(hasattr(self
[all...]
/drivers/peripheral/wlan/test/hdi_service/
H A Dp2p_callback_impl.c22 static int32_t P2pCallbackDeviceFound(struct IWpaCallback *self, in P2pCallbackDeviceFound() argument
25 (void)self; in P2pCallbackDeviceFound()
34 static int32_t P2pCallbackDeviceLost(struct IWpaCallback *self, in P2pCallbackDeviceLost() argument
37 (void)self; in P2pCallbackDeviceLost()
46 static int32_t P2pCallbackGoNegotiationRequest(struct IWpaCallback *self, in P2pCallbackGoNegotiationRequest() argument
49 (void)self; in P2pCallbackGoNegotiationRequest()
58 static int32_t P2pCallbackGoNegotiationCompleted(struct IWpaCallback *self, in P2pCallbackGoNegotiationCompleted() argument
61 (void)self; in P2pCallbackGoNegotiationCompleted()
70 static int32_t P2pCallbackInvitationReceived(struct IWpaCallback *self, in P2pCallbackInvitationReceived() argument
73 (void)self; in P2pCallbackInvitationReceived()
82 P2pCallbackInvitationResult(struct IWpaCallback *self, const struct HdiP2pInvitationResultParam *invitationResultParam, const char *ifName) P2pCallbackInvitationResult() argument
94 P2pCallbackGroupFormationSuccess(struct IWpaCallback *self, const char *ifName) P2pCallbackGroupFormationSuccess() argument
105 P2pCallbackGroupFormationFailure(struct IWpaCallback *self, const char *reason, const char *ifName) P2pCallbackGroupFormationFailure() argument
118 P2pCallbackGroupStarted(struct IWpaCallback *self, const struct HdiP2pGroupStartedParam *groupStartedParam, const char *ifName) P2pCallbackGroupStarted() argument
130 P2pCallbackGroupRemoved(struct IWpaCallback *self, const struct HdiP2pGroupRemovedParam *groupRemovedParam, const char *ifName) P2pCallbackGroupRemoved() argument
143 P2pCallbackProvisionDiscoveryCompleted(struct IWpaCallback *self, const struct HdiP2pProvisionDiscoveryCompletedParam *param, const char *ifName) P2pCallbackProvisionDiscoveryCompleted() argument
155 P2pCallbackFindStopped(struct IWpaCallback *self, const char *ifName) P2pCallbackFindStopped() argument
166 P2pCallbackServDiscReq(struct IWpaCallback *self, const struct HdiP2pServDiscReqInfoParam *servDiscReqInfoParam, const char *ifName) P2pCallbackServDiscReq() argument
178 P2pCallbackServDiscResp(struct IWpaCallback *self, const struct HdiP2pServDiscRespParam *param, const char *ifName) P2pCallbackServDiscResp() argument
190 P2pCallbackStaConnectState(struct IWpaCallback *self, const struct HdiP2pStaConnectStateParam *param, const char *ifName) P2pCallbackStaConnectState() argument
203 P2pCallbackIfaceCreated(struct IWpaCallback *self, const struct HdiP2pIfaceCreatedParam *param, const char *ifName) P2pCallbackIfaceCreated() argument
[all...]
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_outwin.py29 def setUp(self):
30 self.text.delete('1.0', 'end')
32 def test_ispythonsource(self):
34 w = self.window
35 self.assertFalse(w.ispythonsource('test.txt'))
36 self.assertFalse(w.ispythonsource(__file__))
38 def test_window_title(self):
39 self.assertEqual(self.window.top.title(), 'Output')
41 def test_maybesave(self)
[all...]
/third_party/skia/third_party/externals/dawn/generator/
H A Dopengl_loader_generator.py24 def __init__(self, gl_name, proc_name=None):
29 self.gl_name = gl_name
30 self.proc_name = proc_name
32 def glProcName(self):
33 return self.gl_name
35 def ProcName(self):
36 return self.proc_name
38 def PFNPROCNAME(self):
39 return 'PFN' + self.gl_name.upper() + 'PROC'
41 def __repr__(self)
[all...]
/third_party/python/Modules/_ssl/
H A Dcert.c20 PySSLCertificate *self; in newCertificate() local
25 self = (PySSLCertificate *) type->tp_alloc(type, 0); in newCertificate()
26 if (self == NULL) { in newCertificate()
32 self->cert = cert; in newCertificate()
33 self->hash = -1; in newCertificate()
35 return (PyObject *) self; in newCertificate()
74 _ssl_Certificate_public_bytes_impl(PySSLCertificate *self, int format) in _ssl_Certificate_public_bytes_impl() argument
80 _sslmodulestate *state = get_state_cert(self); in _ssl_Certificate_public_bytes_impl()
90 retcode = PEM_write_bio_X509(bio, self->cert); in _ssl_Certificate_public_bytes_impl()
93 retcode = PEM_write_bio_X509_AUX(bio, self in _ssl_Certificate_public_bytes_impl()
124 _ssl_Certificate_get_info_impl(PySSLCertificate *self) _ssl_Certificate_get_info_impl() argument
157 certificate_repr(PySSLCertificate *self) certificate_repr() argument
179 certificate_hash(PySSLCertificate *self) certificate_hash() argument
194 certificate_richcompare(PySSLCertificate *self, PyObject *other, int op) certificate_richcompare() argument
215 certificate_dealloc(PySSLCertificate *self) certificate_dealloc() argument
[all...]
/third_party/python/Objects/clinic/
H A Dlistobject.c.h6 "insert($self, index, object, /)\n"
15 list_insert_impl(PyListObject *self, Py_ssize_t index, PyObject *object);
18 list_insert(PyListObject *self, PyObject *const *args, Py_ssize_t nargs) in list_insert() argument
40 return_value = list_insert_impl(self, index, object); in list_insert()
47 "clear($self, /)\n"
56 list_clear_impl(PyListObject *self);
59 list_clear(PyListObject *self, PyObject *Py_UNUSED(ignored)) in list_clear() argument
61 return list_clear_impl(self); in list_clear()
65 "copy($self, /)\n"
74 list_copy_impl(PyListObject *self);
77 list_copy(PyListObject *self, PyObject *Py_UNUSED(ignored)) list_copy() argument
115 list_pop(PyListObject *self, PyObject *const *args, Py_ssize_t nargs) list_pop() argument
166 list_sort(PyListObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) list_sort() argument
213 list_reverse(PyListObject *self, PyObject *Py_UNUSED(ignored)) list_reverse() argument
234 list_index(PyListObject *self, PyObject *const *args, Py_ssize_t nargs) list_index() argument
297 list___init__(PyObject *self, PyObject *args, PyObject *kwargs) list___init__() argument
334 list___sizeof__(PyListObject *self, PyObject *Py_UNUSED(ignored)) list___sizeof__() argument
352 list___reversed__(PyListObject *self, PyObject *Py_UNUSED(ignored)) list___reversed__() argument
[all...]

Completed in 12 milliseconds

1...<<71727374757677787980>>...242