/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | json_parser.py | 312 def __init__(self, 332 GeneratorOptions.__init__(self, **kwargs) 333 self.isCTS = isCTS 342 def __init__(self, *args, **kwargs): 345 self.sections = {section: [] for section in self.ALL_SECTIONS} 346 self.feature_not_empty = False 347 self.may_alias = None 348 self.featureDict = {} 349 self [all...] |
H A D | json_h_generator.py | 47 def __init__(self, 66 GeneratorOptions.__init__(self, **kwargs) 75 def __init__(self, *args, **kwargs): 78 self.sections = {section: [] for section in self.ALL_SECTIONS} 79 self.feature_not_empty = False 80 self.may_alias = None 81 self.featureDict = {} 82 self.vkscFeatureList = [] 83 self [all...] |
/third_party/json/tools/serve_header/ |
H A D | serve_header.py | 32 def __init__(self, level): 35 self.level = level 37 def emit(self, record): 38 if record.levelno >= self.level: 52 def __init__(self, callback, delay=1.2, threshold=0.8): 54 self.delay = delay 55 self.threshold = timedelta(seconds=threshold) 56 self.callback = callback 57 self.event_dirs = set([]) 58 self [all...] |
/third_party/python/Lib/test/ |
H A D | test_decorators.py | 22 def __init__(self, exprstr, func, args, kwds): 24 Exception.__init__(self, "dbcheck %r failed (func=%s args=%s kwds=%s)" % 74 def test_single(self): 78 self.assertEqual(C.foo(), 42) 79 self.assertEqual(C().foo(), 42) 81 def check_wrapper_attrs(self, method_wrapper, format_str): 86 self.assertIs(wrapper.__func__, func) 87 self.assertIs(wrapper.__wrapped__, func) 91 self.assertIs(getattr(wrapper, attr), 94 self [all...] |
H A D | test_generators.py | 26 def generator1(self): 27 return (yield from self.generator2()) 29 def generator2(self): 37 def test_raise_and_yield_from(self): 38 gen = self.generator1() 44 self.assertIs(type(exc), StopIteration) 45 self.assertEqual(exc.value, "PASSED") 50 def test_frame_resurrect(self): 64 self.assertIs(wr(), None) 65 self [all...] |
H A D | test_support.py | 47 def test_ignored_deprecations_are_silent(self): 53 self.assertEqual(len(messages), 0, messages) 55 def test_import_module(self): 57 self.assertRaises(unittest.SkipTest, 60 def test_import_fresh_module(self): 63 def test_get_attribute(self): 64 self.assertEqual(support.get_attribute(self, "test_get_attribute"), 65 self.test_get_attribute) 66 self [all...] |
H A D | test_codeccallbacks.py | 12 def __init__(self): 13 self.pos = 0 15 def handle(self, exc): 16 oldpos = self.pos 23 self.pos = len(exc.object) 27 def __init__(self, repl="<?>"): 28 self.repl = repl 29 self.pos = 0 30 self.count = 0 32 def handle(self, ex [all...] |
H A D | test_struct.py | 37 def test_isbigendian(self): 38 self.assertEqual((struct.pack('=i', 1)[0] == 0), ISBIGENDIAN) 40 def test_consistence(self): 41 self.assertRaises(struct.error, struct.calcsize, 'Z') 44 self.assertEqual(sz * 3, struct.calcsize('iii')) 50 self.assertEqual(sz * 3, sz3) 52 self.assertRaises(struct.error, struct.pack, 'iii', 3) 53 self.assertRaises(struct.error, struct.pack, 'i', 3, 3, 3) 54 self.assertRaises((TypeError, struct.error), struct.pack, 'i', 'foo') 55 self [all...] |
H A D | test_exception_variations.py | 5 def test_try_except_else_finally(self): 19 self.assertTrue(hit_except) 20 self.assertTrue(hit_finally) 21 self.assertFalse(hit_else) 23 def test_try_except_else_finally_no_exception(self): 37 self.assertFalse(hit_except) 38 self.assertTrue(hit_finally) 39 self.assertTrue(hit_else) 41 def test_try_except_finally(self): 52 self [all...] |
H A D | test_marshal.py | 19 def helper(self, sample, *extra): 21 self.assertEqual(sample, new) 27 self.assertEqual(sample, new) 32 def test_ints(self): 37 self.helper(expected) 40 def test_int64(self): 48 self.assertEqual(base, got) 55 self.assertEqual(got, 0x1032547698badcfe) 57 self.assertEqual(got, -0x1032547698badcff) 59 self [all...] |
/third_party/python/Lib/wsgiref/ |
H A D | headers.py | 31 def __init__(self, headers=None): 35 self._headers = headers 38 self._convert_string_type(k) 39 self._convert_string_type(v) 41 def _convert_string_type(self, value): 48 def __len__(self): 50 return len(self._headers) 52 def __setitem__(self, name, val): 54 del self[name] 55 self [all...] |
/third_party/python/Lib/ |
H A D | _pydecimal.py | 202 trap_enabler is not set. First argument is self, second is the 205 context._raise_error(NewError, '(-x)!', self._sign) would 206 call NewError().handle(context, self._sign).) 211 def handle(self, context, *args): 250 def handle(self, context, *args): 263 def handle(self, context, *args): 279 def handle(self, context, sign, *args): 290 def handle(self, context, *args): 301 def handle(self, context, *args): 327 def handle(self, contex [all...] |
/third_party/python/Lib/unittest/test/testmock/ |
H A D | testpatch.py | 29 def __getattr__(self, name): 32 def __setattr__(self, name, value): 34 def __delattr__(self, name): 47 def __init__(self, a): pass 48 def f(self, a): pass 49 def g(self): pass 59 def a(self): pass 68 def __init__(self): 69 self.values = {} 71 def __getitem__(self, nam [all...] |
/third_party/mesa3d/src/mapi/glapi/gen/ |
H A D | typeexpr.py | 30 def __init__(self): 31 self.pointer = 0 # bool 32 self.const = 0 # bool 33 self.signed = 1 # bool 34 self.integer = 1 # bool 37 self.elements = 0 39 self.name = None 40 self.size = 0 # type's size in bytes 44 def string(self): 48 if self [all...] |
/third_party/python/Lib/encodings/ |
H A D | utf_16.py | 19 def __init__(self, errors='strict'): 20 codecs.IncrementalEncoder.__init__(self, errors) 21 self.encoder = None 23 def encode(self, input, final=False): 24 if self.encoder is None: 25 result = codecs.utf_16_encode(input, self.errors)[0] 27 self.encoder = codecs.utf_16_le_encode 29 self.encoder = codecs.utf_16_be_encode 31 return self.encoder(input, self [all...] |
H A D | utf_32.py | 14 def __init__(self, errors='strict'): 15 codecs.IncrementalEncoder.__init__(self, errors) 16 self.encoder = None 18 def encode(self, input, final=False): 19 if self.encoder is None: 20 result = codecs.utf_32_encode(input, self.errors)[0] 22 self.encoder = codecs.utf_32_le_encode 24 self.encoder = codecs.utf_32_be_encode 26 return self.encoder(input, self [all...] |
/third_party/mesa3d/src/gallium/drivers/svga/svgadump/ |
H A D | svga_dump.py | 51 def __init__(self, instance = '', decl = None): 52 decl_visitor.decl_visitor_t.__init__(self) 53 self._instance = instance 54 self.decl = decl 56 def clone(self): 57 return decl_dumper_t(self._instance, self.decl) 59 def visit_class(self): 60 class_ = self.decl 61 assert self [all...] |
/third_party/node/deps/v8/tools/testrunner/local/ |
H A D | pool.py | 37 Queue.cancel_join_thread = lambda self: None 40 Process.pid = property(lambda self: None) 44 def __init__(self, result): 45 self.result = result 46 self.exception = None 49 def __init__(self, exception): 50 self.exception = exception 54 def __init__(self, heartbeat, value): 55 self.heartbeat = heartbeat 56 self [all...] |
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_calltip.py | 16 def __init__(self, ai=None, *b): 'doc' 17 __init__.tip = "(self, ai=None, *b)" 18 def t1(self): 'doc' 19 t1.tip = "(self)" 20 def t2(self, ai, b=None): 'doc' 21 t2.tip = "(self, ai, b=None)" 22 def t3(self, ai, *args): 'doc' 23 t3.tip = "(self, ai, *args)" 24 def t4(self, *args): 'doc' 25 t4.tip = "(self, *arg [all...] |
H A D | test_text.py | 16 # setUp defines self.text from Text and maybe root. 18 def test_init(self): 19 self.assertEqual(self.text.get('1.0'), '\n') 20 self.assertEqual(self.text.get('end'), '') 22 def test_index_empty(self): 23 index = self.text.index 27 self.assertEqual(index(dex), '1.0') 30 self [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
H A D | hw_atl2.c | 19 static int hw_atl2_act_rslvr_table_set(struct aq_hw_s *self, u8 location, 89 static u32 hw_atl2_sem_act_rslvr_get(struct aq_hw_s *self) in hw_atl2_sem_act_rslvr_get() argument 91 return hw_atl_reg_glb_cpu_sem_get(self, HW_ATL2_FW_SM_ACT_RSLVR); in hw_atl2_sem_act_rslvr_get() 94 static int hw_atl2_hw_reset(struct aq_hw_s *self) in hw_atl2_hw_reset() argument 96 struct hw_atl2_priv *priv = (struct hw_atl2_priv *)self->priv; in hw_atl2_hw_reset() 99 err = hw_atl2_utils_soft_reset(self); in hw_atl2_hw_reset() 105 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl2_hw_reset() 107 err = aq_hw_err_from_flags(self); in hw_atl2_hw_reset() 112 static int hw_atl2_hw_queue_to_tc_map_set(struct aq_hw_s *self) in hw_atl2_hw_queue_to_tc_map_set() argument 162 hw_atl2_hw_qos_set(struct aq_hw_s *self) hw_atl2_hw_qos_set() argument 214 hw_atl2_hw_rss_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) hw_atl2_hw_rss_set() argument 239 hw_atl2_hw_init_tx_tc_rate_limit(struct aq_hw_s *self) hw_atl2_hw_init_tx_tc_rate_limit() argument 354 hw_atl2_hw_init_tx_path(struct aq_hw_s *self) hw_atl2_hw_init_tx_path() argument 379 hw_atl2_hw_init_new_rx_filters(struct aq_hw_s *self) hw_atl2_hw_init_new_rx_filters() argument 430 hw_atl2_hw_new_rx_filter_vlan_promisc(struct aq_hw_s *self, bool promisc) hw_atl2_hw_new_rx_filter_vlan_promisc() argument 445 hw_atl2_hw_new_rx_filter_promisc(struct aq_hw_s *self, bool promisc) hw_atl2_hw_new_rx_filter_promisc() argument 464 hw_atl2_act_rslvr_table_set(struct aq_hw_s *self, u8 location, u32 tag, u32 mask, u32 action) hw_atl2_act_rslvr_table_set() argument 484 hw_atl2_hw_init_rx_path(struct aq_hw_s *self) hw_atl2_hw_init_rx_path() argument 533 hw_atl2_hw_init(struct aq_hw_s *self, u8 *mac_addr) hw_atl2_hw_init() argument 599 hw_atl2_hw_ring_rx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) hw_atl2_hw_ring_rx_init() argument 606 hw_atl2_hw_ring_tx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) hw_atl2_hw_ring_tx_init() argument 615 hw_atl2_hw_packet_filter_set(struct aq_hw_s *self, unsigned int packet_filter) hw_atl2_hw_packet_filter_set() argument 625 hw_atl2_hw_multicast_list_set(struct aq_hw_s *self, u8 ar_mac [AQ_HW_MULTICAST_ADDRESS_MAX] [ETH_ALEN], u32 count) hw_atl2_hw_multicast_list_set() argument 666 hw_atl2_hw_interrupt_moderation_set(struct aq_hw_s *self) hw_atl2_hw_interrupt_moderation_set() argument 758 hw_atl2_hw_stop(struct aq_hw_s *self) hw_atl2_hw_stop() argument 765 hw_atl2_utils_get_hw_stats(struct aq_hw_s *self) hw_atl2_utils_get_hw_stats() argument 770 hw_atl2_hw_vlan_set(struct aq_hw_s *self, struct aq_rx_filter_vlan *aq_vlans) hw_atl2_hw_vlan_set() argument 816 hw_atl2_hw_vlan_ctrl(struct aq_hw_s *self, bool enable) hw_atl2_hw_vlan_ctrl() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
H A D | hw_atl2.c | 19 static int hw_atl2_act_rslvr_table_set(struct aq_hw_s *self, u8 location, 89 static u32 hw_atl2_sem_act_rslvr_get(struct aq_hw_s *self) in hw_atl2_sem_act_rslvr_get() argument 91 return hw_atl_reg_glb_cpu_sem_get(self, HW_ATL2_FW_SM_ACT_RSLVR); in hw_atl2_sem_act_rslvr_get() 94 static int hw_atl2_hw_reset(struct aq_hw_s *self) in hw_atl2_hw_reset() argument 96 struct hw_atl2_priv *priv = self->priv; in hw_atl2_hw_reset() 99 err = hw_atl2_utils_soft_reset(self); in hw_atl2_hw_reset() 105 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl2_hw_reset() 107 err = aq_hw_err_from_flags(self); in hw_atl2_hw_reset() 112 static int hw_atl2_hw_queue_to_tc_map_set(struct aq_hw_s *self) in hw_atl2_hw_queue_to_tc_map_set() argument 162 hw_atl2_hw_qos_set(struct aq_hw_s *self) hw_atl2_hw_qos_set() argument 214 hw_atl2_hw_rss_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) hw_atl2_hw_rss_set() argument 239 hw_atl2_hw_init_tx_tc_rate_limit(struct aq_hw_s *self) hw_atl2_hw_init_tx_tc_rate_limit() argument 354 hw_atl2_hw_init_tx_path(struct aq_hw_s *self) hw_atl2_hw_init_tx_path() argument 379 hw_atl2_hw_init_new_rx_filters(struct aq_hw_s *self) hw_atl2_hw_init_new_rx_filters() argument 430 hw_atl2_hw_new_rx_filter_vlan_promisc(struct aq_hw_s *self, bool promisc) hw_atl2_hw_new_rx_filter_vlan_promisc() argument 445 hw_atl2_hw_new_rx_filter_promisc(struct aq_hw_s *self, bool promisc) hw_atl2_hw_new_rx_filter_promisc() argument 464 hw_atl2_act_rslvr_table_set(struct aq_hw_s *self, u8 location, u32 tag, u32 mask, u32 action) hw_atl2_act_rslvr_table_set() argument 484 hw_atl2_hw_init_rx_path(struct aq_hw_s *self) hw_atl2_hw_init_rx_path() argument 533 hw_atl2_hw_init(struct aq_hw_s *self, const u8 *mac_addr) hw_atl2_hw_init() argument 599 hw_atl2_hw_ring_rx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) hw_atl2_hw_ring_rx_init() argument 606 hw_atl2_hw_ring_tx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) hw_atl2_hw_ring_tx_init() argument 615 hw_atl2_hw_packet_filter_set(struct aq_hw_s *self, unsigned int packet_filter) hw_atl2_hw_packet_filter_set() argument 625 hw_atl2_hw_multicast_list_set(struct aq_hw_s *self, u8 ar_mac [AQ_HW_MULTICAST_ADDRESS_MAX] [ETH_ALEN], u32 count) hw_atl2_hw_multicast_list_set() argument 666 hw_atl2_hw_interrupt_moderation_set(struct aq_hw_s *self) hw_atl2_hw_interrupt_moderation_set() argument 758 hw_atl2_hw_stop(struct aq_hw_s *self) hw_atl2_hw_stop() argument 765 hw_atl2_utils_get_hw_stats(struct aq_hw_s *self) hw_atl2_utils_get_hw_stats() argument 770 hw_atl2_hw_vlan_set(struct aq_hw_s *self, struct aq_rx_filter_vlan *aq_vlans) hw_atl2_hw_vlan_set() argument 816 hw_atl2_hw_vlan_ctrl(struct aq_hw_s *self, bool enable) hw_atl2_hw_vlan_ctrl() argument [all...] |
/third_party/mesa3d/src/compiler/isaspec/ |
H A D | encode.py | 66 def __init__(self, field, case): 67 self.field = field 68 self.expr = None 70 self.expr = isa.expressions[case.expr] 72 def signed(self): 73 if self.field.type in ['int', 'offset', 'branch']: 78 def __init__(self, field, case): 79 self.field = field 80 self.expr = None 82 self [all...] |
/third_party/python/Lib/asyncio/ |
H A D | futures.py | 72 def __init__(self, *, loop=None): 80 self._loop = events._get_event_loop() 82 self._loop = loop 83 self._callbacks = [] 84 if self._loop.get_debug(): 85 self._source_traceback = format_helpers.extract_stack( 88 def __repr__(self): 89 return base_futures._future_repr(self) 91 def __del__(self): 92 if not self [all...] |
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-unittests/ |
H A D | to_toml.py | 43 def __init__(self, value): 44 self.value = self.float_type(value) 46 def to_bits(self): 48 return np.frombuffer(self.value.tobytes(), dtype=self.int_type)[0] 55 def to_hex(self): 57 return '{0:0{1}x}'.format(self.to_bits(), self.value.itemsize * 2) 59 def is_denormal(self) [all...] |