/third_party/python/Lib/idlelib/ |
H A D | debugger_r.py | 59 def __init__(self, conn, gui_adap_oid): 60 self.conn = conn 61 self.oid = gui_adap_oid 63 def interaction(self, message, frame, info=None): 66 self.conn.remotecall(self.oid, "interaction", 72 def __init__(self, idb): 73 self.idb = idb 77 def set_step(self): 78 self [all...] |
/third_party/python/Lib/ |
H A D | contextlib.py | 23 def __enter__(self): 24 """Return `self` upon entering the runtime context.""" 25 return self 28 def __exit__(self, exc_type, exc_value, traceback): 45 async def __aenter__(self): 46 """Return `self` upon entering the runtime context.""" 47 return self 50 async def __aexit__(self, exc_type, exc_value, traceback): 65 def _recreate_cm(self): 66 """Return a recreated instance of self [all...] |
H A D | modulefinder.py | 92 def __init__(self, name, file=None, path=None): 93 self.__name__ = name 94 self.__file__ = file 95 self.__path__ = path 96 self.__code__ = None 100 self.globalnames = {} 103 self.starimports = {} 105 def __repr__(self): 106 s = "Module(%r" % (self.__name__,) 107 if self [all...] |
H A D | filecmp.py | 124 def __init__(self, a, b, ignore=None, hide=None): # Initialize 125 self.left = a 126 self.right = b 128 self.hide = [os.curdir, os.pardir] # Names never to be shown 130 self.hide = hide 132 self.ignore = DEFAULT_IGNORES 134 self.ignore = ignore 136 def phase0(self): # Compare everything except common subdirectories 137 self.left_list = _filter(os.listdir(self [all...] |
/third_party/python/Lib/unittest/test/ |
H A D | test_setups.py | 13 def getRunner(self): 16 def runTests(self, *cases): 22 runner = self.getRunner() 32 def test_setup_class(self): 39 def test_one(self): 41 def test_two(self): 44 result = self.runTests(Test) 46 self.assertEqual(Test.setUpCalled, 1) 47 self.assertEqual(result.testsRun, 2) 48 self [all...] |
H A D | support.py | 8 def test_eq(self): 9 for obj_1, obj_2 in self.eq_pairs: 10 self.assertEqual(obj_1, obj_2) 11 self.assertEqual(obj_2, obj_1) 14 def test_ne(self): 15 for obj_1, obj_2 in self.ne_pairs: 16 self.assertNotEqual(obj_1, obj_2) 17 self.assertNotEqual(obj_2, obj_1) 23 def test_hash(self): 24 for obj_1, obj_2 in self [all...] |
/third_party/skia/third_party/externals/tint/tools/ |
H A D | run_tests.py | 40 def __init__(self, input_path, parse_only): 41 self.input_path = input_path 42 self.parse_only = parse_only 43 self.results = {} 45 def IsExpectedFail(self): 47 return fail_re.match(self.GetInputPath()) 49 def IsParseOnly(self): 50 return self.parse_only 52 def GetInputPath(self): 53 return self [all...] |
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_sock_lowlevel.py | 21 def __init__(self, loop=None): 22 self.transport = None 23 self.state = 'INITIAL' 24 self.nbytes = 0 26 self.connected = loop.create_future() 27 self.done = loop.create_future() 29 def _assert_state(self, *expected): 30 if self.state not in expected: 31 raise AssertionError(f'state: {self.state!r}, expected: {expected!r}') 33 def connection_made(self, transpor [all...] |
/third_party/skia/third_party/externals/spirv-tools/test/tools/ |
H A D | placeholder.py | 37 def instantiate_for_spirv_args(self, testcase): 48 def instantiate_for_expectation(self, testcase): 63 def __init__(self, source, suffix, assembly_substr=None): 66 self.source = source 67 self.suffix = suffix 68 self.filename = None 71 self.assembly_substr = assembly_substr 73 def instantiate_for_spirv_args(self, testcase): 79 shader, self.filename = tempfile.mkstemp( 80 dir=testcase.directory, suffix=self [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/tools/ |
H A D | placeholder.py | 37 def instantiate_for_spirv_args(self, testcase): 48 def instantiate_for_expectation(self, testcase): 63 def __init__(self, source, suffix, assembly_substr=None): 66 self.source = source 67 self.suffix = suffix 68 self.filename = None 71 self.assembly_substr = assembly_substr 73 def instantiate_for_spirv_args(self, testcase): 79 shader, self.filename = tempfile.mkstemp( 80 dir=testcase.directory, suffix=self [all...] |
/third_party/spirv-tools/test/tools/ |
H A D | placeholder.py | 37 def instantiate_for_spirv_args(self, testcase): 48 def instantiate_for_expectation(self, testcase): 63 def __init__(self, source, suffix, assembly_substr=None): 66 self.source = source 67 self.suffix = suffix 68 self.filename = None 71 self.assembly_substr = assembly_substr 73 def instantiate_for_spirv_args(self, testcase): 79 shader, self.filename = tempfile.mkstemp( 80 dir=testcase.directory, suffix=self [all...] |
/third_party/python/Lib/test/ |
H A D | test_inspect.py | 101 def istest(self, predicate, exp): 103 self.assertTrue(predicate(obj), '%s(%s)' % (predicate.__name__, exp)) 105 for other in self.predicates - set([predicate]): 111 self.assertFalse(other(obj), 'not %s(%s)' % (other.__name__, exp)) 113 def test__all__(self): 114 support.check__all__(self, inspect, not_exported=("modulesbyfile",)) 116 def generator_function_example(self): 120 async def async_generator_function_example(self): 124 async def coroutine_function_example(self): 128 def gen_coroutine_function_example(self) [all...] |
H A D | test_telnetlib.py | 29 def setUp(self): 30 self.evt = threading.Event() 31 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 32 self.sock.settimeout(60) # Safety net. Look issue 11812 33 self.port = socket_helper.bind_port(self.sock) 34 self.thread = threading.Thread(target=server, args=(self.evt,self.sock)) 35 self [all...] |
/third_party/node/tools/gyp/pylib/gyp/generator/ |
H A D | ninja.py | 125 def __init__(self, type): 127 self.type = type 130 self.preaction_stamp = None 133 self.precompile_stamp = None 135 self.actions_stamp = None 137 self.binary = None 140 self.bundle = None 146 self.component_objs = None 147 self.compile_deps = None 151 self [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ |
H A D | ninja.py | 125 def __init__(self, type): 127 self.type = type 130 self.preaction_stamp = None 133 self.precompile_stamp = None 135 self.actions_stamp = None 137 self.binary = None 140 self.bundle = None 146 self.component_objs = None 147 self.compile_deps = None 151 self [all...] |
/third_party/mesa3d/src/util/format/ |
H A D | u_format_parse.py | 56 def __init__(self, type, norm, pure, size, name=''): 57 self.type = type 58 self.norm = norm 59 self.pure = pure 60 self.size = size 61 self.sign = type in (SIGNED, FIXED, FLOAT) 62 self.name = name 64 def __str__(self): 65 s = str(self.type) 66 if self [all...] |
/third_party/protobuf/objectivec/DevTools/ |
H A D | pddm.py | 143 def __init__(self, a_file=None): 152 self._macros = dict() 154 self.ParseInput(a_file) 159 def __init__(self, name, arg_names): 160 self._name = name 161 self._args = tuple(arg_names) 162 self._body = '' 163 self._needNewLine = False 165 def AppendLine(self, line): 166 if self [all...] |
/third_party/ffmpeg/libavdevice/ |
H A D | jack.c | 65 JackData *self = arg; in process_callback() local 72 if (!self->client) in process_callback() 76 cycle_delay = jack_frames_since_cycle_start(self->client); in process_callback() 79 cycle_time = ff_timefilter_update(self->timefilter, in process_callback() 80 av_gettime() / 1000000.0 - (double) cycle_delay / self->sample_rate, in process_callback() 81 self->buffer_size); in process_callback() 84 if (!av_fifo_can_read(self->new_pkts) || in process_callback() 85 !av_fifo_can_write(self->filled_pkts)) { in process_callback() 86 self->pkt_xrun = 1; in process_callback() 91 av_fifo_read(self in process_callback() 118 JackData *self = arg; shutdown_callback() local 124 JackData *self = arg; xrun_callback() local 130 supply_new_packets(JackData *self, AVFormatContext *context) supply_new_packets() argument 150 JackData *self = context->priv_data; start_jack() local 222 stop_jack(JackData *self) stop_jack() argument 238 JackData *self = context->priv_data; audio_read_header() local 266 JackData *self = context->priv_data; audio_read_packet() local 326 JackData *self = context->priv_data; audio_read_close() local [all...] |
/third_party/python/Modules/_io/ |
H A D | fileio.c | 78 static PyObject* portable_lseek(fileio *self, PyObject *posobj, int whence, bool suppress_pipe_error); 81 _PyFileIO_closed(PyObject *self) in _PyFileIO_closed() argument 83 return ((fileio *)self)->fd < 0; in _PyFileIO_closed() 90 fileio_dealloc_warn(fileio *self, PyObject *source) in fileio_dealloc_warn() argument 92 if (self->fd >= 0 && self->closefd) { in fileio_dealloc_warn() 98 PyErr_WriteUnraisable((PyObject *) self); in fileio_dealloc_warn() 107 internal_close(fileio *self) in internal_close() argument 111 if (self->fd >= 0) { in internal_close() 112 int fd = self in internal_close() 141 _io_FileIO_close_impl(fileio *self) _io_FileIO_close_impl() argument 173 fileio *self; fileio_new() local 220 _io_FileIO___init___impl(fileio *self, PyObject *nameobj, const char *mode, int closefd, PyObject *opener) global() argument 513 fileio_traverse(fileio *self, visitproc visit, void *arg) global() argument 520 fileio_clear(fileio *self) global() argument 527 fileio_dealloc(fileio *self) global() argument 563 _io_FileIO_fileno_impl(fileio *self) global() argument 578 _io_FileIO_readable_impl(fileio *self) global() argument 593 _io_FileIO_writable_impl(fileio *self) global() argument 608 _io_FileIO_seekable_impl(fileio *self) global() argument 636 _io_FileIO_readinto_impl(fileio *self, Py_buffer *buffer) global() argument 663 new_buffersize(fileio *self, size_t currentsize) global() argument 691 _io_FileIO_readall_impl(fileio *self) global() argument 793 _io_FileIO_read_impl(fileio *self, Py_ssize_t size) global() argument 852 _io_FileIO_write_impl(fileio *self, Py_buffer *b) global() argument 882 portable_lseek(fileio *self, PyObject *posobj, int whence, bool suppress_pipe_error) global() argument 962 _io_FileIO_seek_impl(fileio *self, PyObject *pos, int whence) global() argument 980 _io_FileIO_tell_impl(fileio *self) global() argument 1002 _io_FileIO_truncate_impl(fileio *self, PyObject *posobj) global() argument 1057 mode_string(fileio *self) global() argument 1082 fileio_repr(fileio *self) global() argument 1123 _io_FileIO_isatty_impl(fileio *self) global() argument 1161 get_closed(fileio *self, void *closure) global() argument 1167 get_closefd(fileio *self, void *closure) global() argument 1173 get_mode(fileio *self, void *closure) global() argument [all...] |
/third_party/python/Lib/test/test_json/ |
H A D | test_enum.py | 36 def test_floats(self): 38 self.assertEqual(self.dumps(enum), repr(enum.value)) 39 self.assertEqual(float(self.dumps(enum)), enum) 40 self.assertEqual(self.loads(self.dumps(enum)), enum) 42 def test_weird_floats(self): 44 self [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/p2p/ |
H A D | p2p_connect.py | 78 def __init__(self,ifname,wpas_dbus_interface,addr, 81 self.ifname = ifname 82 self.wpas_dbus_interface = wpas_dbus_interface 83 self.wps_method = wps_method 84 self.go_intent = go_intent 85 self.addr = addr 86 self.pin = pin 89 self.wpas_dbus_opath = \ 90 "/" + self.wpas_dbus_interface.replace(".","/") 91 self [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/p2p/ |
H A D | p2p_connect.py | 78 def __init__(self,ifname,wpas_dbus_interface,addr, 81 self.ifname = ifname 82 self.wpas_dbus_interface = wpas_dbus_interface 83 self.wps_method = wps_method 84 self.go_intent = go_intent 85 self.addr = addr 86 self.pin = pin 89 self.wpas_dbus_opath = \ 90 "/" + self.wpas_dbus_interface.replace(".","/") 91 self [all...] |
/third_party/python/Tools/peg_generator/pegen/ |
H A D | grammar.py | 27 def visit(self, node: Any, *args: Any, **kwargs: Any) -> Any: 30 visitor = getattr(self, method, self.generic_visit) 33 def generic_visit(self, node: Iterable[Any], *args: Any, **kwargs: Any) -> Any: 38 self.visit(item, *args, **kwargs) 40 self.visit(value, *args, **kwargs) 44 def __init__(self, rules: Iterable[Rule], metas: Iterable[Tuple[str, Optional[str]]]): 45 self.rules = {rule.name: rule for rule in rules} 46 self.metas = dict(metas) 48 def __str__(self) [all...] |
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | environment.py | 264 def __init__(self, 299 self.block_start_string = block_start_string 300 self.block_end_string = block_end_string 301 self.variable_start_string = variable_start_string 302 self.variable_end_string = variable_end_string 303 self.comment_start_string = comment_start_string 304 self.comment_end_string = comment_end_string 305 self.line_statement_prefix = line_statement_prefix 306 self.line_comment_prefix = line_comment_prefix 307 self [all...] |
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_format.py | 20 def test_is_all_white(self): 21 self.assertTrue(ft.is_all_white('')) 22 self.assertTrue(ft.is_all_white('\t\n\r\f\v')) 23 self.assertFalse(ft.is_all_white(self.test_comment)) 25 def test_get_indent(self): 26 Equal = self.assertEqual 27 Equal(ft.get_indent(self.test_comment), '') 28 Equal(ft.get_indent(self.trailingws_comment), '') 29 Equal(ft.get_indent(self [all...] |