Home
last modified time | relevance | path

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

12

/external/perfetto/tools/
Dtraceconv56 local_file = os.path.join(TRACE_TO_TEXT_PATH, file_name)
58 if os.path.exists(local_file):
59 if not check_hash(local_file, sha_value):
60 os.remove(local_file)
62 return local_file
65 DownloadURL(url, local_file)
66 if not check_hash(local_file, sha_value):
67 os.remove(local_file)
69 os.chmod(local_file, 0o755)
70 return local_file
Dtrace_processor55 local_file = os.path.join(TRACE_PROCESSOR_SHELL_PATH, file_name)
57 if os.path.exists(local_file):
58 if not check_hash(local_file, sha_value):
59 os.remove(local_file)
61 return local_file
64 DownloadURL(url, local_file)
65 if not check_hash(local_file, sha_value):
66 os.remove(local_file)
68 os.chmod(local_file, 0o755)
69 return local_file
Dsymbolize-ui-crash47 local_file = os.path.join(tempfile.gettempdir(), normalized)
48 if os.path.exists(local_file):
49 logging.debug('Using %s', local_file)
50 with open(local_file, 'r') as f:
56 with open(local_file, 'w') as f:
Dheap_profile64 local_file = os.path.join(TRACE_TO_TEXT_PATH, file_name)
66 if os.path.exists(local_file):
67 if not check_hash(local_file, sha_value):
68 os.remove(local_file)
70 return local_file
73 subprocess.check_call(['curl', '-L', '-#', '-o', local_file, url])
74 if not check_hash(local_file, sha_value):
75 os.remove(local_file)
77 os.chmod(local_file, 0o755)
78 return local_file
/external/llvm-project/lldb/source/Plugins/Platform/MacOSX/
DPlatformRemoteDarwinDevice.cpp394 lldb_private::FileSpec local_file; in FindFileInAllSDKs() local
399 if (GetFileInSDK(platform_file_path, sdk_idx, local_file)) { in FindFileInAllSDKs()
400 file_list.Append(local_file); in FindFileInAllSDKs()
409 lldb_private::FileSpec &local_file) { in GetFileInSDK() argument
414 local_file.Clear(); in GetFileInSDK()
423 local_file.SetFile(sdkroot_path, FileSpec::Style::native); in GetFileInSDK()
425 local_file.AppendPathComponent(paths_to_try[i]); in GetFileInSDK()
426 local_file.AppendPathComponent(platform_file_path); in GetFileInSDK()
427 FileSystem::Instance().Resolve(local_file); in GetFileInSDK()
428 if (FileSystem::Instance().Exists(local_file)) { in GetFileInSDK()
[all …]
DPlatformRemoteMacOSX.cpp160 const lldb_private::UUID *uuid_ptr, lldb_private::FileSpec &local_file) { in GetFileWithUUID() argument
170 local_file = platform_file; in GetFileWithUUID()
179 local_file = module_cache_spec; in GetFileWithUUID()
194 local_file = module_cache_spec; in GetFileWithUUID()
200 local_file = platform_file; in GetFileWithUUID()
DPlatformAppleSimulator.cpp430 FileSpec &local_file) { in GetSymbolFile() argument
441 local_file.SetFile(resolved_path, FileSpec::Style::native); in GetSymbolFile()
442 FileSystem::Instance().Resolve(local_file); in GetSymbolFile()
443 if (FileSystem::Instance().Exists(local_file)) in GetSymbolFile()
447 local_file.SetFile(platform_file_path, FileSpec::Style::native); in GetSymbolFile()
448 FileSystem::Instance().Resolve(local_file); in GetSymbolFile()
449 if (FileSystem::Instance().Exists(local_file)) in GetSymbolFile()
DPlatformRemoteDarwinDevice.h35 lldb_private::FileSpec &local_file);
89 lldb_private::FileSpec &local_file);
DPlatformRemoteMacOSX.h47 lldb_private::FileSpec &local_file) override;
/external/tensorflow/tensorflow/lite/experimental/examples/lstm/
Dinput_data.py297 local_file = _maybe_download(train_images_file, train_dir,
299 with gfile.Open(local_file, 'rb') as f:
302 local_file = _maybe_download(train_labels_file, train_dir,
304 with gfile.Open(local_file, 'rb') as f:
307 local_file = _maybe_download(test_images_file, train_dir,
309 with gfile.Open(local_file, 'rb') as f:
312 local_file = _maybe_download(test_labels_file, train_dir,
314 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 (FLAG(l)) TT.remote_file = TT.local_file; in tftp_main()
/external/llvm-project/lldb/test/API/python_api/process/io/
DTestProcessIO.py108 def read_file_and_delete(self, target_file, local_file): argument
111 remote=target_file, local=local_file))
114 os.path.exists(local_file),
116 local=local_file))
117 f = open(local_file, 'r')
124 os.unlink(local_file)
/external/llvm-project/lldb/source/Plugins/Platform/Android/
DAdbClient.h41 Status PullFile(const FileSpec &remote_file, const FileSpec &local_file);
43 Status PushFile(const FileSpec &local_file, const FileSpec &remote_file);
63 const FileSpec &local_file);
65 Status internalPushFile(const FileSpec &local_file,
DAdbClient.cpp431 const FileSpec &local_file) { in internalPullFile() argument
432 const auto local_file_path = local_file.GetPath(); in internalPullFile()
463 Status AdbClient::SyncService::internalPushFile(const FileSpec &local_file, in internalPushFile() argument
465 const auto local_file_path(local_file.GetPath()); in internalPushFile()
486 kDONE, llvm::sys::toTimeT(FileSystem::Instance().GetModificationTime(local_file)), in internalPushFile()
547 const FileSpec &local_file) { in PullFile() argument
548 return executeCommand([this, &remote_file, &local_file]() { in PullFile()
549 return internalPullFile(remote_file, local_file); in PullFile()
553 Status AdbClient::SyncService::PushFile(const FileSpec &local_file, in PushFile() argument
555 return executeCommand([this, &local_file, &remote_file]() { in PushFile()
[all …]
/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.py20 def __init__(self, host, command_iw, local_file): argument
25 self._local_file = local_file
55 def local_file(self): member in IwEventLogger
/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/autotest/client/common_lib/
Dfile_utils.py170 with open(local_path, 'wb') as local_file:
175 local_file.write(block)
/external/autotest/server/site_tests/telemetry_AFDOGenerate/
Dtelemetry_AFDOGenerate.py408 def _gs_upload(self, local_file, remote_basename): argument
441 local_file, remote_file, GS_ACL, result_dir=self.resultsdir):
444 '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/llvm-project/lldb/source/Target/
DPlatform.cpp175 const UUID *uuid_ptr, FileSpec &local_file) { in GetFileWithUUID() argument
177 local_file = platform_file; in GetFileWithUUID()
1726 const lldb_private::FileSpec &local_file, in LoadImage() argument
1729 if (local_file && remote_file) { in LoadImage()
1732 if (IsRemote() || local_file != remote_file) { in LoadImage()
1733 error = Install(local_file, remote_file); in LoadImage()
1740 if (local_file) { in LoadImage()
1744 target_file.AppendPathComponent(local_file.GetFilename().AsCString()); in LoadImage()
1745 if (IsRemote() || local_file != target_file) { in LoadImage()
1746 error = Install(local_file, target_file); in LoadImage()
DRemoteAwarePlatform.cpp317 FileSpec &local_file) { in GetFileWithUUID() argument
320 local_file); in GetFileWithUUID()
323 local_file = platform_file; in GetFileWithUUID()
/external/autotest/client/cros/
Dtouch_playback_test_base.py161 local_file = os.path.join(self.bindir, filename)
165 file_utils.download_file(url, local_file)
171 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/llvm-project/lldb/include/lldb/Target/
DRemoteAwarePlatform.h64 FileSpec &local_file) override;

12