Home
last modified time | relevance | path

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

123456789

/drivers/hdf_core/framework/tools/hc-gen/src/
Dfile.cpp16 std::string File::AbsPath(const std::string &path) in AbsPath() argument
20 char *p = _fullpath(realPath, path.data(), PATH_MAX); in AbsPath()
25 char *p = realpath(path.data(), realPath); in AbsPath()
30 std::string File::StripSuffix(std::string path) in StripSuffix() argument
32 auto sepPos = path.rfind(OS_SEPARATOR); in StripSuffix()
33 auto dotPos = path.rfind('.'); in StripSuffix()
35 return path.substr(0, dotPos); in StripSuffix()
37 return path; in StripSuffix()
41 std::string File::GetDir(std::string path) in GetDir() argument
43 auto separatorPos = path.rfind(OS_SEPARATOR); in GetDir()
[all …]
Dfile.h19 static std::string AbsPath(const std::string &path);
20 static std::string StripSuffix(std::string path);
21 static std::string GetDir(std::string path);
22 static std::string FileNameBase(const std::string &path);
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
Dhdf_defconfig_patch.py32 return os.path.join(self.root, "kernel", self.kernel, "config")
35 return os.path.join(self.root, "kernel", self.kernel, "patches")
37 def add_module(self, path, files, codetype): argument
38 for filename in os.listdir(path):
39 new_path = os.path.join(path, filename)
40 if not os.path.isdir(new_path):
43 self.add_module(path=new_path, files=files, codetype=codetype)
46 def delete_module(self, path): argument
47 with open(path, "rb") as f_read:
58 if path.split(".")[-1] != "patch":
[all …]
Dhdf_driver_config_file.py30 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):
62 if not os.path.exists(self.drv_config_path):
69 if os.path.exists(self.drv_config_path):
[all …]
Dhdf_add_handler.py59 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):
104 if not os.path.exists(framework_hdf):
111 if os.path.exists(framework_drv_root_dir):
126 os.path.join('resources', config_name))
146 if not os.path.exists(adapter_hdf):
151 adapter_model_path = os.path.join(adapter_hdf, 'model', module)
152 if not os.path.exists(adapter_model_path):
[all …]
Dhdf_delete_handler.py61 if not os.path.exists(vendor_hdf_dir):
64 mod_dir = os.path.join(vendor_hdf_dir, module)
65 if os.path.isdir(mod_dir):
75 driver_file = os.path.join(
77 if os.path.exists(driver_file):
116 if os.path.exists(drv_dir):
143 file_path = os.path.join(root, module_value)
153 file_path = os.path.join(root, module_value)
161 hcs_path = os.path.join(root, module_value)
164 board="", driver=" ", path=hcs_path). \
[all …]
Dhdf_liteos_scann.py30 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])
99 for path in value:
100 model_build = os.path.join(path, "BUILD.gn")
101 if not os.path.exists(model_build):
105 model_build_lines, model_path_dict, model_name, path)
[all …]
Dhdf_get_handler.py67 if os.path.exists(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):
108 vendor_k = HdfVendorKconfigFile(root, vendor, kernel=None, path='')
125 root = os.path.realpath(self.args.root_dir)
128 if not os.path.exists(drv_dir):
135 return os.path.realpath(os.path.join(root_path, file_name))
190 model_device_file_path = os.path.join(resources_path, file_name)
[all …]
/drivers/hdf_core/framework/tools/hdi-gen/util/
Dfile.cpp30 File::File(const std::string &path, unsigned int mode) : mode_(mode) in File() argument
32 if (path.empty()) { in File()
37 OpenByRead(path); in File()
42 fd_ = fopen(path.c_str(), "w+"); in File()
44 fd_ = fopen(path.c_str(), "a+"); in File()
48 Logger::E(TAG, "can't open '%s'", path.c_str()); in File()
52 path_ = RealPath(path); in File()
60 void File::OpenByRead(const std::string &path) in OpenByRead() argument
62 if (!CheckValid(path)) { in OpenByRead()
63 Logger::E(TAG, "failed to check path '%s'", path.c_str()); in OpenByRead()
[all …]
Dfile.h20 File(const std::string &path, unsigned int mode);
24 void OpenByRead(const std::string &path);
64 static bool CreateParentDir(const std::string &path);
66 static std::string AdapterPath(const std::string &path);
68 static std::string AdapterRealPath(const std::string &path);
70 static std::string RealPath(const std::string &path);
72 static bool CheckValid(const std::string &path);
/drivers/hdf_core/framework/tools/hc-gen/test/
Dhcgen_test.py53 if not os.path.exists(file_target):
65 if not os.path.exists(file_target):
83 hcgen_path = os.path.abspath(sys.argv[1])
95 source_root = os.path.abspath(os.path.join(TestConfig.WORK_DIR, source_root))
96 hcgen = os.path.join(source_root, compiler_name)
98 hcgen = os.path.join(source_root, TestConfig.CMAKE_GEN_PATH, compiler_name)
108 if os.path.isdir(os.path.join(case_path, dir_name)):
115 result_file_name = os.path.join(TestConfig.WORK_DIR, case_name,
136 output_dir = os.path.join(TestConfig.WORK_DIR, TestConfig.TEMP_DIR, case_name)
137 if not os.path.exists(output_dir):
[all …]
Dupdate_case.py51 hcgen_path = os.path.abspath(sys.argv[1])
62 source_root = os.path.abspath(os.path.join(TestConfig.WORK_DIR, source_root))
63 hcgen_path = os.path.join(source_root, compiler_name)
65 hcgen_path = os.path.join(source_root, TestConfig.CMAKE_GEN_PATH, compiler_name)
76 if os.path.isdir(os.path.join(case_path, directory)):
83 result_file_name = os.path.join(TestConfig.WORK_DIR, case_name,
96 source_file = os.path.join(TestConfig.WORK_DIR, case_name, 'golden.hcb')
97 target_file = os.path.join(TestConfig.WORK_DIR, case_name, 'golden')
119 source_file = os.path.join(TestConfig.WORK_DIR, case_name, 'case.hcs')
120 target_file = os.path.join(TestConfig.WORK_DIR, case_name, 'golden')
[all …]
/drivers/hdf_core/framework/tools/hcs-view/hcsVSCode/
Dextension.js17 const path = require('path'); constant
25 let whiteCutImg = fs.readFileSync(path.join(imgDir, cutImgDict_['whiteCut']));
27 let circleImg = fs.readFileSync(path.join(imgDir, cutImgDict_['circleCut']));
29 let cicleOpenImg = fs.readFileSync(path.join(imgDir, cutImgDict_['circleOpenCut']));
31 let rectangleFocusImg = fs.readFileSync(path.join(imgDir, cutImgDict_['rectangleFocusCut']));
33 let nodeIconImg = fs.readFileSync(path.join(imgDir, cutImgDict_['nodeIconCut']));
35 let attrIconImg = fs.readFileSync(path.join(imgDir, cutImgDict_['attrIconCut']));
37 let rootIconImg = fs.readFileSync(path.join(imgDir, cutImgDict_['rootIconCut']));
39 let rootIconFocusImg = fs.readFileSync(path.join(imgDir, cutImgDict_['rootIconFocusCut']));
41 let backgroundImg = fs.readFileSync(path.join(imgDir, cutImgDict_['backgroundCut']));
[all …]
/drivers/hdf_core/framework/model/audio/sapm/src/
Daudio_sapm.c83 struct AudioSapmpath *path = NULL; in ConnectedInputEndPoint() local
103 DLIST_FOR_EACH_ENTRY(path, &sapmComponent->sources, struct AudioSapmpath, listSink) { in ConnectedInputEndPoint()
104 if ((path->source != NULL) && (path->connect == CONNECT_SINK_AND_SOURCE)) { in ConnectedInputEndPoint()
105 count += ConnectedInputEndPoint(path->source); in ConnectedInputEndPoint()
113 struct AudioSapmpath *path = NULL; in ConnectedOutputEndPoint() local
134 DLIST_FOR_EACH_ENTRY(path, &sapmComponent->sinks, struct AudioSapmpath, listSource) { in ConnectedOutputEndPoint()
135 if ((path->sink != NULL) && (path->connect == CONNECT_SINK_AND_SOURCE)) { in ConnectedOutputEndPoint()
136 count += ConnectedOutputEndPoint(path->sink); in ConnectedOutputEndPoint()
407 …c void MuxSetPathStatus(const struct AudioSapmComponent *sapmComponent, struct AudioSapmpath *path, in MuxSetPathStatus() argument
419 if (path == NULL || path->name == NULL) { in MuxSetPathStatus()
[all …]
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/
Dhdf_utils.py162 if dir_path and not os.path.exists(dir_path):
206 return os.path.join(root, 'drivers', 'adapter', 'khdf', 'liteos')
210 return os.path.join(root, 'vendor')
214 return os.path.join(get_vendor_root_dir(root), vendor)
219 return os.path.join(root, relative_path)
224 if not os.path.exists(adapter_framework):
229 create_file_save_path = os.path.join(adapter_framework, save_file_path)
230 if not os.path.exists(create_file_save_path):
239 return os.path.join(root, relative_path)
244 return os.path.join(root, relative_path, kernel)
[all …]
Dhdf_tool_settings.py29 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.path.join(cur_dir, 'resources')
167 cur_dir = os.path.realpath(os.path.dirname(__file__))
168 self.hdi_file_path = os.path.join(cur_dir, hdi_config_path)
169 if not os.path.exists(self.hdi_file_path):
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/test/public_moudle/
Dbase.py43 path = cur_file.replace('\\', '/')
44 url = "file:///{}/index.html".format(path)
90 def get_canvas_point_position(self, path, text): argument
92 self.driver.get_screenshot_as_file(path)
94 result = reader.readtext(path)
110 def get_obtain_point_position(self, path, text): argument
112 self.driver.get_screenshot_as_file(path)
114 result = reader.readtext(path)
168 def node_in_kuang(self, path, text): argument
170 self.driver.get_screenshot_as_file(path)
[all …]
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/hdi_operate/
Dhdi_add_handler.py87 tempath_path = os.path.join(self.args.root_dir,
93 hdi_template_path = os.path.join(
142 interface_folder_path = os.path.join(
144 if os.path.exists(interface_folder_path):
149 inter_name_version = os.path.join(interface_folder_path, version)
164 src_path = os.path.join(hdi_template_path, file_src)
166 dst_path = os.path.join(interface_folder_path, file)
167 if not os.path.exists(dst_path):
171 dst_path = os.path.join(inter_name_version, file)
172 if not os.path.exists(dst_path):
[all …]
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/
Dhdf_add_driver.py34 if not os.path.exists(self.template_file_path):
59 adapter_model_path = os.path.join(adapter_hdf, 'model', self.module)
71 self.board, self.driver, path="")
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)
161 self.driver, path="")
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])
[all …]
/drivers/peripheral/thermal/interfaces/hdi_service/src/
Dthermal_hdf_utils.cpp33 int32_t ThermalHdfUtils::ReadNodeToInt(const std::string& path) in ReadNodeToInt() argument
36 if (!ReadNode(path, content)) { in ReadNodeToInt()
45 bool ThermalHdfUtils::ReadNode(const std::string& path, std::string& out) in ReadNode() argument
47 bool ret = LoadStringFromFile(path, out); in ReadNode()
52 int32_t ThermalHdfUtils::WriteNode(const std::string& path, std::string& data) in WriteNode() argument
56 if ((fp = fopen(path.c_str(), "r")) == nullptr) { in WriteNode()
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/liteos/
Dmk_file_add_config.py40 def audio_makefile_file_operation(path, args_tuple): argument
42 makefile_gn_path = path
90 def makefile_file_operation(path, driver_file_path, head_path, argument
92 makefile_gn_path = path
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/framework/core/host/src/
Dhdf_load_vdi.c26 char path[PATH_MAX + 1] = {0}; in HdfLoadVdi() local
34 if (snprintf_s(path, sizeof(path), sizeof(path) - 1, "%s/%s", VDI_PATH, libName) < 0) { in HdfLoadVdi()
39 …if (realpath(path, resolvedPath) == NULL || strncmp(resolvedPath, VDI_PATH, strlen(VDI_PATH)) != 0… in HdfLoadVdi()
41 __func__, path, resolvedPath, errno); in HdfLoadVdi()
/drivers/hdf_core/framework/tools/idl-gen/
Didl_generator.py62 path = os.path.join(root_path, file)
63 if os.path.isdir(path):
64 file_path = self._search_file(path, file_name)
67 if os.path.isfile(path):
68 if os.path.split(path)[1] == file_name:
69 return path
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.path.normpath(member["file_name"]), member["line_number"], param_type))
[all …]
/drivers/peripheral/thermal/interfaces/hdi_service/include/
Dthermal_hdf_utils.h32 static int32_t ReadNodeToInt(const std::string& path);
33 static bool ReadNode(const std::string& path, std::string& out);
34 static int32_t WriteNode(const std::string& path, std::string& data);
/drivers/peripheral/camera/test/mpi/src/
Dcommon.cpp73 char path[PATH_MAX] = {0}; in SaveYUV() local
79 if (sprintf_s(path, sizeof(path) / sizeof(path[0]), "%s%s_%lld.yuv", in SaveYUV()
88 if (sprintf_s(path, sizeof(path) / sizeof(path[0]), "%s%s_%lld.jpg", in SaveYUV()
99 if (sprintf_s(path, sizeof(path) / sizeof(path[0]), "%s%s_%lld.yuv", in SaveYUV()
108 if (sprintf_s(path, sizeof(path) / sizeof(path[0]), "%s%s_%lld.jpg", in SaveYUV()
115 std::cout << "save yuv to file:" << path << std::endl; in SaveYUV()
116 int imgFd = open(path, O_RDWR | O_CREAT | O_APPEND, 00766); // 00766:file jurisdiction in SaveYUV()
136 char path[PATH_MAX] = {0}; in SaveVideoFile() local
141 if (sprintf_s(path, sizeof(path) / sizeof(path[0]), "%s%s_%lld.h265", in SaveVideoFile()
150 if (sprintf_s(path, sizeof(path) / sizeof(path[0]), "%s%s_%lld.h265", in SaveVideoFile()
[all …]

123456789