Lines Matching +full:class +full:- +full:utils
3 # Use of this source code is governed by a BSD-style license that can be
6 """Facade to access the system-related functionality."""
13 from autotest_lib.client.bin import utils
16 class SystemFacadeLocalError(Exception):
21 class SystemFacadeLocal(object):
22 """Facede to access the system-related functionality.
24 The methods inside this class only accept Python native types.
62 original_mode = utils.read_one_line(governor_path)
63 utils.open_write_close(governor_path, mode)
81 return utils.get_cpu_usage()
85 """Computes the fraction of CPU time spent non-idling.
90 return utils.compute_active_cpu_time(cpu_usage_start,
96 return utils.get_mem_total()
101 return utils.get_mem_free()
113 return utils.get_mem_free_plus_buffers_and_cached()
118 return utils.get_ec_temperatures()
124 return utils.get_current_temperature_max()
128 return utils.get_current_board()
135 return utils.get_chromeos_release_version()
141 return utils.get_num_allocated_file_handles()
147 return utils.get_storage_statistics(device)
153 return utils.get_energy_usage()
182 class BackgroundWorker(object):
200 self._bg_job = utils.BgJob(self._command, stdout_tee=self._stdout)
240 utils.nuke_subprocess(self._bg_job.sp)
241 utils.join_bg_jobs([self._bg_job])