OLD | NEW |
---|---|
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import logging | 5 import logging |
6 import subprocess | 6 import subprocess |
7 | 7 |
8 from telemetry.core import exceptions | 8 from telemetry.core import exceptions |
9 from telemetry.internal.platform import android_platform_backend as \ | 9 from telemetry.internal.platform import android_platform_backend as \ |
10 android_platform_backend_module | 10 android_platform_backend_module |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 self.platform_backend.SetDebugApp(self._backend_settings.package) | 60 self.platform_backend.SetDebugApp(self._backend_settings.package) |
61 | 61 |
62 @property | 62 @property |
63 def log_file_path(self): | 63 def log_file_path(self): |
64 return None | 64 return None |
65 | 65 |
66 @property | 66 @property |
67 def device(self): | 67 def device(self): |
68 return self.platform_backend.device | 68 return self.platform_backend.device |
69 | 69 |
70 @property | |
71 def supports_app_ui_interactions(self): | |
72 return True | |
73 | |
74 @property | |
75 def app_ui(self): | |
76 return app_ui.AppUi(self.device, package=self.package) | |
perezju
2017/04/05 08:46:44
Can you cache the value after its first use as in:
ssid
2017/04/13 20:07:39
Done.
| |
77 | |
70 def _StopBrowser(self): | 78 def _StopBrowser(self): |
71 # Note: it's important to stop and _not_ kill the browser app, since | 79 # Note: it's important to stop and _not_ kill the browser app, since |
72 # stopping also clears the app state in Android's activity manager. | 80 # stopping also clears the app state in Android's activity manager. |
73 self.platform_backend.StopApplication(self._backend_settings.package) | 81 self.platform_backend.StopApplication(self._backend_settings.package) |
74 | 82 |
75 def Start(self): | 83 def Start(self): |
76 self.device.adb.Logcat(clear=True) | 84 self.device.adb.Logcat(clear=True) |
77 if self.browser_options.startup_url: | 85 if self.browser_options.startup_url: |
78 url = self.browser_options.startup_url | 86 url = self.browser_options.startup_url |
79 elif self.browser_options.profile_dir: | 87 elif self.browser_options.profile_dir: |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
244 return None | 252 return None |
245 | 253 |
246 def GetAllMinidumpPaths(self): | 254 def GetAllMinidumpPaths(self): |
247 return None | 255 return None |
248 | 256 |
249 def GetAllUnsymbolizedMinidumpPaths(self): | 257 def GetAllUnsymbolizedMinidumpPaths(self): |
250 return None | 258 return None |
251 | 259 |
252 def SymbolizeMinidump(self, minidump_path): | 260 def SymbolizeMinidump(self, minidump_path): |
253 return None | 261 return None |
OLD | NEW |