Home
last modified time | relevance | path

Searched refs:os_if (Results 1 – 14 of 14) sorted by relevance

/external/autotest/client/cros/faft/utils/
Dsaft_flashrom_util.py60 def __init__(self, os_if): argument
62 self.os_if = os_if
88 self.os_if.log('overlapped section at 0x%x..0x%x' %
109 for line in self.os_if.run_shell_command_get_output(command):
124 self.check_layout(layout_data, self.os_if.get_file_size(file_name))
173 def __init__(self, os_if, keep_temp_files=False, target_is_ec=False): argument
185 self.os_if = os_if
195 if self.os_if.test_mode or self.os_if.target_hosted():
199 if self.os_if.test_mode or self.os_if.target_hosted():
204 return self.os_if.create_temp_file(prefix)
[all …]
Drootfs_handler.py25 def __init__(self, os_if): argument
26 self.os_if = os_if
36 kernel_path = self.os_if.join_part(self.root_dev,
38 rootfs_path = self.os_if.join_part(self.root_dev,
41 self.os_if.run_shell_command(
43 vbutil_kernel = self.os_if.run_shell_command_get_output(
61 assert not self.os_if.path_exists(_DM_DEV_PATH)
62 self.os_if.run_shell_command(
64 assert self.os_if.path_exists(_DM_DEV_PATH)
66 count = self.os_if.get_file_size(_DM_DEV_PATH)
[all …]
Dkernel_handler.py40 def __init__(self, os_if): argument
41 self.os_if = os_if
50 data = self.os_if.read_partition(device, 0x4000)
51 return self.os_if.retrieve_body_version(data)
56 data = self.os_if.read_partition(device, 0x4000)
57 return self.os_if.retrieve_datakey_version(data)
66 target_device = self.os_if.get_internal_disk(
67 self.os_if.get_root_part())
72 disk_map = self.os_if.run_shell_command_get_output(
81 device = self.os_if.join_part(target_device, line.split()[2])
[all …]
Dtpm_handler.py32 def __init__(self, os_if, addr, size, version_offset, data_pattern=None): argument
33 self.os_if = os_if
44 output = self.os_if.run_shell_command_get_output(cmd)
109 def __init__(self, os_if): argument
110 self.os_if = os_if
115 self.os_if,
121 self.os_if,
129 self.os_if,
165 self.tpm_version = self.os_if.run_shell_command_get_output(
175 status = self.os_if.run_shell_command_get_output(cmd) or ['']
[all …]
Dfirmware_updater.py43 def __init__(self, os_if): argument
45 self.os_if = os_if
46 self._temp_path = self.os_if.state_dir_file(self.DEFAULT_SUBDIR)
61 if self.os_if.is_dir(self._work_path):
110 return flashrom_handler.FlashromHandler(self.os_if,
155 self.os_if.create_dir(self._temp_path)
156 self.os_if.create_dir(self._cbfs_work_path)
157 self.os_if.create_dir(self._work_path)
158 self.os_if.copy_dir('/usr/share/vboot/devkeys', self._keys_path)
162 self.os_if.copy_file(self.DEFAULT_SHELLBALL, working_shellball)
[all …]
Dshell_wrapper_unittest.py20 os_if = mock.Mock()
21 local_shell = shell_wrapper.LocalShell(os_if)
36 os_if = mock.Mock()
37 local_shell = shell_wrapper.LocalShell(os_if)
49 os_if = mock.Mock()
50 local_shell = shell_wrapper.LocalShell(os_if)
Dflashrom_handler.py160 os_if, argument
184 self.os_if = os_if
199 self.os_if, target_is_ec=False)
213 self.os_if, target_is_ec=True)
250 return os.path.join(self.os_if.state_dir, self.subdir, *paths)
275 self.os_if.log(
286 self.os_if.remove_dir(self.section_file())
317 self.os_if.create_dir(self.section_file())
343 section.set_version(self.os_if.retrieve_body_version(vb_section))
344 section.set_flags(self.os_if.retrieve_preamble_flags(vb_section))
[all …]
Dcgpt_handler.py44 def __init__(self, os_if): argument
45 self.os_if = os_if
55 device_dump = self.os_if.run_shell_command_get_output(
134 self.os_if.run_shell_command(cgpt_add_cmd, modifies_device=True)
Dos_interface.py26 def __init__(self, os_if): argument
28 self.os_if = os_if
37 return self.os_if.run_shell_command_get_output(
44 self.os_if.run_shell_command(
Dsaft_flashrom_util_unittest.py19 self.os_if = os_interface.OSInterface(
21 self.flashrom_util = saft_flashrom_util.flashrom_util(self.os_if)
Dflashrom_handler_unittest.py18 self.os_if = os_interface.OSInterface(
20 self.flashrom_handler = flashrom_handler.FlashromHandler(self.os_if)
Dshell_wrapper.py22 def __init__(self, os_if): argument
24 self._os_if = os_if
/external/autotest/client/cros/faft/
Drpc_functions.py50 def __init__(self, os_if): argument
56 self.bios = BiosServicer(os_if)
57 self.cgpt = CgptServicer(os_if)
58 self.ec = EcServicer(os_if)
59 self.kernel = KernelServicer(os_if)
60 self.rootfs = RootfsServicer(os_if)
61 self.rpc_settings = RpcSettingsServicer(os_if)
62 self.system = SystemServicer(os_if)
63 self.tpm = TpmServicer(os_if)
64 self.updater = UpdaterServicer(os_if)
[all …]
Drpc_server.py41 os_if = os_interface.OSInterface()
42 os.chdir(os_if.state_dir)
45 router = rpc_functions.FaftXmlRpcDelegate(os_if)