Lines Matching refs:self
21 def __init__(self, timeout, output=None):
22 self.timeout = timeout
23 self.output = output
27 def __init__(self, status, output):
28 self.status = status
29 self.output = output
34 def __init__(self, device=None):
53 self.device = device_utils.DeviceUtils.HealthyDevices(
57 self.pushed = set()
59 def tear_down(self):
61 self.device.RemovePath(DEVICE_DIR, force=True, recursive=True)
63 def push_file(self, host_dir, file_name, target_rel='.',
75 # TODO(sergiyb): Implement this method using self.device.PushChangedFiles to
76 # avoid accessing low-level self.device.adb.
80 if file_on_host in self.pushed:
95 output = self.device.adb.Push(file_on_host, file_on_device_tmp)
100 self.device.adb.Shell('mkdir -p %s' % folder_on_device)
101 self.device.adb.Shell('cp %s %s' % (file_on_device_tmp, file_on_device))
102 self.pushed.add(file_on_host)
104 def push_executable(self, shell_dir, target_dir, binary):
113 self.push_file(shell_dir, binary, target_dir)
117 self.push_file(
123 self.push_file(
129 self.push_file(
136 def run(self, target_dir, binary, args, rel_path, timeout, env=None,
154 output = self.device.RunShellCommand(
170 with self.device.GetLogcatMonitor(output_file=logcat_file) as logmon:
177 def drop_ram_caches(self):
179 cache = cache_control.CacheControl(self.device)
182 def set_high_perf_mode(self):
184 perf = perf_control.PerfControl(self.device)
187 def set_default_perf_mode(self):
189 perf = perf_control.PerfControl(self.device)