/external/perfetto/tools/ |
traceconv | 49 local_file = os.path.join(TRACE_TO_TEXT_PATH, file_name) 51 if os.path.exists(local_file): 52 if not check_hash(local_file, sha_value): 53 os.remove(local_file) 55 return local_file 58 urllib.urlretrieve(url, local_file) 59 if not check_hash(local_file, sha_value): 60 os.remove(local_file) 62 os.chmod(local_file, 0o755) 63 return local_file [all...] |
heap_profile | 57 local_file = os.path.join(TRACE_TO_TEXT_PATH, file_name) 59 if os.path.exists(local_file): 60 if not check_hash(local_file, sha_value): 61 os.remove(local_file) 63 return local_file 66 urllib.urlretrieve(url, local_file) 67 if not check_hash(local_file, sha_value): 68 os.remove(local_file) 70 os.chmod(local_file, 0o755) 71 return local_file [all...] |
/development/scripts/ |
runahat | 34 local_file="$(make_temp_file .prof)" 41 info "Pulling the dump file to $local_file ..." 42 do_adb pull "$dev_file" "$local_file" 56 info "Opening $local_file with ahat ..." 57 ahat -p $port "$local_file
|
/external/autotest/client/site_tests/video_VDASanity/ |
video_VDASanity.py | 40 def _download_video(self, download_path, local_file): 42 logging.info('Downloading "%s" to "%s"', url, local_file) 43 file_utils.download_file(url, local_file)
|
/external/autotest/server/site_tests/platform_FlashErasers/ |
platform_FlashErasers.py | 71 handle, local_file = tempfile.mkstemp() 78 self._client.send_file(local_file, blob_name) 82 os.remove(local_file)
|
/external/autotest/server/site_tests/brillo_HWRandom/ |
brillo_HWRandom.py | 143 with tempfile.NamedTemporaryFile() as local_file: 144 host.get_file(dut_file, local_file.name) 145 output_size = os.stat(local_file.name).st_size 151 result = self._run_all_dieharder_tests(local_file.name)
|
/external/skia/infra/bots/recipe_modules/infra/ |
api.py | 55 def __init__(self, api, metadata_key, local_file, **kwargs): 58 self._local_file = local_file
|
/external/skqp/infra/bots/recipe_modules/infra/ |
api.py | 55 def __init__(self, api, metadata_key, local_file, **kwargs): 58 self._local_file = local_file
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/datasets/ |
mnist.py | 259 local_file = base.maybe_download(TRAIN_IMAGES, train_dir, 261 with gfile.Open(local_file, 'rb') as f: 264 local_file = base.maybe_download(TRAIN_LABELS, train_dir, 266 with gfile.Open(local_file, 'rb') as f: 269 local_file = base.maybe_download(TEST_IMAGES, train_dir, 271 with gfile.Open(local_file, 'rb') as f: 274 local_file = base.maybe_download(TEST_LABELS, train_dir, 276 with gfile.Open(local_file, 'rb') as f:
|
/external/toybox/toys/pending/ |
tftp.c | 28 char *local_file; 277 fd = xcreate(TT.local_file, O_WRONLY | O_CREAT | O_TRUNC, 0666); 282 unlink(TT.local_file); 337 unlink(TT.local_file); 358 unlink(TT.local_file); 363 unlink(TT.local_file); 369 unlink(TT.local_file); 392 fd = xopenro(TT.local_file); 440 TT.local_file = (slash) ? slash + 1 : TT.remote_file; 442 } else if (toys.optflags & FLAG_l) TT.remote_file = TT.local_file; [all...] |
/external/autotest/client/common_lib/cros/network/ |
iw_event_logger.py | 19 def __init__(self, host, command_iw, local_file): 24 self._local_file = local_file 54 def local_file(self): member in class:IwEventLogger
|
iw_runner.py | [all...] |
/device/linaro/bootloader/edk2/BaseTools/gcc/ |
mingw-gcc-build.py | 287 local_file = os.path.join(self.config.src_dir, fdata['filename']) 295 if os.path.exists(local_file): 305 urllib.urlretrieve(url, local_file, progress) 313 if not completed and os.path.exists(local_file): 328 print ' to', local_file 348 local_file = os.path.join(self.config.src_dir, fdata['filename']) 350 data = open(local_file).read() 388 local_file = os.path.join(src, self.source_files.GetFilenameOf(module)) 390 extracted = os.path.join(extractDst, os.path.split(local_file)[1] + '.extracted') 399 print 'Extracting %s:' % self.config.Relative(local_file) [all...] |
/external/autotest/client/site_tests/video_VideoEncodeAccelerator/ |
video_VideoEncodeAccelerator.py | 39 def _download_video(download_path, local_file): 41 logging.info('download "%s" to "%s"', url, local_file) 43 file_utils.download_file(url, local_file) 45 with open(local_file, 'r') as r:
|
/external/autotest/client/common_lib/ |
file_utils.py | 169 with open(local_path, 'wb') as local_file: 174 local_file.write(block)
|
utils.py | [all...] |
/external/autotest/client/site_tests/video_VDAPerf/ |
video_VDAPerf.py | 207 def _download_video(self, download_path, local_file): 209 logging.info('download "%s" to "%s"', url, local_file) 211 file_utils.download_file(url, local_file) 213 with open(local_file, 'r') as r:
|
/external/autotest/server/site_tests/telemetry_AFDOGenerate/ |
telemetry_AFDOGenerate.py | 310 def _gs_upload(self, local_file, remote_basename): 313 @param local_file: name of file to upload. 338 if not utils.gs_upload(local_file, 343 (local_file, remote_file))
|
/external/autotest/client/site_tests/video_VEAPerf/ |
video_VEAPerf.py | 241 def _download_video(self, path_on_cloud, local_file): 243 logging.info('download "%s" to "%s"', url, local_file) 245 file_utils.download_file(url, local_file) 247 with open(local_file, 'r') as r:
|
/external/autotest/server/cros/network/ |
packet_capturer.py | 364 for remote_file, local_file in pairs: 365 self._host.get_file(remote_file, local_file)
|
/external/autotest/client/cros/ |
touch_playback_test_base.py | 155 local_file = os.path.join(self.bindir, filename) 159 file_utils.download_file(url, local_file) 165 return local_file
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/ |
dist.py | 368 local_file = "setup.cfg"
369 if os.path.isfile(local_file):
370 files.append(local_file)
[all...] |
/external/python/cpython2/Lib/distutils/ |
dist.py | 368 local_file = "setup.cfg" 369 if os.path.isfile(local_file): 370 files.append(local_file) [all...] |
/external/python/cpython3/Lib/distutils/ |
dist.py | 372 local_file = "setup.cfg" 373 if os.path.isfile(local_file): 374 files.append(local_file) [all...] |
/external/autotest/server/ |
site_linux_router.py | 436 for remote_file, local_file in files_to_copy: 442 self.router.get_file(remote_file, local_file) [all...] |