Home
last modified time | relevance | path

Searched refs:file_path (Results 1 - 20 of 20) sorted by relevance

/developtools/integration_verification/DeployDevice/src/aw/Common/
H A DCommon.py57 file_path = os.path.join(src_dir, item)
59 if os.path.isfile(file_path):
60 logger.info("copy %s to %s" % (file_path, child_path))
61 copyFile(file_path, child_path)
63 logger.error("Copy %s to %s failed" % (file_path, child_path))
66 if os.path.isdir(file_path):
67 ret = copyDirectory(file_path, child_path)
/developtools/hdc/hdc_rust/src/tar/
H A Dcompress.rs104 pub fn compress(&mut self, file_path: PathBuf) -> io::Result<()> { in compress()
105 if file_path.exists() && file_path.is_dir() { in compress()
108 format!("{} is not a file", file_path.display()), in compress()
117 .open(file_path)?; in compress()
H A Dentry.rs147 let file_path = path.join(self.name()); in write_to_file()
152 .open(file_path)?; in write_to_file()
/developtools/hdc/scripts/
H A Dhdc_test.py182 def rm_send_file(file_path, head, need_del):
184 run_command("{}{}{}{}".format("shell \"rm -rf ", file_path, "\"", head))
202 def get_win_file_type(file_path):
203 ret = run_command_stdout("{}{}{}".format("if exist ", file_path, " echo yes"), '')
205 res = run_command_stdout("{}{}{}".format("dir/ad ", file_path, " >nul 2>nul && echo dir || echo file"), '')
209 def rm_recv_file(file_path, need_del):
211 res = get_win_file_type(file_path)
213 run_command("{}{}".format("rmdir /s/q ", file_path), "")
215 run_command("{}{}".format("del ", file_path), "")
366 def get_win_md5(file_path)
[all...]
H A Ddev_hdc_test.py346 def _calculate_md5(file_path):
349 with open(file_path, 'rb') as f:
372 file_path = os.path.join(os.getcwd(), GP.local_path) + file_name # 构建完整的文件路径
374 file_path = os.path.join(os.getcwd(), local) + file_name
375 print(file_path)
376 actual_md5 = _calculate_md5(file_path)
679 file_path = os.path.join(GP.local_path, file)
680 rmdir(file_path)
800 def execute_lines_in_file(file_path):
801 if not os.path.exists(file_path)
[all...]
/developtools/profiler/tools/smaps_show/src/
H A Dmain.rs75 let mut file_path = match matches.opt_str("f") { in main() variables
80 if pid == -1 && &file_path == "" { in main()
86 file_path = format!("/proc/{:?}/smaps", pid); in main()
89 let smaps_info = read_smaps(&file_path, need_combine); in main()
221 fn read_smaps(file_path: &String, need_combine: bool) -> Vec<VmStruct> { in read_smaps()
234 let file_context = std::fs::read_to_string(file_path) in read_smaps()
/developtools/hiperf/script/
H A Drecv_binary_cache.py192 file_path = os.path.join(self.local_cache_dir, 'kallsyms')
193 if os.path.isfile(file_path):
194 os.remove(file_path)
199 self.hdc.run_hdc_cmd(['file recv', '/proc/kallsyms', file_path])
/developtools/hdc/hdc_rust/src/common/
H A Dfilemanager.rs35 pub fn new(file_path: String) -> FileManager { in new()
37 path: Some(file_path), in new()
/developtools/syscap_codec/tools/
H A Dsyscap_check.py165 file_path = os.path.join(ts_path, item)
166 if file_path.endswith(".d.ts") and os.path.isfile(file_path):
167 ts_list.append(file_path)
H A Dsyscap_collector.py222 def get_file_type(file_path):
223 if os.path.islink(file_path):
225 elif os.path.isfile(file_path):
227 elif os.path.isdir(file_path):
233 def is_symlink(file_path):
234 file_type = get_file_type(file_path)
236 link_target = os.readlink(file_path)
/developtools/hdc/hdc_rust/src/host/
H A Dlogger.rs96 let file_path = Path::new(&std::env::temp_dir()) in dump_log_file()
107 if file_path.exists() { in dump_log_file()
108 if let Err(err) = std::fs::rename(&file_path, file_cache_path) { in dump_log_file()
/developtools/integration_verification/tools/rom_ram_analyzer/standard/
H A Dram_analyzer.py422 def __parse_process_json(cls, file_path: str, result_dict: typing.Dict[str, typing.List[str]]):
427 if not (os.path.isfile(file_path) and file_path.endswith(".json")):
428 print("warning: {} not exist or not a json file".format(file_path))
430 with open(file_path, 'r', encoding='utf-8') as f:
434 f"warning: {file_path} has no field 'process' or 'systemability'")
/developtools/hapsigner/hapsigntool_cpp_test/unittest/utils/
H A Dfile_utils_test.cpp598 std::filesystem::path file_path = dir_path / "example.txt"; in HWTEST_F() local
599 std::ofstream file(file_path, std::ios::binary | std::ios::out); in HWTEST_F()
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/
H A Drom_analysis.py357 for file_path, file_info in manual_config_info.items():
359 project_path, compiled_root_path, file_path)
361 logging.warning(f"config error: {file_path} is not a file.")
/developtools/integration_verification/tools/startup_guard/config_parser_mgr/cfg/
H A Dconfig_parser.py543 file_path = os.path.join(file_name, item.name)
546 self._plug_in.append(file_path)
/developtools/smartperf_host/trace_streamer/src/parser/pbreader_parser/native_hook_parser/
H A Dpbreader_native_hook_parser.cpp137 ParseFileEvent(reader->file_path()); in ParseNativeHookAuxiliaryEvent()
/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/
H A Dftrace_cpp_generator.py99 def ensure_dir_exists(file_path):
100 file_dir = os.path.dirname(file_path)
/developtools/integration_verification/cases/smoke/basic/screenshot32/new_script/utils/
H A Ddevice.py359 file_path = '/data/local/tmp/' + file_name
360 dump_rst = self.hdc_shell(f'uitest dumpLayout -p {file_path}')
/developtools/smartperf_host/trace_streamer/src/filter/hook_filter/
H A Dnative_hook_filter.cpp152 frameInfo->filePathIndex_ = traceDataCache_->dataDict_.GetStringIndex(reader.file_path().ToStdString()); in ParseFrame()
/developtools/profiler/hiebpf/include/
H A Dvmlinux.h160620 void *file_path; global() member
160635 u32 file_path; global() member
[all...]

Completed in 441 milliseconds