/external/perfetto/tools/ |
D | install-build-deps | 384 local_path = os.path.join(ROOT_DIR, rel_path) 386 deps_updated |= CheckoutGitRepo(local_path, url, expected_sha1) 388 is_zip = local_path.endswith('.zip') or local_path.endswith('.tgz') 389 zip_target_dir = local_path[:-4] if is_zip else None 392 if ((not is_zip and HashLocalFile(local_path) == expected_sha1) or 397 if HashLocalFile(local_path) != expected_sha1: 398 download_path = local_path + '.tmp' 399 logging.info('Downloading %s from %s', local_path, url) 408 os.rename(download_path, local_path) 409 assert(HashLocalFile(local_path) == expected_sha1) [all …]
|
/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/autotest/client/site_tests/video_PlaybackPerf/ |
D | video_PlaybackPerf.py | 65 def start_playback(self, cr, tab, local_path): argument 74 tab.Navigate(cr.browser.platform.http_server.UrlOf(local_path)) 97 local_path = os.path.join(self.bindir, os.path.basename(video_name)) 98 logging.info("Downloading %s to %s", url, local_path); 99 file_utils.download_file(url, local_path) 105 keyvals = self.test_dropped_frames(local_path) 120 keyvals = self.test_cpu_usage(local_path) 124 tmp = self.test_power(local_path) 145 def test_dropped_frames(self, local_path): argument 173 return self.test_playback(local_path, get_dropped_frames) [all …]
|
/external/autotest/client/site_tests/video_WebRtcPerf/ |
D | video_WebRtcPerf.py | 154 local_path = os.path.join(self.bindir, VIDEO_NAME) 155 file_utils.download_file(url, local_path) 159 keyvals = self.test_decode_time(local_path) 173 keyvals = self.test_cpu_usage(local_path) 177 keyvals = self.test_power(local_path) 181 def test_webrtc(self, local_path, gather_result): argument 193 EXTRA_BROWSER_ARGS.append(FAKE_FILE_ARG % local_path) 250 def test_cpu_usage(self, local_path): argument 282 return self.test_webrtc(local_path, get_cpu_usage) 285 def test_power(self, local_path): argument [all …]
|
/external/toolchain-utils/ |
D | repo_to_repo.py | 30 remote_path, local_path = mapping.split() 31 if local_path.endswith('/') and not remote_path.endswith('/'): 32 local_path = os.path.join(local_path, os.path.basename(remote_path)) 34 canonical_mappings.append(perforce.PathMapping(remote_path, local_path)) 43 local_path = parts[1] 45 local_path = '.' 46 return remote_path, local_path 173 remote_path, local_path = SplitMapping(mapping) 174 command = 'svn co %s/%s %s' % (self.address, remote_path, local_path) 181 remote_path, local_path = SplitMapping(mapping) [all …]
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | cloud_storage.py | 240 def Get(bucket, remote_path, local_path): argument 241 with _FileLock(local_path): 242 _GetLocked(bucket, remote_path, local_path) 343 def _GetLocked(bucket, remote_path, local_path): argument 345 logger.info('Downloading %s to %s', url, local_path) 346 _CreateDirectoryIfNecessary(os.path.dirname(local_path)) 348 dir=os.path.dirname(local_path), 358 shutil.move(partial_download_path.name, local_path) 364 def Insert(bucket, remote_path, local_path, publicly_readable=False): argument 382 command_and_args += [local_path, url] [all …]
|
/external/autotest/client/site_tests/power_VideoPlayback/ |
D | power_VideoPlayback.py | 103 def _play_video(self, cr, local_path): argument 110 tab.Navigate(cr.browser.platform.http_server.UrlOf(local_path)) 153 local_path = os.path.join(self._RAMDISK, os.path.basename(url)) 154 logging.info('Downloading %s to %s', url, local_path) 155 file_utils.download_file(url, local_path) 156 videos_local.append((name, 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/toolchain-utils/automation/clients/helper/ |
D | perforce.py | 37 for remote_path, local_path in tuple_list: 38 mappings.append(cls(remote_path, local_path)) 204 local_path, file_part = mapping.local.rsplit('/', 1) 207 remote_dir = os.path.join(snapshot, local_path) 208 local_dir = os.path.join(self.checkout_dir, os.path.dirname(local_path))
|
/external/autotest/client/site_tests/video_ChromeRTCHWDecodeUsed/ |
D | video_ChromeRTCHWDecodeUsed.py | 75 local_path = os.path.join(self.bindir, video_name) 76 file_utils.download_file(url, local_path) 79 EXTRA_BROWSER_ARGS.append(FAKE_FILE_ARG % local_path)
|
/external/v8/ |
D | PRESUBMIT.py | 181 local_path = f.LocalPath() 182 guard_macro = PathToGuardMacro(local_path) 202 '%s: Missing include guard \'%s\'' % (local_path, guard_macro)) 236 local_path = f.LocalPath() 240 '%s:%d\n %s' % (local_path, line_number, line.strip())) 277 local_path = f.LocalPath() 283 '%s:%d\n %s' % (local_path, line_number, line.strip()))
|
/external/autotest/client/site_tests/video_ChromeRTCHWEncodeUsed/ |
D | video_ChromeRTCHWEncodeUsed.py | 99 local_path = os.path.join(self.bindir, VIDEO_NAME) 100 file_utils.download_file(url, local_path) 103 EXTRA_BROWSER_ARGS.append(FAKE_FILE_ARG % local_path)
|
/external/autotest/client/site_tests/firmware_TouchMTB/tools/ |
D | expect_scp | 8 set local_path [lindex $argv 1] 11 "$local_path" "$remote_path"
|
/external/autotest/server/site_tests/provision_Cr50Update/ |
D | provision_Cr50Update.py | 63 self.local_path, self.image_ver = image_info 252 cr50_utils.InstallImage(self.host, self.local_path, 254 cr50_utils.InstallImage(self.host, self.local_path, 268 self.cr50_update(self.local_path, rollback=need_rollback,
|
/external/openssh/ |
D | sftp-client.c | 1153 const char *local_path, Attrib *a, int preserve_flag, int resume_flag, in do_download() argument 1222 local_fd = open(local_path, in do_download() 1226 local_path, strerror(errno)); in do_download() 1233 local_path, strerror(errno)); in do_download() 1237 error("\"%s\" has negative size", local_path); in do_download() 1242 "local file is larger than remote", local_path); in do_download() 1393 "server reordered requests", local_path); in do_download() 1397 error("ftruncate \"%s\": %s", local_path, in do_download() 1406 error("Couldn't write to \"%s\": %s", local_path, in do_download() 1419 if (preserve_flag && chmod(local_path, mode) == -1) in do_download() [all …]
|
/external/autotest/client/site_tests/video_JpegEncodeAccelerator/ |
D | video_JpegEncodeAccelerator.py | 40 local_path = os.path.join(self.bindir, os.path.basename(TEST_IMAGE_PATH)) 41 file_utils.download_file(url, local_path)
|
/external/autotest/server/cros/cfm/ |
D | cfm_base_test.py | 160 def _safe_copy_file(self, remote_path, local_path): argument 166 remote_path, local_path) 167 self._host.get_file(remote_path, local_path)
|
/external/jsoncpp/devtools/ |
D | antglob.py | 189 def local_path( paths ): function 191 … test_cases.append( (ant_pattern, local_path(accepted_matches), local_path( rejected_matches )) )
|
/external/autotest/server/site_tests/firmware_FlashServoKeyboardMap/ |
D | firmware_FlashServoKeyboardMap.py | 49 local_path = os.path.join(self.bindir, 'test_data', 'keyboard.hex') 50 host.send_file(local_path, '/tmp')
|
/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/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)
|