Home
last modified time | relevance | path

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

/external/perfetto/tools/
Dtrace_processor54 local_file = os.path.join(TRACE_PROCESSOR_SHELL_PATH, file_name)
56 if os.path.exists(local_file):
57 if not check_hash(local_file, sha_value):
58 os.remove(local_file)
60 return local_file
63 DownloadURL(url, local_file)
64 if not check_hash(local_file, sha_value):
65 os.remove(local_file)
67 os.chmod(local_file, 0o755)
68 return local_file
Dtraceconv57 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 DownloadURL(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
Dheap_profile59 local_file = os.path.join(TRACE_TO_TEXT_PATH, file_name)
61 if os.path.exists(local_file):
62 if not check_hash(local_file, sha_value):
63 os.remove(local_file)
65 return local_file
68 subprocess.check_call(['curl', '-L', '-#', '-o', local_file, url])
69 if not check_hash(local_file, sha_value):
70 os.remove(local_file)
72 os.chmod(local_file, 0o755)
73 return local_file
/external/tensorflow/tensorflow/examples/tutorials/mnist/
Dinput_data.py296 local_file = _maybe_download(train_images_file, train_dir,
298 with gfile.Open(local_file, 'rb') as f:
301 local_file = _maybe_download(train_labels_file, train_dir,
303 with gfile.Open(local_file, 'rb') as f:
306 local_file = _maybe_download(test_images_file, train_dir,
308 with gfile.Open(local_file, 'rb') as f:
311 local_file = _maybe_download(test_labels_file, train_dir,
313 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/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.py1064 local_file = IW_LOCAL_EVENT_LOG_FILE % (self._log_id)
1067 local_file)
/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.py56 def __init__(self, api, metadata_key, local_file, **kwargs): argument
59 self._local_file = local_file
/external/autotest/client/common_lib/
Dfile_utils.py169 with open(local_path, 'wb') as local_file:
174 local_file.write(block)
Dutils.py2143 def gs_upload(local_file, remote_file, acl, result_dir=None, argument
2168 cmd = '%s cp -a %s %s %s' % (_GSUTIL_BIN, acl, local_file, remote_file)
2173 cmd = '%s cp -a private %s %s' % (_GSUTIL_BIN, local_file, remote_file)
/external/autotest/server/site_tests/telemetry_AFDOGenerate/
Dtelemetry_AFDOGenerate.py405 def _gs_upload(self, local_file, remote_basename): argument
438 local_file, remote_file, GS_ACL, result_dir=self.resultsdir):
441 'Unable to gs upload %s to %s' % (local_file, remote_file))
/external/cpuinfo/scripts/
Dandroid-device-dump.py265 with open(local_path, "wb") as local_file:
266 local_file.write(content)
/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.py434 for remote_file, local_file in pairs:
435 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/autotest/client/common_lib/cros/
Ddev_server.py1106 def download_file(cls, remote_file, local_file, timeout=None): argument
1118 with open(local_file, 'w') as out_log:
/external/toybox/android/linux/generated/
Dglobals.h925 char *local_file; member
/external/toybox/android/mac/generated/
Dglobals.h925 char *local_file; member
/external/toybox/android/device/generated/
Dglobals.h925 char *local_file; member
/external/python/cpython3/Misc/NEWS.d/
D3.8.0b1.rst8 ``local_file://`` URL schemes in ``URLopener().open()`` and