1
2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3<html><head><title>Python: module telemetry.internal.platform.android_device</title>
4<meta charset="utf-8">
5</head><body bgcolor="#f0f0f8">
6
7<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
8<tr bgcolor="#7799ee">
9<td valign=bottom>&nbsp;<br>
10<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.platform.html"><font color="#ffffff">platform</font></a>.android_device</strong></big></big></font></td
11><td align=right valign=bottom
12><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/platform/android_device.py">telemetry/internal/platform/android_device.py</a></font></td></tr></table>
13    <p><tt>#&nbsp;Copyright&nbsp;2014&nbsp;The&nbsp;Chromium&nbsp;Authors.&nbsp;All&nbsp;rights&nbsp;reserved.<br>
14#&nbsp;Use&nbsp;of&nbsp;this&nbsp;source&nbsp;code&nbsp;is&nbsp;governed&nbsp;by&nbsp;a&nbsp;BSD-style&nbsp;license&nbsp;that&nbsp;can&nbsp;be<br>
15#&nbsp;found&nbsp;in&nbsp;the&nbsp;LICENSE&nbsp;file.</tt></p>
16<p>
17<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
18<tr bgcolor="#aa55cc">
19<td colspan=3 valign=bottom>&nbsp;<br>
20<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
21
22<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
23<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="pylib.constants.html">pylib.constants</a><br>
24<a href="telemetry.internal.platform.device.html">telemetry.internal.platform.device</a><br>
25<a href="devil.android.device_blacklist.html">devil.android.device_blacklist</a><br>
26</td><td width="25%" valign=top><a href="devil.android.device_errors.html">devil.android.device_errors</a><br>
27<a href="devil.android.device_utils.html">devil.android.device_utils</a><br>
28<a href="logging.html">logging</a><br>
29</td><td width="25%" valign=top><a href="telemetry.internal.platform.profiler.monsoon.html">telemetry.internal.platform.profiler.monsoon</a><br>
30<a href="os.html">os</a><br>
31<a href="re.html">re</a><br>
32</td><td width="25%" valign=top><a href="subprocess.html">subprocess</a><br>
33<a href="telemetry.core.util.html">telemetry.core.util</a><br>
34</td></tr></table></td></tr></table><p>
35<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
36<tr bgcolor="#ee77aa">
37<td colspan=3 valign=bottom>&nbsp;<br>
38<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
39
40<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
41<td width="100%"><dl>
42<dt><font face="helvetica, arial"><a href="telemetry.internal.platform.device.html#Device">telemetry.internal.platform.device.Device</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
43</font></dt><dd>
44<dl>
45<dt><font face="helvetica, arial"><a href="telemetry.internal.platform.android_device.html#AndroidDevice">AndroidDevice</a>
46</font></dt></dl>
47</dd>
48</dl>
49 <p>
50<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
51<tr bgcolor="#ffc8d8">
52<td colspan=3 valign=bottom>&nbsp;<br>
53<font color="#000000" face="helvetica, arial"><a name="AndroidDevice">class <strong>AndroidDevice</strong></a>(<a href="telemetry.internal.platform.device.html#Device">telemetry.internal.platform.device.Device</a>)</font></td></tr>
54
55<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
56<td colspan=2><tt>Class&nbsp;represents&nbsp;information&nbsp;for&nbsp;connecting&nbsp;to&nbsp;an&nbsp;android&nbsp;device.<br>
57&nbsp;<br>
58Attributes:<br>
59&nbsp;&nbsp;device_id:&nbsp;the&nbsp;device's&nbsp;serial&nbsp;string&nbsp;created&nbsp;by&nbsp;adb&nbsp;to&nbsp;uniquely<br>
60&nbsp;&nbsp;&nbsp;&nbsp;identify&nbsp;an&nbsp;emulator/device&nbsp;instance.&nbsp;This&nbsp;string&nbsp;can&nbsp;be&nbsp;found&nbsp;by&nbsp;running<br>
61&nbsp;&nbsp;&nbsp;&nbsp;'adb&nbsp;devices'&nbsp;command<br>
62&nbsp;&nbsp;enable_performance_mode:&nbsp;when&nbsp;this&nbsp;is&nbsp;set&nbsp;to&nbsp;True,&nbsp;android&nbsp;platform&nbsp;will&nbsp;be<br>
63&nbsp;&nbsp;set&nbsp;to&nbsp;high&nbsp;performance&nbsp;mode&nbsp;after&nbsp;browser&nbsp;is&nbsp;started.<br>&nbsp;</tt></td></tr>
64<tr><td>&nbsp;</td>
65<td width="100%"><dl><dt>Method resolution order:</dt>
66<dd><a href="telemetry.internal.platform.android_device.html#AndroidDevice">AndroidDevice</a></dd>
67<dd><a href="telemetry.internal.platform.device.html#Device">telemetry.internal.platform.device.Device</a></dd>
68<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
69</dl>
70<hr>
71Methods defined here:<br>
72<dl><dt><a name="AndroidDevice-__init__"><strong>__init__</strong></a>(self, device_id, enable_performance_mode<font color="#909090">=True</font>)</dt></dl>
73
74<hr>
75Class methods defined here:<br>
76<dl><dt><a name="AndroidDevice-GetAllConnectedDevices"><strong>GetAllConnectedDevices</strong></a>(cls, blacklist)<font color="#909090"><font face="helvetica, arial"> from <a href="__builtin__.html#type">__builtin__.type</a></font></font></dt></dl>
77
78<hr>
79Data descriptors defined here:<br>
80<dl><dt><strong>device_id</strong></dt>
81</dl>
82<dl><dt><strong>enable_performance_mode</strong></dt>
83</dl>
84<hr>
85Data descriptors inherited from <a href="telemetry.internal.platform.device.html#Device">telemetry.internal.platform.device.Device</a>:<br>
86<dl><dt><strong>__dict__</strong></dt>
87<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
88</dl>
89<dl><dt><strong>__weakref__</strong></dt>
90<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
91</dl>
92<dl><dt><strong>guid</strong></dt>
93</dl>
94<dl><dt><strong>name</strong></dt>
95</dl>
96</td></tr></table></td></tr></table><p>
97<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
98<tr bgcolor="#eeaa77">
99<td colspan=3 valign=bottom>&nbsp;<br>
100<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
101
102<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
103<td width="100%"><dl><dt><a name="-CanDiscoverDevices"><strong>CanDiscoverDevices</strong></a>()</dt><dd><tt>Returns&nbsp;true&nbsp;if&nbsp;devices&nbsp;are&nbsp;discoverable&nbsp;via&nbsp;adb.</tt></dd></dl>
104 <dl><dt><a name="-FindAllAvailableDevices"><strong>FindAllAvailableDevices</strong></a>(options)</dt><dd><tt>Returns&nbsp;a&nbsp;list&nbsp;of&nbsp;available&nbsp;devices.</tt></dd></dl>
105 <dl><dt><a name="-GetDevice"><strong>GetDevice</strong></a>(finder_options)</dt><dd><tt>Return&nbsp;a&nbsp;Platform&nbsp;instance&nbsp;for&nbsp;the&nbsp;device&nbsp;specified&nbsp;by&nbsp;|finder_options|.</tt></dd></dl>
106 <dl><dt><a name="-GetDeviceSerials"><strong>GetDeviceSerials</strong></a>(blacklist)</dt><dd><tt>Return&nbsp;the&nbsp;list&nbsp;of&nbsp;device&nbsp;serials&nbsp;of&nbsp;healthy&nbsp;devices.<br>
107&nbsp;<br>
108If&nbsp;a&nbsp;preferred&nbsp;device&nbsp;has&nbsp;been&nbsp;set&nbsp;with&nbsp;ANDROID_SERIAL,&nbsp;it&nbsp;will&nbsp;be&nbsp;first&nbsp;in<br>
109the&nbsp;returned&nbsp;list.&nbsp;The&nbsp;arguments&nbsp;specify&nbsp;what&nbsp;devices&nbsp;to&nbsp;include&nbsp;in&nbsp;the&nbsp;list.</tt></dd></dl>
110</td></tr></table>
111</body></html>