/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...] |
/base/update/packaging_tools/ |
H A D | create_hashdata.py | 67 def __init__(self, hash_type, count): 68 self.hashinfo_tlv_type = 0x06 69 self.hashdata_tlv_type = 0x07 70 self.sign_tlv_type = 0x08 71 self.hash_type = hash_type 72 self.hash_digest_size = HashAlgo[hash_type]().digest_size 73 self.component_num = count 74 self.block_size = HASH_BLOCK_SIZE 75 self.hashinfo_value = bytes() 76 self [all...] |
/third_party/jinja2/ |
H A D | bccache.py | 26 def get(self, key: str) -> bytes: 29 def set(self, key: str, value: bytes, timeout: t.Optional[int] = None) -> None: 53 def __init__(self, environment: "Environment", key: str, checksum: str) -> None: 54 self.environment = environment 55 self.key = key 56 self.checksum = checksum 57 self.reset() 59 def reset(self) -> None: 61 self.code: t.Optional[CodeType] = None 63 def load_bytecode(self, [all...] |
/third_party/node/deps/v8/tools/testrunner/local/ |
H A D | command.py | 68 def __init__(self, shell, args=None, cmd_prefix=None, timeout=60, env=None, 86 self.shell = shell 87 self.args = args or [] 88 self.cmd_prefix = cmd_prefix or [] 89 self.timeout = timeout 90 self.env = env or {} 91 self.verbose = verbose 92 self.handle_sigterm = handle_sigterm 94 def execute(self): 95 if self [all...] |
/third_party/python/Lib/multiprocessing/ |
H A D | context.py | 41 def cpu_count(self): 49 def Manager(self): 56 m = SyncManager(ctx=self.get_context()) 60 def Pipe(self, duplex=True): 65 def Lock(self): 68 return Lock(ctx=self.get_context()) 70 def RLock(self): 73 return RLock(ctx=self.get_context()) 75 def Condition(self, lock=None): 78 return Condition(lock, ctx=self [all...] |
/third_party/python/Lib/distutils/tests/ |
H A D | test_sysconfig.py | 19 def setUp(self): 20 super(SysconfigTestCase, self).setUp() 21 self.makefile = None 23 def tearDown(self): 24 if self.makefile is not None: 25 os.unlink(self.makefile) 26 self.cleanup_testfn() 27 super(SysconfigTestCase, self).tearDown() 29 def cleanup_testfn(self): 36 def test_get_config_h_filename(self) [all...] |
/third_party/python/Lib/test/test_importlib/ |
H A D | test_metadata_api.py | 38 def test_retrieves_version_of_self(self): 41 assert re.match(self.version_pattern, pkg_version) 43 def test_retrieves_version_of_distinfo_pkg(self): 46 assert re.match(self.version_pattern, pkg_version) 48 def test_for_name_does_not_exist(self): 49 with self.assertRaises(PackageNotFoundError): 52 def test_name_normalization(self): 55 with self.subTest(name): 58 def test_prefix_not_matched(self): 61 with self [all...] |
/third_party/python/Lib/test/ |
H A D | test_shlex.py | 139 def setUp(self): 140 self.data = [x.split("|")[:-1] 142 self.posix_data = [x.split("|")[:-1] 144 for item in self.data: 146 for item in self.posix_data: 149 def splitTest(self, data, comments): 152 self.assertEqual(l, data[i][1:], 156 def oldSplit(self, s): 166 def testSplitNoneDeprecation(self): 167 with self [all...] |
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_configdialog.py | 55 def test_deactivate_current_config(self): 58 def activate_config_changes(self): 64 def test_click_ok(self): 73 def test_click_apply(self): 85 def test_click_cancel(self): 90 self.assertEqual(changes['main'], {}) 91 self.assertEqual(d.destroy.called, 1) 94 def test_click_help(self): 100 self.assertEqual(title, 'Help for IDLE preferences') 101 self [all...] |
/third_party/nghttp2/doc/_exts/rubydomain/ |
H A D | rubydomain.py | 82 def get_signature_prefix(self, sig): 88 def needs_arglist(self): 95 def handle_signature(self, sig, signode): 111 modname = self.options.get( 112 'module', self.env.temp_data.get('rb:module')) 113 classname = self.env.temp_data.get('rb:class') 114 if self.objtype == 'global': 126 separator = separators[self.objtype] 138 signode['class'] = self.class_name = classname 141 sig_prefix = self [all...] |
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_queues.py | 14 async def _test_repr_or_str(self, fn, expect_id): 21 self.assertTrue(fn(q).startswith('<Queue'), fn(q)) 23 self.assertEqual(expect_id, id_is_present) 32 self.assertTrue('_getters[1]' in fn(q)) 36 self.assertEqual(0, await getter) 46 self.assertTrue('_putters[1]' in fn(q)) 50 self.assertTrue(putter.done()) 54 self.assertTrue('_queue=[1]' in fn(q)) 56 async def test_repr(self): 57 await 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...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/ |
H A D | requirements.py | 33 def __init__(self, requirement_string: str) -> None: 39 self.name: str = parsed.name 40 self.url: Optional[str] = parsed.url or None 41 self.extras: Set[str] = set(parsed.extras if parsed.extras else []) 42 self.specifier: SpecifierSet = SpecifierSet(parsed.specifier) 43 self.marker: Optional[Marker] = None 45 self.marker = Marker.__new__(Marker) 46 self.marker._markers = _normalize_extra_values(parsed.marker) 48 def _iter_parts(self, name: str) -> Iterator[str]: 51 if self [all...] |
/third_party/python/Lib/importlib/resources/ |
H A D | simple.py | 20 def package(self): 27 def children(self): 35 def resources(self): 42 def open_binary(self, resource): 49 def name(self): 50 return self.package.split('.')[-1] 58 def __init__(self, parent, name): 60 self.parent = parent 61 self.name = name # type: ignore 63 def is_file(self) [all...] |
/kernel/linux/linux-6.6/tools/perf/pmu-events/ |
H A D | metric_test.py | 13 def test_Operators(self): 16 self.assertEqual((a | b).ToPerfJson(), 'a | b') 17 self.assertEqual((a ^ b).ToPerfJson(), 'a ^ b') 18 self.assertEqual((a & b).ToPerfJson(), 'a & b') 19 self.assertEqual((a < b).ToPerfJson(), 'a < b') 20 self.assertEqual((a > b).ToPerfJson(), 'a > b') 21 self.assertEqual((a + b).ToPerfJson(), 'a + b') 22 self.assertEqual((a - b).ToPerfJson(), 'a - b') 23 self.assertEqual((a * b).ToPerfJson(), 'a * b') 24 self [all...] |