/third_party/python/Lib/test/ |
H A D | pickletester.py | 79 def peek(self, *args): 82 def seekable(self): 85 def seek(self, *args): 88 def tell(self): 96 def __init__(self, *args): 97 self._bio = io.BytesIO(*args) 98 self.getvalue = self._bio.getvalue 99 self.read = self [all...] |
H A D | test_weakref.py | 27 def method(self): 34 def __call__(self, x): 35 self.bar = x 47 def __init__(self, arg): 48 self.arg = arg 49 def __repr__(self): 50 return "<Object %r>" % self.arg 51 def __eq__(self, other): 53 return self.arg == other.arg 55 def __lt__(self, othe [all...] |
H A D | test_tarfile.py | 67 def mode(self): 68 return self.prefix + self.suffix 96 def setUp(self): 97 self.tar = tarfile.open(self.tarname, mode=self.mode, 100 def tearDown(self): 101 self.tar.close() 106 def test_fileobj_regular_file(self) [all...] |
H A D | test_random.py | 18 # Subclasses must arrange for self.gen to retrieve the Random instance 21 def randomlist(self, n): 23 return [self.gen.random() for i in range(n)] 25 def test_autoseed(self): 26 self.gen.seed() 27 state1 = self.gen.getstate() 29 self.gen.seed() # different seeds at different times 30 state2 = self.gen.getstate() 31 self.assertNotEqual(state1, state2) 33 def test_saverestore(self) [all...] |
H A D | multibytecodec_support.py | 26 def setUp(self): 27 if self.codec is None: 28 self.codec = codecs.lookup(self.encoding) 29 self.encode = self.codec.encode 30 self.decode = self.codec.decode 31 self.reader = self [all...] |
H A D | test_multibytecodec.py | 35 def test_nullcoding(self): 37 self.assertEqual(b''.decode(enc), '') 38 self.assertEqual(str(b'', enc), '') 39 self.assertEqual(''.encode(enc), b'') 41 def test_str_decode(self): 43 self.assertEqual('abcd'.encode(enc), b'abcd') 45 def test_errorcallback_longindex(self): 49 self.assertRaises(IndexError, dec, 52 def test_errorcallback_custom_ignore(self): 57 self [all...] |
H A D | test_traceback.py | 35 def get_exception_format(self, func, exc): 43 def syntax_error_with_caret(self): 46 def syntax_error_with_caret_2(self): 49 def syntax_error_with_caret_range(self): 52 def syntax_error_bad_indentation(self): 55 def syntax_error_with_caret_non_ascii(self): 58 def syntax_error_bad_indentation2(self): 61 def tokenizer_error_with_caret_range(self): 64 def test_caret(self): 65 err = self [all...] |
H A D | test_strptime.py | 17 def test_basic(self): 18 self.assertEqual(_strptime._getlang(), locale.getlocale(locale.LC_TIME)) 28 def setUp(self): 30 self.time_tuple = time.localtime() 31 self.LT_ins = _strptime.LocaleTime() 33 def compare_against_time(self, testing, directive, tuple_position, 39 strftime_output = time.strftime(directive, self.time_tuple).lower() 40 comparison = testing[self.time_tuple[tuple_position]] 41 self.assertIn(strftime_output, testing, 43 self [all...] |
/third_party/node/deps/brotli/c/enc/ |
H A D | metablock_inc.h | 46 MemoryManager* m, FN(BlockSplitter)* self, size_t alphabet_size, in InitBlockSplitter() 54 self->alphabet_size_ = alphabet_size; in InitBlockSplitter() 55 self->min_block_size_ = min_block_size; in InitBlockSplitter() 56 self->split_threshold_ = split_threshold; in InitBlockSplitter() 57 self->num_blocks_ = 0; in InitBlockSplitter() 58 self->split_ = split; in InitBlockSplitter() 59 self->histograms_size_ = histograms_size; in InitBlockSplitter() 60 self->target_block_size_ = min_block_size; in InitBlockSplitter() 61 self->block_size_ = 0; in InitBlockSplitter() 62 self in InitBlockSplitter() 45 InitBlockSplitter( MemoryManager* m, FN(BlockSplitter)* self, size_t alphabet_size, size_t min_block_size, double split_threshold, size_t num_symbols, BlockSplit* split, HistogramType** histograms, size_t* histograms_size) InitBlockSplitter() argument [all...] |
/third_party/skia/third_party/externals/brotli/c/enc/ |
H A D | metablock_inc.h | 46 MemoryManager* m, FN(BlockSplitter)* self, size_t alphabet_size, in InitBlockSplitter() 54 self->alphabet_size_ = alphabet_size; in InitBlockSplitter() 55 self->min_block_size_ = min_block_size; in InitBlockSplitter() 56 self->split_threshold_ = split_threshold; in InitBlockSplitter() 57 self->num_blocks_ = 0; in InitBlockSplitter() 58 self->split_ = split; in InitBlockSplitter() 59 self->histograms_size_ = histograms_size; in InitBlockSplitter() 60 self->target_block_size_ = min_block_size; in InitBlockSplitter() 61 self->block_size_ = 0; in InitBlockSplitter() 62 self in InitBlockSplitter() 45 InitBlockSplitter( MemoryManager* m, FN(BlockSplitter)* self, size_t alphabet_size, size_t min_block_size, double split_threshold, size_t num_symbols, BlockSplit* split, HistogramType** histograms, size_t* histograms_size) InitBlockSplitter() argument [all...] |
/third_party/node/tools/gyp/pylib/gyp/generator/ |
H A D | android.py | 108 def __init__(self, android_top_dir): 109 self.android_top_dir = android_top_dir 112 self, 139 self.fp = open(output_filename, "w") 141 self.fp.write(header) 143 self.qualified_target = qualified_target 144 self.relative_target = relative_target 145 self.path = base_path 146 self.target = spec["target_name"] 147 self [all...] |
/third_party/python/Lib/test/test_asyncio/ |
H A D | functional.py | 15 def new_loop(self): 18 def run_loop_briefly(self, *, delay=0.01): 19 self.loop.run_until_complete(asyncio.sleep(delay)) 21 def loop_exception_handler(self, loop, context): 22 self.__unhandled_exceptions.append(context) 23 self.loop.default_exception_handler(context) 25 def setUp(self): 26 self.loop = self.new_loop() 29 self [all...] |
H A D | test_tasks.py | 66 def __repr__(self): 69 def __call__(self, *args): 74 def send(self, v): 77 def throw(self, *exc): 80 def close(self): 83 def __await__(self): 84 return self 92 def new_task(self, loop, coro, name='TestTask', context=None): 93 return self.__class__.Task(coro, loop=loop, name=name, context=context) 95 def new_future(self, loo [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/ |
H A D | entity_db.py | 35 def makeRegistry(self): 43 def getNamePrefix(self): 51 def getPlatformRequires(self): 68 def getSystemTypes(self): 77 def getGeneratedDirs(self): 91 def populateMacros(self): 92 """Perform API-specific calls, if any, to self.addMacro() and self.addMacros(). 95 self.addMacros(..., ..., [..., "flags"]), 103 def populateEntities(self) [all...] |
/third_party/skia/infra/bots/recipe_modules/flavor/ |
H A D | android.py | 17 def __init__(self, m, app_name): 18 super(AndroidFlavor, self).__init__(m, app_name) 19 self._ever_ran_adb = False 20 self.ADB_BINARY = '/usr/bin/adb.1.0.35' 21 self.ADB_PUB_KEY = '/home/chrome-bot/.android/adbkey' 22 if 'skia' not in self.m.vars.swarming_bot_id: 23 self.ADB_BINARY = '/opt/infra-android/tools/adb' 24 self.ADB_PUB_KEY = ('/home/chrome-bot/.android/' 29 self.device_dirs = default.DeviceDirs( 44 self [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ |
H A D | android.py | 108 def __init__(self, android_top_dir): 109 self.android_top_dir = android_top_dir 112 self, 139 self.fp = open(output_filename, "w") 141 self.fp.write(header) 143 self.qualified_target = qualified_target 144 self.relative_target = relative_target 145 self.path = base_path 146 self.target = spec["target_name"] 147 self [all...] |
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | descriptor_test.py | 67 def setUp(self): 95 self.pool = self.GetDescriptorPool() 96 self.pool.Add(file_proto) 97 self.my_file = self.pool.FindFileByName(file_proto.name) 98 self.my_message = self.my_file.message_types_by_name[message_proto.name] 99 self.my_enum = self [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_ring.c | 61 static int aq_get_rxpages(struct aq_ring_s *self, struct aq_ring_buff_s *rxbuf, in aq_get_rxpages() argument 73 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages() 74 self->stats.rx.pg_flips++; in aq_get_rxpages() 75 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages() 81 aq_nic_get_dev(self->aq_nic)); in aq_get_rxpages() 82 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages() 83 self->stats.rx.pg_losts++; in aq_get_rxpages() 84 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages() 88 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages() 89 self in aq_get_rxpages() 108 aq_ring_alloc(struct aq_ring_s *self, struct aq_nic_s *aq_nic) aq_ring_alloc() argument 137 aq_ring_tx_alloc(struct aq_ring_s *self, struct aq_nic_s *aq_nic, unsigned int idx, struct aq_nic_cfg_s *aq_nic_cfg) aq_ring_tx_alloc() argument 164 aq_ring_rx_alloc(struct aq_ring_s *self, struct aq_nic_s *aq_nic, unsigned int idx, struct aq_nic_cfg_s *aq_nic_cfg) aq_ring_rx_alloc() argument 197 aq_ring_hwts_rx_alloc(struct aq_ring_s *self, struct aq_nic_s *aq_nic, unsigned int idx, unsigned int size, unsigned int dx_size) aq_ring_hwts_rx_alloc() argument 220 aq_ring_init(struct aq_ring_s *self, const enum atl_ring_type ring_type) aq_ring_init() argument 275 aq_ring_tx_clean(struct aq_ring_s *self) aq_ring_tx_clean() argument 317 aq_rx_checksum(struct aq_ring_s *self, struct aq_ring_buff_s *buff, struct sk_buff *skb) aq_rx_checksum() argument 342 aq_ring_rx_clean(struct aq_ring_s *self, struct napi_struct *napi, int *work_done, int budget) aq_ring_rx_clean() argument 514 aq_ring_hwts_rx_clean(struct aq_ring_s *self, struct aq_nic_s *aq_nic) aq_ring_hwts_rx_clean() argument 531 aq_ring_rx_fill(struct aq_ring_s *self) aq_ring_rx_fill() argument 561 aq_ring_rx_deinit(struct aq_ring_s *self) aq_ring_rx_deinit() argument 574 aq_ring_free(struct aq_ring_s *self) aq_ring_free() argument 590 aq_ring_fill_stats_data(struct aq_ring_s *self, u64 *data) aq_ring_fill_stats_data() argument [all...] |
/third_party/python/Lib/asyncio/ |
H A D | transports.py | 14 def __init__(self, extra=None): 17 self._extra = extra 19 def get_extra_info(self, name, default=None): 21 return self._extra.get(name, default) 23 def is_closing(self): 27 def close(self): 37 def set_protocol(self, protocol): 41 def get_protocol(self): 51 def is_reading(self): 55 def pause_reading(self) [all...] |
/third_party/node/deps/v8/tools/testrunner/testproc/ |
H A D | variant_test.py | 22 def __init__(self): 23 super(FakeResultObserver, self).__init__() 25 self.results = set() 27 def result_for(self, test, result): 28 self.results.add((test, result)) 33 def __init__(self, filter_predicate): 34 super(FakeFilter, self).__init__() 36 self._filter_predicate = filter_predicate 38 self.loaded = set() 39 self [all...] |
/third_party/python/Lib/idlelib/ |
H A D | calltip_w.py | 22 def __init__(self, text_widget): 27 # Note: The Text widget will be accessible as self.anchor_widget 30 self.label = self.text = None 31 self.parenline = self.parencol = self.lastline = None 32 self.hideid = self.checkhideid = None 33 self [all...] |
H A D | colorizer.py | 118 def __init__(self): 119 Delegator.__init__(self) 120 self.init_state() 121 self.prog = prog 122 self.idprog = idprog 123 self.LoadTagDefs() 125 def init_state(self): 127 self.after_id = None 128 self.allow_colorizing = True 129 self [all...] |
/third_party/python/Lib/test/test_importlib/extension/ |
H A D | test_loader.py | 20 def setUp(self): 21 if not self.machinery.EXTENSION_SUFFIXES: 27 self.loader = self.machinery.ExtensionFileLoader(util.EXTENSIONS.name, 30 def load_module(self, fullname): 33 return self.loader.load_module(fullname) 35 def test_load_module_API(self): 39 self.loader.load_module() 40 self.loader.load_module(None) 41 with self [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | generator.py | 116 def __init__(self, msg=None): 117 full_msg = 'Missing generator options object self.genOpts' 126 def __init__(self, msg=None): 127 full_msg = 'Missing Registry object self.registry' 136 def __init__(self, msg=None): 137 full_msg = 'Missing Conventions object self.genOpts.conventions' 149 def __init__(self, 224 self.conventions = conventions 228 self.filename = filename 231 self [all...] |
/third_party/vulkan-headers/registry/ |
H A D | generator.py | 116 def __init__(self, msg=None): 117 full_msg = 'Missing generator options object self.genOpts' 126 def __init__(self, msg=None): 127 full_msg = 'Missing Registry object self.registry' 136 def __init__(self, msg=None): 137 full_msg = 'Missing Conventions object self.genOpts.conventions' 149 def __init__(self, 224 self.conventions = conventions 228 self.filename = filename 231 self [all...] |