/drivers/hdf_core/framework/tools/hc-gen/test/ |
H A D | hcgen_test.py | 32 import os namespace 53 if not os.path.exists(file_target): 65 if not os.path.exists(file_target): 83 hcgen_path = os.path.abspath(sys.argv[1]) 84 if hcgen_path.find('hc-gen') >= 0 and os.access(hcgen_path, os.X_OK): 95 source_root = os.path.abspath(os.path.join(TestConfig.WORK_DIR, source_root)) 96 hcgen = os.path.join(source_root, compiler_name) 97 if not os [all...] |
H A D | update_case.py | 32 import os namespace 51 hcgen_path = os.path.abspath(sys.argv[1]) 52 if hcgen_path.find('hc-gen') >= 0 and os.access(hcgen_path, os.X_OK): 62 source_root = os.path.abspath(os.path.join(TestConfig.WORK_DIR, source_root)) 63 hcgen_path = os.path.join(source_root, compiler_name) 64 if not os.access(hcgen_path, os.X_OK): 65 hcgen_path = os [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/ |
H A D | hdf_utils.py | 12 import os namespace 112 write_fd = os.open(file_path, config_info["flags"], config_info["modes"]) 113 with os.fdopen(write_fd, "w", newline='\n') as file_write: 162 if dir_path and not os.path.exists(dir_path): 164 os.makedirs(dir_path) 200 write_fd = os.open(file_path, config_info["flags"], config_info["modes"]) 201 with os.fdopen(write_fd, "w", encoding=code_type) as file_write: 206 return os.path.join(root, 'drivers', 'adapter', 'khdf', 'liteos') 210 return os.path.join(root, 'vendor') 214 return os [all...] |
H A D | hdf_tool_settings.py | 11 import os namespace 29 cur_dir = os.path.realpath(os.path.dirname(__file__)) 30 return os.path.join(cur_dir, 'resources') 36 self.file_path = os.path.join(get_hdf_tool_resources_path(), 'settings.json') 38 if not os.path.exists(self.file_path): 113 return [os.path.join(dot_config_path, config) for config in configs] 139 cur_dir = os.path.realpath(os.path.dirname(__file__)) 140 return os [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_driver_config_file.py | 11 import os namespace 30 board_path = os.path.join(self.root, bpp, self.board) 32 if not os.path.exists(board_path): 35 self.config_dir = os.path.join(board_path, 'hdf_config') 36 self.drv_dir = os.path.join(self.config_dir, self.module) 37 self.drv_config_path = os.path.join( 41 manager_hcs_path = os.path.join(self.config_dir, 'device_info', 44 hdf_hcs_path = os.path.join(self.config_dir, 'hdf.hcs') 50 if not os.path.exists(self.drv_dir): 51 os [all...] |
H A D | hdf_add_handler.py | 13 import os namespace 59 if not os.path.exists(template_path): 67 template_path = os.path.join(templates_dir, template) 68 file_path = os.path.join(out_dir, filename) 75 if os.path.exists(target_dir): 79 os.makedirs(target_dir) 104 if not os.path.exists(framework_hdf): 111 if os.path.exists(framework_drv_root_dir): 114 os.makedirs(framework_drv_root_dir) 126 os [all...] |
H A D | hdf_delete_handler.py | 13 import os namespace 117 path=os.path.join(root, dot_path)) 122 for path, dir_name, _ in os.walk(templates_dir_path): 130 name for name in os.listdir( 131 os.path.join( 135 config_path = os.path.join( 162 if not os.path.exists(vendor_hdf_dir): 164 for module in os.listdir(vendor_hdf_dir): 165 mod_dir = os.path.join(vendor_hdf_dir, module) 166 if os [all...] |
H A D | hdf_get_handler.py | 11 import os namespace 67 if os.path.exists(vendor_root_dir): 68 for vendor in os.listdir(vendor_root_dir): 70 if os.path.exists(hdf): 86 return os.path.realpath(target) 93 return os.path.realpath(target) 104 if not os.path.exists(hdf_dir): 107 modules = os.listdir(hdf_dir) 125 root = os.path.realpath(self.args.root_dir) 128 if not os [all...] |
H A D | hdf_linux_scann.py | 12 import os
namespace 31 if not os.path.exists(self.makefile_path):
37 if not os.path.exists(self.framework_dir):
44 if not os.path.exists(self.hcs_path):
74 model_path = os.path.join(os.path.sep.join(
75 self.makefile_path.split(os.path.sep)[:-1]), model_path)
77 if os.path.exists(model_path):
89 for roots, dirs, files in os.walk(config_path):
92 model_defconfig_list.append(os [all...] |
H A D | hdf_lite_settings_mk_file.py | 11 import os namespace 23 if os.path.exists(self.file_path): 26 dir_path = os.path.dirname(self.file_path) 27 if not os.path.exists(dir_path): 28 os.makedirs(dir_path) 51 if os.path.exists(vendor_hdf_path):
|
H A D | hdf_hcs_file.py | 11 import os namespace 20 self.file_dir = os.path.dirname(self.file_path) 21 if os.path.exists(self.file_path): 51 mk_path = os.path.join(self.file_dir, 'Makefile') 58 if not os.path.exists(self.file_dir): 59 os.makedirs(self.file_dir)
|
H A D | hdf_vendor_build_file.py | 11 import os
namespace 24 if not os.path.exists(self.file_path):
43 write_fd = os.open(self.file_path, config_info["flags"], config_info["modes"])
44 with os.fdopen(write_fd, "w") as write_file:
|
H A D | hdf_defconfig_patch.py | 11 import os
namespace 32 return os.path.join(self.root, "kernel", self.kernel, "config")
35 return os.path.join(self.root, "kernel", self.kernel, "patches")
38 for filename in os.listdir(path):
39 new_path = os.path.join(path, filename)
40 if not os.path.isdir(new_path):
67 write_fd = os.open(path, config_info["flags"], config_info["modes"])
68 with os.fdopen(write_fd, "wb") as f_write:
|
H A D | hdf_liteos_scann.py | 12 import os
namespace 30 if not os.path.exists(self.build_path):
35 if not os.path.exists(self.framework_dir):
40 if not os.path.exists(self.hcs_path):
85 parent_path_model = os.path.sep.join(
86 self.build_path.split(os.path.sep)[:-1])
89 model_file_path = os.path.join(parent_path_model, model_path[1:-2])
100 model_build = os.path.join(path, "BUILD.gn")
101 if not os.path.exists(model_build):
124 model_build = os [all...] |
H A D | hdf_device_info_hcs.py | 11 import os
namespace 34 self.hcspath = os.path.join(self.root, board_hcs_path, "device_info.hcs")
46 if not os.path.exists(self.file_path):
50 if not os.path.exists(self.hcspath):
58 write_fd = os.open(self.hcspath, config_info["flags"], config_info["modes"])
59 with os.fdopen(write_fd, "w+", encoding="utf-8") as lwrite:
88 template_file_path = os.path.join(
93 template_file_path = os.path.join(
116 template_path = os.path.join(
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/hdi_operate/ |
H A D | hdi_add_handler.py | 12 import os
namespace 87 tempath_path = os.path.join(self.args.root_dir,
90 for pre_root, folders, _ in os.walk(tempath_path):
93 hdi_template_path = os.path.join(
142 interface_folder_path = os.path.join(
144 if os.path.exists(interface_folder_path):
148 os.makedirs(interface_folder_path)
149 inter_name_version = os.path.join(interface_folder_path, version)
150 os.makedirs(inter_name_version)
156 for file in os [all...] |
H A D | hdi_delete_handler.py | 12 import os
namespace 94 hdi_config_path = os.path.join(
107 if os.path.exists(file_path):
108 os.remove(file_path)
112 pre_handler_file_list = os.listdir(pre_handler)
115 dir_path = os.path.join(pre_handler, pre_handler_file_list[0])
116 while True and os.path.isdir(dir_path):
117 temp_list = os.listdir(dir_path)
119 dir_path = os.path.join(dir_path, temp_list[0])
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/ |
H A D | hdf_add_driver.py | 12 import os
namespace 34 if not os.path.exists(self.template_file_path):
59 adapter_model_path = os.path.join(adapter_hdf, 'model', self.module)
106 build_file_path = os.path.join(adapter_model_path, file_name)
122 makefile_path = os.path.join(adapter_model_path, file_name)
134 kconfig_path = os.path.join(adapter_model_path, file_name)
281 lambda template_name: os.path.join(target_path, template_name),
283 path_list = list(os.path.split(source_file))
284 temp_path = os.path.sep.join(path_list[:-1])
285 if not os [all...] |
/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
H A D | native_buffer.cpp | 167 std::stringstream os;
in Dump() local 168 os << "{";
in Dump() 170 os << "}\n";
in Dump() 171 return os.str();
in Dump() 174 os << "fd:" << handle_->fd << ", ";
in Dump() 175 os << "width:" << handle_->width << ", ";
in Dump() 176 os << "stride:" << handle_->stride << ", ";
in Dump() 177 os << "height:" << handle_->height << ", ";
in Dump() 178 os << "size:" << handle_->size << ", ";
in Dump() 179 os << "forma in Dump() [all...] |
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/ |
H A D | build.py | 9 import os
namespace 21 flags = os.O_RDWR | os.O_CREAT
23 with os.fdopen(os.open(r".\..\hcsVSCode\editor.html", flags, modes),
|
/drivers/peripheral/audio/test/sample/tools/gen_cr_by_pr/ |
H A D | gen_cr_by_pr.py | 16 import os namespace 47 if os.name == 'nt': 117 if os.path.exists(path): 140 if os.path.exists(old_file_path): 141 os.makedirs(os.path.dirname(new_file_path), exist_ok=True) 171 if not os.path.exists(repo_name): 182 if not os.path.exists(files_target_path):
|
/drivers/hdf_core/framework/tools/hdi-gen/test/unittest/ |
H A D | unit_test.py | 10 import os
namespace 66 return os.path.isfile(file_path)
80 items = os.listdir(path)
82 item_path = os.path.join(path, item)
83 if not os.path.isdir(item_path):
94 if os.path.splitext(file)[-1] == ".idl":
104 self.idl_dir = os.path.join(self.working_dir, "foo")
105 self.output_dir = os.path.join(working_dir, "out")
106 self.target_dir = os.path.join(working_dir, "target")
125 with open(os [all...] |
/drivers/hdf_core/framework/tools/idl-gen/ |
H A D | idl_generator.py | 11 import os namespace 60 file_list = os.listdir(root_path) 62 path = os.path.join(root_path, file) 63 if os.path.isdir(path): 67 if os.path.isfile(path): 68 if os.path.split(path)[1] == file_name: 89 root_path, _ = os.path.split(file) # 输入文件所在目录 140 % (os.path.normpath(header["path"] + "/" + header["name"]), file_name)) 176 os.path.normpath(member["file_name"]), member["line_number"], param_type)) 197 os [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/liteos/ |
H A D | mk_file_add_config.py | 11 import os
namespace 112 strip(os.path.sep).split(os.path.sep)))),
115 strip(os.path.sep).split(os.path.sep)))[:-1])}
121 split(os.path.sep)))[:-1]).strip(os.path.sep)}
127 os.path.sep).split(os.path.sep)[2:-1])))}
|
/drivers/hdf_core/adapter/uhdf2/hdi/test/buffer_handle/ |
H A D | buffer_handle_test.cpp | 69 std::stringstream os;
in BufferHandleDump() local 70 os << "{";
in BufferHandleDump() 72 os << "}\n";
in BufferHandleDump() 73 return os.str();
in BufferHandleDump() 76 os << "fd:" << handle->fd << ", ";
in BufferHandleDump() 77 os << "width:" << handle->width << ", ";
in BufferHandleDump() 78 os << "stride:" << handle->stride << ", ";
in BufferHandleDump() 79 os << "height:" << handle->height << ", ";
in BufferHandleDump() 80 os << "size:" << handle->size << ", ";
in BufferHandleDump() 81 os << "forma in BufferHandleDump() [all...] |