Home
last modified time | relevance | path

Searched +full:self +full:- +full:update (Results 1 – 25 of 992) sorted by relevance

12345678910>>...40

/openbmc/openbmc/poky/bitbake/lib/progressbar/
H A Dwidgets.py1 # -*- coding: utf-8 -*-
3 # progressbar - Text progress bar library for Python.
6 # SPDX-License-Identifier: LGPL-2.1-or-later OR BSD-3-Clause-Clear
20 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
39 if hasattr(updatable, 'update'): return updatable.update(pbar)
46 The ProgressBar will call the widget's update value when the widget should
58 def update(self, pbar): member in Widget
61 pbar - a reference to the calling ProgressBar
74 def update(self, pbar, width): member in WidgetHFill
77 pbar - a reference to the calling ProgressBar
[all …]
H A Dprogressbar.py1 # -*- coding: utf-8 -*-
3 # progressbar - Text progress bar library for Python.
8 # SPDX-License-Identifier: LGPL-2.1-or-later OR BSD-3-Clause-Clear
22 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
55 ... pbar.update(i+1)
76 When implementing a widget's update method you are passed a reference to
82 - currval: current progress (0 <= currval <= maxval)
83 - maxval: maximum (and final) value
84 - finished: True if the bar has finished (reached 100%)
85 - start_time: the time when start() method of ProgressBar was called
[all …]
/openbmc/openbmc/meta-security/lib/oeqa/runtime/cases/
H A Dsuricata.py31 def test_suricata_help(self): argument
32 status, output = self.target.run('suricata --help')
35 self.assertEqual(status, 1, msg = msg)
38 def test_ping_openinfosecfoundation_org(self): argument
40 self.tc.target.run('rm -f %s' % dst)
41 (status, output) = self.tc.target.copyTo(self.tmp_path, dst)
43 self.assertEqual(status, 0, msg=msg)
45 status, output = self.target.run('ping -c 1 openinfosecfoundation.org')
47 self.assertEqual(status, 0, msg = msg)
49 @OEHasPackage(['python3-suricata-update'])
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/com/google/gbmc/
H A DHoth.interface.yaml5 - name: SendHostCommand
12 - name: Command
17 - name: Response
22 - self.Error.CommandFailure
23 - self.Error.ResponseFailure
24 - self.Error.InterfaceError
25 - xyz.openbmc_project.Common.Error.Timeout
27 - name: SendTrustedHostCommand
34 - name: Command
39 - name: Response
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dprogress.py7 # SPDX-License-Identifier: GPL-2.0-only
19 ANSI_ESCAPE_REGEX = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')
43 def __init__(self, d, outfile=None): argument
44 self._progress = 0
45 self._data = d
46 self._lastevent = 0
48 self._outfile = outfile
50 self._outfile = StdoutNoopContextManager()
52 def __enter__(self): argument
53 self._outfile.__enter__()
[all …]
/openbmc/qemu/tests/qapi-schema/
H A Dtest-qapi.py11 # See the COPYING file in the top-level directory.
27 def visit_module(self, name): argument
30 def visit_include(self, name, info): argument
33 def visit_enum_type(self, name, info, ifcond, features, members, prefix): argument
39 self._print_if(m.ifcond, indent=8)
40 self._print_features(m.features, indent=8)
41 self._print_if(ifcond)
42 self._print_features(features)
44 def visit_array_type(self, name, info, ifcond, element_type): argument
46 return # suppress built-in arrays
[all …]
/openbmc/skeleton/pyflashbmc/
H A Dbmc_update.py53 shutil.copyfile(files[0], os.path.join(UPDATE_PATH, "image-u-boot-env"))
57 def __init__(self, bus, name): argument
58 super(BmcFlashControl, self).__init__(conn=bus, object_path=name)
60 self.Set(DBUS_NAME, "status", "Idle")
61 self.Set(DBUS_NAME, "filename", "")
62 self.Set(DBUS_NAME, "preserve_network_settings", True)
63 self.Set(DBUS_NAME, "restore_application_defaults", False)
64 self
79 updateViaTftp(self, ip, filename) global() argument
84 update(self, filename) global() argument
89 TftpDownload(self, ip, filename) global() argument
94 download_error_handler(self, filename) global() argument
98 download_complete_handler(self, outfile, filename) global() argument
174 Verify(self) global() argument
218 Cleanup(self) global() argument
231 Abort(self) global() argument
244 GetUpdateProgress(self) global() argument
284 Apply(self) global() argument
312 PrepareForUpdate(self) global() argument
[all...]
/openbmc/openbmc/poky/meta/lib/oe/package_manager/rpm/
H A Drootfs.py4 # SPDX-License-Identifier: GPL-2.0-only
14 def __init__(self, d, manifest_dir, progress_reporter=None, logcatcher=None): argument
15 super(PkgRootfs, self).__init__(d, progress_reporter, logcatcher)
16 self.log_check_regex = r'(unpacking of archive failed|Cannot find package'\
20 self.manifest = PkgManifest(d, manifest_dir)
22 self.pm = RpmPM(d,
24 self.d.getVar('TARGET_VENDOR')
27 self.inc_rpm_image_gen = self.d.getVar('INC_RPM_IMAGE_GEN')
28 if self.inc_rpm_image_gen != "1":
29 bb.utils.remove(self.image_rootfs, True)
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/orm/management/commands/
H A Dlsupdates.py4 # Copyright (C) 2016-2017 Intel Corporation
6 # SPDX-License-Identifier: GPL-2.0-only
41 def __init__(self, *args, **kwargs): argument
42 super(Spinner, self).__init__(*args, **kwargs)
43 self.daemon = True
44 self.signal = True
46 def run(self): argument
47 os.system('setterm -cursor off')
48 while self.signal:
49 for char in ["/", "-", "\\", "|"]:
[all …]
/openbmc/u-boot/tools/binman/etype/
H A D_testing.py1 # SPDX-License-Identifier: GPL-2.0+
5 # Entry-type module for testing purposes. Not used in real images.
22 test-str-fdt: Test string, normally in the node
23 test-int-fdt: Test integer, normally in the node
24 test-str-arg: Test string, normally in the entry arguments
25 test-int-arg: Test integer, normally in the entry arguments
31 return-invalid-entry: Return an invalid entry from GetOffsets()
32 return-unknown-contents: Refuse to provide any contents (to cause a
34 bad-update-contents: Implement ProcessContents() incorrectly so as to
36 never-complete-process-fdt: Refund to process the FDT (to cause a
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/browser/
H A Dtest_most_recent_builds_states.py5 # SPDX-License-Identifier: GPL-2.0-only
7 # Copyright (C) 2013-2016 Intel Corporation
19 """ Test states update correctly in most recent builds area """
21 def _create_build_request(self): argument
32 def _create_recipe(self): argument
38 def _check_build_states(self, build_request): argument
40 url = reverse('all-builds')
41 self.get(url)
44 base_selector = '[data-latest-build-result="%s"] ' % build.id
47 selector = base_selector + '[data-build-state="Queued"]'
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/
H A Dhg.py10 # SPDX-License-Identifier: GPL-2.0-only
26 def supports(self, ud, d): argument
32 def supports_checksum(self, urldata): argument
39 def urldata_init(self, ud, d): argument
73 ud.revision = self.latest_revision(ud, d)
77 def need_update(self, ud, d): argument
85 def try_premirror(self, ud, d): argument
94 def _buildhgcommand(self, ud, d, command): argument
97 command is "fetch", "update", "info"
116 return "%s identify -i %s://%s/%s" % (ud.basecmd, proto, hgroot, ud.module)
[all …]
H A Dbzr.py13 # SPDX-License-Identifier: GPL-2.0-only
24 def supports(self, ud, d): argument
27 def urldata_init(self, ud, d): argument
33 relpath = self._strip_leading_slashes(ud.path)
39 ud.revision = self.latest_revision(ud, d)
43 def _buildbzrcommand(self, ud, d, command): argument
46 command is "fetch", "update", "revno"
61 options.append("-r %s" % ud.revision)
65 elif command == "update":
66 bzrcmd = "%s pull %s --overwrite" % (basecmd, " ".join(options))
[all …]
H A Dosc.py4 # SPDX-License-Identifier: GPL-2.0-only
27 def supports(self, ud, d): argument
33 def urldata_init(self, ud, d): argument
41 relpath = self._strip_leading_slashes(ud.path)
58 def _buildosccommand(self, ud, d, command): argument
61 command is "fetch", "update", "info"
70 config = "-c %s" % self.generate_config(ud, d)
73 options.append("-r %s" % ud.revision)
75 coroot = self._strip_leading_slashes(ud.path)
78 …osccmd = "%s %s -A %s://%s co %s/%s %s" % (basecmd, config, proto, ud.host, coroot, ud.module, " "…
[all …]
H A Dsvn.py9 # SPDX-License-Identifier: GPL-2.0-only
24 def supports(self, ud, d): argument
30 def urldata_init(self, ud, d): argument
37 … ud.basecmd = d.getVar("FETCHCMD_svn") or "/usr/bin/env svn --non-interactive --trust-server-cert"
48 relpath = self._strip_leading_slashes(ud.path)
60 # Whether to use the @REV peg-revision syntax in the svn command or not
67 def _buildsvncommand(self, ud, d, command): argument
70 command is "fetch", "update", "info"
83 options.append("--no-auth-cache")
86 options.append("--username %s" % ud.user)
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/bldcontrol/management/commands/
H A Dchecksettings.py2 # SPDX-License-Identifier: GPL-2.0-only
27 def __init__(self, *args, **kwargs): argument
28 super(Command, self).__init__(*args, **kwargs)
29 self.guesspath = DN(DN(DN(DN(DN(DN(DN(__file__)))))))
31 def _verify_build_environment(self): argument
50 … print("\n -- Validation: The layers checkout directory must be set to an absolute path.")
66 … print("\n -- Validation: The build directory must to be set to an absolute path.")
88 print("Loading OE-Core configuration")
89 call_command("loaddata", "oe-core")
98 " your openembedded-core "
[all …]
/openbmc/skeleton/pyinventorymgr/
H A Dinventory_items.py25 def __init__(self, bus, name): argument
26 super(Inventory, self).__init__(conn=bus, object_path=name)
30 def __init__(self, bus, name, data): argument
31 super(InventoryItem, self).__init__(conn=bus, object_path=name)
33 self.name = name
42 self.SetMultiple(INTF_NAME, data)
45 PropertyCacher.load(name, INTF_NAME, self.properties)
48 def update(self, data): argument
49 self
53 setPresent(self, present) global() argument
58 setFault(self, fault) global() argument
[all...]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Telemetry/
H A DReport.interface.yaml7 - name: Update
9 The Update method is defined for the on demand metric report update.
10 It triggers update of the Readings property. If ReportingType is not
12 - name: SetReadingProperties
18 - name: ReportingType
19 type: enum[self.ReportingType]
23 - name: Interval
29 - name: Persistency
34 - name: ReadingParameters
35 …type: array[struct[array[struct[object_path,string]],enum[self.OperationType],string,enum[self.Col…
[all …]
/openbmc/qemu/rust/hw/char/pl011/src/
H A Ddevice.rs3 // SPDX-License-Identifier: GPL-2.0-or-later
12 bindings::{self, *},
20 registers::{self, Interrupt},
45 fn index(&self, idx: hwaddr) -> &Self::Output { in index() argument
46 match self { in index()
47 Self::Arm => &Self::PL011_ID_ARM[idx as usize], in index()
48 Self::Luminary => &Self::PL011_ID_LUMINARY[idx as usize], in index()
108 const TYPE_INFO: qemu_api::bindings::TypeInfo = qemu_api::type_info! { Self };
131 /// Initializes a pre-allocated, unitialized instance of `PL011State`.
135 /// `self` must point to a correctly sized and aligned location for the
[all …]
/openbmc/openbmc/poky/scripts/
H A Dcombo-layer3 # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
6 # Authored-by: Yu Ke <ke.yu@intel.com>
10 # SPDX-License-Identifier: GPL-2.0-only
44 branchname = runcmd("git symbolic-ref HEAD 2>/dev/null", repodir).strip()
55 For an example config file, see combo-layer.conf.example
58 def __init__(self, options): argument
60 setattr(self, key, val)
65 self.repos[repo][name] = eval(value.strip("@"))
69 types = {'signoff': 'boolean', 'update': 'boolean', 'history': 'boolean'}
72 self.repos[repo][name] = value
[all …]
/openbmc/u-boot/tools/patman/
H A Dsettings.py1 # SPDX-License-Identifier: GPL-2.0+
18 """Default settings per-project.
24 "u-boot": {},
34 - Load project-specific default settings.
35 - Merge general default settings/aliases with project-specific ones.
81 def __init__(self, project_name): argument
90 self._project_name = project_name
91 ConfigParser.SafeConfigParser.__init__(self)
93 # Update the project settings in the config based on
96 if not self.has_section(project_settings):
[all …]
/openbmc/openbmc/poky/meta/lib/bblayers/setupwriters/
H A Doe-setup-layers.py4 # SPDX-License-Identifier: GPL-2.0-only
12 logger = logging.getLogger('bitbake-layers')
19 def __str__(self): argument
20 return "oe-setup-layers"
22 def _write_python(self, input, output): argument
30 def _write_json(self, repos, output): argument
34 def _read_repo_config(self, json_path): argument
46 def _modify_repo_config(self, json_config, args): argument
56 err = "Repository {} does not exist in setup-layers config".format(repo)
60 layer_remote = json_config['sources'][repo]['git-remote']
[all …]
/openbmc/openbmc/poky/scripts/lib/devtool/ide_plugins/
H A D__init__.py2 # Copyright (C) 2023-2024 Siemens AG
4 # SPDX-License-Identifier: GPL-2.0-only
6 """Devtool ide-sdk IDE plugin interface definition and helper functions"""
26 def is_c_ccp(self): argument
27 if self is BuildTool.CMAKE:
29 if self is BuildTool.MESON:
44 def __init__(self, image_recipe, modified_recipe, binary, gdbserver_multi=True): argument
45 self.image_recipe = image_recipe
46 self.modified_recipe = modified_recipe
47 self.gdb_cross = modified_recipe.gdb_cross
[all …]
/openbmc/u-boot/tools/dtoc/
H A Dfdt.py2 # SPDX-License-Identifier: GPL-2.0+
17 # contains the base classes and defines the high-level API. You can use
40 def __init__(self, node, offset, name, bytes): argument
41 self._node = node
42 self._offset = offset
43 self.name = name
44 self.value = None
45 self.bytes = str(bytes)
46 self.dirty = False
48 self.type = TYPE_BOOL
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/eventreplay/
H A D__init__.py7 # SPDX-License-Identifier: GPL-2.0-only
10 # Tests were part of openembedded-core oe selftest Authored by: Lucian Musat
15 using toaster-eventreplay script
30 def setUp(self): argument
33 - set self.script to toaster-eventreplay path
34 - set self.eventplay_dir to the value of EVENTPLAY_DIR env variable
37 self.script = bitbake_dir / 'bin' / 'toaster-eventreplay'
38 self.assertTrue(self.script.exists(), "%s doesn't exist")
39 self.eventplay_dir = os.getenv("EVENTREPLAY_DIR")
40 self.assertTrue(self.eventplay_dir,
[all …]

12345678910>>...40