/developtools/integration_verification/DeployDevice/src/aw/Common/ |
H A D | Common.py | 57 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 D | compress.rs | 104 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 D | entry.rs | 147 let file_path = path.join(self.name()); in write_to_file() 152 .open(file_path)?; in write_to_file()
|
/developtools/hdc/scripts/ |
H A D | hdc_test.py | 182 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 D | dev_hdc_test.py | 346 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 D | main.rs | 75 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 D | recv_binary_cache.py | 192 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 D | filemanager.rs | 35 pub fn new(file_path: String) -> FileManager { in new() 37 path: Some(file_path), in new()
|
/developtools/syscap_codec/tools/ |
H A D | syscap_check.py | 165 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 D | syscap_collector.py | 222 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 D | logger.rs | 96 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 D | ram_analyzer.py | 422 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 D | file_utils_test.cpp | 598 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 D | rom_analysis.py | 357 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 D | config_parser.py | 543 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 D | pbreader_native_hook_parser.cpp | 137 ParseFileEvent(reader->file_path()); in ParseNativeHookAuxiliaryEvent()
|
/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/ |
H A D | ftrace_cpp_generator.py | 99 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 D | device.py | 359 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 D | native_hook_filter.cpp | 152 frameInfo->filePathIndex_ = traceDataCache_->dataDict_.GetStringIndex(reader.file_path().ToStdString()); in ParseFrame()
|
/developtools/profiler/hiebpf/include/ |
H A D | vmlinux.h | 160620 void *file_path; global() member 160635 u32 file_path; global() member [all...] |