Home
last modified time | relevance | path

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

12345678910>>...43

/external/angle/build/fuchsia/test/
Dflash_device_unittests.py3 # Use of this source code is governed by a BSD-style license that can be
20 # pylint: disable=too-many-public-methods,protected-access
24 def setUp(self) -> None: argument
38 self._ffx_mock = ffx_patcher.start()
39 self._sdk_hash_mock = sdk_hash_patcher.start()
40 self._swarming_mock = swarming_patcher.start()
41 self._time_sleep = time_sleep.start()
42 self.addCleanup(self._ffx_mock.stop)
43 self.addCleanup(self._sdk_hash_mock.stop)
44 self.addCleanup(self._swarming_mock.stop)
[all …]
/external/cronet/build/fuchsia/test/
Dflash_device_unittests.py3 # Use of this source code is governed by a BSD-style license that can be
20 # pylint: disable=too-many-public-methods,protected-access
24 def setUp(self) -> None: argument
39 self._ffx_mock = ffx_patcher.start()
40 self._sdk_hash_mock = sdk_hash_patcher.start()
41 self._check_patcher_mock = check_patcher.start()
42 self._swarming_mock = swarming_patcher.start()
43 self._time_sleep = time_sleep.start()
44 self.addCleanup(self._ffx_mock.stop)
45 self.addCleanup(self._sdk_hash_mock.stop)
[all …]
/external/autotest/site_utils/admin_audit/
Dservo_updater.py3 # Use of this source code is governed by a BSD-style license that can be
27 """Base class to update firmware on servo"""
30 ACTIVE_UPDATER_CORE = 'ps aux | grep -ie [s]ervo_updater |grep "%s" '
32 ACTIVE_UPDATER_KILL = ACTIVE_UPDATER_PRINT + "| xargs kill -9 "
34 # Command to update FW for servo. Always reboot servo after update.
35 UPDATER_TAIL = '-b %s -s "%s" -c %s --reboot'
40 LATEST_VERSION_CMD = 'servo_updater -p -b "%s" -c %s | grep firmware'
45 def __init__(self, servo_host, device): argument
46 """Init servo-updater instance.
51 self._host = servo_host
[all …]
/external/autotest/server/site_tests/autoupdate_P2P/
Dautoupdate_P2P.py3 # Use of this source code is governed by a BSD-style license that can be
21 _CURRENT_RESPONSE_SIGNATURE_PREF = 'current-response-signature'
22 _CURRENT_URL_INDEX_PREF = 'current-url-index'
23 _P2P_FIRST_ATTEMPT_TIMESTAMP_PREF = 'p2p-first-attempt-timestamp'
24 _P2P_NUM_ATTEMPTS_PREF = 'p2p-num-attempts'
29 def cleanup(self): argument
31 for host in self._hosts:
33 cmd = [self._UPDATE_ENGINE_CLIENT_CMD, '--p2p_update=no']
38 super(autoupdate_P2P, self).cleanup()
41 def _cleanup_dlcs(self): argument
[all …]
/external/autotest/client/site_tests/autoupdate_PeriodicCheck/
Dautoupdate_PeriodicCheck.py3 # Use of this source code is governed by a BSD-style license that can be
16 """Tests update_engine's periodic update check mechanism."""
19 _PERIODIC_INTERVAL_PREF = 'test-update-check-interval-timeout'
20 _PERIODIC_LOG = ('Unofficial build, but periodic update check interval '
21 'timeout is defined, so update is not blocked.')
23 def cleanup(self): argument
25 self._remove_update_engine_pref(self._PERIODIC_INTERVAL_PREF)
26 self._clear_custom_lsb_release()
27 super(autoupdate_PeriodicCheck, self).cleanup()
29 def run_once(self, payload_url, periodic_interval): argument
[all …]
/external/rust/crates/log/.github/workflows/
Dmain.yml7 runs-on: ${{ matrix.os }}
12 - build: stable
13 os: ubuntu-latest
15 - build: beta
16 os: ubuntu-latest
18 - build: nightly
19 os: ubuntu-latest
21 - build: macos
22 os: macos-latest
24 - build: win32
[all …]
/external/autotest/client/site_tests/autoupdate_StartOOBEUpdate/
Dautoupdate_StartOOBEUpdate.py3 # Use of this source code is governed by a BSD-style license that can be
17 """Starts a forced update at OOBE.
19 ChromeOS will restart when the update is complete so this test will just
20 start the update. The rest of the processing will be done in a server
26 def initialize(self): argument
28 super(autoupdate_StartOOBEUpdate, self).initialize()
29 self._clear_custom_lsb_release()
32 def _navigate_to_oobe_update_screen(self): argument
33 """Navigates to the OOBE update check screen."""
35 self._oobe.WaitForJavaScriptCondition(
[all …]
/external/python/cpython2/Demo/pdist/
Drcvs.py3 """Remote CVS -- command line interface"""
8 # - if the remote file is deleted, "rcvs update" will fail
11 # - cvs rm
12 # - descend into directories (alraedy done for update)
13 # - conflict resolution
14 # - other relevant commands?
15 # - branches
17 # - Finesses:
18 # - retain file mode's x bits
19 # - complain when "nothing known about filename"
[all …]
/external/autotest/server/cros/update_engine/
Dupdate_engine_test.py3 # Use of this source code is governed by a BSD-style license that can be
67 # Version we tell the DUT it is on before update.
70 _CELLULAR_BUCKET = 'gs://chromeos-throw-away-bucket/CrOSPayloads/Cellular/'
72 _TIMESTAMP_FORMAT = '%Y-%m-%d %H:%M:%S'
75 _PAYGEN_JSON_URI = 'gs://chromeos-build-release-console/paygen.json'
89 def initialize(self, host=None): argument
96 self._current_timestamp = None
97 self._host = host
100 self._run = self._host.run if self._host else None
101 self._get_file = self._host.get_file if self._host else None
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/array_ops/
Dscatter_ops_test.py7 # http://www.apache.org/licenses/LICENSE-2.0
39 def _NumpyAddScalar(ref, indices, update): argument
41 ref[indx] += update
46 ref[indx] -= updates[i]
49 def _NumpySubScalar(ref, indices, update): argument
51 ref[indx] -= update
59 def _NumpyMulScalar(ref, indices, update): argument
61 ref[indx] *= update
69 def _NumpyDivScalar(ref, indices, update): argument
71 ref[indx] /= update
[all …]
/external/autotest/client/site_tests/autoupdate_Backoff/
Dautoupdate_Backoff.py3 # Use of this source code is governed by a BSD-style license that can be
18 When an update fails, update_engine will not allow another update to the
20 /var/lib/update_engine/prefs/backoff-expiry-time. It is stored as an
24 'no-ignore-backoff' pref we can test it.
34 _BACKOFF_EXPIRY_TIME_PREF = 'backoff-expiry-time'
35 _NO_IGNORE_BACKOFF_PREF = 'no-ignore-backoff'
38 def cleanup(self): argument
40 self._remove_update_engine_pref(self._NO_IGNORE_BACKOFF_PREF)
41 self._remove_update_engine_pref(self._BACKOFF_EXPIRY_TIME_PREF)
42 super(autoupdate_Backoff, self).cleanup()
[all …]
/external/autotest/utils/frozen_chromite/lib/
Dauto_updater.py1 # -*- coding: utf-8 -*-
3 # Use of this source code is governed by a BSD-style license that can be
6 """Library containing functions to execute auto-update on a remote device.
9 ----Check-----
12 ----Precheck---
13 * Pre-check if the device can run its nebraska.
14 * Pre-check for stateful/rootfs update/whole update.
16 ----Tranfer----
20 ----Auto-Update---
21 * Do rootfs partition update if it's required.
[all …]
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Ddependency_manager_unittest.py2 # Use of this source code is governed by a BSD-style license that can be
5 # pylint: disable=unused-argument
18 def setUp(self): argument
19 self.lp_info012 = dependency_manager.LocalPathInfo(
21 self.cloud_storage_info = dependency_manager.CloudStorageInfo(
24 self.dep_info = dependency_manager.DependencyInfo(
25 'dep', 'platform', 'config_file', local_path_info=self.lp_info012,
26 cloud_storage_info=self.cloud_storage_info)
27 self.setUpPyfakefs()
29 def tearDown(self): argument
[all …]
Dbase_config.py2 # Use of this source code is governed by a BSD-style license that can be
74 def __init__(self, file_path, writable=False): argument
79 True: This config will be used to update information.
94 self._config_path = file_path
95 self._writable = writable
96 self._pending_uploads = []
97 if not self._config_path:
99 if not os.path.exists(self._config_path):
102 self._config_data = {}
103 self._WriteConfigToFile(self._config_path, dependencies=self._config_data)
[all …]
/external/autotest/server/cros/faft/
Dcr50_test.py3 # Use of this source code is governed by a BSD-style license that can be
25 RELEASE_POOLS = ['faft-cr50-experimental', 'faft-cr50']
27 GS_PRIVATE = 'gs://chromeos-localmirror-private/distfiles/'
31 GS_PRIVATE_DBG = GS_PRIVATE + 'chromeos-cr50-debug-0.0.11/'
32 GS_PUBLIC = 'gs://chromeos-localmirror/distfiles/'
36 '*/cr50_Unknown_NodeLocked-%s_cr50-accessory-mp.bin')
37 CR50_QUAL_VERSION_FILE = 'chromeos-cr50-QUAL_VERSION'
56 def initialize(self, argument
63 self._saved_state = self.NONE
64 self._raise_error_on_mismatch = not restore_cr50_image
[all …]
/external/toolchain-utils/cros_utils/
Ddevice_setup_utils.py1 # -*- coding: utf-8 -*-
4 # Use of this source code is governed by a BSD-style license that can be
26 self, argument
34 self.chromeos_root = chromeos_root
35 self.remote = remote
36 self.log_level = log_level
37 self.logger = logger
38 self.ce = ce or command_executer.GetCommandExecuter(log_level=log_level)
39 self.dut_config = dut_config
41 def RunCommandOnDut(self, command, ignore_status=False): argument
[all …]
/external/autotest/client/cros/update_engine/
Dupdate_engine_util.py3 # Use of this source code is governed by a BSD-style license that can be
48 # Update engine status lines.
52 # Source version when we force an update.
58 # Update engine statuses.
70 _CUSTOM_LSB_RELEASE = '/mnt/stateful_partition/etc/lsb-release'
74 # Update engine prefs
75 _UPDATE_CHECK_RESPONSE_HASH = 'update-check-response-hash'
96 _REPEATED_UPDATES_FEATURE = 'feature-repeated-updates'
102 def __init__(self, run_func=_DEFAULT_RUN, get_file=_DEFAULT_COPY): argument
114 self._set_util_functions(run_func, get_file)
[all …]
/external/autotest/server/hosts/
Dcros_label.py3 # Use of this source code is governed by a BSD-style license that can be
27 # pylint: disable=missing-docstring
39 @returns: LsbOutput with the result of parsing the /etc/lsb-release output
41 release_info = utils.parse_cmd_output('cat /etc/lsb-release',
53 def generate_labels(self, host): argument
65 def update_for_task(self, task_name): argument
71 """Determine the correct brand_code (aka RLZ-code) for the device."""
75 def generate_labels(self, host): argument
80 cros_config_cmd = 'cros_config / brand-code'
93 working_bluetooth_btpeer:[1-4] will be assigned depending on the number of
[all …]
Dhost_info.py3 # Use of this source code is governed by a BSD-style license that can be
46 # with device-sku instead.
47 _DEVICE_SKU_PREFIX = 'device-sku'
48 _BRAND_CODE_PREFIX = 'brand-code'
55 _SV_SERVO_CROS_KEY = "servo-cros"
67 def __init__(self, labels=None, attributes=None, stable_versions=None): argument
73 self.labels = labels if labels is not None else []
74 self.attributes = attributes if attributes is not None else {}
75 self.stable_versions = stable_versions if stable_versions is not None else {}
79 def build(self): argument
[all …]
Dbase_servohost.py3 # Use of this source code is governed by a BSD-style license that can be
6 # Expects to be run in an environment with sudo and no interactive password
45 REBOOT_CMD = 'sleep 5; reboot & sleep 10; reboot -f'
58 # Constants that reflect current host update state.
62 def _initialize(self, argument
79 super(BaseServoHost, self)._initialize(hostname=hostname,
82 self.servod_container_name = None
83 self._is_containerized_servod = False
85 self._is_containerized_servod = True
86 self.servod_container_name = servod_docker
[all …]
/external/fonttools/Lib/fontTools/subset/
D__init__.py26 __usage__ = "pyftsubset font-file [glyph...] [--option=value]..."
29 pyftsubset -- OpenType font subsetter and optimizer
32 It accepts any TT- or CFF-flavored OpenType (.otf or .ttf) or WOFF (.woff)
36 The tool also performs some size-reducing optimizations, aimed for using
42 At least one glyph or one of --gids, --gids-file, --glyphs, --glyphs-file,
43 --text, --text-file, --unicodes, or --unicodes-file, must be specified.
47 font-file
59 --gids=<NNN>[,<NNN>...]
60 Specify comma/whitespace-separated list of glyph IDs or ranges as decimal
61 numbers. For example, --gids=10-12,14 adds glyphs with numbers 10, 11,
[all …]
/external/autotest/server/site_tests/firmware_Cr50RejectUpdate/
Dfirmware_Cr50RejectUpdate.py2 # Use of this source code is governed by a BSD-style license that can be
17 # rejected before the update. This is just one that I picked from google
20 # No boards use the bid TEST. Use this image to verify cr50 rejects images
26 def initialize(self, host, cmdline_args, full_args): argument
28 super(firmware_Cr50RejectUpdate, self).initialize(host, cmdline_args,
31 if not hasattr(self, 'cr50'):
35 if 'DBG' in self.cr50.get_version():
36 raise error.TestNAError('Update rules are wonky on DBG images')
41 self.bid_path = self.download_cr50_debug_image(self.IMAGE_DEVID,
42 self.BID)[0]
[all …]
/external/autotest/server/site_tests/autoupdate_EndToEndTest/
Dautoupdate_EndToEndTest.py3 # Use of this source code is governed by a BSD-style license that can be
17 """Complete update test between two ChromeOS releases.
19 Performs an end-to-end test of updating a ChromeOS device from one version
22 - Stages the source (full) and target update payloads on a devserver.
23 - Installs source image on the DUT (if provided) and reboots to it.
24 - Verifies that sign in works correctly on the source image.
25 - Installs target image on the DUT and reboots.
26 - Does a final update check.
27 - Verifies that sign in works correctly on the target image.
28 - Returns the hostlogs collected during each update check for
[all …]
/external/python/cpython2/Lib/plat-mac/
Dpimp.py3 This is currently a MacOSX-only strawman implementation.
7 an online XML database per (platform, python-version) containing packages
46 # source: setup-based package
53 DEFAULT_PIMPDATABASE_FMT="http://www.python.org/packman/version-%s/%s-%s-%s-%s-%s.plist"
67 osname, release, machine = longplatform.split('-')
120 """Abstract base class - Downloader for archives"""
122 def __init__(self, argument, argument
125 self.argument = argument
126 self._dir = dir
127 self._watcher = watcher
[all …]
/external/python/cpython3/Lib/test/
Dtest_hmac.py43 self, h, digest, hashname, digest_size, block_size argument
45 self.assertEqual(h.hexdigest().upper(), digest.upper())
46 self.assertEqual(h.digest(), binascii.unhexlify(digest))
47 self.assertEqual(h.name, f"hmac-{hashname}")
48 self.assertEqual(h.digest_size, digest_size)
49 self.assertEqual(h.block_size, block_size)
52 self, key, data, digest, hashfunc, hashname, digest_size, block_size argument
55 self.assert_hmac_internals(
60 self.assert_hmac_internals(
66 h2.update(b"test update")
[all …]

12345678910>>...43