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> <br> 10 <font color="#ffffff" face="helvetica, arial"> <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># Copyright 2014 The Chromium Authors. All rights reserved.<br> 14 # Use of this source code is governed by a BSD-style license that can be<br> 15 # found in the LICENSE 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> <br> 20 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 21 22 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </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> <br> 38 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 39 40 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </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> <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> </tt></td> 56 <td colspan=2><tt>Class represents information for connecting to an android device.<br> 57 <br> 58 Attributes:<br> 59 device_id: the device's serial string created by adb to uniquely<br> 60 identify an emulator/device instance. This string can be found by running<br> 61 'adb devices' command<br> 62 enable_performance_mode: when this is set to True, android platform will be<br> 63 set to high performance mode after browser is started.<br> </tt></td></tr> 64 <tr><td> </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> 71 Methods 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> 75 Class 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> 79 Data 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> 85 Data 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 for instance variables (if defined)</tt></dd> 88 </dl> 89 <dl><dt><strong>__weakref__</strong></dt> 90 <dd><tt>list of weak references to the object (if 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> <br> 100 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> 101 102 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> 103 <td width="100%"><dl><dt><a name="-CanDiscoverDevices"><strong>CanDiscoverDevices</strong></a>()</dt><dd><tt>Returns true if devices are discoverable via adb.</tt></dd></dl> 104 <dl><dt><a name="-FindAllAvailableDevices"><strong>FindAllAvailableDevices</strong></a>(options)</dt><dd><tt>Returns a list of available devices.</tt></dd></dl> 105 <dl><dt><a name="-GetDevice"><strong>GetDevice</strong></a>(finder_options)</dt><dd><tt>Return a Platform instance for the device specified by |finder_options|.</tt></dd></dl> 106 <dl><dt><a name="-GetDeviceSerials"><strong>GetDeviceSerials</strong></a>(blacklist)</dt><dd><tt>Return the list of device serials of healthy devices.<br> 107 <br> 108 If a preferred device has been set with ANDROID_SERIAL, it will be first in<br> 109 the returned list. The arguments specify what devices to include in the list.</tt></dd></dl> 110 </td></tr></table> 111 </body></html>