/drivers/hdf_core/framework/tools/hc-gen/ |
H A D | hcs_build_info.py | 24 def __init__(self, file_name, token_type, value): 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): 32 self.token_type = TokenType.UNKNOWN 33 self.value = "" 34 self [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/ |
H A D | hdf_tool_settings.py | 35 def __init__(self): 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 [all...] |
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/test/testsuits/ |
H A D | test_index.py | 42 def setup(self):
44 self.driver.get(self.url)
47 def teardown(self):
50 self.driver.delete_all_cookies()
51 self.driver.refresh()
54 def teardown_class(self):
56 self.driver.quit()
58 def test_rootselfattr(self):
59 el = self [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_vendor_kconfig_file.py | 19 def __init__(self, root, vendor, kernel, path): 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 [all...] |
H A D | hdf_dot_config_file.py | 18 def __init__(self, index, line): 19 self.index = index 20 self.line = line 24 def __init__(self, dot_config_path): 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 [all...] |
H A D | hdf_lite_kconfig_file.py | 19 def __init__(self, root): 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 [all...] |
H A D | hdf_model_enable_operation.py | 23 def __init__(self, root, vendor, board, model):
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 [all...] |
H A D | hdf_driver_config_file.py | 23 def __init__(self, root, board, module, driver, kernel, only_path=False): 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 [all...] |
H A D | hdf_lite_mk_file.py | 19 def __init__(self, root): 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 [all...] |
H A D | hdf_hcs_file.py | 18 def __init__(self, file_path): 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 [all...] |
H A D | hdf_module_kconfig_file.py | 20 def __init__(self, root, module, k_path): 21 self.root = root 22 self.module = module 23 self.k_path = k_path 24 self.module_models = { 25 'self': {}, 28 self.lines = [] 29 self.dot_config = None 30 self.config_re = re.compile(r'\s*config\s+([a-zA-Z0-9_\-]+)') 31 self [all...] |
H A D | hdf_lite_settings_mk_file.py | 20 def __init__(self, root_dir): 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 [all...] |
H A D | hdf_manager_config_file.py | 21 def __init__(self, file_path): 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): 30 if os.path.exists(self [all...] |
H A D | hdf_command_handler_base.py | 20 def __init__(self): 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): 28 self.action_type = self._get_action_type() 29 if self [all...] |
H A D | hdf_vendor_makefile.py | 21 def __init__(self, root, vendor, kernel, path):
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 [all...] |
H A D | operate_group_passwd.py | 19 def __init__(self, tool_settings, root_path):
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 [all...] |
H A D | hdf_get_handler.py | 31 def __init__(self, args): 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 [all...] |
H A D | hdf_set_handler.py | 29 def __call__(self, parser, namespace, values, option_string=None): 30 setattr(namespace, self.dest, " ".join(values)) 34 def __init__(self, args): 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 [all...] |
H A D | hdf_module_mk_file.py | 21 def __init__(self, root, vendor, module): 22 self.module = module 23 self.file_path = hdf_utils.get_module_mk_path(root, vendor, module) 24 if os.path.exists(self.file_path): 25 self.contents = hdf_utils.read_file(self.file_path) 27 self.contents = '' 29 def _begin_end(self, driver): 30 driver_id = hdf_utils.get_id(self.module, driver) 35 def _create_driver_item(self, drive [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/hdi_operate/ |
H A D | hdi_get_handler.py | 20 def __init__(self, args):
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 [all...] |
H A D | hdi_delete_handler.py | 28 def __init__(self, args):
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 [all...] |
/drivers/peripheral/audio/interfaces/sound/v1_0/ |
H A 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, uint64_t *replyBytes); 34 int32_t (*GetRenderPosition)(struct IAudioRenderVdi *self, uint64_t *frames, struct AudioTimeStampVdi *time); 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, boo [all...] |
H A D | iaudio_capture_vdi.h | 31 int32_t (*CaptureFrame)(struct IAudioCaptureVdi *self, int8_t *frame, uint32_t *frameLen, uint64_t *replyBytes); 32 int32_t (*CaptureFrameEc)(struct IAudioCaptureVdi *self, struct AudioCaptureFrameInfoVdi *info); 33 int32_t (*GetCapturePosition)(struct IAudioCaptureVdi *self, uint64_t *frames, struct AudioTimeStampVdi *time); 34 int32_t (*CheckSceneCapability)(struct IAudioCaptureVdi *self, const struct AudioSceneDescriptorVdi *scene, 36 int32_t (*SelectScene)(struct IAudioCaptureVdi *self, const struct AudioSceneDescriptorVdi *scene); 37 int32_t (*SetMute)(struct IAudioCaptureVdi *self, bool mute); 38 int32_t (*GetMute)(struct IAudioCaptureVdi *self, bool *mute); 39 int32_t (*SetVolume)(struct IAudioCaptureVdi *self, float volume); 40 int32_t (*GetVolume)(struct IAudioCaptureVdi *self, float *volume); 41 int32_t (*GetGainThreshold)(struct IAudioCaptureVdi *self, floa [all...] |
/drivers/hdf_core/framework/tools/idl-gen/ |
H A D | idl_generator.py | 27 def __init__(self): 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): 37 self._parse_option() 38 self [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/ |
H A D | hdf_add_driver.py | 29 def __init__(self, args):
30 super(HdfAddDriver, self).__init__()
31 self.root, self.vendor, self.module, self.driver, \
32 self.board, self.kernel, self.device = args
33 self [all...] |