/third_party/python/Lib/re/ |
H A D | _parser.py | 73 def __init__(self): 74 self.flags = 0 75 self.groupdict = {} 76 self.groupwidths = [None] # group 0 77 self.lookbehindgroups = None 78 self.grouprefpos = {} 80 def groups(self): 81 return len(self.groupwidths) 82 def opengroup(self, name=None): 83 gid = self [all...] |
/third_party/python/Tools/scripts/ |
H A D | fixdiv.py | 316 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 D | semaphore.c.h | 8 "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 D | encoder.py | 105 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...] |
/drivers/peripheral/wlan/test/hdi_service/ |
H A D | wpa_callback_impl.c | 22 static int32_t WpaCallbackDisconnected(struct IWpaCallback *self, in WpaCallbackDisconnected() argument 25 (void)self; in WpaCallbackDisconnected() 36 static int32_t WpaCallbackOnConnected(struct IWpaCallback *self, in WpaCallbackOnConnected() argument 39 (void)self; in WpaCallbackOnConnected() 49 static int32_t WpaCallbackBssidChanged(struct IWpaCallback *self, in WpaCallbackBssidChanged() argument 52 (void)self; in WpaCallbackBssidChanged() 62 static int32_t WpaCallbackStateChanged(struct IWpaCallback *self, in WpaCallbackStateChanged() argument 65 (void)self; in WpaCallbackStateChanged() 76 static int32_t WpaCallbackTempDisabled(struct IWpaCallback *self, in WpaCallbackTempDisabled() argument 79 (void)self; in WpaCallbackTempDisabled() 91 WpaCallbackAssociateReject(struct IWpaCallback *self, const struct HdiWpaAssociateRejectParam *associateRejectParam, const char *ifName) WpaCallbackAssociateReject() argument 105 WpaCallbackWpsOverlap(struct IWpaCallback *self, const char *ifName) WpaCallbackWpsOverlap() argument 117 WpaCallbackWpsTimeout(struct IWpaCallback *self, const char *ifName) WpaCallbackWpsTimeout() argument 129 WpaCallbackAuthTimeout(struct IWpaCallback *self, const char *ifName) WpaCallbackAuthTimeout() argument 141 WpaCallbackScanResult(struct IWpaCallback *self, const struct HdiWpaRecvScanResultParam *recvScanResultParamconst, const char *ifName) WpaCallbackScanResult() argument 154 WpaCallbackAuthReject(struct IWpaCallback *self, const struct HdiWpaAuthRejectParam *authRejectParam, const char *ifName) WpaCallbackAuthReject() argument [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | spirvcapgenerator.py | 33 def __init__(self, *args, **kwargs): 36 def beginFile(self, genOpts): 37 OutputGenerator.beginFile(self, genOpts) 40 self.spirv = [] 42 def getCondition(self, enable, parent): 58 self.logMsg('error', f"<{parent.tag} name=\"{parent.get('name')}\"> is missing a required attribute for an <enable>") 61 def getConditions(self, enables): 70 condition = self.getCondition(enable, parent=enables) 75 def endFile(self): 83 for elem in self [all...] |
/third_party/python/Modules/ |
H A D | xxsubtype.c | 27 spamlist_getstate(spamlistobject *self, PyObject *args) in spamlist_getstate() argument 31 return PyLong_FromLong(self->state); in spamlist_getstate() 35 spamlist_setstate(spamlistobject *self, PyObject *args) in spamlist_setstate() argument 41 self->state = state; in spamlist_setstate() 47 spamlist_specialmeth(PyObject *self, PyObject *args, PyObject *kw) in spamlist_specialmeth() argument 52 if (self == NULL) in spamlist_specialmeth() 53 self = Py_None; in spamlist_specialmeth() 56 Py_INCREF(self); in spamlist_specialmeth() 57 PyTuple_SET_ITEM(result, 0, self); in spamlist_specialmeth() 83 spamlist_init(spamlistobject *self, PyObjec argument 92 spamlist_state_get(spamlistobject *self, void *Py_UNUSED(ignored)) spamlist_state_get() argument 152 spamdict_getstate(spamdictobject *self, PyObject *args) spamdict_getstate() argument 160 spamdict_setstate(spamdictobject *self, PyObject *args) spamdict_setstate() argument 180 spamdict_init(spamdictobject *self, PyObject *args, PyObject *kwds) spamdict_init() argument 236 spam_bench(PyObject *self, PyObject *args) spam_bench() argument [all...] |
/third_party/python/Lib/distutils/ |
H A D | extension.py | 87 def __init__(self, name, sources, 110 self.name = name 111 self.sources = sources 112 self.include_dirs = include_dirs or [] 113 self.define_macros = define_macros or [] 114 self.undef_macros = undef_macros or [] 115 self.library_dirs = library_dirs or [] 116 self.libraries = libraries or [] 117 self.runtime_library_dirs = runtime_library_dirs or [] 118 self [all...] |
H A D | log.py | 16 def __init__(self, threshold=WARN): 17 self.threshold = threshold 19 def _log(self, level, msg, args): 23 if level >= self.threshold: 39 def log(self, level, msg, *args): 40 self._log(level, msg, args) 42 def debug(self, msg, *args): 43 self._log(DEBUG, msg, args) 45 def info(self, msg, *args): 46 self [all...] |
/third_party/rust/crates/regex/scripts/ |
H A D | scrape_crates_io.py | 121 def __init__(self, work_dir, name, version): 122 self.name = name 123 self.version = version 124 self.url = ("https://crates.io/api/v1/crates/{name}/{version}/download" 125 .format(name=self.name, version=self.version)) 126 self.filename = "{}/{}-{}.tar.gz".format( 127 work_dir, self.name, self.version) 129 def __enter__(self) [all...] |
/third_party/vk-gl-cts/modules/gles3/scripts/ |
H A D | gen-swizzles.py | 95 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))] 171 def __init__(self, nam [all...] |
/third_party/vk-gl-cts/modules/gles2/scripts/ |
H A D | gen-swizzles.py | 95 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...] |
/third_party/protobuf/python/google/protobuf/pyext/ |
H A D | message_factory.cc | 106 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...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_vendor_build_file.py | 21 def __init__(self, root, vendor):
22 self.vendor = vendor
23 self.file_path = hdf_utils.get_vendor_gn_path(root)
24 if not os.path.exists(self.file_path):
25 raise HdfToolException('file: %s not exist' % self.file_path,
27 self.contents = hdf_utils.read_file(self.file_path)
29 def add_module(self, module):
30 with open(self.file_path, 'r') as file_read:
43 write_fd = os.open(self [all...] |
/third_party/node/tools/gyp/pylib/gyp/ |
H A D | MSVSUserFile.py | 59 def __init__(self, user_file_path, version, name): 67 self.user_file_path = user_file_path 68 self.version = version 69 self.name = name 70 self.configurations = {} 72 def AddConfig(self, name): 78 self.configurations[name] = ["Configuration", {"Name": name}] 81 self, config_name, command, environment={}, working_directory="" 134 if config_name not in self.configurations: 135 self [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
H A D | MSVSUserFile.py | 59 def __init__(self, user_file_path, version, name): 67 self.user_file_path = user_file_path 68 self.version = version 69 self.name = name 70 self.configurations = {} 72 def AddConfig(self, name): 78 self.configurations[name] = ["Configuration", {"Name": name}] 81 self, config_name, command, environment={}, working_directory="" 134 if config_name not in self.configurations: 135 self [all...] |
/third_party/python/Lib/lib2to3/fixes/ |
H A D | fix_xrange.py | 20 def start_tree(self, tree, filename): 21 super(FixXrange, self).start_tree(tree, filename) 22 self.transformed_xranges = set() 24 def finish_tree(self, tree, filename): 25 self.transformed_xranges = None 27 def transform(self, node, results): 30 return self.transform_xrange(node, results) 32 return self.transform_range(node, results) 36 def transform_xrange(self, node, results): 40 self [all...] |
/third_party/python/Lib/test/test_json/ |
H A D | __init__.py | 33 def test_pyjson(self): 34 self.assertEqual(self.json.scanner.make_scanner.__module__, 36 self.assertEqual(self.json.decoder.scanstring.__module__, 38 self.assertEqual(self.json.encoder.encode_basestring_ascii.__module__, 42 def test_cjson(self): 43 self.assertEqual(self [all...] |
/third_party/mbedtls/tests/scripts/ |
H A D | depends.py | 71 def __init__(self, options=None): 82 self.red = ('\033[31m', normal) 83 self.green = ('\033[32m', normal) 84 self.cyan = ('\033[36m', normal) 85 self.bold_red = ('\033[1;31m', normal) 86 self.bold_green = ('\033[1;32m', normal) 156 def __init__(self, name, config_settings, commands): 166 self.name = name 167 self.config_settings = config_settings 168 self [all...] |
/third_party/python/Lib/test/support/ |
H A D | os_helper.py | 572 def __init__(self, path): 573 self.path = path 575 def __repr__(self): 576 return f'<FakePath {self.path!r}>' 578 def __fspath__(self): 579 if (isinstance(self.path, BaseException) or 580 isinstance(self.path, type) and 581 issubclass(self.path, BaseException)): 582 raise self.path 584 return self [all...] |
/drivers/peripheral/codec/interfaces/include/ |
H A D | codec_component_if.h | 68 * @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...] |
/third_party/mbedtls/scripts/mbedtls_dev/ |
H A D | c_parsing_helper.py | 40 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 D | test_refcounts.py | 15 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 D | search.py | 65 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 D | rlcompleter.py | 42 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...] |