/third_party/libsnd/programs/ |
H A D | test-sndfile-metadata-set.py | 48 def __init__ (self, needs_exe): 53 self.meta_set_prog = "./sndfile-metadata-set" + extension 54 self.meta_get_prog = "./sndfile-metadata-get" + extension 55 self.make_sine_prog = "../examples/make_sine" + extension 57 def _run_command (self, should_fail, cmd): 71 def meta_set (self, should_fail, args): 72 return self._run_command (should_fail, self.meta_set_prog + " " + args) 74 def meta_get (self, should_fail, args): 75 return self [all...] |
/third_party/python/Lib/test/support/ |
H A D | import_helper.py | 181 def __init__(self, *module_names, usefrozen=False): 182 self.original_modules = sys.modules.copy() 193 self._frozen_modules = frozen_modules(usefrozen) 195 def __enter__(self): 196 self._frozen_modules.__enter__() 197 return self 199 def __exit__(self, *ignore_exc): 200 sys.modules.update(self.original_modules) 201 self._frozen_modules.__exit__(*ignore_exc) 216 def __init__(self, *path [all...] |
/kernel/uniproton/build/uniproton_ci_lib/ |
H A D | logs.py | 32 def __init__(self,log_file): 33 self.log_file = log_file 34 self.loglevel = 'INFO' 36 def run(self, cmd, cwd=os.getcwd(), env=None): 39 with open(self.log_file) as file_handle: 42 logging.info("\n--[INFO] more message in logfile [%s] env: [%s]" ,self.log_file, env) 45 def log_format(self): 57 with open(self.log_file, 'r') as rd: 59 os.remove(self.log_file) 62 fh = logging.FileHandler(self [all...] |
/third_party/node/deps/v8/third_party/jinja2/ |
H A D | visitor.py | 20 def get_visitor(self, node): 26 return getattr(self, method, None) 28 def visit(self, node, *args, **kwargs): 30 f = self.get_visitor(node) 33 return self.generic_visit(node, *args, **kwargs) 35 def generic_visit(self, node, *args, **kwargs): 38 self.visit(node, *args, **kwargs) 52 def generic_visit(self, node, *args, **kwargs): 58 value = self.visit(value, *args, **kwargs) 67 new_node = self [all...] |
/third_party/node/deps/v8/tools/testrunner/testproc/ |
H A D | util_test.py | 19 def test_empty(self): 21 self.assertEqual(ofsl.as_list(), []) 23 def test_12(self): 27 self.assertEqual(ofsl.as_list(), [2, 1]) 29 def test_4321(self): 36 self.assertEqual(data, [4, 3, 2]) 38 def test_544321(self): 47 self.assertEqual(data, [5, 4, 4, 3]) 49 def test_withkey(self): 57 self [all...] |
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | visitor.py | 26 def get_visitor(self, node): 32 return getattr(self, method, None) 34 def visit(self, node, *args, **kwargs): 36 f = self.get_visitor(node) 39 return self.generic_visit(node, *args, **kwargs) 41 def generic_visit(self, node, *args, **kwargs): 44 self.visit(node, *args, **kwargs) 58 def generic_visit(self, node, *args, **kwargs): 64 value = self.visit(value, *args, **kwargs) 73 new_node = self [all...] |
/third_party/ltp/testcases/kernel/mce-test/tools/ |
H A D | scov_merge.py | 22 def __init__(self, l): 23 object.__init__(self) 24 self.parse(l) 25 def parse(self, l): 31 self.count = count 32 self.remain = remain 33 def merge(self, gcl): 34 self.count = self.count + gcl.count 35 def write(self, o [all...] |
/third_party/python/Lib/distutils/ |
H A D | versionpredicate.py | 96 def __init__(self, versionPredicateStr): 109 self.name, paren = match.groups() 116 self.pred = [splitUp(aPred) for aPred in str.split(",")] 117 if not self.pred: 121 self.pred = [] 123 def __str__(self): 124 if self.pred: 125 seq = [cond + " " + str(ver) for cond, ver in self.pred] 126 return self.name + " (" + ", ".join(seq) + ")" 128 return self [all...] |
/third_party/skia/third_party/externals/jinja2/ |
H A D | visitor.py | 20 def get_visitor(self, node): 26 return getattr(self, method, None) 28 def visit(self, node, *args, **kwargs): 30 f = self.get_visitor(node) 33 return self.generic_visit(node, *args, **kwargs) 35 def generic_visit(self, node, *args, **kwargs): 38 self.visit(node, *args, **kwargs) 52 def generic_visit(self, node, *args, **kwargs): 58 value = self.visit(value, *args, **kwargs) 67 new_node = self [all...] |
/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...] |
/kernel/linux/linux-6.6/tools/testing/selftests/perf_events/ |
H A D | sigtrap_threads.c | 130 ASSERT_EQ(sigaction(SIGTRAP, &action, &self->oldact), 0); in FIXTURE_SETUP() 133 self->fd = syscall(__NR_perf_event_open, &attr, 0, -1, -1, PERF_FLAG_FD_CLOEXEC); in FIXTURE_SETUP() 134 ASSERT_NE(self->fd, -1); in FIXTURE_SETUP() 137 pthread_barrier_init(&self->barrier, NULL, NUM_THREADS + 1); in FIXTURE_SETUP() 139 ASSERT_EQ(pthread_create(&self->threads[i], NULL, test_thread, &self->barrier), 0); in FIXTURE_SETUP() 144 pthread_barrier_destroy(&self->barrier); in FIXTURE_TEARDOWN() 145 close(self->fd); in FIXTURE_TEARDOWN() 146 sigaction(SIGTRAP, &self->oldact, NULL); in FIXTURE_TEARDOWN() 150 FIXTURE_DATA(sigtrap_threads) *self) in run_test_threads() 149 run_test_threads(struct __test_metadata *_metadata, FIXTURE_DATA(sigtrap_threads) *self) run_test_threads() argument [all...] |
/third_party/littlefs/scripts/ |
H A D | plotmpl.py | 135 def __init__(self, base, nbins=None): 137 self.base = float(base) 138 self.nbins = nbins 139 super().__init__(self.base) 141 def __call__(self): 143 vmin, vmax = self.axis.get_view_interval() 145 if self.nbins is not None: 146 nbins = self.nbins 148 nbins = np.clip(self.axis.get_tick_space(), 1, 9) 151 scale = self [all...] |
/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/beans/ |
H A D | base_bean.py | 25 def __init__(self): 28 def is_succeed(self): 29 return self.parse_result 31 def parse_succeed(self): 32 self.parse_result = True 34 def parse_failed(self): 35 self.parse_result = False 38 def check_parse_result(self):
|
/base/security/certificate_framework/interfaces/inner_api/certificate/ |
H A D | x509_crl_entry.h | 32 CfResult (*getEncoded)(HcfX509CrlEntry *self, CfEncodingBlob *encodedOut); 35 CfResult (*getSerialNumber)(HcfX509CrlEntry *self, CfBlob *out); 38 CfResult (*getCertIssuer)(HcfX509CrlEntry *self, CfBlob *encodedOut); 41 CfResult (*getRevocationDate)(HcfX509CrlEntry *self, CfBlob *out); 44 CfResult (*getExtensions)(HcfX509CrlEntry *self, CfBlob *out); 47 CfResult (*hasExtensions)(HcfX509CrlEntry *self, bool *out); 50 CfResult (*toString)(HcfX509CrlEntry *self, CfBlob *out); 53 CfResult (*hashCode)(HcfX509CrlEntry *self, CfBlob *out); 56 CfResult (*getExtensionsObject)(HcfX509CrlEntry *self, CfBlob *out);
|
/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))
|
H A D | skia_baidu_mobile.py | 14 def __init__(self, url, page_set): 15 super(SkiaMobilePage, self).__init__( 20 self.archive_data_file = 'data/skia_baidu_mobile.json' 22 def RunNavigateSteps(self, action_runner): 23 action_runner.Navigate(self.url) 30 def __init__(self): 31 super(SkiaBaiduMobilePageSet, self).__init__( 41 self.AddStory(SkiaMobilePage(url, self))
|
H A D | skia_booking_mobile.py | 14 def __init__(self, url, page_set): 15 super(SkiaMobilePage, self).__init__( 20 self.archive_data_file = 'data/skia_booking_mobile.json' 22 def RunNavigateSteps(self, action_runner): 23 action_runner.Navigate(self.url) 30 def __init__(self): 31 super(SkiaBookingMobilePageSet, self).__init__( 41 self.AddStory(SkiaMobilePage(url, self))
|