| 80 | |
| 81 | |
| 82 | class AndroidPocoAgent(PocoAgent): |
| 83 | def __init__(self, endpoint, ime, use_airtest_input=False): |
| 84 | self.client = AndroidRpcClient(endpoint) |
| 85 | remote_poco = self.client.remote('poco-uiautomation-framework') |
| 86 | dumper = remote_poco.dumper |
| 87 | selector = remote_poco.selector |
| 88 | attributor = remote_poco.attributor |
| 89 | hierarchy = RemotePocoHierarchy(dumper, selector, attributor) |
| 90 | |
| 91 | if use_airtest_input: |
| 92 | inputer = AirtestInput() |
| 93 | else: |
| 94 | inputer = remote_poco.inputer |
| 95 | super(AndroidPocoAgent, self).__init__(hierarchy, inputer, ScreenWrapper(remote_poco.screen), None) |
| 96 | |
| 97 | |
| 98 | class KeepRunningInstrumentationThread(threading.Thread): |