/drivers/hdf_core/framework/tools/hc-gen/ |
D | hcs_build_info.py | 24 def __init__(self, file_name, token_type, value): argument 25 self.token_type = token_type 26 self.value = value 27 self.row = 1 28 self.col = 1 29 self.file_name = file_name 31 def clean(self): argument 32 self.token_type = TokenType.UNKNOWN 33 self.value = "" 34 self.row = 1 [all …]
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/ |
D | hdf_tool_settings.py | 35 def __init__(self): argument 36 self.file_path = os.path.join(get_hdf_tool_resources_path(), 'settings.json') 37 self.settings = {} 38 if not os.path.exists(self.file_path): 40 with open(self.file_path) as file_write: 42 self.settings = json.load(file_write) 45 (self.file_path, str(exc)), 49 self.supported_boards_key = 'supported_boards' 50 self.drivers_path_key_framework = 'drivers_path_relative_framework' 51 self.drivers_path_key_peripheral = 'drivers_path_relative_peripheral' [all …]
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/test/testsuits/ |
D | test_index.py | 42 def setup(self): argument 44 self.driver.get(self.url) 47 def teardown(self): argument 50 self.driver.delete_all_cookies() 51 self.driver.refresh() 54 def teardown_class(self): argument 56 self.driver.quit() 58 def test_rootselfattr(self): argument 59 el = self.test.find_element(('id', 'visual_area')) 60 loc = self.test.get_canvas_point_position( [all …]
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/hdi_operate/ |
D | hdi_get_handler.py | 20 def __init__(self, args): argument 21 super(HdiGetHandler, self).__init__() 22 self.cmd = "geti" 23 self.handlers = { 24 'interface': self._get_interface_handler, 25 'peripheral': self._get_peripheral_handler, 26 'unittest': self._get_create_unittest, 28 self.parser.add_argument("--action_type", 29 help=' '.join(self.handlers.keys()), 31 self.parser.add_argument("--root_dir", required=True) [all …]
|
D | hdi_delete_handler.py | 28 def __init__(self, args): argument 29 super(HdiDeleteHandler, self).__init__() 30 self.cmd = 'deletei' 31 self.parser.add_argument("--action_type", 32 help=' '.join(self.handlers.keys()), 34 self.parser.add_argument("--root_dir", required=True) 35 self.parser.add_argument("--vendor_name") 36 self.parser.add_argument("--board_name") 37 self.parser.add_argument("--driver_name") 38 self.args_original = args [all …]
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
D | hdf_lite_mk_file.py | 19 def __init__(self, root): argument 20 self.file_path = hdf_utils.get_hdf_lite_mk_path(root) 21 self.orig_exist = False 22 if os.path.exists(self.file_path): 23 self.lines = hdf_utils.read_file_lines(self.file_path) 24 self.orig_exist = True 26 self.lines = [] 27 self.end_line_pattern = r'LITEOS_BASELIB\s*[+]=\s*--no-whole-archive' 28 self.vendor_pattern = r'include.*hdf_vendor[.]mk' 29 self.target_format = r'include .*vendor/%s/.*/hdf_vendor[.]mk' [all …]
|
D | hdf_hcs_file.py | 18 def __init__(self, file_path): argument 19 self.file_path = file_path 20 self.file_dir = os.path.dirname(self.file_path) 21 if os.path.exists(self.file_path): 22 self.lines = hdf_utils.read_file_lines(self.file_path) 24 self.lines = [] 25 self.line_template = '#include "%s/%s_config.hcs"\n' 26 self.line_pattern = r'^\s*#include\s+"%s/%s_config.hcs"' 27 self.include_pattern = r'^\s*#include' 29 def _save(self): argument [all …]
|
D | hdf_model_enable_operation.py | 23 def __init__(self, root, vendor, board, model): argument 24 self.root = root 25 self.vendor = vendor 26 self.board = board 27 self.model = model 28 if self.board.endswith("linux") or self.board.endswith("Hi3516DV300"): 32 self.root, self.vendor, self.board).scan_build() 33 self.liteos_model_name = list(map(lambda x: x.strip(",").strip('"'), 36 self.makefile_path = hdf_utils.get_vendor_makefile_path( 38 if not os.path.exists(self.makefile_path): [all …]
|
D | hdf_dot_config_file.py | 18 def __init__(self, index, line): argument 19 self.index = index 20 self.line = line 24 def __init__(self, dot_config_path): argument 25 self.file_path = dot_config_path 27 self.lines = hdf_utils.read_file_lines(dot_config_path) 28 self.dot_config_exist = True 30 self.lines = [] 31 self.dot_config_exist = False 32 self.cache = {} [all …]
|
D | hdf_driver_config_file.py | 23 def __init__(self, root, board, module, driver, kernel, only_path=False): argument 24 self.root = root 25 self.board = board 26 self.module = module 27 self.driver = driver 28 self.kernel = kernel 29 bpp = HdfToolSettings().get_board_parent_path(self.board) 30 board_path = os.path.join(self.root, bpp, self.board) 35 self.config_dir = os.path.join(board_path, 'hdf_config') 36 self.drv_dir = os.path.join(self.config_dir, self.module) [all …]
|
D | hdf_vendor_kconfig_file.py | 19 def __init__(self, root, vendor, kernel, path): argument 21 self.kernel = kernel 22 self.root = root 23 self.vendor = vendor 24 self.kconfig_path = hdf_utils.\ 25 get_vendor_kconfig_path(self.root, self.kernel) 27 self.kconfig_path = path 28 if os.path.exists(self.kconfig_path): 29 self.lines = hdf_utils.read_file_lines(self.kconfig_path) 31 self.lines = [] [all …]
|
D | hdf_lite_kconfig_file.py | 19 def __init__(self, root): argument 20 self.file_path = hdf_utils.get_hdf_lite_kconfig_path(root) 21 self.orig_exist = False 22 if os.path.exists(self.file_path): 23 self.lines = hdf_utils.read_file_lines(self.file_path) 24 self.orig_exist = True 26 self.lines = [] 27 self.vendor_pattern = r'source\s+".*/vendor/.*/Kconfig"' 28 self.target_pattern_format = r'source\s+".*/vendor/%s/.*/Kconfig"' 29 self.target_index = -1 [all …]
|
D | hdf_lite_settings_mk_file.py | 20 def __init__(self, root_dir): argument 21 self.root_dir = root_dir 22 self.file_path = hdf_utils.get_hdf_lite_settings_mk_path(root_dir) 23 if os.path.exists(self.file_path): 24 self.lines = hdf_utils.read_file_lines(self.file_path) 26 dir_path = os.path.dirname(self.file_path) 29 self.lines = [] 30 self.line_pattern = r'(%s\s*:=\s*)(.*)' 31 self.hdf_vendor_var_name = 'HDF_COMPILE_VENDOR' 32 self.board_vendor_path_var_name = 'HDF_SET_BOARD_VENDOR_PATH' [all …]
|
D | hdf_manager_config_file.py | 21 def __init__(self, file_path): argument 22 self.file_path = file_path 23 self.file_dir = os.path.dirname(self.file_path) 24 self.host_pattern = r'%s\s*::\s*host\s*{' 25 self.hdf_manager_pattern = r'device_info\s*{' 26 self.contents = '' 27 self._read_contents() 29 def _read_contents(self): argument 30 if os.path.exists(self.file_path): 31 self.contents = hdf_utils.read_file(self.file_path) [all …]
|
D | hdf_module_kconfig_file.py | 20 def __init__(self, root, module, k_path): argument 21 self.root = root 22 self.module = module 23 self.k_path = k_path 24 self.module_models = { 28 self.lines = [] 29 self.dot_config = None 30 self.config_re = re.compile(r'\s*config\s+([a-zA-Z0-9_\-]+)') 31 self.depends_on_re = re.compile(r'depends\s+on\s+([a-zA-Z0-9_\-]+)') 32 self.choice_re = re.compile(r'^\s*choice\s*$') [all …]
|
D | hdf_device_info_hcs.py | 22 def __init__(self, root, vendor, module, board, driver, path): argument 23 self.model_space_num = " " * 8 24 self.driver_space_num = " " * 12 26 self.module = module 27 self.vendor = vendor 28 self.board = board 29 self.root = root 30 self.driver = driver 31 self.lines = None 32 board_hcs_temp = HdfToolSettings().get_board_parent_path(self.board) [all …]
|
D | operate_group_passwd.py | 19 def __init__(self, tool_settings, root_path): argument 20 super(OperateGroupPasswd, self).__init__() 22 self.group_newline = etc_path.get("group").get("info_temp") 23 self.passwd_newline = etc_path.get("passwd").get("info_temp") 25 self.passwd_file = os.path.join(root_path, etc_path.get("passwd").get("path")) 26 self.group_file = os.path.join(root_path, etc_path.get("group").get("path")) 28 self.passwd_lines = hdf_utils.read_file_lines(self.passwd_file) 29 self.group_lines = hdf_utils.read_file_lines(self.group_file) 31 self.passwd_group_name_list = [] 32 self.temp_id = self.get_id() [all …]
|
D | hdf_vendor_makefile.py | 21 def __init__(self, root, vendor, kernel, path): argument 23 self.file_path = path 25 self.vendor = vendor 26 self.kernel = kernel 27 self.file_path = hdf_utils.\ 28 get_vendor_makefile_path(root, self.kernel) 29 if not os.path.exists(self.file_path): 30 raise HdfToolException('file: %s not exist' % self.file_path, 32 self.contents = hdf_utils.read_file_lines(self.file_path) 33 self.template_str = \ [all …]
|
D | hdf_command_handler_base.py | 20 def __init__(self): argument 21 self.cmd = 'base' 22 self.action_type = 'base_action_type' 23 self.handlers = {} 24 self.args = {} 25 self.parser = HdfToolArgumentParser() 27 def run(self): argument 28 self.action_type = self._get_action_type() 29 if self.action_type in self.handlers: 30 return self.handlers.get(self.action_type)() [all …]
|
D | hdf_get_handler.py | 31 def __init__(self, args): argument 32 super(HdfGetHandler, self).__init__() 33 self.cmd = 'get' 34 self.handlers = { 35 'vendor_list': self._get_vendor_list_handler, 36 'current_vendor': self._get_current_vendor_handler, 37 'vendor_parent_path': self._get_vendor_parent_path_handler, 38 'individual_vendor_path': self._get_individual_vendor_path_handler, 39 'board_list': self._get_board_list_handler, 40 'driver_list': self._get_driver_list_handler, [all …]
|
D | hdf_set_handler.py | 29 def __call__(self, parser, namespace, values, option_string=None): argument 30 setattr(namespace, self.dest, " ".join(values)) 34 def __init__(self, args): argument 35 super(HdfSetHandler, self).__init__() 36 self.cmd = 'set' 37 self.handlers = { 38 'current_vendor': self._set_current_vendor_handler, 39 'current_board': self._set_current_board_handler, 40 'vendor_new_name': self._set_vendor_new_name_handler, 41 'drivers_state': self._set_drivers_state_handler, [all …]
|
D | hdf_defconfig_patch.py | 19 def __init__(self, root, vendor, kernel, argument 21 self.root = root 22 self.vendor = vendor 23 self.kernel = kernel 24 self.board = board 25 self.data_model = data_model 26 self.new_demo_config = new_demo_config 27 self.file_path = hdf_utils.get_template_file_path(root) 28 self.drivers_path_list = HdfToolSettings().\ 29 get_board_parent_file(self.board) [all …]
|
/drivers/hdf_core/framework/tools/idl-gen/ |
D | idl_generator.py | 27 def __init__(self): argument 28 self._idl = [] 29 self._output_path = "" 30 self._file_list = [] 31 self._key_list = {} 32 self._typedef_list = {} 33 self._parse_results = {} 35 def generate(self): argument 37 self._parse_option() 38 self._parse_header() [all …]
|
/drivers/peripheral/audio/interfaces/sound/v1_0/ |
D | iaudio_render_vdi.h | 32 int32_t (*GetLatency)(struct IAudioRenderVdi *self, uint32_t *ms); 33 …int32_t (*RenderFrame)(struct IAudioRenderVdi *self, const int8_t *frame, uint32_t frameLen, uint6… 34 …int32_t (*GetRenderPosition)(struct IAudioRenderVdi *self, uint64_t *frames, struct AudioTimeStamp… 35 int32_t (*SetRenderSpeed)(struct IAudioRenderVdi *self, float speed); 36 int32_t (*GetRenderSpeed)(struct IAudioRenderVdi *self, float *speed); 37 int32_t (*SetChannelMode)(struct IAudioRenderVdi *self, enum AudioChannelModeVdi mode); 38 int32_t (*GetChannelMode)(struct IAudioRenderVdi *self, enum AudioChannelModeVdi *mode); 39 …int32_t (*RegCallback)(struct IAudioRenderVdi *self, RenderCallbackVdi audioCallback, void *cookie… 40 int32_t (*DrainBuffer)(struct IAudioRenderVdi *self, enum AudioDrainNotifyTypeVdi *type); 41 int32_t (*IsSupportsDrain)(struct IAudioRenderVdi *self, bool *support); [all …]
|
D | iaudio_capture_vdi.h | 31 …int32_t (*CaptureFrame)(struct IAudioCaptureVdi *self, int8_t *frame, uint32_t *frameLen, uint64_t… 32 …int32_t (*GetCapturePosition)(struct IAudioCaptureVdi *self, uint64_t *frames, struct AudioTimeSta… 33 …int32_t (*CheckSceneCapability)(struct IAudioCaptureVdi *self, const struct AudioSceneDescriptorVd… 35 …int32_t (*SelectScene)(struct IAudioCaptureVdi *self, const struct AudioSceneDescriptorVdi *scene); 36 int32_t (*SetMute)(struct IAudioCaptureVdi *self, bool mute); 37 int32_t (*GetMute)(struct IAudioCaptureVdi *self, bool *mute); 38 int32_t (*SetVolume)(struct IAudioCaptureVdi *self, float volume); 39 int32_t (*GetVolume)(struct IAudioCaptureVdi *self, float *volume); 40 int32_t (*GetGainThreshold)(struct IAudioCaptureVdi *self, float *min, float *max); 41 int32_t (*GetGain)(struct IAudioCaptureVdi *self, float *gain); [all …]
|