/third_party/python/Lib/test/test_tomllib/ |
H A D | test_misc.py | 17 def test_load(self): 26 self.assertEqual(actual, expected) 28 def test_incorrect_load(self): 35 with self.assertRaises(TypeError): 38 def test_parse_float(self): 60 self.assertIsInstance(actual_val, D) 62 self.assertTrue(expected_val.is_nan()) 64 self.assertEqual(actual_val, expected_val) 66 def test_deepcopy(self): 73 self [all...] |
/third_party/skia/infra/bots/recipe_modules/gold_upload/ |
H A D | api.py | 12 def upload(self): 16 revision = self.m.properties['revision'] 17 results_dir = self.m.flavor.host_dirs.dm_dir 21 image_dest_path = 'gs://%s/dm-images-v1' % self.m.properties['gs_bucket'] 23 files_to_upload = self.m.file.glob_paths( 31 self.m.gsutil.cp('%s images' % ext, results_dir.join('*%s' % ext), 34 summary_dest_path = 'gs://%s' % self.m.properties['gs_bucket'] 37 if self.m.vars.is_trybot: 39 ref = '%s_%s' % (str(self.m.vars.issue), str(self [all...] |
/third_party/skia/third_party/externals/spirv-tools/utils/ |
H A D | generate_grammar_tables.py | 216 def __init__(self, opname, caps, exts, operands, version, lastVersion): 229 self.opname = opname[2:] # Remove the "Op" prefix. 230 self.num_caps = len(caps) 231 self.caps_mask = get_capability_array_name(caps) 232 self.num_exts = len(exts) 233 self.exts = get_extension_array_name(exts) 234 self.operands = [convert_operand_kind(o) for o in operands] 236 self.fix_syntax() 239 self.ref_type_id = 'IdResultType' in operands 240 self [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/ |
H A D | generate_grammar_tables.py | 216 def __init__(self, opname, caps, exts, operands, version, lastVersion): 229 self.opname = opname[2:] # Remove the "Op" prefix. 230 self.num_caps = len(caps) 231 self.caps_mask = get_capability_array_name(caps) 232 self.num_exts = len(exts) 233 self.exts = get_extension_array_name(exts) 234 self.operands = [convert_operand_kind(o) for o in operands] 236 self.fix_syntax() 239 self.ref_type_id = 'IdResultType' in operands 240 self [all...] |
/third_party/spirv-tools/utils/ |
H A D | generate_grammar_tables.py | 226 def __init__(self, opname, caps, exts, operands, version, lastVersion): 239 self.opname = opname[2:] # Remove the "Op" prefix. 240 self.num_caps = len(caps) 241 self.caps_mask = get_capability_array_name(caps) 242 self.num_exts = len(exts) 243 self.exts = get_extension_array_name(exts) 244 self.operands = [convert_operand_kind(o) for o in operands] 246 self.fix_syntax() 249 self.ref_type_id = 'IdResultType' in operands 250 self [all...] |
/third_party/ltp/tools/sparse/sparse-src/Documentation/sphinx/ |
H A D | cdoc.py | 54 def __init__(self, lines): 56 self.index = 0 57 self.lines = lines 58 self.last = None 59 self.back = False 61 def __iter__(self): 63 return self 65 def memo(self): 67 return (self.index, self [all...] |
/third_party/python/Lib/email/ |
H A D | contentmanager.py | 9 def __init__(self): 10 self.get_handlers = {} 11 self.set_handlers = {} 13 def add_get_handler(self, key, handler): 14 self.get_handlers[key] = handler 16 def get_content(self, msg, *args, **kw): 18 if content_type in self.get_handlers: 19 return self.get_handlers[content_type](msg, *args, **kw) 21 if maintype in self.get_handlers: 22 return self [all...] |
/third_party/python/Lib/test/libregrtest/ |
H A D | cmdline.py | 145 def __init__(self, **kwargs) -> None: 146 self.testdir = None 147 self.verbose = 0 148 self.quiet = False 149 self.exclude = False 150 self.single = False 151 self.randomize = False 152 self.fromfile = None 153 self.fail_env_changed = False 154 self [all...] |
/third_party/python/Lib/lib2to3/pgen2/ |
H A D | conv.py | 47 def run(self, graminit_h, graminit_c): 49 self.parse_graminit_h(graminit_h) 50 self.parse_graminit_c(graminit_c) 51 self.finish_off() 53 def parse_graminit_h(self, filename): 66 self.symbol2number = {} 67 self.number2symbol = {} 78 assert symbol not in self.symbol2number 79 assert number not in self.number2symbol 80 self [all...] |
/third_party/python/Objects/ |
H A D | unionobject.c | 18 unionobject_dealloc(PyObject *self) in unionobject_dealloc() argument 20 unionobject *alias = (unionobject *)self; in unionobject_dealloc() 22 _PyObject_GC_UNTRACK(self); in unionobject_dealloc() 26 Py_TYPE(self)->tp_free(self); in unionobject_dealloc() 30 union_traverse(PyObject *self, visitproc visit, void *arg) in union_traverse() argument 32 unionobject *alias = (unionobject *)self; in union_traverse() 39 union_hash(PyObject *self) in union_hash() argument 41 unionobject *alias = (unionobject *)self; in union_hash() 159 _Py_union_type_or(PyObject* self, PyObjec argument 251 union_repr(PyObject *self) union_repr() argument 279 union_getitem(PyObject *self, PyObject *item) union_getitem() argument 320 union_parameters(PyObject *self, void *Py_UNUSED(unused)) union_parameters() argument 348 union_getattro(PyObject *self, PyObject *name) union_getattro() argument 365 _Py_union_args(PyObject *self) _Py_union_args() argument [all...] |
/test/testfwk/xdevice/plugins/devicetest/core/ |
H A D | record.py | 28 def __init__(self, log): 30 self.log = log 31 self.is_aborted = False # 初始值为False,DeviceTest过程执行异常置为True 32 self.is_upload_suitereporter = False 34 def is_shutdown(self, raise_exception=True): 35 if self.is_aborted: 37 self.log.error(err_msg) 44 def set_is_upload_suitereporter_status(self, status): 45 self.is_upload_suitereporter = status 46 self [all...] |
/test/xts/acts/pcs/pcs_py/ |
H A D | PermissionUtils.py | 24 def __init__(self): 25 self.systemPermissionList.clear() 26 self.userPermissionList.clear() 27 self.getAllPermissions() 29 def isInPermissionList(self, permission): 30 return permission in self.permissionList 32 def getAllPermissions(self): 37 self.systemPermissionList.append(permissionInfo['name']) 39 self.userPermissionList.append(permissionInfo['name']) 41 def getDevicePermissionList(self, permissionBundleInf [all...] |
/third_party/node/deps/v8/tools/testrunner/testproc/ |
H A D | loader.py | 12 def __init__(self, tests): 13 super(LoadProc, self).__init__() 15 self.tests = tests 17 def load_initial_tests(self, initial_batch_size): 26 t = next(self.tests) 30 if self._send_test(t): 33 def next_test(self, test): 36 def result_for(self, test, result): 38 while not self._send_test(next(self [all...] |
/third_party/node/tools/gyp/pylib/gyp/ |
H A D | MSVSToolFile.py | 13 def __init__(self, tool_file_path, name): 20 self.tool_file_path = tool_file_path 21 self.name = name 22 self.rules_section = ["Rules"] 25 self, name, cmd, description, additional_dependencies, outputs, extensions 48 self.rules_section.append(rule) 50 def WriteIfChanged(self): 54 {"Version": "8.00", "Name": self.name}, 55 self.rules_section, 58 content, self [all...] |
/third_party/musl/src/process/ |
H A D | vfork.c | 22 pthread_t self = __pthread_self(); in vfork() local 23 pid_t parent_pid = self->pid; in vfork() 24 self->pid = 0; in vfork() 28 self->pid = parent_pid; in vfork() 30 self->proc_tid = -1; in vfork() 33 int parent_by_vfork = self->by_vfork; in vfork() 34 self->by_vfork = 1; in vfork() 37 self->pid = parent_pid; in vfork() 38 self->by_vfork = parent_by_vfork; in vfork() 40 self in vfork() [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
H A D | MSVSToolFile.py | 13 def __init__(self, tool_file_path, name): 20 self.tool_file_path = tool_file_path 21 self.name = name 22 self.rules_section = ["Rules"] 25 self, name, cmd, description, additional_dependencies, outputs, extensions 48 self.rules_section.append(rule) 50 def WriteIfChanged(self): 54 {"Version": "8.00", "Name": self.name}, 55 self.rules_section, 58 content, self [all...] |
/third_party/python/Lib/importlib/metadata/ |
H A D | _meta.py | 8 def __len__(self) -> int: 11 def __contains__(self, item: str) -> bool: 14 def __getitem__(self, key: str) -> str: 17 def __iter__(self) -> Iterator[str]: 20 def get_all(self, name: str, failobj: _T = ...) -> Union[List[Any], _T]: 26 def json(self) -> Dict[str, Union[str, List[str]]]: 37 def joinpath(self) -> 'SimplePath': 40 def __truediv__(self) -> 'SimplePath': 43 def parent(self) -> 'SimplePath': 46 def read_text(self) [all...] |
/third_party/python/Lib/test/support/ |
H A D | logging_helper.py | 4 def __init__(self, matcher): 10 logging.handlers.BufferingHandler.__init__(self, 0) 11 self.matcher = matcher 13 def shouldFlush(self): 16 def emit(self, record): 17 self.format(record) 18 self.buffer.append(record.__dict__) 20 def matches(self, **kwargs): 25 for d in self.buffer: 26 if self [all...] |
/third_party/skia/tools/skp/page_sets/ |
H A D | skia_css3gradients_desktop.py | 14 def __init__(self, url, page_set): 15 super(SkiaBuildbotDesktopPage, self).__init__( 20 self.archive_data_file = 'data/skia_css3gradients_desktop.json' 22 def RunSmoothness(self, action_runner): 25 def RunNavigateSteps(self, action_runner): 26 action_runner.Navigate(self.url) 34 def __init__(self): 35 super(SkiaCss3gradientsDesktopPageSet, self).__init__( 45 self.AddStory(SkiaBuildbotDesktopPage(url, self)) [all...] |
/third_party/vk-gl-cts/scripts/verify/ |
H A D | message.py | 29 def __init__ (self, type, filename, message): 30 self.type = type 31 self.filename = filename 32 self.message = message 34 def __str__ (self): 35 prefix = {self.TYPE_ERROR: "ERROR: ", self.TYPE_WARNING: "WARNING: "} 36 return prefix[self.type] + os.path.basename(self.filename) + ": " + self [all...] |
/third_party/skia/src/ports/ |
H A D | SkOSFile_posix.cpp | 141 SkOSFileIterData& self = *reinterpret_cast<SkOSFileIterData*>(fSelf); in ~Iter() local 142 if (self.fDIR) { in ~Iter() 143 ::closedir(self.fDIR); in ~Iter() 145 self.~SkOSFileIterData(); in ~Iter() 149 SkOSFileIterData& self = *reinterpret_cast<SkOSFileIterData*>(fSelf); in reset() local 150 if (self.fDIR) { in reset() 151 ::closedir(self.fDIR); in reset() 152 self.fDIR = nullptr; in reset() 154 self.fPath.set(path); in reset() 157 self in reset() 180 SkOSFileIterData& self = *reinterpret_cast<SkOSFileIterData*>(fSelf); next() local [all...] |
/third_party/python/Doc/tools/extensions/ |
H A D | c_annotations.py | 49 def findall(self, *args, **kwargs): 50 return iter(self.traverse(*args, **kwargs)) 56 def __init__(self, name): 57 self.name = name 58 self.args = [] 59 self.result_type = '' 60 self.result_refs = None 64 def __init__(self, refcount_filename, stable_abi_file): 65 self.refcount_data = {} 78 entry = self [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | eapol_test.py | 23 def __init__(self, ifname): 24 self.ifname = ifname 25 self.ctrl = wpaspy.Ctrl(os.path.join(wpas_ctrl, ifname)) 26 if "PONG" not in self.ctrl.request("PING"): 28 self.mon = wpaspy.Ctrl(os.path.join(wpas_ctrl, ifname)) 29 self.mon.attach() 31 def add_network(self): 32 id = self.request("ADD_NETWORK") 37 def remove_network(self, id): 38 id = self [all...] |
/third_party/vk-gl-cts/modules/gles3/scripts/ |
H A D | gen-conversions.py | 174 def __init__(self, name, inputs, outputs, op): 175 self.name = name 176 self.inputs = inputs 177 self.outputs = outputs 178 self.op = op 180 def __str__(self): 182 "NAME": self.name, 183 "VALUES": genValues(self.inputs, self.outputs), 184 "OP": self [all...] |
/kernel/linux/linux-5.10/Documentation/sphinx/ |
H A D | kfigure.py | 116 def pass_handle(self, node): # pylint: disable=W0613 338 def visit_kernel_image(self, node): # pylint: disable=W0613 344 convert_image(img_node, self) 358 def run(self): 359 uri = self.arguments[0] 361 raise self.severe( 363 % (self.name, uri)) 364 result = images.Image.run(self) 375 def visit_kernel_figure(self, node): # pylint: disable=W0613 381 convert_image(img_node, self) [all...] |