/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_liteos_scann.py | 67 if re.compile(self.re_temp).match(line.strip()):
70 elif line.strip() == "[" and start_index > 0:
72 elif line.strip() == "]" and start_index > 0:
79 model_name = re.compile(self.re_temp_model).match(i.strip())
81 model_list.append(i.strip())
114 self.re_temp_loscfg, line.strip()).group()
142 if re.search(self.re_temp_module_switch, line.strip()):
144 line.strip()).group()
145 elif re.search(self.re_left_macro, line.strip()):
146 if line.strip() [all...] |
H A D | hdf_linux_scann.py | 63 obj_result = re.search(self.re_temp2_obj, lines.strip())
67 self.re_temp3_enable, lines.strip())
68 model_path = lines.split("+=")[-1].strip()
156 names = re.search(re_temp3, lines[list1_12[0]].strip()).group()
167 temp_result = re.search(re_temp3, temp_lines[i[0]].strip())
175 if j.strip().strip("\\").strip().split(".")[-1] == "o":
176 temp_list2.append(j.strip().strip("\\") [all...] |
H A D | hdf_model_enable_operation.py | 33 self.liteos_model_name = list(map(lambda x: x.strip(",").strip('"'),
65 elif line.strip() == "{" and start_index > 0:
67 elif line.strip() == "}" and start_index > 0:
74 model_name = re.compile(self.re_temp2).match(i.strip())
111 if old_demo_config == line.strip():
229 if old_demo_config.encode('utf-8') == line.strip():
|
H A D | hdf_device_info_hcs.py | 73 if hcs_config[child_index].strip().find("{") != -1:
75 elif hcs_config[child_index].strip() == "}":
149 if old_line.strip().startswith(self.module) and start_state == False:
175 elif line.strip().find(module_branch_start) != -1:
190 if hcs_config[child_index].strip().find("{") != -1:
192 elif hcs_config[child_index].strip() == "}":
|
H A D | operate_group_passwd.py | 63 base_group_passwd_str = ":".join(self.group_newline.strip().strip(":").split(":")[:-1])
|
H A D | hdf_dot_config_file.py | 54 line_ = line.strip() 61 if line.strip().startswith('#'):
|
H A D | hdf_lite_kconfig_file.py | 61 while pos > 0 and len(self.lines[pos].strip()) == 0:
|
H A D | hdf_command_line_server.py | 58 args = arg_parser.parse_args(body.strip().split(' '))
|
H A D | hdf_lite_settings_mk_file.py | 72 return var_value.strip()
|
H A D | hdf_vendor_kconfig_file.py | 82 if file_line.strip() == "endif":
|
H A D | hdf_add_handler.py | 229 file_lines[-1] = "{}\n".format(file_lines[-1].strip())
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/liteos/ |
H A D | gn_file_add_config.py | 32 elif line.strip().startswith(frameworks_model_name):
33 frameworks_model_value = line.split("=")[-1].strip()
105 str_split_list = i.strip().split(" = ")
107 temp_name = str_split_list[0].split(" ")[0].strip("=")
108 macro_definition_dict[temp_name] = date[index + 1].strip()
117 parent_path_temp = source_path.split(devices)[0].strip(
118 root).replace("\\", "/").strip("/")
121 parent_path_temp = head_path.split(devices)[0].strip(
122 root).replace("\\", "/").strip("/")
128 if values.startswith("drivers/hdf/framework") and head_path.strip() [all...] |
H A D | mk_file_add_config.py | 30 elif line.strip().startswith(file_end_flag):
32 elif line.strip().startswith(model_dir_name):
33 model_dir_value = line.split("=")[-1].strip()
101 include_model_info = model_dir_value.split("model")[-1].strip('"') + "/"
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)}
126 list(filter(lambda x: x, head_path.split("model")[-1].strip(
132 if v.strip().startswith("endif"):
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/linux/ |
H A D | mk_file_add_config.py | 28 elif line.strip().startswith(file_end_flag):
31 elif line.strip().startswith(model_dir_name):
32 model_dir_value = line.split("=")[-1].strip()
50 'source_path').strip(".c")
85 'source_path').strip(".c")
186 include_model_info = model_dir_value.split("model")[-1].strip('"') + "/"
193 'head_file_path': '/'.join(head_path.split("model")[-1].strip(os.path.sep).split(os.path.sep)[:-1])
198 if v.strip().startswith("endif"):
|
/drivers/hdf_core/framework/tools/idl-gen/ |
H A D | _header_parser.py | 102 params = tt[2].strip() + "," 117 ret.append({"name": '', "type": params.strip(',').strip()}) 130 ret.append({"name": param_name, "type": param_type.strip()})
|
H A D | idl_generator.py | 309 new_path = out_path.strip('.').strip('/') 312 new_path = out_path.strip('.').strip('/')
|
/drivers/hdf_core/framework/tools/hc-gen/test/ |
H A D | hcgen_test.py | 125 return int(status), console_output.strip() 160 if output.strip() != golden_output: 163 print("ACTUAL:\n" + output.strip())
|
H A D | update_case.py | 135 .replace(TestConfig.ERROR_COLOR_END, "").strip() 165 .replace(TestConfig.ERROR_COLOR_END, "").strip() 193 .replace(TestConfig.ERROR_COLOR_END, "").strip()
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/hdi_operate/ |
H A D | hdi_add_handler.py | 179 operation_file = os.path.join(root, path_test.strip("/"))
228 operation_file = os.path.join(root, path_test.strip("/"))
275 hcs_name = snake_case.lower().strip('_')
296 if line.split("::")[0].strip() == str_line.split("::")[0].strip():
496 line = line.strip().decode("utf-8")
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/ |
H A D | hdf_utils.py | 186 if line.startswith(b"#") or not (line.strip()): 338 if line.strip().startswith(comment_start): 497 re_result = re.search(self.driver_re, line.strip()) 503 if line.strip() == flag_str and count > 0:
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/ |
H A D | hdf_add_driver.py | 96 file_lines[-1] = "{}\n".format(file_lines[-1].strip())
408 if device.strip():
|