Lines Matching refs:cls
49 def get_instance(cls, _device):
61 def remove_instance(cls, _device):
68 def get_screenshot_dir(cls):
73 def get_take_picture_path(cls, _device, picture_name,
81 folder = cls.get_screenshot_dir()
113 def screen_take_picture(cls, args, result, _ta=None, is_raise_exception=True):
118 def _do_capture(cls, _device, link, path, title, ext=".png"):
128 cls.compress_image(path)
135 '</a>'.format(link, path, cls.resize_image(path), title, link))
139 def __screen_and_save_picture(cls, _device, name, ext=".png", exe_type="takeImage"):
145 path, link = cls.get_image_dir_path(_device, name, ext, exe_type=exe_type)
147 return cls._do_capture(_device, link, path, name, ext)
150 def capture_step_picture(cls, file_name, step_name, _device, ext=".png"):
158 path, save_name = cls.get_take_picture_path(_device, file_name, ext, exe_type="stepImage")
161 return cls._do_capture(_device, link, path, step_name, ext)
167 def compress_image(cls, img_path, ratio=0.5, quality=80):
181 def get_image_dir_path(cls, _device, name, ext=".png", exe_type="takeImage"):
195 path, save_name = cls.get_take_picture_path(_device, name, ext, exe_type)
200 def resize_image(cls, file_path, max_height=480, file_type="image"):