/external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
D | uploader_unittest.py | 16 self.local_path = os.path.abspath(os.path.join('path', 'to', 'dependency')) 17 self.fs.CreateFile(self.local_path) 22 None, self.remote_path, self.local_path) 24 self.bucket, None, self.local_path) 29 self.fs.RemoveObject(self.local_path) 31 self.bucket, self.remote_path, self.local_path) 35 self.bucket, self.remote_path, self.local_path) 39 expected_local_path = self.local_path 47 self.bucket, self.remote_path, self.local_path) 49 self.bucket, self.remote_path, self.local_path) [all …]
|
D | uploader.py | 17 def __init__(self, bucket, remote_path, local_path, cs_backup_path=None): argument 18 if not bucket or not remote_path or not local_path: 21 'remote_path %s, and local_path %s', bucket, remote_path, local_path) 22 if not os.path.exists(local_path): 24 'local path %s', local_path) 28 self._local_path = local_path
|
D | manager.py | 155 local_path = dependency_info.GetLocalPath() 156 if not local_path or not os.path.exists(local_path): 158 return local_path 173 local_path = dependency_info.GetLocalPath() 174 if local_path:
|
/external/perfetto/tools/ |
D | install-build-deps | 509 local_path = os.path.join(ROOT_DIR, dep.target_folder) 511 deps_updated |= CheckoutGitRepo(local_path, dep.source_url, dep.checksum, 514 is_zip = local_path.endswith('.zip') or local_path.endswith('.tgz') 515 zip_target_dir = local_path[:-4] if is_zip else None 518 if ((not is_zip and HashLocalFile(local_path) == dep.checksum) or 525 if HashLocalFile(local_path) != dep.checksum: 526 download_path = local_path + '.tmp' 527 logging.info('Downloading %s from %s', local_path, dep.source_url) 536 shutil.move(download_path, local_path) 540 assert (HashLocalFile(local_path) == dep.checksum) [all …]
|
/external/autotest/client/site_tests/power_VideoPlayback/ |
D | power_VideoPlayback.py | 115 local_path = os.path.join(self._RAMDISK, os.path.basename(url)) 116 logging.info('Downloading %s to %s', url, local_path) 117 file_utils.download_file(url, local_path) 126 local_path = os.path.join(self._RAMDISK, os.path.basename(url)) 128 tab.Navigate(cr.browser.platform.http_server.UrlOf(local_path)) 140 local_path = os.path.join(self._RAMDISK, os.path.basename(url)) 141 os.remove(local_path)
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | cloud_storage.py | 294 def Get(bucket, remote_path, local_path): argument 295 with _FileLock(local_path): 296 _GetLocked(bucket, remote_path, local_path) 397 def _GetLocked(bucket, remote_path, local_path): argument 399 logger.info('Downloading %s to %s', url, local_path) 400 _CreateDirectoryIfNecessary(os.path.dirname(local_path)) 402 dir=os.path.dirname(local_path), 412 shutil.move(partial_download_path.name, local_path) 418 def Insert(bucket, remote_path, local_path, publicly_readable=False): argument 431 cloud_filepath = Upload(bucket, remote_path, local_path, publicly_readable) [all …]
|
D | cloud_storage_unittest.py | 54 def _FakeGet(self, bucket, remote_path, local_path): argument 96 local_path = 'test-local-path.html' 98 remote_path, local_path) 110 local_path = 'test-local-path.html' 112 cloud_storage.PUBLIC_BUCKET, remote_path, local_path)
|
/external/autotest/server/site_tests/enterprise_CFM_Perf/ |
D | enterprise_CFM_Perf.py | 61 local_path = os.path.join(self.tmpdir, _VIDEO_NAME) 62 logging.info('Downloading %s to %s', url, local_path) 63 file_utils.download_file(url, local_path) 71 logging.info('Sending %s to %s on DUT', local_path, remote_path) 72 self._host.send_file(local_path, remote_path) 73 os.remove(local_path)
|
/external/autotest/client/site_tests/audio_PlaybackPower/ |
D | audio_PlaybackPower.py | 82 local_path = os.path.join(self.bindir, '%s' % test_file) 83 file_utils.download_file(_DOWNLOAD_BASE + test_file, local_path) 85 local_path, checksum) 86 with open(local_path, 'r') as r: 92 url = cr.browser.platform.http_server.UrlOf(local_path)
|
/external/antlr/runtime/Ruby/lib/antlr3/test/ |
D | functional.rb | 25 def local_path( *parts ) method 30 local_path( name ) 110 path = local_path( name.to_s ) 162 def local_path( *args ) method in ANTLR3.Test.Functional 163 self.class.local_path( *args )
|
/external/chromium-trace/catapult/devil/devil/utils/ |
D | update_dependencies.py | 103 def UpdateDependency(dependency_name, dependency_info, local_path, platform): argument 108 ec, sha1sum_output = cmd_helper.GetCmdStatusAndOutput(['sha1sum', local_path]) 111 'Failed to determine SHA1 for %s: %s' % (local_path, sha1sum_output)) 119 ['gsutil.py', 'cp', local_path, gs_dest]) 151 local_path = os.path.abspath(os.path.join(output_dir, build_path)) 154 local_path, platform)
|
/external/oss-fuzz/infra/base-images/base-builder/ |
D | bisect_clang.py | 135 def clone_with_retries(repo, local_path, num_retries=10): argument 138 if os.path.isdir(local_path): 141 if os.path.isdir(local_path): 142 shutil.rmtree(local_path) 143 retcode, _, _ = execute(['git', 'clone', repo, local_path],
|
/external/openscreen/build/scripts/ |
D | install-sysroot.py | 81 def DownloadFile(url, local_path): argument 86 with open(local_path, "wb") as f: 94 def ValidateFile(local_path, expected_sum): argument 96 sha1sum = GetSha1(local_path)
|
/external/cpuinfo/scripts/ |
D | android-device-dump.py | 252 def adb_push(local_path, device_path): argument 256 adb = subprocess.Popen(["adb", "push", local_path, device_path], env=env) 260 def adb_pull(device_path, local_path): argument 265 with open(local_path, "wb") as local_file: 272 adb = subprocess.Popen(["adb", "pull", device_path, local_path], env=env)
|
/external/openssh/ |
D | sftp-client.c | 1198 const char *local_path, Attrib *a, int preserve_flag, int resume_flag, in do_download() argument 1267 local_fd = open(local_path, in do_download() 1271 local_path, strerror(errno)); in do_download() 1278 local_path, strerror(errno)); in do_download() 1282 error("\"%s\" has negative size", local_path); in do_download() 1287 "local file is larger than remote", local_path); in do_download() 1439 "server reordered requests", local_path); in do_download() 1443 error("ftruncate \"%s\": %s", local_path, in do_download() 1452 error("Couldn't write to \"%s\": %s", local_path, in do_download() 1465 if (preserve_flag && chmod(local_path, mode) == -1) in do_download() [all …]
|
/external/autotest/server/site_tests/provision_Cr50TOT/ |
D | provision_Cr50TOT.py | 115 local_path = os.path.join(self.resultsdir, 'cr50.bin.tot') 116 self.host.get_file(cr50_path, local_path) 132 cr50_utils.InstallImage(self.host, local_path, cr50_utils.CR50_PREPVT)
|
/external/llvm-project/lldb/test/API/python_api/target/ |
D | TestTargetAPI.py | 358 local_path = self.getBuildArtifact("stdout.txt") 359 if os.path.exists(local_path): 360 os.remove(local_path) 366 stdout_path = local_path 385 lldb.SBFileSpec(local_path)) 389 os.path.isfile(local_path), 393 with open(local_path, 'r') as f:
|
/external/autotest/server/cros/cfm/ |
D | cfm_base_test.py | 166 def _safe_copy_file(self, remote_path, local_path): argument 172 remote_path, local_path) 173 self._host.get_file(remote_path, local_path)
|
/external/jsoncpp/devtools/ |
D | antglob.py | 192 def local_path(paths): function 194 … test_cases.append((ant_pattern, local_path(accepted_matches), local_path(rejected_matches)))
|
/external/autotest/server/site_tests/firmware_FlashServoKeyboardMap/ |
D | firmware_FlashServoKeyboardMap.py | 59 local_path = os.path.join(self.bindir, 'test_data', 'keyboard.hex') 60 host.send_file(local_path, '/tmp')
|
/external/webrtc/ |
D | presubmit_test_mocks.py | 104 def __init__(self, local_path, new_contents=None, old_contents=None, argument 108 self._local_path = local_path
|
/external/skqp/tools/skp/ |
D | webpages_playback.py | 438 def download_file(self, name, local_path): argument 467 def download_file(self, name, local_path): argument 469 'gsutil', 'cp', '/'.join((self._url, name)), local_path]) 487 def download_file(self, name, local_path): argument 488 shutil.copyfile(os.path.join(self._base_dir, name), local_path)
|
/external/autotest/client/common_lib/ |
D | file_utils.py | 123 def download_file(remote_path, local_path): argument 170 with open(local_path, 'wb') as local_file:
|
/external/autotest/utils/ |
D | external_packages.py | 537 local_path = os.path.join(dest_dir, self.local_filename) 540 if os.path.exists(local_path): 541 actual_hex_sum = _checksum_file(local_path) 545 self.verified_package = local_path 549 os.rename(local_path, local_path + '.wrong-checksum') 570 output = open(local_path, 'wb') 586 os.unlink(local_path) 589 self.verified_package = local_path
|
/external/skia/tools/skp/ |
D | webpages_playback.py | 491 def download_file(self, name, local_path): argument 520 def download_file(self, name, local_path): argument 522 'gsutil', 'cp', '/'.join((self._url, name)), local_path]) 540 def download_file(self, name, local_path): argument 541 shutil.copyfile(os.path.join(self._base_dir, name), local_path)
|