• Home
  • Raw
  • Download

Lines Matching refs:cls

59     def init(cls):  argument
60 cls.list_targets()
62 cls.load()
65 cls.set_options()
66 cls.print_options()
67 cls.dump()
72 def list_targets(cls): argument
77 cls.targets = [targets[0].decode()]
79 cls.targets = [t.decode() for t in targets]
84 def get_device(cls): argument
85 if len(cls.targets) > 1:
87 for i, t in enumerate(cls.targets):
90 cls.device_name = cls.targets[int(input()) - 1]
92 cls.device_name = cls.targets[0]
93 if cls.device_name == "failed to auto detect device":
96 elif cls.device_name == "[empty]":
99 cls.hdc_head = f"{cls.hdc_exe} -t {cls.device_name}"
104 def dump(cls): argument
110 … lambda k: not k[0].startswith("__") and not isinstance(k[1], classmethod), cls.__dict__.items())
119 def load(cls): argument
122 cls.hdc_exe = content.get("hdc_exe")
123 cls.local_path = content.get("local_path")
124 cls.remote_path = content.get("remote_path")
125 cls.remote_ip = content.get("remote_ip")
126 cls.hdc_head = content.get("hdc_head")
127 cls.tmode = content.get("tmode")
128 cls.device_name = content.get("device_name")
129 cls.changed_testcase = content.get("changed_testcase")
130 cls.testcase_path = content.get("testcase_path")
131 cls.loaded_testcase = content.get("load_testcase")
136 def print_options(cls): argument
153 def tconn_tcp(cls): argument
162 def set_options(cls): argument
164 cls.hdc_exe = opt
166 cls.local_path = opt
168 cls.remote_path = opt
170 cls.remote_ip = opt
172 cls.remote_port = int(opt)
174 cls.device_name = opt
176 cls.tmode = opt
177 if cls.tmode == "usb":
178 ret = cls.get_device()
181 elif cls.tconn_tcp():
182 cls.hdc_head = f"{cls.hdc_exe} -t {cls.remote_ip}:{cls.remote_port}"
190 def change_testcase(cls): argument
192 cls.changed_testcase = opt
196 cls.testcase_path = os.path.join(opt)
197 cls.print_options()
202 def load_testcase(cls): argument