1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.internal.forwarders.android_forwarder</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.forwarders.html"><font color="#ffffff">forwarders</font></a>.android_forwarder</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/forwarders/android_forwarder.py">telemetry/internal/forwarders/android_forwarder.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="telemetry.internal.platform.android_device.html">telemetry.internal.platform.android_device</a><br> 24<a href="atexit.html">atexit</a><br> 25<a href="telemetry.internal.util.binary_manager.html">telemetry.internal.util.binary_manager</a><br> 26<a href="devil.android.device_errors.html">devil.android.device_errors</a><br> 27</td><td width="25%" valign=top><a href="devil.android.device_utils.html">devil.android.device_utils</a><br> 28<a href="pylib.forwarder.html">pylib.forwarder</a><br> 29<a href="telemetry.internal.forwarders.html">telemetry.internal.forwarders</a><br> 30<a href="logging.html">logging</a><br> 31</td><td width="25%" valign=top><a href="os.html">os</a><br> 32<a href="telemetry.core.platform.html">telemetry.core.platform</a><br> 33<a href="re.html">re</a><br> 34<a href="socket.html">socket</a><br> 35</td><td width="25%" valign=top><a href="struct.html">struct</a><br> 36<a href="subprocess.html">subprocess</a><br> 37<a href="telemetry.core.util.html">telemetry.core.util</a><br> 38</td></tr></table></td></tr></table><p> 39<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 40<tr bgcolor="#ee77aa"> 41<td colspan=3 valign=bottom> <br> 42<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 43 44<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 45<td width="100%"><dl> 46<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> 47</font></dt><dd> 48<dl> 49<dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.android_forwarder.html#AndroidRndisConfigurator">AndroidRndisConfigurator</a> 50</font></dt></dl> 51</dd> 52<dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.html#Forwarder">telemetry.internal.forwarders.Forwarder</a>(<a href="__builtin__.html#object">__builtin__.object</a>) 53</font></dt><dd> 54<dl> 55<dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.android_forwarder.html#AndroidForwarder">AndroidForwarder</a> 56</font></dt><dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.android_forwarder.html#AndroidRndisForwarder">AndroidRndisForwarder</a> 57</font></dt></dl> 58</dd> 59<dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.html#ForwarderFactory">telemetry.internal.forwarders.ForwarderFactory</a>(<a href="__builtin__.html#object">__builtin__.object</a>) 60</font></dt><dd> 61<dl> 62<dt><font face="helvetica, arial"><a href="telemetry.internal.forwarders.android_forwarder.html#AndroidForwarderFactory">AndroidForwarderFactory</a> 63</font></dt></dl> 64</dd> 65</dl> 66 <p> 67<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 68<tr bgcolor="#ffc8d8"> 69<td colspan=3 valign=bottom> <br> 70<font color="#000000" face="helvetica, arial"><a name="AndroidForwarder">class <strong>AndroidForwarder</strong></a>(<a href="telemetry.internal.forwarders.html#Forwarder">telemetry.internal.forwarders.Forwarder</a>)</font></td></tr> 71 72<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 73<td width="100%"><dl><dt>Method resolution order:</dt> 74<dd><a href="telemetry.internal.forwarders.android_forwarder.html#AndroidForwarder">AndroidForwarder</a></dd> 75<dd><a href="telemetry.internal.forwarders.html#Forwarder">telemetry.internal.forwarders.Forwarder</a></dd> 76<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 77</dl> 78<hr> 79Methods defined here:<br> 80<dl><dt><a name="AndroidForwarder-Close"><strong>Close</strong></a>(self)</dt></dl> 81 82<dl><dt><a name="AndroidForwarder-__init__"><strong>__init__</strong></a>(self, device, port_pairs)</dt></dl> 83 84<hr> 85Data descriptors inherited from <a href="telemetry.internal.forwarders.html#Forwarder">telemetry.internal.forwarders.Forwarder</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>host_ip</strong></dt> 93</dl> 94<dl><dt><strong>host_port</strong></dt> 95</dl> 96<dl><dt><strong>port_pairs</strong></dt> 97</dl> 98<dl><dt><strong>url</strong></dt> 99</dl> 100</td></tr></table> <p> 101<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 102<tr bgcolor="#ffc8d8"> 103<td colspan=3 valign=bottom> <br> 104<font color="#000000" face="helvetica, arial"><a name="AndroidForwarderFactory">class <strong>AndroidForwarderFactory</strong></a>(<a href="telemetry.internal.forwarders.html#ForwarderFactory">telemetry.internal.forwarders.ForwarderFactory</a>)</font></td></tr> 105 106<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> 107<td width="100%"><dl><dt>Method resolution order:</dt> 108<dd><a href="telemetry.internal.forwarders.android_forwarder.html#AndroidForwarderFactory">AndroidForwarderFactory</a></dd> 109<dd><a href="telemetry.internal.forwarders.html#ForwarderFactory">telemetry.internal.forwarders.ForwarderFactory</a></dd> 110<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 111</dl> 112<hr> 113Methods defined here:<br> 114<dl><dt><a name="AndroidForwarderFactory-Create"><strong>Create</strong></a>(self, port_pairs)</dt></dl> 115 116<dl><dt><a name="AndroidForwarderFactory-__init__"><strong>__init__</strong></a>(self, device, use_rndis)</dt></dl> 117 118<hr> 119Data descriptors defined here:<br> 120<dl><dt><strong>does_forwarder_override_dns</strong></dt> 121</dl> 122<dl><dt><strong>host_ip</strong></dt> 123</dl> 124<hr> 125Data descriptors inherited from <a href="telemetry.internal.forwarders.html#ForwarderFactory">telemetry.internal.forwarders.ForwarderFactory</a>:<br> 126<dl><dt><strong>__dict__</strong></dt> 127<dd><tt>dictionary for instance variables (if defined)</tt></dd> 128</dl> 129<dl><dt><strong>__weakref__</strong></dt> 130<dd><tt>list of weak references to the object (if defined)</tt></dd> 131</dl> 132</td></tr></table> <p> 133<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 134<tr bgcolor="#ffc8d8"> 135<td colspan=3 valign=bottom> <br> 136<font color="#000000" face="helvetica, arial"><a name="AndroidRndisConfigurator">class <strong>AndroidRndisConfigurator</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> 137 138<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 139<td colspan=2><tt>Configures a linux host to connect to an android device via RNDIS.<br> 140 <br> 141Note that we intentionally leave RNDIS running on the device. This is<br> 142because the setup is slow and potentially flaky and leaving it running<br> 143doesn't seem to interfere with any other developer or bot use-cases.<br> </tt></td></tr> 144<tr><td> </td> 145<td width="100%">Methods defined here:<br> 146<dl><dt><a name="AndroidRndisConfigurator-OverrideRoutingPolicy"><strong>OverrideRoutingPolicy</strong></a>(self)</dt><dd><tt>Override any routing policy that could prevent<br> 147packets from reaching the rndis interface</tt></dd></dl> 148 149<dl><dt><a name="AndroidRndisConfigurator-RestoreRoutingPolicy"><strong>RestoreRoutingPolicy</strong></a>(self)</dt></dl> 150 151<dl><dt><a name="AndroidRndisConfigurator-__init__"><strong>__init__</strong></a>(self, device)</dt></dl> 152 153<hr> 154Data descriptors defined here:<br> 155<dl><dt><strong>__dict__</strong></dt> 156<dd><tt>dictionary for instance variables (if defined)</tt></dd> 157</dl> 158<dl><dt><strong>__weakref__</strong></dt> 159<dd><tt>list of weak references to the object (if defined)</tt></dd> 160</dl> 161<dl><dt><strong>host_ip</strong></dt> 162</dl> 163</td></tr></table> <p> 164<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 165<tr bgcolor="#ffc8d8"> 166<td colspan=3 valign=bottom> <br> 167<font color="#000000" face="helvetica, arial"><a name="AndroidRndisForwarder">class <strong>AndroidRndisForwarder</strong></a>(<a href="telemetry.internal.forwarders.html#Forwarder">telemetry.internal.forwarders.Forwarder</a>)</font></td></tr> 168 169<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 170<td colspan=2><tt>Forwards traffic using RNDIS. Assumes the device has root access.<br> </tt></td></tr> 171<tr><td> </td> 172<td width="100%"><dl><dt>Method resolution order:</dt> 173<dd><a href="telemetry.internal.forwarders.android_forwarder.html#AndroidRndisForwarder">AndroidRndisForwarder</a></dd> 174<dd><a href="telemetry.internal.forwarders.html#Forwarder">telemetry.internal.forwarders.Forwarder</a></dd> 175<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 176</dl> 177<hr> 178Methods defined here:<br> 179<dl><dt><a name="AndroidRndisForwarder-Close"><strong>Close</strong></a>(self)</dt></dl> 180 181<dl><dt><a name="AndroidRndisForwarder-__init__"><strong>__init__</strong></a>(self, device, rndis_configurator, port_pairs)</dt></dl> 182 183<hr> 184Data descriptors defined here:<br> 185<dl><dt><strong>host_ip</strong></dt> 186</dl> 187<hr> 188Data descriptors inherited from <a href="telemetry.internal.forwarders.html#Forwarder">telemetry.internal.forwarders.Forwarder</a>:<br> 189<dl><dt><strong>__dict__</strong></dt> 190<dd><tt>dictionary for instance variables (if defined)</tt></dd> 191</dl> 192<dl><dt><strong>__weakref__</strong></dt> 193<dd><tt>list of weak references to the object (if defined)</tt></dd> 194</dl> 195<dl><dt><strong>host_port</strong></dt> 196</dl> 197<dl><dt><strong>port_pairs</strong></dt> 198</dl> 199<dl><dt><strong>url</strong></dt> 200</dl> 201</td></tr></table></td></tr></table> 202</body></html>