1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3 <html><head><title>Python: module telemetry.core.chrome.android_browser_backend</title> 4 </head><body bgcolor="#f0f0f8"> 5 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 7 <tr bgcolor="#7799ee"> 8 <td valign=bottom> <br> 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.core.html"><font color="#ffffff">core</font></a>.<a href="telemetry.core.chrome.html"><font color="#ffffff">chrome</font></a>.android_browser_backend</strong></big></big></font></td 10 ><td align=right valign=bottom 11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/core/chrome/android_browser_backend.py">telemetry/core/chrome/android_browser_backend.py</a></font></td></tr></table> 12 <p><tt># Copyright (c) 2012 The Chromium Authors. All rights reserved.<br> 13 # Use of this source code is governed by a BSD-style license that can be<br> 14 # found in the LICENSE file.</tt></p> 15 <p> 16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 17 <tr bgcolor="#aa55cc"> 18 <td colspan=3 valign=bottom> <br> 19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 20 21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="telemetry.core.chrome.adb_commands.html">telemetry.core.chrome.adb_commands</a><br> 23 <a href="telemetry.core.chrome.browser_backend.html">telemetry.core.chrome.browser_backend</a><br> 24 <a href="telemetry.core.exceptions.html">telemetry.core.exceptions</a><br> 25 </td><td width="25%" valign=top><a href="logging.html">logging</a><br> 26 <a href="os.html">os</a><br> 27 <a href="subprocess.html">subprocess</a><br> 28 </td><td width="25%" valign=top><a href="sys.html">sys</a><br> 29 <a href="time.html">time</a><br> 30 <a href="telemetry.core.util.html">telemetry.core.util</a><br> 31 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 32 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 33 <tr bgcolor="#ee77aa"> 34 <td colspan=3 valign=bottom> <br> 35 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 36 37 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 38 <td width="100%"><dl> 39 <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> 40 </font></dt><dd> 41 <dl> 42 <dt><font face="helvetica, arial"><a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a> 43 </font></dt><dd> 44 <dl> 45 <dt><font face="helvetica, arial"><a href="telemetry.core.chrome.android_browser_backend.html#ChromeBackendSettings">ChromeBackendSettings</a> 46 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.core.chrome.android_browser_backend.html#ChromiumTestShellBackendSettings">ChromiumTestShellBackendSettings</a> 47 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.core.chrome.android_browser_backend.html#ContentShellBackendSettings">ContentShellBackendSettings</a> 48 </font></dt><dt><font face="helvetica, arial"><a href="telemetry.core.chrome.android_browser_backend.html#WebviewBackendSettings">WebviewBackendSettings</a> 49 </font></dt></dl> 50 </dd> 51 </dl> 52 </dd> 53 <dt><font face="helvetica, arial"><a href="telemetry.core.chrome.browser_backend.html#BrowserBackend">telemetry.core.chrome.browser_backend.BrowserBackend</a>(<a href="__builtin__.html#object">__builtin__.object</a>) 54 </font></dt><dd> 55 <dl> 56 <dt><font face="helvetica, arial"><a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackend">AndroidBrowserBackend</a> 57 </font></dt></dl> 58 </dd> 59 </dl> 60 <p> 61 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 62 <tr bgcolor="#ffc8d8"> 63 <td colspan=3 valign=bottom> <br> 64 <font color="#000000" face="helvetica, arial"><a name="AndroidBrowserBackend">class <strong>AndroidBrowserBackend</strong></a>(<a href="telemetry.core.chrome.browser_backend.html#BrowserBackend">telemetry.core.chrome.browser_backend.BrowserBackend</a>)</font></td></tr> 65 66 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 67 <td colspan=2><tt>The backend for controlling a browser instance running on Android.<br> </tt></td></tr> 68 <tr><td> </td> 69 <td width="100%"><dl><dt>Method resolution order:</dt> 70 <dd><a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackend">AndroidBrowserBackend</a></dd> 71 <dd><a href="telemetry.core.chrome.browser_backend.html#BrowserBackend">telemetry.core.chrome.browser_backend.BrowserBackend</a></dd> 72 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 73 </dl> 74 <hr> 75 Methods defined here:<br> 76 <dl><dt><a name="AndroidBrowserBackend-Close"><strong>Close</strong></a>(self)</dt></dl> 77 78 <dl><dt><a name="AndroidBrowserBackend-CreateForwarder"><strong>CreateForwarder</strong></a>(self, *port_pairs)</dt></dl> 79 80 <dl><dt><a name="AndroidBrowserBackend-GetBrowserStartupArgs"><strong>GetBrowserStartupArgs</strong></a>(self)</dt></dl> 81 82 <dl><dt><a name="AndroidBrowserBackend-GetRemotePort"><strong>GetRemotePort</strong></a>(self, local_port)</dt></dl> 83 84 <dl><dt><a name="AndroidBrowserBackend-GetStackTrace"><strong>GetStackTrace</strong></a>(self)</dt></dl> 85 86 <dl><dt><a name="AndroidBrowserBackend-GetStandardOutput"><strong>GetStandardOutput</strong></a>(self)</dt></dl> 87 88 <dl><dt><a name="AndroidBrowserBackend-IsBrowserRunning"><strong>IsBrowserRunning</strong></a>(self)</dt></dl> 89 90 <dl><dt><a name="AndroidBrowserBackend-__del__"><strong>__del__</strong></a>(self)</dt></dl> 91 92 <dl><dt><a name="AndroidBrowserBackend-__init__"><strong>__init__</strong></a>(self, options, backend_settings)</dt></dl> 93 94 <hr> 95 Data descriptors defined here:<br> 96 <dl><dt><strong>adb</strong></dt> 97 </dl> 98 <dl><dt><strong>pid</strong></dt> 99 </dl> 100 <hr> 101 Methods inherited from <a href="telemetry.core.chrome.browser_backend.html#BrowserBackend">telemetry.core.chrome.browser_backend.BrowserBackend</a>:<br> 102 <dl><dt><a name="AndroidBrowserBackend-GetProcessName"><strong>GetProcessName</strong></a>(self, cmd_line)</dt><dd><tt>Returns a user-friendly name for the process of the given |cmd_line|.</tt></dd></dl> 103 104 <dl><dt><a name="AndroidBrowserBackend-GetTraceResultAndReset"><strong>GetTraceResultAndReset</strong></a>(self)</dt></dl> 105 106 <dl><dt><a name="AndroidBrowserBackend-Request"><strong>Request</strong></a>(self, path, timeout<font color="#909090">=None</font>)</dt></dl> 107 108 <dl><dt><a name="AndroidBrowserBackend-SetBrowser"><strong>SetBrowser</strong></a>(self, browser)</dt></dl> 109 110 <dl><dt><a name="AndroidBrowserBackend-StartTracing"><strong>StartTracing</strong></a>(self, custom_categories<font color="#909090">=None</font>, timeout<font color="#909090">=60</font>)</dt><dd><tt>custom_categories is an optional string containing a list of<br> 111 comma separated categories that will be traced instead of the<br> 112 default category set. Example: use<br> 113 "webkit,cc,disabled-by-default-cc.debug" to trace only those three<br> 114 event categories.</tt></dd></dl> 115 116 <dl><dt><a name="AndroidBrowserBackend-StopTracing"><strong>StopTracing</strong></a>(self)</dt></dl> 117 118 <hr> 119 Data descriptors inherited from <a href="telemetry.core.chrome.browser_backend.html#BrowserBackend">telemetry.core.chrome.browser_backend.BrowserBackend</a>:<br> 120 <dl><dt><strong>__dict__</strong></dt> 121 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 122 </dl> 123 <dl><dt><strong>__weakref__</strong></dt> 124 <dd><tt>list of weak references to the object (if defined)</tt></dd> 125 </dl> 126 <dl><dt><strong>browser</strong></dt> 127 </dl> 128 <dl><dt><strong>chrome_branch_number</strong></dt> 129 </dl> 130 <dl><dt><strong>extension_dict_backend</strong></dt> 131 </dl> 132 <dl><dt><strong>misc_web_contents_backend</strong></dt> 133 <dd><tt>Access to chrome://oobe/login page which is neither a tab nor an<br> 134 extension.</tt></dd> 135 </dl> 136 <dl><dt><strong>supports_extensions</strong></dt> 137 <dd><tt>True if this browser backend supports extensions.</tt></dd> 138 </dl> 139 <dl><dt><strong>supports_tab_control</strong></dt> 140 </dl> 141 <dl><dt><strong>supports_tracing</strong></dt> 142 </dl> 143 <dl><dt><strong>tab_list_backend</strong></dt> 144 </dl> 145 <dl><dt><strong>wpr_mode</strong></dt> 146 </dl> 147 <hr> 148 Data and other attributes inherited from <a href="telemetry.core.chrome.browser_backend.html#BrowserBackend">telemetry.core.chrome.browser_backend.BrowserBackend</a>:<br> 149 <dl><dt><strong>WEBPAGEREPLAY_HOST</strong> = '127.0.0.1'</dl> 150 151 </td></tr></table> <p> 152 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 153 <tr bgcolor="#ffc8d8"> 154 <td colspan=3 valign=bottom> <br> 155 <font color="#000000" face="helvetica, arial"><a name="AndroidBrowserBackendSettings">class <strong>AndroidBrowserBackendSettings</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> 156 157 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 158 <td width="100%">Methods defined here:<br> 159 <dl><dt><a name="AndroidBrowserBackendSettings-GetDevtoolsRemotePort"><strong>GetDevtoolsRemotePort</strong></a>(self)</dt></dl> 160 161 <dl><dt><a name="AndroidBrowserBackendSettings-PushProfile"><strong>PushProfile</strong></a>(self, _)</dt></dl> 162 163 <dl><dt><a name="AndroidBrowserBackendSettings-RemoveProfile"><strong>RemoveProfile</strong></a>(self)</dt></dl> 164 165 <dl><dt><a name="AndroidBrowserBackendSettings-__init__"><strong>__init__</strong></a>(self, adb, activity, cmdline_file, package, pseudo_exec_name)</dt></dl> 166 167 <hr> 168 Data descriptors defined here:<br> 169 <dl><dt><strong>__dict__</strong></dt> 170 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 171 </dl> 172 <dl><dt><strong>__weakref__</strong></dt> 173 <dd><tt>list of weak references to the object (if defined)</tt></dd> 174 </dl> 175 <dl><dt><strong>is_content_shell</strong></dt> 176 </dl> 177 </td></tr></table> <p> 178 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 179 <tr bgcolor="#ffc8d8"> 180 <td colspan=3 valign=bottom> <br> 181 <font color="#000000" face="helvetica, arial"><a name="ChromeBackendSettings">class <strong>ChromeBackendSettings</strong></a>(<a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a>)</font></td></tr> 182 183 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 184 <td width="100%"><dl><dt>Method resolution order:</dt> 185 <dd><a href="telemetry.core.chrome.android_browser_backend.html#ChromeBackendSettings">ChromeBackendSettings</a></dd> 186 <dd><a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a></dd> 187 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 188 </dl> 189 <hr> 190 Methods defined here:<br> 191 <dl><dt><a name="ChromeBackendSettings-GetDevtoolsRemotePort"><strong>GetDevtoolsRemotePort</strong></a>(self)</dt></dl> 192 193 <dl><dt><a name="ChromeBackendSettings-PushProfile"><strong>PushProfile</strong></a>(self, new_profile_dir)</dt></dl> 194 195 <dl><dt><a name="ChromeBackendSettings-__init__"><strong>__init__</strong></a>(self, adb, package)</dt></dl> 196 197 <hr> 198 Methods inherited from <a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a>:<br> 199 <dl><dt><a name="ChromeBackendSettings-RemoveProfile"><strong>RemoveProfile</strong></a>(self)</dt></dl> 200 201 <hr> 202 Data descriptors inherited from <a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a>:<br> 203 <dl><dt><strong>__dict__</strong></dt> 204 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 205 </dl> 206 <dl><dt><strong>__weakref__</strong></dt> 207 <dd><tt>list of weak references to the object (if defined)</tt></dd> 208 </dl> 209 <dl><dt><strong>is_content_shell</strong></dt> 210 </dl> 211 </td></tr></table> <p> 212 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 213 <tr bgcolor="#ffc8d8"> 214 <td colspan=3 valign=bottom> <br> 215 <font color="#000000" face="helvetica, arial"><a name="ChromiumTestShellBackendSettings">class <strong>ChromiumTestShellBackendSettings</strong></a>(<a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a>)</font></td></tr> 216 217 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 218 <td width="100%"><dl><dt>Method resolution order:</dt> 219 <dd><a href="telemetry.core.chrome.android_browser_backend.html#ChromiumTestShellBackendSettings">ChromiumTestShellBackendSettings</a></dd> 220 <dd><a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a></dd> 221 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 222 </dl> 223 <hr> 224 Methods defined here:<br> 225 <dl><dt><a name="ChromiumTestShellBackendSettings-GetDevtoolsRemotePort"><strong>GetDevtoolsRemotePort</strong></a>(self)</dt></dl> 226 227 <dl><dt><a name="ChromiumTestShellBackendSettings-__init__"><strong>__init__</strong></a>(self, adb, package)</dt></dl> 228 229 <hr> 230 Data descriptors defined here:<br> 231 <dl><dt><strong>is_content_shell</strong></dt> 232 </dl> 233 <hr> 234 Methods inherited from <a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a>:<br> 235 <dl><dt><a name="ChromiumTestShellBackendSettings-PushProfile"><strong>PushProfile</strong></a>(self, _)</dt></dl> 236 237 <dl><dt><a name="ChromiumTestShellBackendSettings-RemoveProfile"><strong>RemoveProfile</strong></a>(self)</dt></dl> 238 239 <hr> 240 Data descriptors inherited from <a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a>:<br> 241 <dl><dt><strong>__dict__</strong></dt> 242 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 243 </dl> 244 <dl><dt><strong>__weakref__</strong></dt> 245 <dd><tt>list of weak references to the object (if defined)</tt></dd> 246 </dl> 247 </td></tr></table> <p> 248 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 249 <tr bgcolor="#ffc8d8"> 250 <td colspan=3 valign=bottom> <br> 251 <font color="#000000" face="helvetica, arial"><a name="ContentShellBackendSettings">class <strong>ContentShellBackendSettings</strong></a>(<a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a>)</font></td></tr> 252 253 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 254 <td width="100%"><dl><dt>Method resolution order:</dt> 255 <dd><a href="telemetry.core.chrome.android_browser_backend.html#ContentShellBackendSettings">ContentShellBackendSettings</a></dd> 256 <dd><a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a></dd> 257 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 258 </dl> 259 <hr> 260 Methods defined here:<br> 261 <dl><dt><a name="ContentShellBackendSettings-GetDevtoolsRemotePort"><strong>GetDevtoolsRemotePort</strong></a>(self)</dt></dl> 262 263 <dl><dt><a name="ContentShellBackendSettings-__init__"><strong>__init__</strong></a>(self, adb, package)</dt></dl> 264 265 <hr> 266 Data descriptors defined here:<br> 267 <dl><dt><strong>is_content_shell</strong></dt> 268 </dl> 269 <hr> 270 Methods inherited from <a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a>:<br> 271 <dl><dt><a name="ContentShellBackendSettings-PushProfile"><strong>PushProfile</strong></a>(self, _)</dt></dl> 272 273 <dl><dt><a name="ContentShellBackendSettings-RemoveProfile"><strong>RemoveProfile</strong></a>(self)</dt></dl> 274 275 <hr> 276 Data descriptors inherited from <a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a>:<br> 277 <dl><dt><strong>__dict__</strong></dt> 278 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 279 </dl> 280 <dl><dt><strong>__weakref__</strong></dt> 281 <dd><tt>list of weak references to the object (if defined)</tt></dd> 282 </dl> 283 </td></tr></table> <p> 284 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 285 <tr bgcolor="#ffc8d8"> 286 <td colspan=3 valign=bottom> <br> 287 <font color="#000000" face="helvetica, arial"><a name="WebviewBackendSettings">class <strong>WebviewBackendSettings</strong></a>(<a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a>)</font></td></tr> 288 289 <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 290 <td width="100%"><dl><dt>Method resolution order:</dt> 291 <dd><a href="telemetry.core.chrome.android_browser_backend.html#WebviewBackendSettings">WebviewBackendSettings</a></dd> 292 <dd><a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a></dd> 293 <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 294 </dl> 295 <hr> 296 Methods defined here:<br> 297 <dl><dt><a name="WebviewBackendSettings-GetDevtoolsRemotePort"><strong>GetDevtoolsRemotePort</strong></a>(self)</dt></dl> 298 299 <dl><dt><a name="WebviewBackendSettings-__init__"><strong>__init__</strong></a>(self, adb, package)</dt></dl> 300 301 <hr> 302 Methods inherited from <a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a>:<br> 303 <dl><dt><a name="WebviewBackendSettings-PushProfile"><strong>PushProfile</strong></a>(self, _)</dt></dl> 304 305 <dl><dt><a name="WebviewBackendSettings-RemoveProfile"><strong>RemoveProfile</strong></a>(self)</dt></dl> 306 307 <hr> 308 Data descriptors inherited from <a href="telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings</a>:<br> 309 <dl><dt><strong>__dict__</strong></dt> 310 <dd><tt>dictionary for instance variables (if defined)</tt></dd> 311 </dl> 312 <dl><dt><strong>__weakref__</strong></dt> 313 <dd><tt>list of weak references to the object (if defined)</tt></dd> 314 </dl> 315 <dl><dt><strong>is_content_shell</strong></dt> 316 </dl> 317 </td></tr></table></td></tr></table> 318 </body></html>