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">
6 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"heading">
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>
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>
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>
37 <tr><td bgcolor=
"#ee77aa"><tt> </tt></td><td> </td>
39 <dt><font face=
"helvetica, arial"><a href=
"__builtin__.html#object">__builtin__.object
</a>
42 <dt><font face=
"helvetica, arial"><a href=
"telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackendSettings">AndroidBrowserBackendSettings
</a>
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>
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>)
56 <dt><font face=
"helvetica, arial"><a href=
"telemetry.core.chrome.android_browser_backend.html#AndroidBrowserBackend">AndroidBrowserBackend
</a>
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>
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>
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>
75 Methods defined here:
<br>
76 <dl><dt><a name=
"AndroidBrowserBackend-Close"><strong>Close
</strong></a>(self)
</dt></dl>
78 <dl><dt><a name=
"AndroidBrowserBackend-CreateForwarder"><strong>CreateForwarder
</strong></a>(self, *port_pairs)
</dt></dl>
80 <dl><dt><a name=
"AndroidBrowserBackend-GetBrowserStartupArgs"><strong>GetBrowserStartupArgs
</strong></a>(self)
</dt></dl>
82 <dl><dt><a name=
"AndroidBrowserBackend-GetRemotePort"><strong>GetRemotePort
</strong></a>(self, local_port)
</dt></dl>
84 <dl><dt><a name=
"AndroidBrowserBackend-GetStackTrace"><strong>GetStackTrace
</strong></a>(self)
</dt></dl>
86 <dl><dt><a name=
"AndroidBrowserBackend-GetStandardOutput"><strong>GetStandardOutput
</strong></a>(self)
</dt></dl>
88 <dl><dt><a name=
"AndroidBrowserBackend-IsBrowserRunning"><strong>IsBrowserRunning
</strong></a>(self)
</dt></dl>
90 <dl><dt><a name=
"AndroidBrowserBackend-__del__"><strong>__del__
</strong></a>(self)
</dt></dl>
92 <dl><dt><a name=
"AndroidBrowserBackend-__init__"><strong>__init__
</strong></a>(self, options, backend_settings)
</dt></dl>
95 Data descriptors defined here:
<br>
96 <dl><dt><strong>adb
</strong></dt>
98 <dl><dt><strong>pid
</strong></dt>
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>
104 <dl><dt><a name=
"AndroidBrowserBackend-GetTraceResultAndReset"><strong>GetTraceResultAndReset
</strong></a>(self)
</dt></dl>
106 <dl><dt><a name=
"AndroidBrowserBackend-Request"><strong>Request
</strong></a>(self, path, timeout
<font color=
"#909090">=None
</font>)
</dt></dl>
108 <dl><dt><a name=
"AndroidBrowserBackend-SetBrowser"><strong>SetBrowser
</strong></a>(self, browser)
</dt></dl>
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>
116 <dl><dt><a name=
"AndroidBrowserBackend-StopTracing"><strong>StopTracing
</strong></a>(self)
</dt></dl>
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>
123 <dl><dt><strong>__weakref__
</strong></dt>
124 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
126 <dl><dt><strong>browser
</strong></dt>
128 <dl><dt><strong>chrome_branch_number
</strong></dt>
130 <dl><dt><strong>extension_dict_backend
</strong></dt>
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>
136 <dl><dt><strong>supports_extensions
</strong></dt>
137 <dd><tt>True
if
this
browser
backend
supports
extensions.
</tt></dd>
139 <dl><dt><strong>supports_tab_control
</strong></dt>
141 <dl><dt><strong>supports_tracing
</strong></dt>
143 <dl><dt><strong>tab_list_backend
</strong></dt>
145 <dl><dt><strong>wpr_mode
</strong></dt>
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>
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>
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>
161 <dl><dt><a name=
"AndroidBrowserBackendSettings-PushProfile"><strong>PushProfile
</strong></a>(self, _)
</dt></dl>
163 <dl><dt><a name=
"AndroidBrowserBackendSettings-RemoveProfile"><strong>RemoveProfile
</strong></a>(self)
</dt></dl>
165 <dl><dt><a name=
"AndroidBrowserBackendSettings-__init__"><strong>__init__
</strong></a>(self, adb, activity, cmdline_file, package, pseudo_exec_name)
</dt></dl>
168 Data descriptors defined here:
<br>
169 <dl><dt><strong>__dict__
</strong></dt>
170 <dd><tt>dictionary
for
instance
variables
(if
defined)
</tt></dd>
172 <dl><dt><strong>__weakref__
</strong></dt>
173 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
175 <dl><dt><strong>is_content_shell
</strong></dt>
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>
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>
190 Methods defined here:
<br>
191 <dl><dt><a name=
"ChromeBackendSettings-GetDevtoolsRemotePort"><strong>GetDevtoolsRemotePort
</strong></a>(self)
</dt></dl>
193 <dl><dt><a name=
"ChromeBackendSettings-PushProfile"><strong>PushProfile
</strong></a>(self, new_profile_dir)
</dt></dl>
195 <dl><dt><a name=
"ChromeBackendSettings-__init__"><strong>__init__
</strong></a>(self, adb, package)
</dt></dl>
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>
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>
206 <dl><dt><strong>__weakref__
</strong></dt>
207 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
209 <dl><dt><strong>is_content_shell
</strong></dt>
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>
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>
224 Methods defined here:
<br>
225 <dl><dt><a name=
"ChromiumTestShellBackendSettings-GetDevtoolsRemotePort"><strong>GetDevtoolsRemotePort
</strong></a>(self)
</dt></dl>
227 <dl><dt><a name=
"ChromiumTestShellBackendSettings-__init__"><strong>__init__
</strong></a>(self, adb, package)
</dt></dl>
230 Data descriptors defined here:
<br>
231 <dl><dt><strong>is_content_shell
</strong></dt>
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>
237 <dl><dt><a name=
"ChromiumTestShellBackendSettings-RemoveProfile"><strong>RemoveProfile
</strong></a>(self)
</dt></dl>
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>
244 <dl><dt><strong>__weakref__
</strong></dt>
245 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
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>
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>
260 Methods defined here:
<br>
261 <dl><dt><a name=
"ContentShellBackendSettings-GetDevtoolsRemotePort"><strong>GetDevtoolsRemotePort
</strong></a>(self)
</dt></dl>
263 <dl><dt><a name=
"ContentShellBackendSettings-__init__"><strong>__init__
</strong></a>(self, adb, package)
</dt></dl>
266 Data descriptors defined here:
<br>
267 <dl><dt><strong>is_content_shell
</strong></dt>
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>
273 <dl><dt><a name=
"ContentShellBackendSettings-RemoveProfile"><strong>RemoveProfile
</strong></a>(self)
</dt></dl>
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>
280 <dl><dt><strong>__weakref__
</strong></dt>
281 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
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>
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>
296 Methods defined here:
<br>
297 <dl><dt><a name=
"WebviewBackendSettings-GetDevtoolsRemotePort"><strong>GetDevtoolsRemotePort
</strong></a>(self)
</dt></dl>
299 <dl><dt><a name=
"WebviewBackendSettings-__init__"><strong>__init__
</strong></a>(self, adb, package)
</dt></dl>
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>
305 <dl><dt><a name=
"WebviewBackendSettings-RemoveProfile"><strong>RemoveProfile
</strong></a>(self)
</dt></dl>
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>
312 <dl><dt><strong>__weakref__
</strong></dt>
313 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
315 <dl><dt><strong>is_content_shell
</strong></dt>
317 </td></tr></table></td></tr></table>