Home
last modified time | relevance | path

Searched refs:self (Results 2401 - 2425 of 5239) sorted by relevance

1...<<919293949596979899100>>...210

/foundation/ability/idl_tool/test/hdi_unittest/hdi_dump_ast_test/
H A Dhdi_all_type_test_001.py24 def get_file_name(self):
27 def set_idl_attr(self):
28 self.set_command_ext_attr("-m passthrough")
29 package_path = self.get_working_dir()
31 self.set_dump_ast_param(package_path, idl_dir)
33 def run(self):
34 self.set_idl_attr()
35 return self.run_choose(True)
/test/xts/acts/pcs/pcs_py/
H A DtestJsConfiguration.py24 def __init__(self, controllers):
25 self.TAG = self.__class__.__name__
26 super().__init__(self.TAG, controllers)
28 def setup(self):
31 def process(self):
33 installResult = self.device1.execute_shell_command("bm install -p /data/local/tmp/errorjs.hap")
37 def teardown(self):
H A DtestTrustedRootCaExist.py25 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 rootCa = self.device1.execute_shell_command("ls /system/etc/security/trusted_root_ca.json | wc -l").strip()
37 def teardown(self):
H A DtestSupportHdc.py23 def __init__(self, controllers):
24 self.TAG = self.__class__.__name__
25 super().__init__(self.TAG, controllers)
27 def setup(self):
30 def process(self):
32 deviceSn = self.device1.device_sn
35 def teardown(self):
H A DtestMinimumComponentSet.py26 def __init__(self, controllers):
27 self.TAG = self.__class__.__name__
28 super().__init__(self.TAG, controllers)
30 def setup(self):
33 def process(self):
35 deviceSysCapsStr = self.device1.execute_shell_command("cat /system/etc/param/syscap.para")
50 self.log.info('missingList: [' + ', '.join(missingList) + ']')
53 def teardown(self):
H A DtestPermissionsNotMissing.py25 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")
45 self.log.info('These permissions has missed. missingList: [' + ', '.join(missingList) + ']')
48 def teardown(self):
/third_party/node/tools/gyp/pylib/gyp/generator/
H A Dmsvs_test.py15 def setUp(self):
16 self.stderr = StringIO()
18 def test_GetLibraries(self):
19 self.assertEqual(msvs._GetLibraries({}), [])
20 self.assertEqual(msvs._GetLibraries({"libraries": []}), [])
21 self.assertEqual(
24 self.assertEqual(msvs._GetLibraries({"libraries": ["-la"]}), ["a.lib"])
25 self.assertEqual(
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/
H A Dmsvs_test.py15 def setUp(self):
16 self.stderr = StringIO()
18 def test_GetLibraries(self):
19 self.assertEqual(msvs._GetLibraries({}), [])
20 self.assertEqual(msvs._GetLibraries({"libraries": []}), [])
21 self.assertEqual(
24 self.assertEqual(msvs._GetLibraries({"libraries": ["-la"]}), ["a.lib"])
25 self.assertEqual(
/third_party/littlefs/scripts/
H A Dbench.py50 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.c535 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 Dtokenize.py47 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/mesa3d/bin/
H A Dgen_calendar_entries_test.py62 def test_first_is_wednesday(self) -> None:
68 def test_first_is_before_wednesday(self) -> None:
74 def test_first_is_after_wednesday(self) -> None:
93 def data(self) -> None:
105 def test(self, is_zero: bool, expected: int) -> None:
112 def data(self) -> None:
124 def test(self, is_zero: bool, expected: int) -> None:
131 def data(self) -> None:
143 def test(self, is_zero: bool, expected: int) -> None:
156 def mock_version(self)
[all...]
/third_party/node/tools/gyp/pylib/gyp/
H A Dwin_tool.py39 def _UseSeparateMspdbsrv(self, env, args):
67 def Dispatch(self, args):
72 method = "Exec%s" % self._CommandifyName(args[0])
73 return getattr(self, method)(*args[1:])
75 def _CommandifyName(self, name_string):
79 def _GetEnv(self, arch):
88 def ExecStamp(self, path):
92 def ExecRecursiveMirror(self, source, dest):
116 def ExecLinkWrapper(self, arch, use_separate_mspdbsrv, *args):
121 env = self
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A Dwin_tool.py39 def _UseSeparateMspdbsrv(self, env, args):
67 def Dispatch(self, args):
72 method = "Exec%s" % self._CommandifyName(args[0])
73 return getattr(self, method)(*args[1:])
75 def _CommandifyName(self, name_string):
79 def _GetEnv(self, arch):
88 def ExecStamp(self, path):
92 def ExecRecursiveMirror(self, source, dest):
116 def ExecLinkWrapper(self, arch, use_separate_mspdbsrv, *args):
121 env = self
[all...]
/third_party/python/Objects/clinic/
H A Dlongobject.c.h43 "__getnewargs__($self, /)\n"
51 int___getnewargs___impl(PyObject *self);
54 int___getnewargs__(PyObject *self, PyObject *Py_UNUSED(ignored)) in int___getnewargs__() argument
56 return int___getnewargs___impl(self); in int___getnewargs__()
60 "__format__($self, format_spec, /)\n"
68 int___format___impl(PyObject *self, PyObject *format_spec);
71 int___format__(PyObject *self, PyObject *arg) in int___format__() argument
84 return_value = int___format___impl(self, format_spec); in int___format__()
91 "__round__($self, ndigits=<unrepresentable>, /)\n"
102 int___round___impl(PyObject *self, PyObjec
105 int___round__(PyObject *self, PyObject *const *args, Py_ssize_t nargs) int___round__() argument
137 int___sizeof__(PyObject *self, PyObject *Py_UNUSED(ignored)) int___sizeof__() argument
170 int_bit_length(PyObject *self, PyObject *Py_UNUSED(ignored)) int_bit_length() argument
195 int_bit_count(PyObject *self, PyObject *Py_UNUSED(ignored)) int_bit_count() argument
223 int_as_integer_ratio(PyObject *self, PyObject *Py_UNUSED(ignored)) int_as_integer_ratio() argument
257 int_to_bytes(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) int_to_bytes() argument
[all...]
/third_party/python/Modules/clinic/
H A Dpyexpat.c.h6 "Parse($self, data, isfinal=False, /)\n"
17 pyexpat_xmlparser_Parse_impl(xmlparseobject *self, PyTypeObject *cls,
21 pyexpat_xmlparser_Parse(xmlparseobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in pyexpat_xmlparser_Parse() argument
43 return_value = pyexpat_xmlparser_Parse_impl(self, cls, data, isfinal); in pyexpat_xmlparser_Parse()
50 "ParseFile($self, file, /)\n"
59 pyexpat_xmlparser_ParseFile_impl(xmlparseobject *self, PyTypeObject *cls,
63 pyexpat_xmlparser_ParseFile(xmlparseobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in pyexpat_xmlparser_ParseFile() argument
76 return_value = pyexpat_xmlparser_ParseFile_impl(self, cls, file); in pyexpat_xmlparser_ParseFile()
83 "SetBase($self, base, /)\n"
92 pyexpat_xmlparser_SetBase_impl(xmlparseobject *self, cons
95 pyexpat_xmlparser_SetBase(xmlparseobject *self, PyObject *arg) pyexpat_xmlparser_SetBase() argument
132 pyexpat_xmlparser_GetBase(xmlparseobject *self, PyObject *Py_UNUSED(ignored)) pyexpat_xmlparser_GetBase() argument
153 pyexpat_xmlparser_GetInputContext(xmlparseobject *self, PyObject *Py_UNUSED(ignored)) pyexpat_xmlparser_GetInputContext() argument
175 pyexpat_xmlparser_ExternalEntityParserCreate(xmlparseobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) pyexpat_xmlparser_ExternalEntityParserCreate() argument
247 pyexpat_xmlparser_SetParamEntityParsing(xmlparseobject *self, PyObject *arg) pyexpat_xmlparser_SetParamEntityParsing() argument
282 pyexpat_xmlparser_UseForeignDTD(xmlparseobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) pyexpat_xmlparser_UseForeignDTD() argument
[all...]
/third_party/node/src/
H A Dthreadpoolwork-inl.h41 ThreadPoolWork* self = ContainerOf(&ThreadPoolWork::work_req_, req); in ScheduleWork()
43 self->type_); in ScheduleWork()
44 self->DoThreadPoolWork(); in ScheduleWork()
46 self->type_); in ScheduleWork()
49 ThreadPoolWork* self = ContainerOf(&ThreadPoolWork::work_req_, req); in ScheduleWork()
50 self->env_->DecreaseWaitingRequestCounter(); in ScheduleWork()
53 self->type_, in ScheduleWork()
54 self, in ScheduleWork()
57 self->AfterThreadPoolWork(status); in ScheduleWork()
/third_party/python/Include/internal/
H A Dpycore_list.h41 _PyList_AppendTakeRefListResize(PyListObject *self, PyObject *newitem);
44 _PyList_AppendTakeRef(PyListObject *self, PyObject *newitem) in _PyList_AppendTakeRef() argument
46 assert(self != NULL && newitem != NULL); in _PyList_AppendTakeRef()
47 assert(PyList_Check(self)); in _PyList_AppendTakeRef()
48 Py_ssize_t len = PyList_GET_SIZE(self); in _PyList_AppendTakeRef()
49 Py_ssize_t allocated = self->allocated; in _PyList_AppendTakeRef()
52 PyList_SET_ITEM(self, len, newitem); in _PyList_AppendTakeRef()
53 Py_SET_SIZE(self, len + 1); in _PyList_AppendTakeRef()
56 return _PyList_AppendTakeRefListResize(self, newitem); in _PyList_AppendTakeRef()
/third_party/skia/infra/bots/recipe_modules/gsutil/
H A Dapi.py11 def __call__(self, step_name, *args):
13 if 'Win' in self.m.vars.builder_cfg.get('os', ''):
14 return self.m.run(self.m.python, step_name, script=str(self.m.vars.workdir.join('cipd_bin_packages').join('gsutil')), args=args)
15 return self.m.step(step_name, cmd=['gsutil'] + list(args))
17 def cp(self, name, src, dst, extra_args=None, multithread=False):
44 self(step_name, *cmd)
46 except self.m.step.StepFailure:
/third_party/googletest/googletest/test/
H A Dgtest_list_output_unittest.py230 def testXml(self):
236 self._TestOutput('xml', EXPECTED_XML)
238 def testJSON(self):
244 self._TestOutput('json', EXPECTED_JSON)
246 def _GetOutput(self, out_format):
261 self.assertTrue(p.exited)
262 self.assertEqual(0, p.exit_code)
263 self.assertTrue(os.path.isfile(file_path))
268 def _TestOutput(self, test_format, expected_output):
269 actual = self
[all...]
/third_party/node/deps/v8/tools/testrunner/outproc/
H A Dmessage.py14 def __init__(self, expected_outcomes, basepath, expected_fail,
16 super(OutProc, self).__init__(expected_outcomes, expected_filename,
18 self._basepath = basepath
19 self._expected_fail = expected_fail
21 def _is_failure_output(self, output):
23 if fail != self._expected_fail:
28 with open(self._basepath + '.out') as f:
34 actual_lines = [ s for s in raw_lines if not self._ignore_line(s) ]
41 base_path = self._basepath + '.js'
43 base_path = self
[all...]
/third_party/musl/porting/liteos_a/user/src/thread/
H A Dpthread_mutex_trylock.c7 pthread_t self = __pthread_self(); in __pthread_mutex_trylock_owner() local
8 int tid = self->tid; in __pthread_mutex_trylock_owner()
23 if (!self->robust_list.off) { in __pthread_mutex_trylock_owner()
24 self->robust_list.off = (char*)&m->_m_lock-(char *)&m->_m_next; in __pthread_mutex_trylock_owner()
27 self->robust_list.pending = &m->_m_next; in __pthread_mutex_trylock_owner()
32 self->robust_list.pending = 0; in __pthread_mutex_trylock_owner()
36 volatile void *next = self->robust_list.head; in __pthread_mutex_trylock_owner()
38 m->_m_prev = &self->robust_list.head; in __pthread_mutex_trylock_owner()
39 if (next != &self->robust_list.head) *(volatile void *volatile *) in __pthread_mutex_trylock_owner()
41 self in __pthread_mutex_trylock_owner()
[all...]
/third_party/python/Tools/scripts/
H A Dfind_recursionlimit.py36 def __init__(self):
37 self.__init__()
43 def __repr__(self):
44 return repr(self)
50 def __add__(self, x):
51 return x + self
57 def __getattr__(self, attr):
58 return getattr(self, attr)
64 def __getitem__(self, item):
65 return self[ite
[all...]
/third_party/python/Lib/distutils/tests/
H A Dtest_msvccompiler.py18 def test_no_compiler(self):
29 self.assertRaises(DistutilsPlatformError,
35 def test_get_vc_env_unicode(self):
46 self.assertIn(test_var.lower(), env)
47 self.assertEqual(test_value, env[test_var.lower()])
53 def test_get_vc2017(self):
60 self.assertGreaterEqual(version, 15)
61 self.assertTrue(os.path.isdir(path))
65 def test_get_vc2015(self):
72 self
[all...]
/third_party/vk-gl-cts/scripts/verify/
H A Dpackage.py34 def __init__ (self, basePath, statement, testLogs, gitStatus, gitLog, patches, summary, conformVersion, conformOs, otherItems):
35 self.basePath = basePath
36 self.statement = statement
37 self.testLogs = testLogs
38 self.gitStatus = gitStatus
39 self.gitLog = gitLog
40 self.patches = patches
41 self.summary = summary
42 self.otherItems = otherItems
43 self
[all...]

Completed in 10 milliseconds

1...<<919293949596979899100>>...210