Home | History | Annotate | Download | only in utils

Lines Matching refs:def

25     def init(self, os_if):
29 def __getattr__(self, name):
39 def __setattr__(self, name, value):
45 def request_recovery(self):
56 def __init__(self):
70 def init(self, state_dir=None, log_file=None):
102 def has_host(self):
106 def run_shell_command(self, cmd):
110 def run_shell_command_get_status(self, cmd):
114 def run_shell_command_get_output(self, cmd):
118 def run_host_shell_command(self, cmd, block=True):
125 def run_host_shell_command_get_status(self, cmd):
132 def run_host_shell_command_get_output(self, cmd):
139 def read_file(self, path):
143 def write_file(self, path, data):
147 def append_file(self, path, data):
151 def path_exists(self, path):
156 def is_dir(self, path):
161 def create_dir(self, path):
166 def create_temp_file(self, prefix):
175 def copy_file(self, from_path, to_path):
180 def copy_dir(self, from_path, to_path):
185 def remove_file(self, path):
190 def remove_dir(self, path):
195 def get_file_size(self, path):
200 def target_hosted(self):
207 def state_dir_file(self, file_name):
211 def wait_for_device(self, timeout):
215 def wait_for_no_device(self, timeout):
219 def log(self, text):
237 def is_removable_device(self, device):
257 def get_internal_disk(self, device):
276 def get_root_part(self):
286 def get_root_dev(self):
290 def join_part(self, dev, part):
297 def strip_part(self, dev_with_part):
302 def retrieve_body_version(self, blob):
318 def retrieve_datakey_version(self, blob):
330 def retrieve_kernel_subkey_version(self, blob):
346 def retrieve_preamble_flags(self, blob):
367 def read_partition(self, partition, size):