Home
last modified time | relevance | path

Searched refs:local_file (Results 1 – 24 of 24) sorted by relevance

/external/perfetto/tools/
Dtraceconv49 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
Dheap_profile57 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
/external/tensorflow/tensorflow/contrib/learn/python/learn/datasets/
Dmnist.py259 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/
Dtftp.c28 char *local_file; in GLOBALS()
277 fd = xcreate(TT.local_file, O_WRONLY | O_CREAT | O_TRUNC, 0666); in file_get()
282 unlink(TT.local_file); in file_get()
337 unlink(TT.local_file); in file_get()
358 unlink(TT.local_file); in file_get()
363 unlink(TT.local_file); in file_get()
369 unlink(TT.local_file); in file_get()
392 fd = xopenro(TT.local_file); in file_put()
440 TT.local_file = (slash) ? slash + 1 : TT.remote_file; in tftp_main()
442 } else if (toys.optflags & FLAG_l) TT.remote_file = TT.local_file; in tftp_main()
/external/autotest/server/site_tests/brillo_HWRandom/
Dbrillo_HWRandom.py143 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/autotest/client/site_tests/video_VDASanity/
Dvideo_VDASanity.py40 def _download_video(self, download_path, local_file): argument
42 logging.info('Downloading "%s" to "%s"', url, local_file)
43 file_utils.download_file(url, local_file)
/external/autotest/client/site_tests/video_VideoEncodeAccelerator/
Dvideo_VideoEncodeAccelerator.py39 def _download_video(download_path, local_file): argument
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/server/site_tests/platform_FlashErasers/
Dplatform_FlashErasers.py71 handle, local_file = tempfile.mkstemp()
78 self._client.send_file(local_file, blob_name)
82 os.remove(local_file)
/external/autotest/client/common_lib/cros/network/
Diw_event_logger.py19 def __init__(self, host, command_iw, local_file): argument
24 self._local_file = local_file
54 def local_file(self): member in IwEventLogger
Diw_runner.py932 local_file = IW_LOCAL_EVENT_LOG_FILE % (self._log_id)
935 local_file)
/external/autotest/client/site_tests/video_VDAPerf/
Dvideo_VDAPerf.py207 def _download_video(self, download_path, local_file): argument
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/skqp/infra/bots/recipe_modules/infra/
Dapi.py55 def __init__(self, api, metadata_key, local_file, **kwargs): argument
58 self._local_file = local_file
/external/skia/infra/bots/recipe_modules/infra/
Dapi.py55 def __init__(self, api, metadata_key, local_file, **kwargs): argument
58 self._local_file = local_file
/external/autotest/server/site_tests/telemetry_AFDOGenerate/
Dtelemetry_AFDOGenerate.py310 def _gs_upload(self, local_file, remote_basename): argument
338 if not utils.gs_upload(local_file,
343 (local_file, remote_file))
/external/autotest/client/site_tests/video_VEAPerf/
Dvideo_VEAPerf.py241 def _download_video(self, path_on_cloud, local_file): argument
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/client/common_lib/
Dfile_utils.py169 with open(local_path, 'wb') as local_file:
174 local_file.write(block)
Dutils.py2092 def gs_upload(local_file, remote_file, acl, result_dir=None, argument
2117 cmd = '%s cp -a %s %s %s' % (_GSUTIL_BIN, acl, local_file, remote_file)
2122 cmd = '%s cp -a private %s %s' % (_GSUTIL_BIN, local_file, remote_file)
/external/autotest/client/cros/
Dtouch_playback_test_base.py155 local_file = os.path.join(self.bindir, filename)
159 file_utils.download_file(url, local_file)
165 return local_file
/external/autotest/server/cros/network/
Dpacket_capturer.py364 for remote_file, local_file in pairs:
365 self._host.get_file(remote_file, local_file)
/external/python/cpython2/Lib/distutils/
Ddist.py368 local_file = "setup.cfg"
369 if os.path.isfile(local_file):
370 files.append(local_file)
/external/python/cpython3/Lib/distutils/
Ddist.py372 local_file = "setup.cfg"
373 if os.path.isfile(local_file):
374 files.append(local_file)
/external/autotest/server/
Dsite_linux_router.py436 for remote_file, local_file in files_to_copy:
442 self.router.get_file(remote_file, local_file)
/external/toybox/generated/
Dglobals.h866 char *local_file; member
/external/autotest/client/common_lib/cros/
Ddev_server.py1111 def download_file(cls, remote_file, local_file, timeout=None): argument
1123 with open(local_file, 'w') as out_log: