Home
last modified time | relevance | path

Searched refs:self (Results 2351 - 2375 of 5084) sorted by relevance

1...<<919293949596979899100>>...204

/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/jerryscript/tools/
H A Dgen-unicode.py38 def __init__(self, filepath):
39 self.__filepath = filepath
40 self.__header = [LICENSE, ""]
41 self.__data = []
43 def complete_header(self, completion):
44 self.__header.append(completion)
45 self.__header.append("") # for an extra empty line
47 def add_table(self, table, table_name, table_type, table_descr):
48 self.__data.append(table_descr)
49 self
[all...]
/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...]
H A Dtest_msvc9compiler.py106 def test_no_compiler(self):
118 self.assertRaises(DistutilsPlatformError, query_vcvarsall,
123 def test_reg_class(self):
125 self.assertRaises(KeyError, Reg.get_value, 'xxx', 'xxx')
131 self.assertIn(v, ('0', '1', '2'))
136 self.assertEqual(keys, None)
139 self.assertIn('Desktop', keys)
141 def test_remove_visual_c_ref(self):
143 tempdir = self.mkdtemp()
163 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...]
/third_party/node/deps/openssl/openssl/util/perl/OpenSSL/
H A DTemplate.pm49 my $self = $class->SUPER::new(DELIMITERS => [ '{-', '-}'],
53 $self->{_output_off} = 0; # Default to output hunks
55 return bless $self, $class;
59 my $self = shift;
64 $self->SUPER::fill_in(HASH => { quotify1 => \&quotify1,
66 output_on => sub { $self->output_on() },
67 output_off => sub { $self->output_off() },
80 my $self = shift;
82 if ($self->{_output_off} == 0) {
83 $self
[all...]
/third_party/python/Tools/freeze/
H A Dcheckextensions_win32.py34 def __init__(self, name, sourceFiles):
35 self.name = name
37 self.sourceFiles = sourceFiles
40 self.compilerOptions = []
42 self.linkerLibs = []
44 def GetSourceFiles(self):
45 return self.sourceFiles
47 def AddCompilerOption(self, option):
48 self.compilerOptions.append(option)
49 def GetCompilerOptions(self)
[all...]
/third_party/openssl/util/perl/OpenSSL/
H A DTemplate.pm49 my $self = $class->SUPER::new(DELIMITERS => [ '{-', '-}'],
53 $self->{_output_off} = 0; # Default to output hunks
55 return bless $self, $class;
59 my $self = shift;
64 $self->SUPER::fill_in(HASH => { quotify1 => \&quotify1,
66 output_on => sub { $self->output_on() },
67 output_off => sub { $self->output_off() },
80 my $self = shift;
82 if ($self->{_output_off} == 0) {
83 $self
[all...]
/test/testfwk/xdevice/plugins/devicetest/core/
H A Dreport.py38 def __init__(self, report_path):
39 self.report_path = report_path
40 self.test_results = []
42 def generate_test_report(self, test_runner, _test_results=None, report_type="normal"):
43 if os.path.exists(self.report_path):
44 root = ElementTree.parse(self.report_path).getroot()
45 return self.report_path, ElementTree.tostring(root).decode()
61 tests_total, tests_error = self.report_xts_type(testsuites, test_results)
63 tests_total, tests_error = self.report_normal_type(testsuites, test_results, test_name)
69 testsuites.set("starttime", self
[all...]
/third_party/skia/tools/android/
H A Dupload_to_android.py115 def modify(self):
117 def get_user_msg(self):
122 def __init__(self, change_num, debug):
123 self.change_num = change_num
124 self.debug = debug
126 def modify(self):
128 change_details = get_change_details(self.change_num)
130 mod = int(self.change_num) % 100
132 str(mod).zfill(2), self.change_num, latest_patchset)
138 if self
[all...]
/third_party/python/Objects/clinic/
H A Dmemoryobject.c.h37 "release($self, /)\n"
46 memoryview_release_impl(PyMemoryViewObject *self);
49 memoryview_release(PyMemoryViewObject *self, PyObject *Py_UNUSED(ignored)) in memoryview_release() argument
51 return memoryview_release_impl(self); in memoryview_release()
55 "cast($self, /, format, shape=<unrepresentable>)\n"
64 memoryview_cast_impl(PyMemoryViewObject *self, PyObject *format,
68 memoryview_cast(PyMemoryViewObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in memoryview_cast() argument
95 return_value = memoryview_cast_impl(self, format, shape); in memoryview_cast()
102 "toreadonly($self, /)\n"
111 memoryview_toreadonly_impl(PyMemoryViewObject *self);
114 memoryview_toreadonly(PyMemoryViewObject *self, PyObject *Py_UNUSED(ignored)) memoryview_toreadonly() argument
132 memoryview_tolist(PyMemoryViewObject *self, PyObject *Py_UNUSED(ignored)) memoryview_tolist() argument
156 memoryview_tobytes(PyMemoryViewObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) memoryview_tobytes() argument
228 memoryview_hex(PyMemoryViewObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) memoryview_hex() argument
[all...]
/third_party/python/Modules/clinic/
H A D_queuemodule.c.h36 "put($self, /, item, block=True, timeout=None)\n"
48 _queue_SimpleQueue_put_impl(simplequeueobject *self, PyObject *item,
52 _queue_SimpleQueue_put(simplequeueobject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _queue_SimpleQueue_put() argument
82 return_value = _queue_SimpleQueue_put_impl(self, item, block, timeout); in _queue_SimpleQueue_put()
89 "put_nowait($self, /, item)\n"
101 _queue_SimpleQueue_put_nowait_impl(simplequeueobject *self, PyObject *item);
104 _queue_SimpleQueue_put_nowait(simplequeueobject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _queue_SimpleQueue_put_nowait() argument
117 return_value = _queue_SimpleQueue_put_nowait_impl(self, item); in _queue_SimpleQueue_put_nowait()
124 "get($self, /, block=True, timeout=None)\n"
141 _queue_SimpleQueue_get_impl(simplequeueobject *self, PyTypeObjec
145 _queue_SimpleQueue_get(simplequeueobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _queue_SimpleQueue_get() argument
196 _queue_SimpleQueue_get_nowait(simplequeueobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _queue_SimpleQueue_get_nowait() argument
218 _queue_SimpleQueue_empty(simplequeueobject *self, PyObject *Py_UNUSED(ignored)) _queue_SimpleQueue_empty() argument
246 _queue_SimpleQueue_qsize(simplequeueobject *self, PyObject *Py_UNUSED(ignored)) _queue_SimpleQueue_qsize() argument
[all...]
/third_party/node/lib/
H A Dzlib.js185 const self = this[owner_symbol];
192 self.destroy(error);
193 self[kError] = error;
435 function processChunkSync(self, chunk, flushFlag) {
437 let availOutBefore = self._chunkSize - self._outOffset;
445 const state = self._writeState;
446 const handle = self._handle;
447 let buffer = self._outBuffer;
448 let offset = self
[all...]
/third_party/musl/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()
40 if (!self->robust_list.off) { in __pthread_mutex_trylock_owner()
41 self->robust_list.off = (char*)&m->_m_lock-(char *)&m->_m_next; in __pthread_mutex_trylock_owner()
43 __syscall(SYS_set_robust_list, &self->robust_list, 3*sizeof(long)); in __pthread_mutex_trylock_owner()
47 self->robust_list.pending = &m->_m_next; in __pthread_mutex_trylock_owner()
52 self->robust_list.pending = 0; in __pthread_mutex_trylock_owner()
64 self->robust_list.pending = 0; in __pthread_mutex_trylock_owner()
69 volatile void *next = self->robust_list.head; in __pthread_mutex_trylock_owner()
71 m->_m_prev = &self in __pthread_mutex_trylock_owner()
[all...]
/third_party/python/Tools/demo/
H A Dmarkov.py8 def __init__(self, histsize, choice):
9 self.histsize = histsize
10 self.choice = choice
11 self.trans = {}
13 def add(self, state, next):
14 self.trans.setdefault(state, []).append(next)
16 def put(self, seq):
17 n = self.histsize
18 add = self.add
24 def get(self)
[all...]
/third_party/python/Lib/test/
H A Dtest_ioctl.py30 def test_ioctl(self):
37 self.assertIn(rpgrp, ids)
39 def _check_ioctl_mutate_len(self, nbytes=None):
48 self.assertEqual(len(buf) * intsize, nbytes) # sanity check
54 self.assertEqual(r, 0)
55 self.assertIn(rpgrp, ids)
57 def test_ioctl_mutate(self):
58 self._check_ioctl_mutate_len()
60 def test_ioctl_mutate_1024(self):
63 self
[all...]
/third_party/mesa3d/src/mapi/glapi/gen/
H A Dgl_marshal.py71 def __init__(self):
72 super(PrintCode, self).__init__()
74 self.name = 'gl_marshal.py'
75 self.license = license.bsd_license_template % (
78 def printRealHeader(self):
81 def printRealFooter(self):
84 def print_sync_call(self, func, unmarshal = 0):
95 def print_sync_body(self, func):
105 self.print_sync_call(func)
110 def print_async_dispatch(self, fun
[all...]
/third_party/node/deps/npm/node_modules/yallist/
H A Dyallist.js8 var self = this
9 if (!(self instanceof Yallist)) {
10 self = new Yallist()
13 self.tail = null
14 self.head = null
15 self.length = 0
19 self.push(item)
23 self.push(arguments[i])
27 return self
367 function insert (self, nod
[all...]
/third_party/vk-gl-cts/external/openglcts/scripts/
H A Dmustpass.py45 def __init__ (self, name, path, incpath, devicepath, copyright = None):
46 self.name = name
47 self.path = path
48 self.incpath = incpath
49 self.devicepath = devicepath
50 self.copyright = copyright
53 def __init__ (self, name, filters, glconfig = None, rotation = "unspecified", surfacetype = None, surfacewidth = None, surfaceheight = None, baseseed = None, fboconfig = None, required = False, runtime = None, os = "any", skip = "none"):
54 self.name = name
55 self.glconfig = glconfig
56 self
[all...]
/third_party/node/tools/gyp/pylib/gyp/generator/
H A Dxcode.py113 def __init__(self, gyp_path, path, build_file_dict):
114 self.gyp_path = gyp_path
115 self.path = path
116 self.project = gyp.xcodeproj_file.PBXProject(path=path)
118 os.path.dirname(os.path.abspath(self.gyp_path)),
121 self.project.SetProperty("projectDirPath", projectDirPath)
122 self.project_file = gyp.xcodeproj_file.XCProjectFile(
123 {"rootObject": self.project}
125 self.build_file_dict = build_file_dict
127 # TODO(mark): add destructor that cleans up self
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/
H A Dxcode.py113 def __init__(self, gyp_path, path, build_file_dict):
114 self.gyp_path = gyp_path
115 self.path = path
116 self.project = gyp.xcodeproj_file.PBXProject(path=path)
118 os.path.dirname(os.path.abspath(self.gyp_path)),
121 self.project.SetProperty("projectDirPath", projectDirPath)
122 self.project_file = gyp.xcodeproj_file.XCProjectFile(
123 {"rootObject": self.project}
125 self.build_file_dict = build_file_dict
127 # TODO(mark): add destructor that cleans up self
[all...]

Completed in 9 milliseconds

1...<<919293949596979899100>>...204