/test/testfwk/xdevice/plugins/devicetest/driver/ |
H A D | device_test.py | 92 # set self.config 156 def __init__(self): 157 self.linux_host = "" 158 self.linux_directory = "" 160 def __check_environment__(self, device_options): 163 def __check_config__(self, config=None): 166 def __init_nfs_server__(self, request=None): 169 def __execute__(self, request): 170 do_driver_execute(self, request) 172 def _get_test_list(self, json_confi [all...] |
/test/testfwk/xdevice/src/xdevice/_core/config/ |
H A D | config_manager.py | 36 def wrapper(self, *args, **kwargs): 38 if not hasattr(self, name): 39 setattr(self, name, func(self, *args, **kwargs)) 40 return getattr(self, name) 51 def __init__(self, config_file="", env=""): 55 self.config_content = ElementTree.fromstring(env) 58 self.file_path = config_file 68 self.file_path = os.path.abspath(os.path.join( 72 LOG.debug("User config path: %s" % self [all...] |
/third_party/python/Tools/scripts/ |
H A D | pindent.py | 100 def __init__(self, fpi = sys.stdin, fpo = sys.stdout, 102 self.fpi = fpi 103 self.fpo = fpo 104 self.indentsize = indentsize 105 self.tabsize = tabsize 106 self.lineno = 0 107 self.expandtabs = expandtabs 108 self._write = fpo.write 109 self.kwprog = re.compile( 113 self [all...] |
/third_party/python/Lib/ |
H A D | webbrowser.py | 145 def __init__(self, name=""): 146 self.name = name 147 self.basename = name 149 def open(self, url, new=0, autoraise=True): 152 def open_new(self, url): 153 return self.open(url, 1) 155 def open_new_tab(self, url): 156 return self.open(url, 2) 163 def __init__(self, name): 165 self [all...] |
/third_party/python/Modules/_io/clinic/ |
H A D | textio.c.h | 19 _io_IncrementalNewlineDecoder___init___impl(nldecoder_object *self, 24 _io_IncrementalNewlineDecoder___init__(PyObject *self, PyObject *args, PyObject *kwargs) in _io_IncrementalNewlineDecoder___init__() argument 51 return_value = _io_IncrementalNewlineDecoder___init___impl((nldecoder_object *)self, decoder, translate, errors); in _io_IncrementalNewlineDecoder___init__() 58 "decode($self, /, input, final=False)\n" 66 _io_IncrementalNewlineDecoder_decode_impl(nldecoder_object *self, 70 _io_IncrementalNewlineDecoder_decode(nldecoder_object *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _io_IncrementalNewlineDecoder_decode() argument 93 return_value = _io_IncrementalNewlineDecoder_decode_impl(self, input, final); in _io_IncrementalNewlineDecoder_decode() 100 "getstate($self, /)\n" 108 _io_IncrementalNewlineDecoder_getstate_impl(nldecoder_object *self); 111 _io_IncrementalNewlineDecoder_getstate(nldecoder_object *self, PyObjec argument 136 _io_IncrementalNewlineDecoder_reset(nldecoder_object *self, PyObject *Py_UNUSED(ignored)) _io_IncrementalNewlineDecoder_reset() argument 182 _io_TextIOWrapper___init__(PyObject *self, PyObject *args, PyObject *kwargs) _io_TextIOWrapper___init__() argument 297 _io_TextIOWrapper_reconfigure(textio *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _io_TextIOWrapper_reconfigure() argument 361 _io_TextIOWrapper_detach(textio *self, PyObject *Py_UNUSED(ignored)) _io_TextIOWrapper_detach() argument 378 _io_TextIOWrapper_write(textio *self, PyObject *arg) _io_TextIOWrapper_write() argument 409 _io_TextIOWrapper_read(textio *self, PyObject *const *args, Py_ssize_t nargs) _io_TextIOWrapper_read() argument 442 _io_TextIOWrapper_readline(textio *self, PyObject *const *args, Py_ssize_t nargs) _io_TextIOWrapper_readline() argument 484 _io_TextIOWrapper_seek(textio *self, PyObject *const *args, Py_ssize_t nargs) _io_TextIOWrapper_seek() argument 520 _io_TextIOWrapper_tell(textio *self, PyObject *Py_UNUSED(ignored)) _io_TextIOWrapper_tell() argument 537 _io_TextIOWrapper_truncate(textio *self, PyObject *const *args, Py_ssize_t nargs) _io_TextIOWrapper_truncate() argument 568 _io_TextIOWrapper_fileno(textio *self, PyObject *Py_UNUSED(ignored)) _io_TextIOWrapper_fileno() argument 585 _io_TextIOWrapper_seekable(textio *self, PyObject *Py_UNUSED(ignored)) _io_TextIOWrapper_seekable() argument 602 _io_TextIOWrapper_readable(textio *self, PyObject *Py_UNUSED(ignored)) _io_TextIOWrapper_readable() argument 619 _io_TextIOWrapper_writable(textio *self, PyObject *Py_UNUSED(ignored)) _io_TextIOWrapper_writable() argument 636 _io_TextIOWrapper_isatty(textio *self, PyObject *Py_UNUSED(ignored)) _io_TextIOWrapper_isatty() argument 653 _io_TextIOWrapper_flush(textio *self, PyObject *Py_UNUSED(ignored)) _io_TextIOWrapper_flush() argument 670 _io_TextIOWrapper_close(textio *self, PyObject *Py_UNUSED(ignored)) _io_TextIOWrapper_close() argument [all...] |
H A D | stringio.c.h | 6 "getvalue($self, /)\n" 15 _io_StringIO_getvalue_impl(stringio *self); 18 _io_StringIO_getvalue(stringio *self, PyObject *Py_UNUSED(ignored)) in _io_StringIO_getvalue() argument 20 return _io_StringIO_getvalue_impl(self); in _io_StringIO_getvalue() 24 "tell($self, /)\n" 33 _io_StringIO_tell_impl(stringio *self); 36 _io_StringIO_tell(stringio *self, PyObject *Py_UNUSED(ignored)) in _io_StringIO_tell() argument 38 return _io_StringIO_tell_impl(self); in _io_StringIO_tell() 42 "read($self, size=-1, /)\n" 54 _io_StringIO_read_impl(stringio *self, Py_ssize_ 57 _io_StringIO_read(stringio *self, PyObject *const *args, Py_ssize_t nargs) _io_StringIO_read() argument 93 _io_StringIO_readline(stringio *self, PyObject *const *args, Py_ssize_t nargs) _io_StringIO_readline() argument 131 _io_StringIO_truncate(stringio *self, PyObject *const *args, Py_ssize_t nargs) _io_StringIO_truncate() argument 171 _io_StringIO_seek(stringio *self, PyObject *const *args, Py_ssize_t nargs) _io_StringIO_seek() argument 236 _io_StringIO_close(stringio *self, PyObject *Py_UNUSED(ignored)) _io_StringIO_close() argument 255 _io_StringIO___init__(PyObject *self, PyObject *args, PyObject *kwargs) _io_StringIO___init__() argument 301 _io_StringIO_readable(stringio *self, PyObject *Py_UNUSED(ignored)) _io_StringIO_readable() argument 319 _io_StringIO_writable(stringio *self, PyObject *Py_UNUSED(ignored)) _io_StringIO_writable() argument 337 _io_StringIO_seekable(stringio *self, PyObject *Py_UNUSED(ignored)) _io_StringIO_seekable() argument [all...] |
/third_party/python/Lib/importlib/metadata/ |
H A D | _text.py | 67 def __lt__(self, other): 68 return self.lower() < other.lower() 70 def __gt__(self, other): 71 return self.lower() > other.lower() 73 def __eq__(self, other): 74 return self.lower() == other.lower() 76 def __ne__(self, other): 77 return self.lower() != other.lower() 79 def __hash__(self): 80 return hash(self [all...] |
/third_party/python/Lib/importlib/ |
H A D | abc.py | 55 def __init__(self): 62 def find_module(self, fullname, path=None): 82 def find_module(self, fullname, path): 98 if not hasattr(self, 'find_spec'): 100 found = self.find_spec(fullname, path) 103 def invalidate_caches(self): 119 def find_loader(self, fullname): 139 if not hasattr(self, 'find_spec'): 141 found = self.find_spec(fullname) 153 def invalidate_caches(self) [all...] |
/third_party/python/Lib/test/ |
H A D | test_dtrace.py | 51 def run_case(self, name, optimize_python=None): 52 actual_output = normalize_trace_output(self.trace_python( 53 script_file=abspath(name + self.EXTENSION), 57 with open(abspath(name + self.EXTENSION + ".expected")) as f: 62 def generate_trace_command(self, script_file, subcommand=None): 63 command = self.COMMAND + [script_file] 68 def trace(self, script_file, subcommand=None): 69 command = self.generate_trace_command(script_file, subcommand) 76 def trace_python(self, script_file, python_file, optimize_python=None): 81 return self [all...] |
H A D | test_unicode_file.py | 31 def _do_single(self, filename): 32 self.assertTrue(os.path.exists(filename)) 33 self.assertTrue(os.path.isfile(filename)) 34 self.assertTrue(os.access(filename, os.R_OK)) 35 self.assertTrue(os.path.exists(os.path.abspath(filename))) 36 self.assertTrue(os.path.isfile(os.path.abspath(filename))) 37 self.assertTrue(os.access(os.path.abspath(filename), os.R_OK)) 42 self._do_copyish(filename, filename) 44 self.assertTrue( 54 self [all...] |
H A D | test_devpoll.py | 24 def test_devpoll1(self): 54 self.fail("no pipes ready for writing") 61 self.fail("no pipes ready for reading") 62 self.assertEqual([w2r[wr]], ready_readers) 65 self.assertEqual(len(buf), MSG_LEN) 72 self.assertEqual(bufs, [MSG] * NUM_PIPES) 74 def test_timeout_overflow(self): 80 self.assertRaises(OverflowError, pollster.poll, -2) 81 self.assertRaises(OverflowError, pollster.poll, -1 << 31) 82 self [all...] |
/test/testfwk/developer_test/src/core/ |
H A D | exception.py | 21 def __init__(self, error_msg): 23 self.error_msg = error_msg 25 def __str__(self): 26 return "ParamError: %s" % self.error_msg 30 def __init__(self, error_msg): 32 self.error_msg = error_msg 34 def __str__(self): 35 return "LiteDeviceConnectError: %s" % self.error_msg 39 def __init__(self, error_msg): 41 self [all...] |
/third_party/python/Lib/distutils/command/ |
H A D | install_headers.py | 22 def initialize_options(self): 23 self.install_dir = None 24 self.force = 0 25 self.outfiles = [] 27 def finalize_options(self): 28 self.set_undefined_options('install', 33 def run(self): 34 headers = self.distribution.headers 38 self.mkpath(self [all...] |
/third_party/python/Lib/distutils/ |
H A D | unixccompiler.py | 85 def preprocess(self, source, output_file=None, macros=None, 87 fixed_args = self._fix_compile_args(None, macros, include_dirs) 90 pp_args = self.preprocessor + pp_opts 103 if self.force or output_file is None or newer(source, output_file): 105 self.mkpath(os.path.dirname(output_file)) 107 self.spawn(pp_args) 111 def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): 112 compiler_so = self.compiler_so 117 self.spawn(compiler_so + cc_args + [src, '-o', obj] + 122 def create_static_lib(self, object [all...] |
/third_party/skia/buildtools/checkdeps/ |
H A D | graphdeps.py | 37 def __init__(self, 79 self, 87 self.ignore_temp_rules = ignore_temp_rules 88 self.ignore_specific_rules = ignore_specific_rules 89 self.hide_disallowed_deps = hide_disallowed_deps 90 self.out_file = out_file 91 self.out_format = out_format 92 self.layout_engine = layout_engine 93 self.unflatten_graph = unflatten_graph 94 self [all...] |
H A D | checkdeps.py | 43 def __init__(self, 61 self, base_directory, extra_repos, verbose, being_tested, 64 self._skip_tests = skip_tests 65 self._resolve_dotdot = resolve_dotdot 66 self.results_formatter = results.NormalResultsFormatter(verbose) 68 def Report(self): 70 if self.results_formatter.GetResults(): 71 self.results_formatter.PrintResults() 76 def CheckDirectory(self, start_dir): 79 tree (starting at |self [all...] |
/third_party/mbedtls/scripts/ |
H A D | config.py | 34 def __init__(self, active, name, value='', section=None): 35 self.active = active 36 self.name = name 37 self.value = value 38 self.section = section 57 def __init__(self): 58 self.settings = {} 60 def __contains__(self, name): 66 return name in self.settings and self [all...] |
/third_party/node/tools/gyp/pylib/gyp/ |
H A D | common.py | 19 def __init__(self, func): 20 self.func = func 21 self.cache = {} 23 def __call__(self, *args): 25 return self.cache[args] 27 result = self.func(*args) 28 self.cache[args] = result 349 def __init__(self): 360 tmp_fd, self.tmp_path = tempfile.mkstemp( 366 self [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
H A D | common.py | 19 def __init__(self, func): 20 self.func = func 21 self.cache = {} 23 def __call__(self, *args): 25 return self.cache[args] 27 result = self.func(*args) 28 self.cache[args] = result 342 def __init__(self): 353 tmp_fd, self.tmp_path = tempfile.mkstemp( 359 self [all...] |
/third_party/mesa3d/src/mapi/glapi/gen/ |
H A D | glX_proto_recv.py | 34 def __init__(self): 35 gl_XML.gl_print_base.__init__(self) 37 self.name = "glX_proto_recv.py (from Mesa)" 38 self.license = license.bsd_license_template % ( "(C) Copyright IBM Corporation 2005", "IBM") 40 self.header_tag = "_INDIRECT_DISPATCH_H_" 44 def printRealHeader(self): 52 def printBody(self, api): 71 def __init__(self, do_swap): 72 gl_XML.gl_print_base.__init__(self) 73 self [all...] |
H A D | marshal_XML.py | 33 def create_function(self, element, context): 38 def process_element(self, element): 40 super(marshal_function, self).process_element(element) 44 if element.get('name') != self.name: 48 self.fixed_params = [] 49 self.variable_params = [] 50 for p in self.parameters: 54 self.variable_params.append(p) 56 self.fixed_params.append(p) 59 self [all...] |
/third_party/python/Lib/lib2to3/ |
H A D | patcomp.py | 40 def __init__(self, grammar_file=None): 46 self.grammar = pygram.pattern_grammar 47 self.syms = pygram.pattern_symbols 49 self.grammar = driver.load_grammar(grammar_file) 50 self.syms = pygram.Symbols(self.grammar) 51 self.pygrammar = pygram.python_grammar 52 self.pysyms = pygram.python_symbols 53 self.driver = driver.Driver(self [all...] |
/third_party/node/deps/openssl/openssl/util/perl/TLSProxy/ |
H A D | EncryptedExtensions.pm | 24 my $self = $class->SUPER::new( 32 $self->{extension_data} = ""; 34 return $self; 39 my $self = shift; 41 my $extensions_len = unpack('n', $self->data); 48 $extension_data = substr($self->data, 2); 54 if (length($self->data) != 2) { 67 $self->extension_data(\%extensions); 75 my $self = shift; 79 foreach my $key (keys %{$self [all...] |
/third_party/openssl/util/perl/TLSProxy/ |
H A D | EncryptedExtensions.pm | 24 my $self = $class->SUPER::new( 32 $self->{extension_data} = ""; 34 return $self; 39 my $self = shift; 41 my $extensions_len = unpack('n', $self->data); 48 $extension_data = substr($self->data, 2); 54 if (length($self->data) != 2) { 67 $self->extension_data(\%extensions); 75 my $self = shift; 79 foreach my $key (keys %{$self [all...] |
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | enum_type_wrapper.py | 48 def __init__(self, enum_type): 50 self._enum_type = enum_type 51 self.DESCRIPTOR = enum_type # pylint: disable=invalid-name 53 def Name(self, number): # pylint: disable=invalid-name 56 return self._enum_type.values_by_number[number].name 63 self._enum_type.name, type(number), number)) 67 self._enum_type.name, number)) 69 def Value(self, name): # pylint: disable=invalid-name 72 return self._enum_type.values_by_name[name].number 76 self [all...] |