/third_party/protobuf/python/google/protobuf/pyext/ |
H A D | field.cc | 47 static PyObject* Repr(PyMessageFieldProperty* self) { in Repr() argument 49 self->field_descriptor->full_name().c_str()); in Repr() 52 static PyObject* DescrGet(PyMessageFieldProperty* self, PyObject* obj, in DescrGet() argument 55 Py_INCREF(self); in DescrGet() 56 return reinterpret_cast<PyObject*>(self); in DescrGet() 59 self->field_descriptor); in DescrGet() 62 static int DescrSet(PyMessageFieldProperty* self, PyObject* obj, in DescrSet() argument 69 self->field_descriptor, value); in DescrSet() 72 static PyObject* GetDescriptor(PyMessageFieldProperty* self, void* closure) { in GetDescriptor() argument 73 return PyFieldDescriptor_FromDescriptor(self in GetDescriptor() 76 GetDoc(PyMessageFieldProperty* self, void* closure) GetDoc() argument [all...] |
/third_party/python/Modules/clinic/ |
H A D | _randommodule.c.h | 6 "random($self, /)\n" 15 _random_Random_random_impl(RandomObject *self); 18 _random_Random_random(RandomObject *self, PyObject *Py_UNUSED(ignored)) in _random_Random_random() argument 20 return _random_Random_random_impl(self); in _random_Random_random() 24 "seed($self, n=None, /)\n" 36 _random_Random_seed_impl(RandomObject *self, PyObject *n); 39 _random_Random_seed(RandomObject *self, PyObject *const *args, Py_ssize_t nargs) in _random_Random_seed() argument 52 return_value = _random_Random_seed_impl(self, n); in _random_Random_seed() 59 "getstate($self, /)\n" 68 _random_Random_getstate_impl(RandomObject *self); 71 _random_Random_getstate(RandomObject *self, PyObject *Py_UNUSED(ignored)) _random_Random_getstate() argument 98 _random_Random_getrandbits(RandomObject *self, PyObject *arg) _random_Random_getrandbits() argument [all...] |
/third_party/vk-gl-cts/modules/gles3/scripts/ |
H A D | gen-large-constant-arrays.py | 59 def __init__(self, name, array, inputs, outputs): 60 self.name = name 61 self.array = array 62 self.inputs = inputs 63 self.outputs = outputs 64 self.op = "out0 = array[in0];" 66 def __str__(self): 68 "NAME": self.name, 69 "VALUES": genValues(self.inputs, self [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/ |
H A D | metadata.py | 57 def __init__(self, message: str, exceptions: List[Exception]) -> None: 58 self.message = message 59 self.exceptions = exceptions 61 def __repr__(self) -> str: 62 return f"{self.__class__.__name__}({self.message!r}, {self.exceptions!r})" 74 def __init__(self, field: str, message: str) -> None: 75 self.field = field 496 self, [all...] |
/third_party/skia/modules/canvaskit/ |
H A D | canvaskit_bindings.cpp | 333 SkPathOrNull MakeAsWinding(const SkPath& self) { in MakeAsWinding() argument 335 if (AsWinding(self, &out)) { in MakeAsWinding() 865 optional_override([](GrDirectContext& self)->size_t { in EMSCRIPTEN_BINDINGS() 868 self.getResourceCacheLimits(&maxResources, &currMax); in EMSCRIPTEN_BINDINGS() 872 optional_override([](GrDirectContext& self)->size_t { in EMSCRIPTEN_BINDINGS() 875 self.getResourceCacheUsage(&usedResources, &currUsage); in EMSCRIPTEN_BINDINGS() 881 optional_override([](GrDirectContext& self, size_t maxResourceBytes)->void { in EMSCRIPTEN_BINDINGS() 884 self.getResourceCacheLimits(&maxResources, &currMax); in EMSCRIPTEN_BINDINGS() 885 self.setResourceCacheLimits(maxResources, maxResourceBytes); in EMSCRIPTEN_BINDINGS() 900 .function("height", optional_override([](SkAnimatedImage& self) in EMSCRIPTEN_BINDINGS() [all...] |
/third_party/littlefs/scripts/ |
H A D | bench.py | 50 def __init__(self, config, args={}): 51 self.name = config.pop('name') 52 self.path = config.pop('path') 53 self.suite = config.pop('suite') 54 self.lineno = config.pop('lineno', None) 55 self.if_ = config.pop('if', None) 56 if isinstance(self.if_, bool): 57 self.if_ = 'true' if self.if_ else 'false' 58 self [all...] |
/third_party/python/Modules/ |
H A D | _lzmamodule.c | 535 def cleanup(self): 536 name = ensure_legal_c_identifier(self.name) 608 _lzma_LZMACompressor_compress_impl(Compressor *self, Py_buffer *data) in _lzma_LZMACompressor_compress_impl() argument 613 ACQUIRE_LOCK(self); in _lzma_LZMACompressor_compress_impl() 614 if (self->flushed) { in _lzma_LZMACompressor_compress_impl() 618 result = compress(self, data->buf, data->len, LZMA_RUN); in _lzma_LZMACompressor_compress_impl() 620 RELEASE_LOCK(self); in _lzma_LZMACompressor_compress_impl() 635 _lzma_LZMACompressor_flush_impl(Compressor *self) in _lzma_LZMACompressor_flush_impl() argument 640 ACQUIRE_LOCK(self); in _lzma_LZMACompressor_flush_impl() 641 if (self in _lzma_LZMACompressor_flush_impl() 769 Compressor_init(Compressor *self, PyObject *args, PyObject *kwargs) Compressor_init() argument 850 Compressor_dealloc(Compressor *self) Compressor_dealloc() argument 868 Compressor_traverse(Compressor *self, visitproc visit, void *arg) Compressor_traverse() argument 1133 _lzma_LZMADecompressor_decompress_impl(Decompressor *self, Py_buffer *data, Py_ssize_t max_length) _lzma_LZMADecompressor_decompress_impl() argument 1193 _lzma_LZMADecompressor___init___impl(Decompressor *self, int format, PyObject *memlimit, PyObject *filters) _lzma_LZMADecompressor___init___impl() argument 1294 Decompressor_dealloc(Decompressor *self) Decompressor_dealloc() argument 1310 Decompressor_traverse(Decompressor *self, visitproc visit, void *arg) Decompressor_traverse() argument [all...] |
/third_party/python/Lib/ |
H A D | tokenize.py | 47 def __repr__(self): 48 annotated_type = '%d (%s)' % (self.type, tok_name[self.type]) 50 self._replace(type=annotated_type)) 53 def exact_type(self): 54 if self.type == OP and self.string in EXACT_TOKEN_TYPES: 55 return EXACT_TOKEN_TYPES[self.string] 57 return self.type 168 def __init__(self) [all...] |
/third_party/benchmark/ |
H A D | setup.py | 42 def __init__(self, name: str, bazel_target: str): 45 self.bazel_target = bazel_target 47 self.relpath, self.target_name = stripped_target.split(":") 53 def run(self): 54 for ext in self.extensions: 55 self.bazel_build(ext) 56 build_ext.build_ext.run(self) 58 def bazel_build(self, ext: BazelExtension): 61 temp_path = Path(self [all...] |
/third_party/musl/src/thread/ |
H A D | pthread_key_create.c | 35 pthread_t self = __pthread_self(); in __pthread_key_create() local 39 if (!self->tsd) self->tsd = __pthread_tsd_main; in __pthread_key_create() 61 pthread_t self = __pthread_self(), td=self; in __pthread_key_delete() local 68 while ((td=td->next)!=self); in __pthread_key_delete() 81 pthread_t self = __pthread_self(); in __pthread_tsd_run_dtors() local 83 for (j=0; self->tsd_used && j<PTHREAD_DESTRUCTOR_ITERATIONS; j++) { in __pthread_tsd_run_dtors() 85 self->tsd_used = 0; in __pthread_tsd_run_dtors() 87 void *val = self in __pthread_tsd_run_dtors() 102 pthread_t self = __pthread_self(); __pthread_tsd_run_dtors_ex1() local [all...] |
/third_party/node/deps/npm/node_modules/retry/lib/ |
H A D | retry_operation.js | 67 var self = this; 69 self._attempts++; 71 if (self._operationTimeoutCb) { 72 self._timeout = setTimeout(function() { 73 self._operationTimeoutCb(self._attempts); 74 }, self._operationTimeout); 76 if (self._options.unref) { 77 self._timeout.unref(); 81 self [all...] |
/third_party/skia/tools/ |
H A D | jsondiff.py | 46 def __init__(self): 49 def _GetFileContentsAsString(self, filepath): 60 def _GetExpectedResults(self, contents): 106 def _GetActualResults(self, contents): 141 def _DictionaryDiff(self, old_dict, new_dict): 154 def GenerateDiffDict(self, oldfile, newfile=None): 162 return self.GenerateDiffDictFromStrings( 163 self._GetFileContentsAsString(oldfile), 164 self._GetFileContentsAsString(newfile)) 166 def GenerateDiffDictFromStrings(self, oldjso [all...] |
/third_party/node/deps/v8/tools/clusterfuzz/foozzie/ |
H A D | v8_suppressions.py | 217 def __init__(self, skip): 219 self.allowed_line_diffs = [] 220 self.ignore_output = {} 221 self.ignore_sources = {} 223 self.allowed_line_diffs = ALLOWED_LINE_DIFFS 224 self.ignore_output = IGNORE_OUTPUT 225 self.ignore_sources = IGNORE_SOURCES 227 def diff(self, output1, output2): 229 return self.diff_lines( 232 def diff_lines(self, output1_line [all...] |
/third_party/python/Lib/test/support/ |
H A D | warnings_helper.py | 54 def wrapper(self, *args, **kwargs): 57 return test(self, *args, **kwargs) 66 def __init__(self, warnings_list): 67 self._warnings = warnings_list 68 self._last = 0 70 def __getattr__(self, attr): 71 if len(self._warnings) > self._last: 72 return getattr(self._warnings[-1], attr) 75 raise AttributeError("%r has no attribute %r" % (self, att [all...] |
/third_party/python/Objects/ |
H A D | interpreteridobject.c | 33 interpid *self = PyObject_New(interpid, cls); in newinterpid() local 34 if (self == NULL) { in newinterpid() 40 self->id = id; in newinterpid() 42 return self; in newinterpid() 104 interpid_repr(PyObject *self) in interpid_repr() argument 106 PyTypeObject *type = Py_TYPE(self); in interpid_repr() 108 interpid *id = (interpid *)self; in interpid_repr() 113 interpid_str(PyObject *self) in interpid_str() argument 115 interpid *id = (interpid *)self; in interpid_str() 120 interpid_int(PyObject *self) in interpid_int() argument 167 interpid_hash(PyObject *self) interpid_hash() argument 180 interpid_richcompare(PyObject *self, PyObject *other, int op) interpid_richcompare() argument [all...] |
/third_party/mbedtls/tests/scripts/ |
H A D | test_psa_constant_names.py | 119 def __init__(self, options) -> None: 120 self.options = options 121 self.count = 0 122 self.errors = [] #type: List[Tests.Error] 124 def run_one(self, inputs: InputsForTest, type_word: str) -> None: 132 include_path=self.options.include, 133 keep_c=self.options.keep_c) 134 output_bytes = subprocess.check_output([self.options.program, 138 self.count += len(expressions) 140 if self [all...] |
/third_party/openssl/test/ |
H A D | run_tests.pl | 181 my $self = shift; 183 print $fh $self->as_string, "\n" 188 my $is_plan = $self->is_plan; 189 my $tests_planned = $is_plan && $self->tests_planned; 190 my $is_test = $self->is_test; 191 my $is_ok = $is_test && $self->is_ok; 194 if ($self->is_unknown) { 199 if ($self->as_string =~ m/^$indent 1\.\.(\d+)/); 201 if ($self->as_string =~ m/^$indent(not )?ok /); 210 print "\n".$self [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/ |
H A D | console_printer.py | 146 def __init__(self): 147 self.show_script_location = False 152 def outputResults(self, checker, broken_links=True, 159 self.output(checker) 163 self.outputBrokenLinks(checker, broken) 167 self.outputMissingIncludes(checker, missing) 169 def outputBrokenLinks(self, checker, broken): 172 Called by self.outputBrokenAndMissing() if requested. 186 def outputMissingIncludes(self, checker, missing): 189 Called by self [all...] |
/test/xts/acts/pcs/pcs_py/ |
H A D | testCommandWukong.py | 25 def __init__(self, controllers): 26 self.TAG = self.__class__.__name__ 27 super().__init__(self.TAG, controllers) 29 def setup(self): 32 def process(self): 34 sysCapsStr = self.device1.execute_shell_command("cat /system/etc/param/syscap.para") 37 wukongOutput = self.device1.execute_shell_command("wukong help") 40 def teardown(self):
|
H A D | testPermissionName.py | 25 def __init__(self, controllers): 26 self.TAG = self.__class__.__name__ 27 super().__init__(self.TAG, controllers) 29 def setup(self): 32 def process(self): 34 permissionBundleInfo = self.device1.execute_shell_command("bm dump -n ohos.global.systemres") 42 self.log.info('These permissions can not start with \'ohos\'. errorList: [' + ', '.join(errorList) + ']') 45 def teardown(self):
|
/third_party/node/deps/v8/tools/testrunner/local/fake_testsuite/ |
H A D | testcfg.py | 12 def _list_test_filenames(self): 15 def list_tests(self): 16 self.test_count_estimation = 2 17 fast = self._create_test("fast", self.suite) 18 slow = self._create_test("slow", self.suite) 26 def _test_loader_class(self): 29 def _test_class(self):
|
/third_party/python/Include/cpython/ |
H A D | bytearrayobject.h | 22 PyByteArrayObject *self = _PyByteArray_CAST(op); in PyByteArray_AS_STRING() local 23 if (Py_SIZE(self)) { in PyByteArray_AS_STRING() 24 return self->ob_start; in PyByteArray_AS_STRING() 29 # define PyByteArray_AS_STRING(self) PyByteArray_AS_STRING(_PyObject_CAST(self)) 33 PyByteArrayObject *self = _PyByteArray_CAST(op); in PyByteArray_GET_SIZE() local 34 return Py_SIZE(self); in PyByteArray_GET_SIZE() 37 # define PyByteArray_GET_SIZE(self) PyByteArray_GET_SIZE(_PyObject_CAST(self))
|
/third_party/vk-gl-cts/external/amber/src/tools/ |
H A D | check_language_test.py | 28 def testMatches(self): 43 self.assertTrue( 47 def testSuppression(self): 48 self.assertFalse(check_language.check_match("", "in the man-pages")) 49 self.assertFalse(check_language.check_match("", "the MS_SLAVE test")) 52 def testMatchStartofFileWhenRequireSpace(self): 53 self.assertTrue(check_language.check_match("", "he said")) 56 def testMatchOverNewline(self): 57 self.assertTrue(check_language.check_match("", "flying\nblind"))
|
/third_party/skia/third_party/externals/sfntly/cpp/tools/ |
H A D | test_data_generator_xml.py | 24 def __init__(self, table_data_generators, fonts, destination): 25 self.table_data_generators = table_data_generators 26 self.fonts = fonts 27 self.destination = destination 29 def Generate(self): 30 for font_path in self.fonts: 32 document = FontDataGeneratorXML(self.table_data_generators, 35 if not self.destination else 36 self.destination + os.path.basename(font_path)) + '.xml'
|
/third_party/skia/tools/skp/page_sets/ |
H A D | skia_amazon_mobile.py | 14 def __init__(self, url, page_set): 15 super(SkiaBuildbotMobilePage, self).__init__( 20 self.archive_data_file = 'data/skia_amazon_mobile.json' 22 def RunNavigateSteps(self, action_runner): 23 action_runner.Navigate(self.url) 30 def __init__(self): 31 super(SkiaAmazonMobilePageSet, self).__init__( 40 self.AddStory(SkiaBuildbotMobilePage(url, self))
|