| /OK3568_Linux_fs/yocto/poky/bitbake/lib/ |
| H A D | codegen.py | 87 def __init__(self, indent_with, add_line_information=False): argument 88 self.result = [] 89 self.indent_with = indent_with 90 self.add_line_information = add_line_information 91 self.indentation = 0 92 self.new_lines = 0 94 def write(self, x): argument 95 if self.new_lines: 96 if self.result: 97 self.result.append('\n' * self.new_lines) [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/tests/ |
| H A D | data.py | 18 def __enter__(self): argument 21 def emit(self, record): argument 25 self.handler = handler 28 def __exit__(self, type, value, traceback): argument 30 logger.removeHandler(self.handler) 41 def setUp(self): argument 42 self.d = bb.data.init() 43 self.d["foo"] = "value_of_foo" 44 self.d["bar"] = "value_of_bar" 45 self.d["value_of_foo"] = "value_of_'value_of_foo'" [all …]
|
| H A D | codeparser.py | 22 def setUp(self): argument 23 self.d = bb.data.init() 25 def setEmptyVars(self, varlist): argument 27 self.d.setVar(k, "") 29 def setValues(self, values): argument 31 self.d.setVar(k, v) 33 def assertReferences(self, refs): argument 34 self.assertEqual(self.references, refs) 36 def assertExecs(self, execs): argument 37 self.assertEqual(self.execs, execs) [all …]
|
| H A D | fetch.py | 294 def test_uri(self): argument 295 for test_uri, ref in self.test_uris.items(): 298 self.assertEqual(str(uri), ref['uri']) 301 self.assertEqual(uri.scheme, ref['scheme']) 303 self.assertEqual(uri.userinfo, ref['userinfo']) 304 self.assertEqual(uri.username, ref['username']) 305 self.assertEqual(uri.password, ref['password']) 307 self.assertEqual(uri.hostname, ref['hostname']) 308 self.assertEqual(uri.port, ref['port']) 309 self.assertEqual(uri.hostport, ref['hostport']) [all …]
|
| H A D | event.py | 26 def __init__(self): argument 27 self.event_calls = [] 30 def _store_event_data_string(self, event): argument 33 self.event_calls.append(formatter.format(event)) 35 self.event_calls.append(bb.event.getName(event)) 41 def __init__(self): argument 42 super(EventQueueStub, self).__init__() 44 def send(self, event): argument 45 super(EventQueueStub, self)._store_event_data_string(event) 51 def __init__(self): argument [all …]
|
| H A D | persist_data.py | 16 def _create_data(self): argument 17 return bb.persist_data.persist('TEST_PERSIST_DATA', self.d) 19 def setUp(self): argument 20 self.d = bb.data.init() 21 self.tempdir = tempfile.TemporaryDirectory() 22 self.d['PERSISTENT_DIR'] = self.tempdir.name 23 self.data = self._create_data() 24 self.items = { 29 self.stress_count = 10000 30 self.thread_count = 5 [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/scripts/python/ |
| H A D | exported-sql-viewer.py | 193 def __init__(self, task, param=None, parent=None): argument 194 super(Thread, self).__init__(parent) 195 self.task = task 196 self.param = param 198 def run(self): argument 200 if self.param is None: 201 done, result = self.task() 203 done, result = self.task(self.param) 204 self.done.emit(result) 212 def __init__(self, glb, params, parent=None): argument [all …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/pybootchartgui/pybootchartgui/ |
| H A D | gui.py | 47 def __init__(self, trace, options, xscale): argument 48 gtk.DrawingArea.__init__(self) 50 self.trace = trace 51 self.options = options 53 self.set_can_focus(True) 55 self.add_events(Gdk.EventMask.BUTTON_PRESS_MASK | Gdk.EventMask.BUTTON_RELEASE_MASK) 56 self.connect("button-press-event", self.on_area_button_press) 57 self.connect("button-release-event", self.on_area_button_release) 58 …self.add_events(Gdk.EventMask.POINTER_MOTION_MASK | Gdk.EventMask.POINTER_MOTION_HINT_MASK | Gdk.E… 59 self.connect("motion-notify-event", self.on_area_motion_notify) [all …]
|
| H A D | samples.py | 18 def __init__(self, time): argument 19 self.time = time 20 self.diskdata = [0, 0, 0] 21 def add_diskdata(self, new_diskdata): argument 22 self.diskdata = [ a + b for a, b in zip(self.diskdata, new_diskdata) ] 25 def __init__(self, time, user, sys, io = 0.0, swap = 0.0): argument 26 self.time = time 27 self.user = user 28 self.sys = sys 29 self.io = io [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/layerindexlib/tests/ |
| H A D | layerindexobj.py | 10 def setUp(self): argument 13 LayersTest.setUp(self) 15 self.index = LayerIndexObj() 25 self.index.branches = {} 26 self.index.layerItems = {} 27 self.index.layerBranches = {} 28 self.index.layerDependencies = {} 29 self.index.recipes = {} 30 self.index.machines = {} 31 self.index.distros = {} [all …]
|
| /OK3568_Linux_fs/kernel/scripts/ |
| H A D | bmpconvert | 12 def __init__(self, file_path, force_revers=0, force_swap=0): argument 13 self.file = open(file_path, "rb+") 15 self.bfType = unpack("<h", self.file.read(2))[0] 16 self.bfSize = unpack("<i", self.file.read(4))[0] 17 self.bfReserved1 = unpack("<h", self.file.read(2))[0] 18 self.bfReserved2 = unpack("<h", self.file.read(2))[0] 19 self.bfOffBits = unpack("<i", self.file.read(4))[0] 21 self.biSize = unpack("<i", self.file.read(4))[0] 22 self.biWidth = unpack("<i", self.file.read(4))[0] 23 self.biHeight = unpack("<i", self.file.read(4))[0] [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
| H A D | SchedGui.py | 23 def __init__(self, sched_tracer, title, parent = None, id = -1): argument 24 wx.Frame.__init__(self, parent, id, title) 26 (self.screen_width, self.screen_height) = wx.GetDisplaySize() 27 self.screen_width -= 10 28 self.screen_height -= 10 29 self.zoom = 0.5 30 self.scroll_scale = 20 31 self.sched_tracer = sched_tracer 32 self.sched_tracer.set_root_win(self) 33 (self.ts_start, self.ts_end) = sched_tracer.interval() [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/ |
| H A D | runqueue.py | 89 def __init__(self, total, setscene_total): argument 90 self.completed = 0 91 self.skipped = 0 92 self.failed = 0 93 self.active = 0 94 self.setscene_active = 0 95 self.setscene_covered = 0 96 self.setscene_notcovered = 0 97 self.setscene_total = setscene_total 98 self.total = total [all …]
|
| H A D | cache.py | 84 def __init__(self, filename, metadata): argument 85 self.file_depends = metadata.getVar('__depends', False) 86 self.timestamp = bb.parse.cached_mtime(filename) 87 self.variants = self.listvar('__VARIANTS', metadata) + [''] 88 self.appends = self.listvar('__BBAPPEND', metadata) 89 self.nocache = self.getvar('BB_DONT_CACHE', metadata) 91 self.provides = self.depvar('PROVIDES', metadata) 92 self.rprovides = self.depvar('RPROVIDES', metadata) 93 self.pn = self.getvar('PN', metadata) or bb.parse.vars_from_file(filename,metadata)[0] 94 self.packages = self.listvar('PACKAGES', metadata) [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/utils/ |
| H A D | qemurunner.py | 36 …def __init__(self, machine, rootfs, display, tmpdir, deploy_dir_image, logfile, boottime, dump_dir… argument 40 self.runqemu = None 41 self.runqemu_exited = False 43 self.qemupid = None 45 self.ip = None 47 self.server_ip = None 49 self.netmask = None 51 self.machine = machine 52 self.rootfs = rootfs 53 self.display = display [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bs4/tests/ |
| H A D | test_tree.py | 35 def assertSelects(self, tags, should_match): argument 42 self.assertEqual([tag.string for tag in tags], should_match) 44 def assertSelectsIDs(self, tags, should_match): argument 51 self.assertEqual([tag['id'] for tag in tags], should_match) 61 def test_find_tag(self): argument 62 soup = self.soup("<a>1</a><b>2</b><a>3</a><b>4</b>") 63 self.assertEqual(soup.find("b").string, "2") 65 def test_unicode_text_find(self): argument 66 soup = self.soup('<h1>Räksmörgås</h1>') 67 self.assertEqual(soup.find(string='Räksmörgås'), 'Räksmörgås') [all …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/ |
| H A D | runqemu | 29 def __init__(self, message): argument 130 def __init__(self): argument 131 # The self.d saved vars from self.set(), part of them are from qemuboot.conf 132 self.d = {'QB_KERNEL_ROOT': '/dev/vda'} 136 self.env_vars = ('MACHINE', 148 self.qemu_opt = '' 149 self.qemu_opt_script = '' 150 self.qemuparams = '' 151 self.nfs_server = '' 152 self.rootfs = '' [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/gcc-10.3.1/python/libstdcxx/v6/ |
| H A D | xmethods.py | 31 def __init__(self, name, worker_class): argument 32 gdb.xmethod.XMethod.__init__(self, name) 33 self.worker_class = worker_class 38 def __init__(self, val_type, size): argument 39 self._val_type = val_type 40 self._size = size 42 def null_value(self): argument 44 return nullptr.cast(self._val_type.pointer()).dereference() 47 def __init__(self, val_type, size): argument 48 ArrayWorkerBase.__init__(self, val_type, size) [all …]
|
| H A D | printers.py | 60 def next(self): argument 61 return self.__next__() 208 def __init__(self, val): argument 209 self.val = val 211 def __iter__(self): argument 212 return self 214 def __next__(self): argument 215 if self.val is None: 217 self.val, val = None, self.val 223 def __init__ (self, typename, val): argument [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/gcc-10.3.1/python/libstdcxx/v6/ |
| H A D | xmethods.py | 31 def __init__(self, name, worker_class): argument 32 gdb.xmethod.XMethod.__init__(self, name) 33 self.worker_class = worker_class 38 def __init__(self, val_type, size): argument 39 self._val_type = val_type 40 self._size = size 42 def null_value(self): argument 44 return nullptr.cast(self._val_type.pointer()).dereference() 47 def __init__(self, val_type, size): argument 48 ArrayWorkerBase.__init__(self, val_type, size) [all …]
|
| H A D | printers.py | 60 def next(self): argument 61 return self.__next__() 208 def __init__(self, val): argument 209 self.val = val 211 def __iter__(self): argument 212 return self 214 def __next__(self): argument 215 if self.val is None: 217 self.val, val = None, self.val 223 def __init__ (self, typename, val): argument [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/ |
| H A D | targetcontrol.py | 28 def __init__(self, d, logger): argument 29 self.connection = None 30 self.ip = None 31 self.server_ip = None 32 self.datetime = d.getVar('DATETIME') 33 self.testdir = d.getVar("TEST_LOG_DIR") 34 self.pn = d.getVar("PN") 35 self.logger = logger 38 def deploy(self): argument 40 self.sshlog = os.path.join(self.testdir, "ssh_target_log.%s" % self.datetime) [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/aquantia/atlantic/ |
| H A D | aq_nic.c | 43 static void aq_nic_update_ndev_stats(struct aq_nic_s *self); 45 static void aq_nic_rss_init(struct aq_nic_s *self, unsigned int num_rss_queues) in aq_nic_rss_init() argument 54 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_rss_init() 69 static void aq_nic_cfg_update_num_vecs(struct aq_nic_s *self) in aq_nic_cfg_update_num_vecs() argument 71 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_cfg_update_num_vecs() 75 if (self->irqvecs > AQ_HW_SERVICE_IRQS) in aq_nic_cfg_update_num_vecs() 76 cfg->vecs = min(cfg->vecs, self->irqvecs - AQ_HW_SERVICE_IRQS); in aq_nic_cfg_update_num_vecs() 80 if (ATL_HW_IS_CHIP_FEATURE(self->aq_hw, ANTIGUA)) { in aq_nic_cfg_update_num_vecs() 92 aq_nic_rss_init(self, cfg->num_rss_queues); in aq_nic_cfg_update_num_vecs() 96 void aq_nic_cfg_start(struct aq_nic_s *self) in aq_nic_cfg_start() argument [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/pysh/ |
| H A D | pyshlex.py | 129 def __init__(self, heredoc = False): argument 131 self._buffer = [] 134 self._stack = [] 135 self._escapable = None 137 self._heredoc = heredoc 139 def add(self, data, eof=False): argument 145 self._buffer += list(data) 146 self._parse(eof) 148 result = self._stack[0] 149 remaining = ''.join(self._buffer) [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/hashserv/ |
| H A D | server.py | 21 def __init__(self, sample): argument 22 self.sample = sample 24 def start(self): argument 25 self.start_time = time.perf_counter() 27 def end(self): argument 28 self.sample.add(time.perf_counter() - self.start_time) 30 def __enter__(self): argument 31 self.start() 32 return self 34 def __exit__(self, *args, **kwargs): argument [all …]
|