/external/angle/build/android/update_deps/ |
D | update_third_party_deps.py | 44 def _CheckPaths(bucket_path, local_path): argument 49 local_path = os.path.join(host_paths.DIR_SOURCE_ROOT, local_path) 50 if not os.path.isdir(local_path): 52 'The library local path is not a valid directory: %s' % local_path) 53 return bucket_url, local_path 56 def _CheckFileList(local_path, file_list): argument 57 local_path = os.path.abspath(local_path) 60 if os.path.commonprefix([f, local_path]) != local_path: 63 % (f, local_path)) 67 def _PurgeSymlinks(local_path): argument [all …]
|
/external/cronet/tot/build/android/update_deps/ |
D | update_third_party_deps.py | 44 def _CheckPaths(bucket_path, local_path): argument 49 local_path = os.path.join(host_paths.DIR_SOURCE_ROOT, local_path) 50 if not os.path.isdir(local_path): 52 'The library local path is not a valid directory: %s' % local_path) 53 return bucket_url, local_path 56 def _CheckFileList(local_path, file_list): argument 57 local_path = os.path.abspath(local_path) 60 if os.path.commonprefix([f, local_path]) != local_path: 63 % (f, local_path)) 67 def _PurgeSymlinks(local_path): argument [all …]
|
/external/cronet/stable/build/android/update_deps/ |
D | update_third_party_deps.py | 44 def _CheckPaths(bucket_path, local_path): argument 49 local_path = os.path.join(host_paths.DIR_SOURCE_ROOT, local_path) 50 if not os.path.isdir(local_path): 52 'The library local path is not a valid directory: %s' % local_path) 53 return bucket_url, local_path 56 def _CheckFileList(local_path, file_list): argument 57 local_path = os.path.abspath(local_path) 60 if os.path.commonprefix([f, local_path]) != local_path: 63 % (f, local_path)) 67 def _PurgeSymlinks(local_path): argument [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/power_VideoPlayback/ |
D | power_VideoPlayback.py | 116 local_path = os.path.join(self._RAMDISK, os.path.basename(url)) 117 logging.info('Downloading %s to %s', url, local_path) 118 file_utils.download_file(url, local_path) 126 local_path = os.path.join(self._RAMDISK, os.path.basename(url)) 132 tab.Navigate('file://' + local_path) 143 local_path = os.path.join(self._RAMDISK, os.path.basename(url)) 144 os.remove(local_path)
|
/external/chromium-crossbench/crossbench/network/replay/ |
D | base.py | 72 local_path = ( 75 if local_path.is_file(): 76 logging.info("Found cached WPR archive: %s", local_path) 77 return local_path 78 logging.info("Downloading WPR archive from %s to %s", url, local_path) 79 self.host_platform.sh("gsutil", "cp", url, local_path) 80 return local_path
|
/external/perfetto/tools/ |
D | install-build-deps | 803 local_path = os.path.join(ROOT_DIR, dep.target_folder) 805 deps_updated |= CheckoutGitRepo(local_path, dep.source_url, dep.checksum, 808 is_compressed = any([local_path.endswith(ext) for ext in ['.zip', '.tgz', '.tbz2']]) 809 compressed_target_dir = os.path.splitext(local_path)[0] if is_compressed else None 812 if ((not is_compressed and HashLocalFile(local_path) == dep.checksum) or 819 if HashLocalFile(local_path) != dep.checksum: 820 download_path = local_path + '.tmp' 821 logging.info('Downloading %s from %s', local_path, dep.source_url) 830 shutil.move(download_path, local_path) 834 assert (HashLocalFile(local_path) == dep.checksum) [all …]
|
/external/angle/src/tests/py_utils/ |
D | android_helper.py | 283 def _LocalFileHash(local_path, gz_tail_size): argument 285 with open(local_path, 'rb') as f: 286 if local_path.endswith('.gz'): 288 offset = os.path.getsize(local_path) - gz_tail_size 296 def _CompareHashes(local_path, device_path): argument 301 if local_path.endswith('.gz'): 316 return _LocalFileHash(local_path, gz_tail_size) == device_hash 388 def _HashesMatch(local_path, device_path): argument 390 if _CompareHashes(local_path, device_path): 394 total_size += os.path.getsize(local_path) [all …]
|
/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 …]
|
/external/chromium-crossbench/crossbench/plt/ |
D | base.py | 242 path = self.local_path(name_or_path).expanduser() 428 return self.local_path(self.cache_dir(name)) 445 with self.local_path(file).open(encoding=encoding) as f: 450 with self.local_path(file).open("rb") as f: 462 with self.local_path(file).open("w", encoding=encoding) as f: 471 return self.local_path(self.copy_file(from_path, to_path)) 490 from_path = self.local_path(from_path) 491 to_path = self.local_path(to_path) 498 from_path = self.local_path(from_path) 499 to_path = self.local_path(to_path) [all …]
|
/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/cronet/stable/base/allocator/partition_allocator/ |
D | PRESUBMIT.py | 30 local_path = file.LocalPath() 32 local_path = local_path.replace('\\', '/') 33 assert local_path.startswith(_PARTITION_ALLOC_BASE_PATH) 35 local_path[len(_PARTITION_ALLOC_BASE_PATH):])
|
/external/cronet/tot/base/allocator/partition_allocator/ |
D | PRESUBMIT.py | 30 local_path = file.LocalPath() 32 local_path = local_path.replace('\\', '/') 33 assert local_path.startswith(_PARTITION_ALLOC_BASE_PATH) 35 local_path[len(_PARTITION_ALLOC_BASE_PATH):])
|
/external/cronet/stable/components/cronet/ |
D | PRESUBMIT.py | 61 local_path = f.LocalPath() 63 if (api_file_pattern.search(local_path)): 66 '%s:%d\n %s' % (local_path, line_number, line.strip())) 67 elif (impl_file_pattern.search(local_path)): 70 '%s:%d\n %s' % (local_path, line_number, line.strip()))
|
/external/cronet/tot/components/cronet/ |
D | PRESUBMIT.py | 61 local_path = f.LocalPath() 63 if (api_file_pattern.search(local_path)): 66 '%s:%d\n %s' % (local_path, line_number, line.strip())) 67 elif (impl_file_pattern.search(local_path)): 70 '%s:%d\n %s' % (local_path, line_number, line.strip()))
|
/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 97 sha1sum = GetSha1(local_path)
|
/external/skia/ |
D | PRESUBMIT_test_mocks.py | 114 local_path = file.LocalPath() 122 if compiled_pattern.match(local_path): 131 if compiled_pattern.match(local_path): 205 def __init__(self, local_path, new_contents, old_contents=None, action='A', argument 207 self._local_path = local_path 217 (local_path, len(new_contents)))
|
/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/tink/python/examples/gcs/ |
D | gcs_envelope_aead_test.sh | 67 --local_path "${DATA_FILE}" \ 87 --local_path "${DATA_FILE}.decrypted"
|
/external/autotest/server/site_tests/provision_Cr50TOT/ |
D | provision_Cr50TOT.py | 108 local_path = os.path.join(self.resultsdir, 'cr50.bin.tot') 109 self.host.get_file(cr50_path, local_path) 118 cr50_utils.InstallImage(self.host, local_path, cr50_utils.CR50_PREPVT)
|
/external/chromium-crossbench/tests/crossbench/plt/ |
D | test_android_adb.py | 107 local_path = self.mock_platform.path("C:/foo/push.local.data") 109 self.assertIsInstance(local_path, pathlib.PureWindowsPath) 110 self.fs.create_file(local_path, contents="some data") 113 self.platform.push(local_path, remote_path) 118 local_path = self.mock_platform.path("C:/foo/push.local.data") 120 self.assertIsInstance(local_path, pathlib.PureWindowsPath) 121 self.fs.create_file(local_path, contents="some data") 124 self.platform.push(local_path, remote_path)
|
/external/chromium-crossbench/crossbench/runner/ |
D | result_origin.py | 115 local_path = self.get_local_probe_result_path(probe) 117 return local_path 119 relative_path = local_path.relative_to(self.out_dir)
|