/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/ |
H A D | hdf_utils.py | 8 # See the LICENSE file in the root of this repository for complete details. 205 def get_framework_lite_dir(root): 206 return os.path.join(root, 'drivers', 'adapter', 'khdf', 'liteos') 209 def get_vendor_root_dir(root): 210 return os.path.join(root, 'vendor') 213 def get_vendor_dir(root, vendor): 214 return os.path.join(get_vendor_root_dir(root), vendor) 217 def get_vendor_hdf_dir_framework(root): 219 return os.path.join(root, relative_path) 222 def module_save_file_info(root) [all...] |
/drivers/peripheral/distributed_camera/hdi_service/include/utils/ |
H A D | distributed_hardware_log.h | 80 #define CHECK_NULL_FREE_RETURN(ptr, ret, root, ...) \ 84 cJSON_Delete((root)); \ 89 #define CHECK_NULL_RETURN_LOG(root, ret, fmt, ...) \ 91 if ((root) == nullptr) { \ 97 #define CHECK_OBJECT_FREE_RETURN(root, ret, fmt, ...) \ 99 if (!cJSON_IsObject((root))) { \ 101 cJSON_Delete((root)); \ 106 #define CHECK_AND_FREE_RETURN_RET_LOG(cond, ret, root, fmt, ...) \ 110 cJSON_Delete((root)); \
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
H A D | ModifyNode.js | 35 ModifyNode.modifyName = function (files, root, node, name) { 36 let parent = getParent(root, node, null); 38 NapiLog.logError("Can't change root node name"); 45 ModifyNode.modifyNodeType = function (files, root, node, type) { 46 let parent = getParent(root, node, null); 48 NapiLog.logError("Can't change root node type"); 66 ModifyNode.addChildAttr = function (root, node) { 83 ModifyNode.addChildNode = function (root, node) { 103 NapiLog.logError('不能删除root节点'); 114 ModifyNode.getInheritList = function (root, nod [all...] |
/drivers/hdf_core/framework/utils/src/ |
H A D | hdf_slist.c | 6 * See the LICENSE file in the root of this repository for complete details. 17 list->root = NULL; in HdfSListInit() 23 return ((list == NULL) || (list->root == NULL)); in HdfSListIsEmpty() 50 for (iterator = list->root; iterator != NULL; iterator = iterator->next) { in HdfSListGetLast() 61 link->next = list->root; in HdfSListAdd() 62 list->root = link; in HdfSListAdd() 89 for (iterator = list->root; iterator; iterator = iterator->next) { in HdfSListAddOrder() 95 if (comparer(link, list->root)) { in HdfSListAddOrder() 96 link->next = list->root; in HdfSListAddOrder() 97 list->root in HdfSListAddOrder() [all...] |
/drivers/external_device_manager/services/native/driver_extension_manager/src/drivers_pkg_manager/ |
H A D | driver_info.cpp | 32 cJSON* root = cJSON_CreateObject(); in Serialize() local 33 if (!root) { in Serialize() 37 cJSON_AddStringToObject(root, "bus", this->bus_.c_str()); in Serialize() 38 cJSON_AddStringToObject(root, "vendor", this->vendor_.c_str()); in Serialize() 39 cJSON_AddStringToObject(root, "version", this->version_.c_str()); in Serialize() 40 cJSON_AddStringToObject(root, "size", this->driverSize_.c_str()); in Serialize() 41 cJSON_AddStringToObject(root, "description", this->description_.c_str()); in Serialize() 42 cJSON_AddStringToObject(root, "ext_info", extInfo.c_str()); in Serialize() 43 str = cJSON_PrintUnformatted(root); in Serialize() 45 cJSON_Delete(root); in Serialize() [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_delete_handler.py | 8 # See the LICENSE file in the root of this repository for complete details. 81 root, _, module, _, _, kernel, device = self.get_args() 92 root=root, vendor="", module="", 114 root=root, vendor="", kernel="", board="", 117 path=os.path.join(root, dot_path)) 160 root, vendor, _, _, _ = self.get_args() 161 vendor_hdf_dir = hdf_utils.get_vendor_hdf_dir(root, vendor) 170 def _delete_module(self, root, mode [all...] |
H A D | hdf_add_handler.py | 8 # See the LICENSE file in the root of this repository for complete details. 73 root, vendor, _, _, board = self.get_args() 74 target_dir = hdf_utils.get_vendor_hdf_dir(root, vendor) 98 root, vendor, module, driver, board, kernel, _ = args_tuple 103 framework_hdf = hdf_utils.get_vendor_hdf_dir_framework(root) 110 root, module) 130 root_path=root, config_file_json=config_file_json, 136 root, vendor, module, driver, board, kernel, _ = args_tuple 145 adapter_hdf = hdf_utils.get_vendor_hdf_dir_adapter(root, kernel) 187 root, vendo [all...] |
H A D | hdf_set_handler.py | 8 # See the LICENSE file in the root of this repository for complete details. 59 root, vendor, _, _, _ = self.get_args() 60 HdfLiteMkFile(root).set_vendor(vendor) 61 HdfLiteKconfigFile(root).set_vendor(vendor) 95 root = self.args.root_dir 96 dot_config_path = hdf_utils.get_liteos_a_dot_config_path(root) 100 [os.path.join(root, config) for config in orig_dot_configs] 132 root, vendor, model, _, board, _, _ = self.get_args() 134 root=root, vendo [all...] |
H A D | hdf_get_handler.py | 8 # See the LICENSE file in the root of this repository for complete details. 64 root = self.args.root_dir 65 vendor_root_dir = hdf_utils.get_vendor_root_dir(root) 69 hdf = hdf_utils.get_vendor_hdf_dir(root, vendor) 91 root, vendor, _, _, _ = self.get_args() 92 target = hdf_utils.get_vendor_dir(root, vendor) 102 root, vendor, _, _, _ = self.get_args() 103 hdf_dir = hdf_utils.get_vendor_hdf_dir(root, vendor) 108 vendor_k = HdfVendorKconfigFile(root, vendor, kernel=None, path='') 115 HdfModuleKconfigFile(root, modul [all...] |
H A D | hdf_vendor_kconfig_file.py | 8 # See the LICENSE file in the root of this repository for complete details. 19 def __init__(self, root, vendor, kernel, path): 22 self.root = root 25 get_vendor_kconfig_path(self.root, self.kernel) 59 k_path = os.path.join(self.root, k_path_raw)
|
H A D | hdf_model_enable_operation.py | 8 # See the LICENSE file in the root of this repository for complete details.
23 def __init__(self, root, vendor, board, model):
24 self.root = root
32 self.root, self.vendor, self.board).scan_build()
37 root, kernel="linux")
81 self.root, self.vendor, self.board)
91 self.root, self.vendor, self.board)
191 return os.path.join(self.root, "kernel", kernel, "config")
194 return os.path.join(self.root, "kerne [all...] |
H A D | hdf_driver_config_file.py | 8 # See the LICENSE file in the root of this repository for complete details. 23 def __init__(self, root, board, module, driver, kernel, only_path=False): 24 self.root = root 30 board_path = os.path.join(self.root, bpp, self.board)
|
H A D | hdf_defconfig_patch.py | 8 # See the LICENSE file in the root of this repository for complete details.
19 def __init__(self, root, vendor, kernel,
21 self.root = root
27 self.file_path = hdf_utils.get_template_file_path(root)
32 return os.path.join(self.root, "kernel", self.kernel, "config")
35 return os.path.join(self.root, "kernel", self.kernel, "patches")
|
H A D | hdf_device_info_hcs.py | 8 # See the LICENSE file in the root of this repository for complete details.
22 def __init__(self, root, vendor, module, board, driver, path):
29 self.root = root
34 self.hcspath = os.path.join(self.root, board_hcs_path, "device_info.hcs")
44 self.root = root
45 self.file_path = hdf_utils.get_template_file_path(root)
|
H A D | hdf_linux_scann.py | 8 # See the LICENSE file in the root of this repository for complete details.
23 def __init__(self, root, vendor, board):
24 self.root = root
30 root, kernel="linux")
36 self.framework_dir = hdf_utils.get_module_dir(self.root)
43 self.root, self.vendor, self.board)
88 get_config_config_path(root=self.root, kernel=self.kernel)
350 [self.root, lin [all...] |
H A D | hdf_liteos_scann.py | 8 # See the LICENSE file in the root of this repository for complete details.
24 def __init__(self, root, vendor, board):
25 self.root = root
29 self.build_path = hdf_utils.get_vendor_gn_path(self.root)
34 self.framework_dir = hdf_utils.get_module_dir(self.root)
39 self.hcs_path = hdf_utils.get_hcs_file_path(self.root, vendor, board)
44 dot_file_list = hdf_utils.get_dot_configs_path(root, vendor, board)
375 if os.path.exists(self.root + temp_path):
421 import_info = hdf_utils.read_file_lines(self.root [all...] |
/drivers/hdf_core/framework/utils/src/hcs_parser/ |
H A D | hcs_parser.c | 6 * See the LICENSE file in the root of this repository for complete details. 22 bool HcsDecompile(const char *hcsBlob, uint32_t offset, struct DeviceResourceNode **root) in HcsDecompile() argument 44 treeLayer = GenerateCfgTree(hcsBlob + offset, nodeLength, treeMem, root); in HcsDecompile() 48 *root = NULL; in HcsDecompile()
|
H A D | hcs_generate_tree.h | 6 * See the LICENSE file in the root of this repository for complete details. 19 int32_t GenerateCfgTree(const char *treeStart, int32_t length, char *treeMem, struct DeviceResourceNode **root);
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/linux/ |
H A D | mk_file_add_config.py | 8 # See the LICENSE file in the root of this repository for complete details.
39 def formate_mk_config_build(source_path, date_lines, devices, root):
47 date_lines, source, "", devices, root)
67 date_lines, source, "", devices, root)
72 def audio_makefile_template(date_lines, driver, source_path, head_path, devices, root):
82 date_lines, source, "", devices, root)
102 date_lines, "", head_file, devices, root)
116 source_path, head_path, module, driver, root, devices, board = args_tuple
134 makefile_path = os.path.join(root, temp_makefile, "Makefile")
137 date_lines, driver, source_path, head_path, devices, root)
[all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/ |
H A D | hdf_add_driver.py | 8 # See the LICENSE file in the root of this repository for complete details.
31 self.root, self.vendor, self.module, self.driver, \
33 self.template_file_path = hdf_utils.get_template_file_path(self.root)
56 self.root, self.kernel)
70 self.root, self.vendor, self.module,
76 self.root, self.vendor, self.board)
109 self.driver, self.root, self.device, self.kernel)
125 self.driver, self.root, self.device, self.kernel)
130 self.module, self.driver, self.root)
159 device_info = HdfDeviceInfoHcsFile(self.root, sel [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/hdi_operate/ |
H A D | hdi_add_handler.py | 8 # See the LICENSE file in the root of this repository for complete details.
104 root = self.args.root_dir
107 return root, version, interface_converter, interface_name
116 root = self.args.root_dir
120 return root, version, peripheral_converter, peripheral_name, board, vendor
127 root = self.args.root_dir
134 return peripheral_name, root, peripheral_converter, replace_data
137 root, version, interface_converter, interface_name = \
175 create_file_path = self.format_file_path(dst_path, root)
179 operation_file = os.path.join(root, path_tes [all...] |
H A D | hdi_get_handler.py | 8 # See the LICENSE file in the root of this repository for complete details.
34 self.root = None
41 self.root = self.args.root_dir
74 lambda val: os.path.join(self.root, val),
78 lambda val: os.path.join(self.root, val),
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/liteos/ |
H A D | gn_file_add_config.py | 8 # See the LICENSE file in the root of this repository for complete details.
41 source_path, head_path, module, driver, root, devices, kernel = args_tuple
61 date_lines, source, "", devices, root)
71 date_lines, source, "", devices, root)
76 date_lines, "", head_path[0], devices, root, kernel_type=kernel)
98 devices, root, kernel_type="linux"):
118 root).replace("\\", "/").strip("/")
122 root).replace("\\", "/").strip("/")
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/message/ |
H A D | mock.js | 22 root { 37 root {
|
/drivers/hdf_core/framework/utils/include/ |
H A D | hcs_parser.h | 6 * See the LICENSE file in the root of this repository for complete details. 14 bool HcsDecompile(const char *hcsBlob, uint32_t offset, struct DeviceResourceNode **root);
|