Home
last modified time | relevance | path

Searched refs:self (Results 801 - 825 of 4463) sorted by relevance

1...<<31323334353637383940>>...179

/third_party/python/Lib/email/
H A Dheader.py184 def __init__(self, s=None, charset=None,
217 self._charset = charset
218 self._continuation_ws = continuation_ws
219 self._chunks = []
221 self.append(s, charset, errors)
224 self._maxlinelen = maxlinelen
226 self._headerlen = 0
229 self._headerlen = len(header_name) + 2
231 def __str__(self):
233 self
[all...]
/third_party/skia/tools/skp/
H A Dwebpages_playback.py140 def __init__(self, parse_options):
143 self._browser_executable = parse_options.browser_executable
144 self._browser_args = '--disable-setuid-sandbox'
146 self._browser_args = '%s %s' % (
147 self._browser_args, parse_options.browser_extra_args)
149 self._chrome_page_sets_path = os.path.join(parse_options.chrome_src_path,
151 self._all_page_sets_specified = parse_options.page_sets == 'all'
152 self._page_sets = self._ParsePageSets(parse_options.page_sets)
154 self
[all...]
/third_party/python/Lib/test/
H A Dtest_tuple.py21 def test_getitem_error(self):
24 with self.assertRaisesRegex(TypeError, msg):
27 def test_constructors(self):
30 self.assertEqual(tuple(), ())
33 self.assertTrue(t0_3 is t0_3_bis)
34 self.assertEqual(tuple([]), ())
35 self.assertEqual(tuple([0, 1, 2, 3]), (0, 1, 2, 3))
36 self.assertEqual(tuple(''), ())
37 self.assertEqual(tuple('spam'), ('s', 'p', 'a', 'm'))
38 self
[all...]
H A Dtest_lzma.py26 def test_simple_bad_args(self):
27 self.assertRaises(TypeError, LZMACompressor, [])
28 self.assertRaises(TypeError, LZMACompressor, format=3.45)
29 self.assertRaises(TypeError, LZMACompressor, check="")
30 self.assertRaises(TypeError, LZMACompressor, preset="asdf")
31 self.assertRaises(TypeError, LZMACompressor, filters=3)
33 self.assertRaises(ValueError, LZMACompressor, format=lzma.FORMAT_AUTO)
35 with self.assertRaises(ValueError):
38 self.assertRaises(TypeError, LZMADecompressor, ())
39 self
[all...]
H A Dtest_docxmlrpc.py17 def make_request_and_skip(self):
18 self.client.request("GET", "/")
19 self.client.getresponse()
34 "can be used by POSTing to /RPC2. Try self.add, too.")
38 def test_method(self, arg):
40 self.arg = arg
58 def method_annotation(self, x: bytes):
71 def setUp(self):
75 self.serv = make_server()
76 self
[all...]
H A Dtest_site.py67 def setUp(self):
69 self.sys_path = sys.path[:]
70 self.old_base = site.USER_BASE
71 self.old_site = site.USER_SITE
72 self.old_prefixes = site.PREFIXES
73 self.original_vars = sysconfig._CONFIG_VARS
74 self.old_vars = copy(sysconfig._CONFIG_VARS)
76 def tearDown(self):
78 sys.path[:] = self.sys_path
79 site.USER_BASE = self
[all...]
/third_party/python/Lib/unittest/test/
H A Dtest_loader.py32 def test___init__(self):
34 self.assertEqual([], loader.errors)
41 def test_loadTestsFromTestCase(self):
43 def test_1(self): pass
44 def test_2(self): pass
45 def foo_bar(self): pass
50 self.assertEqual(loader.loadTestsFromTestCase(Foo), tests)
56 def test_loadTestsFromTestCase__no_matches(self):
58 def foo_bar(self): pass
63 self
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/
H A DTdcPlugin.py4 def __init__(self):
6 print(' -- {}.__init__'.format(self.sub_class))
8 def pre_suite(self, testcount, testidlist):
10 self.testcount = testcount
11 self.testidlist = testidlist
12 if self.args.verbose > 1:
13 print(' -- {}.pre_suite'.format(self.sub_class))
15 def post_suite(self, index):
18 if self.args.verbose > 1:
19 print(' -- {}.post_suite'.format(self
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/tc-testing/
H A DTdcPlugin.py4 def __init__(self):
6 print(' -- {}.__init__'.format(self.sub_class))
8 def pre_suite(self, testcount, testidlist):
10 self.testcount = testcount
11 self.testidlist = testidlist
12 if self.args.verbose > 1:
13 print(' -- {}.pre_suite'.format(self.sub_class))
15 def post_suite(self, index):
18 if self.args.verbose > 1:
19 print(' -- {}.post_suite'.format(self
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_b0.c115 static int hw_atl_b0_hw_reset(struct aq_hw_s *self) in hw_atl_b0_hw_reset() argument
119 err = hw_atl_utils_soft_reset(self); in hw_atl_b0_hw_reset()
123 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset()
125 err = aq_hw_err_from_flags(self); in hw_atl_b0_hw_reset()
130 int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc) in hw_atl_b0_set_fc() argument
132 hw_atl_rpb_rx_xoff_en_per_tc_set(self, !!(fc & AQ_NIC_FC_RX), tc); in hw_atl_b0_set_fc()
137 static int hw_atl_b0_tc_ptp_set(struct aq_hw_s *self) in hw_atl_b0_tc_ptp_set() argument
140 hw_atl_tpb_tx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_TXBUF_SIZE, in hw_atl_b0_tc_ptp_set()
144 hw_atl_rpb_rx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_RXBUF_SIZ in hw_atl_b0_tc_ptp_set()
152 hw_atl_b0_hw_qos_set(struct aq_hw_s *self) hw_atl_b0_hw_qos_set() argument
209 hw_atl_b0_hw_rss_hash_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) hw_atl_b0_hw_rss_hash_set() argument
237 hw_atl_b0_hw_rss_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) hw_atl_b0_hw_rss_set() argument
273 hw_atl_b0_hw_offload_set(struct aq_hw_s *self, struct aq_nic_cfg_s *aq_nic_cfg) hw_atl_b0_hw_offload_set() argument
332 hw_atl_b0_hw_init_tx_tc_rate_limit(struct aq_hw_s *self) hw_atl_b0_hw_init_tx_tc_rate_limit() argument
449 hw_atl_b0_hw_init_tx_path(struct aq_hw_s *self) hw_atl_b0_hw_init_tx_path() argument
474 hw_atl_b0_hw_init_rx_rss_ctrl1(struct aq_hw_s *self) hw_atl_b0_hw_init_rx_rss_ctrl1() argument
487 hw_atl_b0_hw_init_rx_path(struct aq_hw_s *self) hw_atl_b0_hw_init_rx_path() argument
536 hw_atl_b0_hw_mac_addr_set(struct aq_hw_s *self, u8 *mac_addr) hw_atl_b0_hw_mac_addr_set() argument
561 hw_atl_b0_hw_init(struct aq_hw_s *self, u8 *mac_addr) hw_atl_b0_hw_init() argument
631 hw_atl_b0_hw_ring_tx_start(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_tx_start() argument
638 hw_atl_b0_hw_ring_rx_start(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_rx_start() argument
645 hw_atl_b0_hw_start(struct aq_hw_s *self) hw_atl_b0_hw_start() argument
653 hw_atl_b0_hw_tx_ring_tail_update(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_tx_ring_tail_update() argument
661 hw_atl_b0_hw_ring_tx_xmit(struct aq_hw_s *self, struct aq_ring_s *ring, unsigned int frags) hw_atl_b0_hw_ring_tx_xmit() argument
749 hw_atl_b0_hw_ring_rx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) hw_atl_b0_hw_ring_rx_init() argument
791 hw_atl_b0_hw_ring_tx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) hw_atl_b0_hw_ring_tx_init() argument
820 hw_atl_b0_hw_ring_rx_fill(struct aq_hw_s *self, struct aq_ring_s *ring, unsigned int sw_tail_old) hw_atl_b0_hw_ring_rx_fill() argument
840 hw_atl_b0_hw_ring_hwts_rx_fill(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_hwts_rx_fill() argument
862 hw_atl_b0_hw_ring_hwts_rx_receive(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_hwts_rx_receive() argument
880 hw_atl_b0_hw_ring_tx_head_update(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_tx_head_update() argument
906 hw_atl_b0_hw_ring_rx_receive(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_rx_receive() argument
1006 hw_atl_b0_hw_irq_enable(struct aq_hw_s *self, u64 mask) hw_atl_b0_hw_irq_enable() argument
1013 hw_atl_b0_hw_irq_disable(struct aq_hw_s *self, u64 mask) hw_atl_b0_hw_irq_disable() argument
1023 hw_atl_b0_hw_irq_read(struct aq_hw_s *self, u64 *mask) hw_atl_b0_hw_irq_read() argument
1032 hw_atl_b0_hw_packet_filter_set(struct aq_hw_s *self, unsigned int packet_filter) hw_atl_b0_hw_packet_filter_set() argument
1070 hw_atl_b0_hw_multicast_list_set(struct aq_hw_s *self, u8 ar_mac [AQ_HW_MULTICAST_ADDRESS_MAX] [ETH_ALEN], u32 count) hw_atl_b0_hw_multicast_list_set() argument
1110 hw_atl_b0_hw_interrupt_moderation_set(struct aq_hw_s *self) hw_atl_b0_hw_interrupt_moderation_set() argument
1199 hw_atl_b0_hw_stop(struct aq_hw_s *self) hw_atl_b0_hw_stop() argument
1223 hw_atl_b0_hw_ring_tx_stop(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_tx_stop() argument
1230 hw_atl_b0_hw_ring_rx_stop(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_rx_stop() argument
1240 hw_atl_b0_get_ptp_ts(struct aq_hw_s *self, u64 *stamp) hw_atl_b0_get_ptp_ts() argument
1299 hw_atl_b0_adj_sys_clock(struct aq_hw_s *self, s64 delta) hw_atl_b0_adj_sys_clock() argument
1308 hw_atl_b0_set_sys_clock(struct aq_hw_s *self, u64 time, u64 ts) hw_atl_b0_set_sys_clock() argument
1315 hw_atl_b0_ts_to_sys_clock(struct aq_hw_s *self, u64 ts, u64 *time) hw_atl_b0_ts_to_sys_clock() argument
1321 hw_atl_b0_adj_clock_freq(struct aq_hw_s *self, s32 ppb) hw_atl_b0_adj_clock_freq() argument
1343 hw_atl_b0_gpio_pulse(struct aq_hw_s *self, u32 index, u64 start, u32 period) hw_atl_b0_gpio_pulse() argument
1361 hw_atl_b0_extts_gpio_enable(struct aq_hw_s *self, u32 index, u32 enable) hw_atl_b0_extts_gpio_enable() argument
1370 hw_atl_b0_get_sync_ts(struct aq_hw_s *self, u64 *ts) hw_atl_b0_get_sync_ts() argument
1394 hw_atl_b0_rx_extract_ts(struct aq_hw_s *self, u8 *p, unsigned int len, u64 *timestamp) hw_atl_b0_rx_extract_ts() argument
1427 hw_atl_b0_extract_hwts(struct aq_hw_s *self, u8 *p, unsigned int len, u64 *timestamp) hw_atl_b0_extract_hwts() argument
1448 hw_atl_b0_hw_fl3l4_clear(struct aq_hw_s *self, struct aq_rx_filter_l3l4 *data) hw_atl_b0_hw_fl3l4_clear() argument
1474 hw_atl_b0_hw_fl3l4_set(struct aq_hw_s *self, struct aq_rx_filter_l3l4 *data) hw_atl_b0_hw_fl3l4_set() argument
1511 hw_atl_b0_hw_fl2_set(struct aq_hw_s *self, struct aq_rx_filter_l2 *data) hw_atl_b0_hw_fl2_set() argument
1536 hw_atl_b0_hw_fl2_clear(struct aq_hw_s *self, struct aq_rx_filter_l2 *data) hw_atl_b0_hw_fl2_clear() argument
1556 hw_atl_b0_hw_vlan_set(struct aq_hw_s *self, struct aq_rx_filter_vlan *aq_vlans) hw_atl_b0_hw_vlan_set() argument
1582 hw_atl_b0_hw_vlan_ctrl(struct aq_hw_s *self, bool enable) hw_atl_b0_hw_vlan_ctrl() argument
1590 hw_atl_b0_set_loopback(struct aq_hw_s *self, u32 mode, bool enable) hw_atl_b0_set_loopback() argument
1615 hw_atl_b0_ts_ready_and_latch_high_get(struct aq_hw_s *self) hw_atl_b0_ts_ready_and_latch_high_get() argument
1623 hw_atl_b0_get_mac_temp(struct aq_hw_s *self, u32 *temp) hw_atl_b0_get_mac_temp() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_b0.c115 static int hw_atl_b0_hw_reset(struct aq_hw_s *self) in hw_atl_b0_hw_reset() argument
119 err = hw_atl_utils_soft_reset(self); in hw_atl_b0_hw_reset()
123 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset()
125 err = aq_hw_err_from_flags(self); in hw_atl_b0_hw_reset()
130 int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc) in hw_atl_b0_set_fc() argument
132 hw_atl_rpb_rx_xoff_en_per_tc_set(self, !!(fc & AQ_NIC_FC_RX), tc); in hw_atl_b0_set_fc()
137 static int hw_atl_b0_tc_ptp_set(struct aq_hw_s *self) in hw_atl_b0_tc_ptp_set() argument
140 hw_atl_tpb_tx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_TXBUF_SIZE, in hw_atl_b0_tc_ptp_set()
144 hw_atl_rpb_rx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_RXBUF_SIZ in hw_atl_b0_tc_ptp_set()
152 hw_atl_b0_hw_qos_set(struct aq_hw_s *self) hw_atl_b0_hw_qos_set() argument
209 hw_atl_b0_hw_rss_hash_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) hw_atl_b0_hw_rss_hash_set() argument
237 hw_atl_b0_hw_rss_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) hw_atl_b0_hw_rss_set() argument
273 hw_atl_b0_hw_offload_set(struct aq_hw_s *self, struct aq_nic_cfg_s *aq_nic_cfg) hw_atl_b0_hw_offload_set() argument
332 hw_atl_b0_hw_init_tx_tc_rate_limit(struct aq_hw_s *self) hw_atl_b0_hw_init_tx_tc_rate_limit() argument
449 hw_atl_b0_hw_init_tx_path(struct aq_hw_s *self) hw_atl_b0_hw_init_tx_path() argument
474 hw_atl_b0_hw_init_rx_rss_ctrl1(struct aq_hw_s *self) hw_atl_b0_hw_init_rx_rss_ctrl1() argument
487 hw_atl_b0_hw_init_rx_path(struct aq_hw_s *self) hw_atl_b0_hw_init_rx_path() argument
536 hw_atl_b0_hw_mac_addr_set(struct aq_hw_s *self, const u8 *mac_addr) hw_atl_b0_hw_mac_addr_set() argument
561 hw_atl_b0_hw_init(struct aq_hw_s *self, const u8 *mac_addr) hw_atl_b0_hw_init() argument
631 hw_atl_b0_hw_ring_tx_start(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_tx_start() argument
638 hw_atl_b0_hw_ring_rx_start(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_rx_start() argument
645 hw_atl_b0_hw_start(struct aq_hw_s *self) hw_atl_b0_hw_start() argument
653 hw_atl_b0_hw_tx_ring_tail_update(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_tx_ring_tail_update() argument
661 hw_atl_b0_hw_ring_tx_xmit(struct aq_hw_s *self, struct aq_ring_s *ring, unsigned int frags) hw_atl_b0_hw_ring_tx_xmit() argument
749 hw_atl_b0_hw_ring_rx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) hw_atl_b0_hw_ring_rx_init() argument
791 hw_atl_b0_hw_ring_tx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) hw_atl_b0_hw_ring_tx_init() argument
820 hw_atl_b0_hw_ring_rx_fill(struct aq_hw_s *self, struct aq_ring_s *ring, unsigned int sw_tail_old) hw_atl_b0_hw_ring_rx_fill() argument
840 hw_atl_b0_hw_ring_hwts_rx_fill(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_hwts_rx_fill() argument
862 hw_atl_b0_hw_ring_hwts_rx_receive(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_hwts_rx_receive() argument
880 hw_atl_b0_hw_ring_tx_head_update(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_tx_head_update() argument
906 hw_atl_b0_hw_ring_rx_receive(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_rx_receive() argument
1006 hw_atl_b0_hw_irq_enable(struct aq_hw_s *self, u64 mask) hw_atl_b0_hw_irq_enable() argument
1013 hw_atl_b0_hw_irq_disable(struct aq_hw_s *self, u64 mask) hw_atl_b0_hw_irq_disable() argument
1023 hw_atl_b0_hw_irq_read(struct aq_hw_s *self, u64 *mask) hw_atl_b0_hw_irq_read() argument
1032 hw_atl_b0_hw_packet_filter_set(struct aq_hw_s *self, unsigned int packet_filter) hw_atl_b0_hw_packet_filter_set() argument
1070 hw_atl_b0_hw_multicast_list_set(struct aq_hw_s *self, u8 ar_mac [AQ_HW_MULTICAST_ADDRESS_MAX] [ETH_ALEN], u32 count) hw_atl_b0_hw_multicast_list_set() argument
1110 hw_atl_b0_hw_interrupt_moderation_set(struct aq_hw_s *self) hw_atl_b0_hw_interrupt_moderation_set() argument
1199 hw_atl_b0_hw_stop(struct aq_hw_s *self) hw_atl_b0_hw_stop() argument
1223 hw_atl_b0_hw_ring_tx_stop(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_tx_stop() argument
1230 hw_atl_b0_hw_ring_rx_stop(struct aq_hw_s *self, struct aq_ring_s *ring) hw_atl_b0_hw_ring_rx_stop() argument
1240 hw_atl_b0_get_ptp_ts(struct aq_hw_s *self, u64 *stamp) hw_atl_b0_get_ptp_ts() argument
1299 hw_atl_b0_adj_sys_clock(struct aq_hw_s *self, s64 delta) hw_atl_b0_adj_sys_clock() argument
1308 hw_atl_b0_set_sys_clock(struct aq_hw_s *self, u64 time, u64 ts) hw_atl_b0_set_sys_clock() argument
1315 hw_atl_b0_ts_to_sys_clock(struct aq_hw_s *self, u64 ts, u64 *time) hw_atl_b0_ts_to_sys_clock() argument
1321 hw_atl_b0_adj_clock_freq(struct aq_hw_s *self, s32 ppb) hw_atl_b0_adj_clock_freq() argument
1343 hw_atl_b0_gpio_pulse(struct aq_hw_s *self, u32 index, u64 start, u32 period) hw_atl_b0_gpio_pulse() argument
1361 hw_atl_b0_extts_gpio_enable(struct aq_hw_s *self, u32 index, u32 enable) hw_atl_b0_extts_gpio_enable() argument
1370 hw_atl_b0_get_sync_ts(struct aq_hw_s *self, u64 *ts) hw_atl_b0_get_sync_ts() argument
1394 hw_atl_b0_rx_extract_ts(struct aq_hw_s *self, u8 *p, unsigned int len, u64 *timestamp) hw_atl_b0_rx_extract_ts() argument
1427 hw_atl_b0_extract_hwts(struct aq_hw_s *self, u8 *p, unsigned int len, u64 *timestamp) hw_atl_b0_extract_hwts() argument
1448 hw_atl_b0_hw_fl3l4_clear(struct aq_hw_s *self, struct aq_rx_filter_l3l4 *data) hw_atl_b0_hw_fl3l4_clear() argument
1474 hw_atl_b0_hw_fl3l4_set(struct aq_hw_s *self, struct aq_rx_filter_l3l4 *data) hw_atl_b0_hw_fl3l4_set() argument
1511 hw_atl_b0_hw_fl2_set(struct aq_hw_s *self, struct aq_rx_filter_l2 *data) hw_atl_b0_hw_fl2_set() argument
1536 hw_atl_b0_hw_fl2_clear(struct aq_hw_s *self, struct aq_rx_filter_l2 *data) hw_atl_b0_hw_fl2_clear() argument
1556 hw_atl_b0_hw_vlan_set(struct aq_hw_s *self, struct aq_rx_filter_vlan *aq_vlans) hw_atl_b0_hw_vlan_set() argument
1582 hw_atl_b0_hw_vlan_ctrl(struct aq_hw_s *self, bool enable) hw_atl_b0_hw_vlan_ctrl() argument
1590 hw_atl_b0_set_loopback(struct aq_hw_s *self, u32 mode, bool enable) hw_atl_b0_set_loopback() argument
1615 hw_atl_b0_ts_ready_and_latch_high_get(struct aq_hw_s *self) hw_atl_b0_ts_ready_and_latch_high_get() argument
1623 hw_atl_b0_get_mac_temp(struct aq_hw_s *self, u32 *temp) hw_atl_b0_get_mac_temp() argument
[all...]
/third_party/python/Lib/test/test_importlib/source/
H A Dtest_file_loader.py32 def setUp(self):
33 self.name = 'spam'
34 self.filepath = os.path.join('ham', self.name + '.py')
35 self.loader = self.machinery.SourceFileLoader(self.name, self.filepath)
37 def test_load_module_API(self):
38 class Tester(self
[all...]
/third_party/node/deps/v8/third_party/jinja2/
H A Dbccache.py46 def __init__(self, environment, key, checksum):
47 self.environment = environment
48 self.key = key
49 self.checksum = checksum
50 self.reset()
52 def reset(self):
54 self.code = None
56 def load_bytecode(self, f):
61 self.reset()
65 if self
[all...]
/third_party/node/tools/inspector_protocol/jinja2/
H A Dbccache.py69 def __init__(self, environment, key, checksum):
70 self.environment = environment
71 self.key = key
72 self.checksum = checksum
73 self.reset()
75 def reset(self):
77 self.code = None
79 def load_bytecode(self, f):
84 self.reset()
88 if self
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dschema_generator.py47 def __init__(self,
66 GeneratorOptions.__init__(self, **kwargs)
68 self.prefixText = prefixText
71 self.genFuncPointers = genFuncPointers
74 self.protectFile = protectFile
77 self.protectFeature = protectFeature
80 self.protectProto = protectProto
83 self.protectProtoStr = protectProtoStr
86 self.apicall = apicall
89 self
[all...]
/third_party/skia/third_party/externals/jinja2/
H A Dbccache.py46 def __init__(self, environment, key, checksum):
47 self.environment = environment
48 self.key = key
49 self.checksum = checksum
50 self.reset()
52 def reset(self):
54 self.code = None
56 def load_bytecode(self, f):
61 self.reset()
65 if self
[all...]
/third_party/python/Lib/turtledemo/
H A Dplanet_and_moon.py25 def __init__(self):
26 self.planets = []
27 self.t = 0
28 self.dt = 0.01
29 def init(self):
30 for p in self.planets:
32 def start(self):
34 self.t += self.dt
35 for p in self
[all...]
/third_party/mesa3d/src/intel/genxml/
H A Dgen_bits_header.py134 def __init__(self, z):
136 self.tenx = int(float(z) * 10)
138 def __lt__(self, other):
139 return self.tenx < other.tenx
141 def __hash__(self):
142 return hash(self.tenx)
144 def __eq__(self, other):
145 return self.tenx == other.tenx
147 def prefix(self, token):
148 gen = self
[all...]
/third_party/python/Tools/c-analyzer/c_analyzer/
H A Dinfo.py27 def __init__(self, name):
91 def __init__(self, item, typedecl=None, **extra):
93 self.item = item
110 self.typedecl = typedecl
111 self._extra = extra
112 self._locked = True
114 self._validate()
116 def _validate(self):
117 item = self.item
118 extra = self
[all...]
/third_party/python/Lib/test/test_importlib/frozen/
H A Dtest_loader.py43 def exec_module(self, name, origname=None):
45 is_package = self.machinery.FrozenImporter.is_package(name)
46 spec = self.machinery.ModuleSpec(
48 self.machinery.FrozenImporter,
61 self.machinery.FrozenImporter.exec_module(module)
65 self.assertTrue(module.initialized)
66 self.assertTrue(hasattr(module, '__spec__'))
67 self.assertEqual(module.__spec__.origin, 'frozen')
70 def test_module(self):
72 module, output = self
[all...]
/third_party/python/Lib/zoneinfo/
H A D_zoneinfo.py102 def key(self):
103 return self._key
105 def utcoffset(self, dt):
106 return self._find_trans(dt).utcoff
108 def dst(self, dt):
109 return self._find_trans(dt).dstoff
111 def tzname(self, dt):
112 return self._find_trans(dt).tzname
114 def fromutc(self, dt):
119 if dt.tzinfo is not self
[all...]
/third_party/python/Lib/lib2to3/tests/data/
H A Dpy3_test_grammar.py19 def testBackslash(self):
23 self.assertEquals(x, 2, 'backslash for line continuation')
27 self.assertEquals(x, 0, 'backslash ending comment')
29 def testPlainIntegers(self):
30 self.assertEquals(type(000), type(0))
31 self.assertEquals(0xff, 255)
32 self.assertEquals(0o377, 255)
33 self.assertEquals(2147483647, 0o17777777777)
34 self.assertEquals(0b1001, 9)
36 self
[all...]
/third_party/python/Modules/_io/
H A Dtextio.c53 textiobase_detach(PyObject *self, PyObject *Py_UNUSED(ignored)) in textiobase_detach() argument
66 textiobase_read(PyObject *self, PyObject *args) in textiobase_read() argument
78 textiobase_readline(PyObject *self, PyObject *args) in textiobase_readline() argument
90 textiobase_write(PyObject *self, PyObject *args) in textiobase_write() argument
102 textiobase_encoding_get(PyObject *self, void *context) in textiobase_encoding_get() argument
116 textiobase_newlines_get(PyObject *self, void *context) in textiobase_newlines_get() argument
128 textiobase_errors_get(PyObject *self, void *context) in textiobase_errors_get() argument
229 _io_IncrementalNewlineDecoder___init___impl(nldecoder_object *self, in _io_IncrementalNewlineDecoder___init___impl() argument
242 Py_XSETREF(self->errors, errors); in _io_IncrementalNewlineDecoder___init___impl()
243 Py_XSETREF(self in _io_IncrementalNewlineDecoder___init___impl()
252 incrementalnewlinedecoder_dealloc(nldecoder_object *self) incrementalnewlinedecoder_dealloc() argument
296 nldecoder_object *self = (nldecoder_object *) myself; _PyIncrementalNewlineDecoder_decode() local
494 _io_IncrementalNewlineDecoder_decode_impl(nldecoder_object *self, PyObject *input, int final) _io_IncrementalNewlineDecoder_decode_impl() argument
506 _io_IncrementalNewlineDecoder_getstate_impl(nldecoder_object *self) _io_IncrementalNewlineDecoder_getstate_impl() argument
551 _io_IncrementalNewlineDecoder_setstate(nldecoder_object *self, PyObject *state) _io_IncrementalNewlineDecoder_setstate() argument
587 _io_IncrementalNewlineDecoder_reset_impl(nldecoder_object *self) _io_IncrementalNewlineDecoder_reset_impl() argument
601 incrementalnewlinedecoder_newlines_get(nldecoder_object *self, void *context) incrementalnewlinedecoder_newlines_get() argument
697 ascii_encode(textio *self, PyObject *text) ascii_encode() argument
703 utf16be_encode(textio *self, PyObject *text) utf16be_encode() argument
710 utf16le_encode(textio *self, PyObject *text) utf16le_encode() argument
717 utf16_encode(textio *self, PyObject *text) utf16_encode() argument
732 utf32be_encode(textio *self, PyObject *text) utf32be_encode() argument
739 utf32le_encode(textio *self, PyObject *text) utf32le_encode() argument
746 utf32_encode(textio *self, PyObject *text) utf32_encode() argument
761 utf8_encode(textio *self, PyObject *text) utf8_encode() argument
767 latin1_encode(textio *self, PyObject *text) latin1_encode() argument
816 set_newline(textio *self, const char *newline) set_newline() argument
852 _textiowrapper_set_decoder(textio *self, PyObject *codec_info, const char *errors) _textiowrapper_set_decoder() argument
907 _textiowrapper_set_encoder(textio *self, PyObject *codec_info, const char *errors) _textiowrapper_set_encoder() argument
951 _textiowrapper_fix_encoder_state(textio *self) _textiowrapper_fix_encoder_state() argument
1064 _io_TextIOWrapper___init___impl(textio *self, PyObject *buffer, const char *encoding, PyObject *errors, const char *newline, int line_buffering, int write_through) _io_TextIOWrapper___init___impl() argument
1247 textiowrapper_change_encoding(textio *self, PyObject *encoding, PyObject *errors, int newline_changed) textiowrapper_change_encoding() argument
1320 _io_TextIOWrapper_reconfigure_impl(textio *self, PyObject *encoding, PyObject *errors, PyObject *newline_obj, PyObject *line_buffering_obj, PyObject *write_through_obj) _io_TextIOWrapper_reconfigure_impl() argument
1376 textiowrapper_clear(textio *self) textiowrapper_clear() argument
1395 textiowrapper_dealloc(textio *self) textiowrapper_dealloc() argument
1409 textiowrapper_traverse(textio *self, visitproc visit, void *arg) textiowrapper_traverse() argument
1488 _io_TextIOWrapper_detach_impl(textio *self) _io_TextIOWrapper_detach_impl() argument
1506 _textiowrapper_writeflush(textio *self) _textiowrapper_writeflush() argument
1583 _io_TextIOWrapper_write_impl(textio *self, PyObject *text) _io_TextIOWrapper_write_impl() argument
1722 textiowrapper_set_decoded_chars(textio *self, PyObject *chars) textiowrapper_set_decoded_chars() argument
1729 textiowrapper_get_decoded_chars(textio *self, Py_ssize_t n) textiowrapper_get_decoded_chars() argument
1765 textiowrapper_read_chunk(textio *self, Py_ssize_t size_hint) textiowrapper_read_chunk() argument
1898 _io_TextIOWrapper_read_impl(textio *self, Py_ssize_t n) _io_TextIOWrapper_read_impl() argument
2108 _textiowrapper_readline(textio *self, Py_ssize_t limit) _textiowrapper_readline() argument
2276 _io_TextIOWrapper_readline_impl(textio *self, Py_ssize_t size) _io_TextIOWrapper_readline_impl() argument
2365 _textiowrapper_decoder_setstate(textio *self, cookie_type *cookie) _textiowrapper_decoder_setstate() argument
2389 _textiowrapper_encoder_reset(textio *self, int start_of_stream) _textiowrapper_encoder_reset() argument
2408 _textiowrapper_encoder_setstate(textio *self, cookie_type *cookie) _textiowrapper_encoder_setstate() argument
2423 _io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence) _io_TextIOWrapper_seek_impl() argument
2617 _io_TextIOWrapper_tell_impl(textio *self) _io_TextIOWrapper_tell_impl() argument
2852 _io_TextIOWrapper_truncate_impl(textio *self, PyObject *pos) _io_TextIOWrapper_truncate_impl() argument
2868 textiowrapper_repr(textio *self) textiowrapper_repr() argument
2940 _io_TextIOWrapper_fileno_impl(textio *self) _io_TextIOWrapper_fileno_impl() argument
2952 _io_TextIOWrapper_seekable_impl(textio *self) _io_TextIOWrapper_seekable_impl() argument
2964 _io_TextIOWrapper_readable_impl(textio *self) _io_TextIOWrapper_readable_impl() argument
2976 _io_TextIOWrapper_writable_impl(textio *self) _io_TextIOWrapper_writable_impl() argument
2988 _io_TextIOWrapper_isatty_impl(textio *self) _io_TextIOWrapper_isatty_impl() argument
3000 _io_TextIOWrapper_flush_impl(textio *self) _io_TextIOWrapper_flush_impl() argument
3016 _io_TextIOWrapper_close_impl(textio *self) _io_TextIOWrapper_close_impl() argument
3060 textiowrapper_iternext(textio *self) textiowrapper_iternext() argument
3098 textiowrapper_name_get(textio *self, void *context) textiowrapper_name_get() argument
3105 textiowrapper_closed_get(textio *self, void *context) textiowrapper_closed_get() argument
3112 textiowrapper_newlines_get(textio *self, void *context) textiowrapper_newlines_get() argument
3125 textiowrapper_errors_get(textio *self, void *context) textiowrapper_errors_get() argument
3133 textiowrapper_chunk_size_get(textio *self, void *context) textiowrapper_chunk_size_get() argument
3140 textiowrapper_chunk_size_set(textio *self, PyObject *arg, void *context) textiowrapper_chunk_size_set() argument
[all...]
/third_party/python/Modules/
H A D_elementtree.c216 create_extra(ElementObject* self, PyObject* attrib) in create_extra() argument
218 self->extra = PyObject_Malloc(sizeof(ElementObjectExtra)); in create_extra()
219 if (!self->extra) { in create_extra()
225 self->extra->attrib = attrib; in create_extra()
227 self->extra->length = 0; in create_extra()
228 self->extra->allocated = STATIC_CHILDREN; in create_extra()
229 self->extra->children = self->extra->_children; in create_extra()
254 clear_extra(ElementObject* self) in clear_extra() argument
258 if (!self in clear_extra()
275 ElementObject* self; create_new_element() local
380 element_init(PyObject *self, PyObject *args, PyObject *kwds) element_init() argument
433 element_resize(ElementObject* self, Py_ssize_t extra) element_resize() argument
497 element_add_subelement(ElementObject* self, PyObject* element) element_add_subelement() argument
518 element_get_attrib(ElementObject* self) element_get_attrib() argument
534 element_get_text(ElementObject* self) element_get_text() argument
556 element_get_tail(ElementObject* self) element_get_tail() argument
578 subelement(PyObject *self, PyObject *args, PyObject *kwds) subelement() argument
623 element_gc_traverse(ElementObject *self, visitproc visit, void *arg) element_gc_traverse() argument
640 element_gc_clear(ElementObject *self) element_gc_clear() argument
654 element_dealloc(ElementObject* self) element_dealloc() argument
682 _elementtree_Element_append_impl(ElementObject *self, PyObject *subelement) _elementtree_Element_append_impl() argument
697 _elementtree_Element_clear_impl(ElementObject *self) _elementtree_Element_clear_impl() argument
717 _elementtree_Element___copy___impl(ElementObject *self) _elementtree_Element___copy___impl() argument
765 _elementtree_Element___deepcopy___impl(ElementObject *self, PyObject *memo) _elementtree_Element___deepcopy___impl() argument
903 _elementtree_Element___sizeof___impl(ElementObject *self) _elementtree_Element___sizeof___impl() argument
934 _elementtree_Element___getstate___impl(ElementObject *self) _elementtree_Element___getstate___impl() argument
971 element_setstate_from_attributes(ElementObject *self, PyObject *tag, PyObject *attrib, PyObject *text, PyObject *tail, PyObject *children) element_setstate_from_attributes() argument
1064 element_setstate_from_Python(ElementObject *self, PyObject *state) element_setstate_from_Python() argument
1097 _elementtree_Element___setstate__(ElementObject *self, PyObject *state) _elementtree_Element___setstate__() argument
1174 _elementtree_Element_extend(ElementObject *self, PyObject *elements) _elementtree_Element_extend() argument
1214 _elementtree_Element_find_impl(ElementObject *self, PyObject *path, PyObject *namespaces) _elementtree_Element_find_impl() argument
1257 _elementtree_Element_findtext_impl(ElementObject *self, PyObject *path, PyObject *default_value, PyObject *namespaces) _elementtree_Element_findtext_impl() argument
1311 _elementtree_Element_findall_impl(ElementObject *self, PyObject *path, PyObject *namespaces) _elementtree_Element_findall_impl() argument
1359 _elementtree_Element_iterfind_impl(ElementObject *self, PyObject *path, PyObject *namespaces) _elementtree_Element_iterfind_impl() argument
1380 _elementtree_Element_get_impl(ElementObject *self, PyObject *key, PyObject *default_value) _elementtree_Element_get_impl() argument
1411 _elementtree_Element_iter_impl(ElementObject *self, PyObject *tag) _elementtree_Element_iter_impl() argument
1435 _elementtree_Element_itertext_impl(ElementObject *self) _elementtree_Element_itertext_impl() argument
1445 ElementObject* self = (ElementObject*) self_; element_getitem() local
1469 _elementtree_Element_insert_impl(ElementObject *self, Py_ssize_t index, PyObject *subelement) _elementtree_Element_insert_impl() argument
1508 _elementtree_Element_items_impl(ElementObject *self) _elementtree_Element_items_impl() argument
1523 _elementtree_Element_keys_impl(ElementObject *self) _elementtree_Element_keys_impl() argument
1533 element_length(ElementObject* self) element_length() argument
1551 _elementtree_Element_makeelement_impl(ElementObject *self, PyObject *tag, PyObject *attrib) _elementtree_Element_makeelement_impl() argument
1577 _elementtree_Element_remove_impl(ElementObject *self, PyObject *subelement) _elementtree_Element_remove_impl() argument
1623 element_repr(ElementObject* self) element_repr() argument
1654 _elementtree_Element_set_impl(ElementObject *self, PyObject *key, PyObject *value) _elementtree_Element_set_impl() argument
1678 ElementObject* self = (ElementObject*) self_; element_setitem() local
1712 ElementObject* self = (ElementObject*) self_; element_subscr() local
1765 ElementObject* self = (ElementObject*) self_; element_ass_subscr() local
1949 element_tag_getter(ElementObject *self, void *closure) element_tag_getter() argument
1957 element_text_getter(ElementObject *self, void *closure) element_text_getter() argument
1965 element_tail_getter(ElementObject *self, void *closure) element_tail_getter() argument
1973 element_attrib_getter(ElementObject *self, void *closure) element_attrib_getter() argument
1995 element_tag_setter(ElementObject *self, PyObject *value, void *closure) element_tag_setter() argument
2004 element_text_setter(ElementObject *self, PyObject *value, void *closure) element_text_setter() argument
2013 element_tail_setter(ElementObject *self, PyObject *value, void *closure) element_tail_setter() argument
2022 element_attrib_setter(ElementObject *self, PyObject *value, void *closure) element_attrib_setter() argument
2282 create_elementiter(ElementObject *self, PyObject *tag, int gettext) create_elementiter() argument
2397 _elementtree_TreeBuilder___init___impl(TreeBuilderObject *self, PyObject *element_factory, PyObject *comment_factory, PyObject *pi_factory, int insert_comments, int insert_pis) _elementtree_TreeBuilder___init___impl() argument
2441 treebuilder_gc_traverse(TreeBuilderObject *self, visitproc visit, void *arg) treebuilder_gc_traverse() argument
2463 treebuilder_gc_clear(TreeBuilderObject *self) treebuilder_gc_clear() argument
2485 treebuilder_dealloc(TreeBuilderObject *self) treebuilder_dealloc() argument
2601 treebuilder_flush_data(TreeBuilderObject* self) treebuilder_flush_data() argument
2642 treebuilder_append_event(TreeBuilderObject *self, PyObject *action, PyObject *node) treebuilder_append_event() argument
2663 treebuilder_handle_start(TreeBuilderObject* self, PyObject* tag, PyObject* attrib) treebuilder_handle_start() argument
2736 treebuilder_handle_data(TreeBuilderObject* self, PyObject* data) treebuilder_handle_data() argument
2773 treebuilder_handle_end(TreeBuilderObject* self, PyObject* tag) treebuilder_handle_end() argument
2806 treebuilder_handle_comment(TreeBuilderObject* self, PyObject* text) treebuilder_handle_comment() argument
2845 treebuilder_handle_pi(TreeBuilderObject* self, PyObject* target, PyObject* text) treebuilder_handle_pi() argument
2888 treebuilder_handle_start_ns(TreeBuilderObject* self, PyObject* prefix, PyObject* uri) treebuilder_handle_start_ns() argument
2909 treebuilder_handle_end_ns(TreeBuilderObject* self, PyObject* prefix) treebuilder_handle_end_ns() argument
2932 _elementtree_TreeBuilder_data(TreeBuilderObject *self, PyObject *data) _elementtree_TreeBuilder_data() argument
2947 _elementtree_TreeBuilder_end(TreeBuilderObject *self, PyObject *tag) _elementtree_TreeBuilder_end() argument
2962 _elementtree_TreeBuilder_comment(TreeBuilderObject *self, PyObject *text) _elementtree_TreeBuilder_comment() argument
2978 _elementtree_TreeBuilder_pi_impl(TreeBuilderObject *self, PyObject *target, PyObject *text) _elementtree_TreeBuilder_pi_impl() argument
2986 treebuilder_done(TreeBuilderObject* self) treebuilder_done() argument
3007 _elementtree_TreeBuilder_close_impl(TreeBuilderObject *self) _elementtree_TreeBuilder_close_impl() argument
3023 _elementtree_TreeBuilder_start_impl(TreeBuilderObject *self, PyObject *tag, PyObject *attrs) _elementtree_TreeBuilder_start_impl() argument
3072 makeuniversal(XMLParserObject* self, const char* string) makeuniversal() argument
3196 expat_default_handler(XMLParserObject* self, const XML_Char* data_in, int data_len) expat_default_handler() argument
3241 expat_start_handler(XMLParserObject* self, const XML_Char* tag_in, const XML_Char **attrib_in) expat_start_handler() argument
3313 expat_data_handler(XMLParserObject* self, const XML_Char* data_in, int data_len) expat_data_handler() argument
3340 expat_end_handler(XMLParserObject* self, const XML_Char* tag_in) expat_end_handler() argument
3366 expat_start_ns_handler(XMLParserObject* self, const XML_Char* prefix_in, const XML_Char *uri_in) expat_start_ns_handler() argument
3421 expat_end_ns_handler(XMLParserObject* self, const XML_Char* prefix_in) expat_end_ns_handler() argument
3452 expat_comment_handler(XMLParserObject* self, const XML_Char* comment_in) expat_comment_handler() argument
3483 expat_start_doctype_handler(XMLParserObject *self, const XML_Char *doctype_name, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset) expat_start_doctype_handler() argument
3544 expat_pi_handler(XMLParserObject* self, const XML_Char* target_in, const XML_Char* data_in) expat_pi_handler() argument
3599 XMLParserObject *self = (XMLParserObject *)type->tp_alloc(type, 0); xmlparser_new() local
3633 _elementtree_XMLParser___init___impl(XMLParserObject *self, PyObject *target, const char *encoding) _elementtree_XMLParser___init___impl() argument
3753 xmlparser_gc_traverse(XMLParserObject *self, visitproc visit, void *arg) xmlparser_gc_traverse() argument
3773 xmlparser_gc_clear(XMLParserObject *self) xmlparser_gc_clear() argument
3799 xmlparser_dealloc(XMLParserObject* self) xmlparser_dealloc() argument
3807 _check_xmlparser(XMLParserObject* self) _check_xmlparser() argument
3818 expat_parse(XMLParserObject* self, const char* data, int data_len, int final) expat_parse() argument
3847 _elementtree_XMLParser_close_impl(XMLParserObject *self) _elementtree_XMLParser_close_impl() argument
3883 _elementtree_XMLParser_feed(XMLParserObject *self, PyObject *data) _elementtree_XMLParser_feed() argument
3929 _elementtree_XMLParser__parse_whole(XMLParserObject *self, PyObject *file) _elementtree_XMLParser__parse_whole() argument
4018 _elementtree_XMLParser__setevents_impl(XMLParserObject *self, PyObject *events_queue, PyObject *events_to_report) _elementtree_XMLParser__setevents_impl() argument
4130 xmlparser_version_getter(XMLParserObject *self, void *closure) xmlparser_version_getter() argument
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/
H A Dscons_app.py48 def __init__(self, app_name, factory_mode):
49 self.app_name = app_name
50 self.factory_mode = factory_mode
51 self.app_env = None
52 self.app_cfg_file = None
53 self.proj_root = os.path.realpath(os.path.join(__file__, '..', '..', '..'))
54 self.app_root = self.app_lookup()
55 self.settings = {}
56 self
[all...]

Completed in 16 milliseconds

1...<<31323334353637383940>>...179