/third_party/mesa3d/.gitlab-ci/lava/utils/ |
H A D | gitlab_section.py | 29 def __post_init__(self): 30 self.id = self.section_id_filter(self.id) 33 def has_started(self) -> bool: 34 return self.__start_time is not None 37 def has_finished(self) -> bool: 38 return self.__end_time is not None 40 def get_timestamp(self, time: datetime) -> str: 44 def section(self, marke [all...] |
/third_party/icu/icu4c/source/test/perf/perldriver/ |
H A D | Dataset.pm | 20 my $self = bless { 31 $stats->add_data(@{$self->{_data}}); 32 $self->{_mean} = $stats->mean(); 40 $self->{_error} = $t * $stats->standard_deviation(); 44 $self; 50 my ($self, $scale) = @_; 51 $self->{_scale} = $scale; 56 my ($self, $a) = @_; 57 $self->{_scale} *= $a; 62 my $self [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/ |
H A D | base_printer.py | 36 def __init__(self): 38 self._cwd = None 40 def close(self): 49 def output(self, obj): 53 otherwise uses self.outputFallback(). 56 self.outputMessage(obj) 58 self.outputCheckerFile(obj) 60 self.outputChecker(obj) 62 self.outputFallback(self [all...] |
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | symbol_database_test.py | 48 def _Database(self): 66 def testGetPrototype(self): 67 instance = self._Database().GetPrototype( 69 self.assertTrue(instance is unittest_pb2.TestAllTypes) 71 def testGetMessages(self): 72 messages = self._Database().GetMessages( 74 self.assertTrue( 78 def testGetSymbol(self): 79 self.assertEqual( 80 unittest_pb2.TestAllTypes, self [all...] |
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/ |
H A D | service_reflection_test.py | 45 def testService(self): 47 def CallMethod(self, method, controller, request, response, callback): 48 self.method = method 49 self.controller = controller 50 self.request = request 54 def SetFailed(self, msg): 55 self.failure_message = msg 57 self.callback_response = None 62 self.callback_response = None 65 self [all...] |
/third_party/python/Lib/test/test_importlib/builtin/ |
H A D | test_loader.py | 15 def setUp(self): 16 self.verification = {'__name__': 'errno', '__package__': '', 17 '__loader__': self.machinery.BuiltinImporter} 19 def verify(self, module): 21 self.assertIsInstance(module, types.ModuleType) 22 for attr, value in self.verification.items(): 23 self.assertEqual(getattr(module, attr), value) 24 self.assertIn(module.__name__, sys.modules) 26 def load_module(self, name): 29 return self [all...] |
/third_party/skia/infra/bots/recipe_modules/run/ |
H A D | api.py | 16 def __init__(self, *args, **kwargs): 18 super(SkiaStepApi, self).__init__(*args, **kwargs) 20 self._already_ran = {} 21 self._ccache = None 22 self._checked_for_ccache = False 23 self._failed = [] 25 def check_failure(self): 27 if self._failed: 28 raise self.m.step.StepFailure('Failed build steps: %s' % 29 ', '.join([f.name for f in self [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/p2p/ |
H A D | p2p_disconnect.py | 49 def __init__(self,interface_name,wpas_dbus_interface,timeout): 51 self.interface_name = interface_name 52 self.wpas_dbus_interface = wpas_dbus_interface 53 self.timeout = timeout 56 threading.Thread.__init__(self) 57 self.daemon = True 60 self.wpas_dbus_opath = "/" + \ 61 self.wpas_dbus_interface.replace(".","/") 62 self.wpas_wpas_dbus_interfaces_opath = self [all...] |
H A D | p2p_flush.py | 49 def __init__(self,interface_name,wpas_dbus_interface,timeout): 51 self.interface_name = interface_name 52 self.wpas_dbus_interface = wpas_dbus_interface 53 self.timeout = timeout 56 threading.Thread.__init__(self) 57 self.daemon = True 60 self.wpas_dbus_opath = "/" + \ 61 self.wpas_dbus_interface.replace(".","/") 62 self.wpas_wpas_dbus_interfaces_opath = self [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/p2p/ |
H A D | p2p_disconnect.py | 49 def __init__(self,interface_name,wpas_dbus_interface,timeout): 51 self.interface_name = interface_name 52 self.wpas_dbus_interface = wpas_dbus_interface 53 self.timeout = timeout 56 threading.Thread.__init__(self) 57 self.daemon = True 60 self.wpas_dbus_opath = "/" + \ 61 self.wpas_dbus_interface.replace(".","/") 62 self.wpas_wpas_dbus_interfaces_opath = self [all...] |
H A D | p2p_flush.py | 49 def __init__(self,interface_name,wpas_dbus_interface,timeout): 51 self.interface_name = interface_name 52 self.wpas_dbus_interface = wpas_dbus_interface 53 self.timeout = timeout 56 threading.Thread.__init__(self) 57 self.daemon = True 60 self.wpas_dbus_opath = "/" + \ 61 self.wpas_dbus_interface.replace(".","/") 62 self.wpas_wpas_dbus_interfaces_opath = self [all...] |
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_codecontext.py | 25 def __init__(self, a, b): 26 self.a = a 27 self.b = b 28 def compare(self): 39 def __init__(self, root, frame, text): 40 self.root = root 41 self.top = root 42 self.text_frame = frame 43 self.text = text 44 self [all...] |
/third_party/PyYAML/lib/yaml/ |
H A D | constructor.py | 24 def __init__(self): 25 self.constructed_objects = {} 26 self.recursive_objects = {} 27 self.state_generators = [] 28 self.deep_construct = False 30 def check_data(self): 32 return self.check_node() 34 def check_state_key(self, key): 38 if self.get_state_keys_blacklist_regexp().match(key): 42 def get_data(self) [all...] |
/third_party/python/Lib/ |
H A D | netrc.py | 12 def __init__(self, msg, filename=None, lineno=None): 13 self.filename = filename 14 self.lineno = lineno 15 self.msg = msg 16 Exception.__init__(self, msg) 18 def __str__(self): 19 return "%s (%s, line %s)" % (self.msg, self.filename, self.lineno) 23 def __init__(self, f [all...] |
H A D | _markupbase.py | 27 def __init__(self): 28 if self.__class__ is ParserBase: 32 def reset(self): 33 self.lineno = 1 34 self.offset = 0 36 def getpos(self): 38 return self.lineno, self.offset 44 def updatepos(self, i, j): 47 rawdata = self [all...] |
/third_party/python/Lib/test/ |
H A D | test_threading_local.py | 30 def test_local_refs(self): 31 self._local_refs(20) 32 self._local_refs(50) 33 self._local_refs(100) 35 def _local_refs(self, n): 36 local = self._local() 45 self.assertEqual(len(weaklist), n) 49 self.assertIn(len(deadlist), (n-1, n)) 55 self.assertIn(len(deadlist), (n-1, n), (n, len(deadlist))) 57 def test_derived(self) [all...] |
H A D | test_frame.py | 20 def inner(self, x=5, **kwargs): 23 def outer(self, **kwargs): 25 self.inner(**kwargs) 30 def clear_traceback_frames(self, tb): 38 def test_clear_locals(self): 43 exc = self.outer(c=c) 47 self.assertIsNot(None, wr()) 48 self.clear_traceback_frames(exc.__traceback__) 51 self.assertIs(None, wr()) 53 def test_clear_does_not_clear_specials(self) [all...] |
H A D | test_kqueue.py | 15 def test_create_queue(self): 17 self.assertTrue(kq.fileno() > 0, kq.fileno()) 18 self.assertTrue(not kq.closed) 20 self.assertTrue(kq.closed) 21 self.assertRaises(ValueError, kq.fileno) 23 def test_create_event(self): 27 self.addCleanup(os.close, fd) 31 self.assertEqual(ev.ident, fd) 32 self.assertEqual(ev.filter, select.KQ_FILTER_READ) 33 self [all...] |
/third_party/python/Lib/ctypes/test/ |
H A D | test_as_parameter.py | 18 def wrap(self, param): 22 def test_wchar_parm(self): 25 result = f(self.wrap(1), self.wrap("x"), self.wrap(3), self.wrap(4), self.wrap(5.0), self.wrap(6.0)) 26 self.assertEqual(result, 139) 27 self [all...] |
H A D | test_numbers.py | 55 def test_default_init(self): 58 self.assertEqual(t().value, 0) 60 def test_unsigned_values(self): 64 self.assertEqual(t(l).value, l) 65 self.assertEqual(t(h).value, h) 67 def test_signed_values(self): 70 self.assertEqual(t(l).value, l) 71 self.assertEqual(t(h).value, h) 73 def test_bool_values(self): 76 self [all...] |
/third_party/python/Modules/_blake2/ |
H A D | blake2s_impl.c | 60 BLAKE2sObject *self; in new_BLAKE2sObject() local 61 self = (BLAKE2sObject *)type->tp_alloc(type, 0); in new_BLAKE2sObject() 62 if (self != NULL) { in new_BLAKE2sObject() 63 self->lock = NULL; in new_BLAKE2sObject() 65 return self; in new_BLAKE2sObject() 98 BLAKE2sObject *self = NULL; in py_blake2s_new_impl() local 101 self = new_BLAKE2sObject(type); in py_blake2s_new_impl() 102 if (self == NULL) { in py_blake2s_new_impl() 107 memset(&self->param, 0, sizeof(self in py_blake2s_new_impl() 249 _blake2_blake2s_copy_impl(BLAKE2sObject *self) _blake2_blake2s_copy_impl() argument 274 _blake2_blake2s_update(BLAKE2sObject *self, PyObject *data) _blake2_blake2s_update() argument 305 _blake2_blake2s_digest_impl(BLAKE2sObject *self) _blake2_blake2s_digest_impl() argument 326 _blake2_blake2s_hexdigest_impl(BLAKE2sObject *self) _blake2_blake2s_hexdigest_impl() argument 351 py_blake2s_get_name(BLAKE2sObject *self, void *closure) py_blake2s_get_name() argument 359 py_blake2s_get_block_size(BLAKE2sObject *self, void *closure) py_blake2s_get_block_size() argument 367 py_blake2s_get_digest_size(BLAKE2sObject *self, void *closure) py_blake2s_get_digest_size() argument 385 py_blake2s_dealloc(PyObject *self) py_blake2s_dealloc() argument [all...] |
H A D | blake2b_impl.c | 60 BLAKE2bObject *self; in new_BLAKE2bObject() local 61 self = (BLAKE2bObject *)type->tp_alloc(type, 0); in new_BLAKE2bObject() 62 if (self != NULL) { in new_BLAKE2bObject() 63 self->lock = NULL; in new_BLAKE2bObject() 65 return self; in new_BLAKE2bObject() 98 BLAKE2bObject *self = NULL; in py_blake2b_new_impl() local 101 self = new_BLAKE2bObject(type); in py_blake2b_new_impl() 102 if (self == NULL) { in py_blake2b_new_impl() 107 memset(&self->param, 0, sizeof(self in py_blake2b_new_impl() 249 _blake2_blake2b_copy_impl(BLAKE2bObject *self) _blake2_blake2b_copy_impl() argument 274 _blake2_blake2b_update(BLAKE2bObject *self, PyObject *data) _blake2_blake2b_update() argument 305 _blake2_blake2b_digest_impl(BLAKE2bObject *self) _blake2_blake2b_digest_impl() argument 326 _blake2_blake2b_hexdigest_impl(BLAKE2bObject *self) _blake2_blake2b_hexdigest_impl() argument 351 py_blake2b_get_name(BLAKE2bObject *self, void *closure) py_blake2b_get_name() argument 359 py_blake2b_get_block_size(BLAKE2bObject *self, void *closure) py_blake2b_get_block_size() argument 367 py_blake2b_get_digest_size(BLAKE2bObject *self, void *closure) py_blake2b_get_digest_size() argument 385 py_blake2b_dealloc(PyObject *self) py_blake2b_dealloc() argument [all...] |
/third_party/python/Lib/distutils/ |
H A D | _msvccompiler.py | 201 def __init__(self, verbose=0, dry_run=0, force=0): 202 CCompiler.__init__ (self, verbose, dry_run, force) 204 self.plat_name = None 205 self.initialized = False 207 def initialize(self, plat_name=None): 209 assert not self.initialized, "don't init multiple times" 225 self._paths = vc_env.get('path', '') 226 paths = self._paths.split(os.pathsep) 227 self.cc = _find_exe("cl.exe", paths) 228 self [all...] |
/third_party/mesa3d/src/compiler/nir/tests/ |
H A D | algebraic_parser_test.py | 45 def common(self, pattern, message): 46 with self.assertRaises(AssertionError) as context: 47 SearchAndReplace(pattern, self.algebraic_pass) 49 self.assertEqual(message, str(context.exception)) 51 def test_wrong_src_count(self): 52 self.common((('iadd', a), ('fadd', a, a)), 55 def test_var_bitsize(self): 56 self.common((('iadd', 'a@32', 'a@64'), ('fadd', a, a)), 60 def test_var_bitsize_2(self): 61 self [all...] |
/third_party/node/deps/v8/tools/testrunner/testproc/ |
H A D | seed.py | 13 def __init__(self, count, seed=None, parallel_subtests=1): 21 super(SeedProc, self).__init__('Seed') 22 self._count = count 23 self._seed = seed 24 self._last_idx = defaultdict(int) 25 self._todo = defaultdict(int) 26 self._parallel_subtests = parallel_subtests 28 self._parallel_subtests = min(self._parallel_subtests, count) 30 def setup(self, requiremen [all...] |