components/cronet/tools/android_rndis_forwarder.py
def _GetDeviceAddresses(self, excluded_iface):
    """Returns the IP addresses on all connected devices.
    Excludes interface |excluded_iface| on the selected device.
    """
    my_device = str(self._device)
    addresses = []
    for device_serial in android_device.GetDeviceSerials(None):
      try:
        device = device_utils.DeviceUtils(device_serial)
        if device_serial == my_device:
          excluded = excluded_iface
        else:
          excluded = 'no interfaces excluded on other devices'
        output = device.RunShellCommand(
            ['ip', '-o', '-4', 'addr'], check_return=True)
        addresses += [
            line.split()[3] for line in output if excluded not in line]
      except device_errors.CommandFailedError:
        logging.warning('Unable to determine IP addresses for %s',
                        device_serial)
    return addresses
Returns the IP addresses on all connected devices.
    Excludes interface |excluded_iface| on the selected device.
    
Returns the IP addresses on all connected devices.
Excludes interface |excluded_iface| on the selected device.
Returns the IP addresses on all connected devices . Excludes interface |excluded_iface| on the selected device .
def _GetDeviceAddresses(self, excluded_iface):
    my_device = str(self._device)
    addresses = []
    for device_serial in android_device.GetDeviceSerials(None):
      try:
        device = device_utils.DeviceUtils(device_serial)
        if device_serial == my_device:
          excluded = excluded_iface
        else:
          excluded = 'no interfaces excluded on other devices'
        output = device.RunShellCommand(
            ['ip', '-o', '-4', 'addr'], check_return=True)
        addresses += [
            line.split()[3] for line in output if excluded not in line]
      except device_errors.CommandFailedError:
        logging.warning('Unable to determine IP addresses for %s',
                        device_serial)
    return addresses
def _GetDeviceAddresses ( self , excluded_iface ) : my_device = str ( self . _device ) addresses = [ ] for device_serial in android_device . GetDeviceSerials ( None ) : try : device = device_utils . DeviceUtils ( device_serial ) if device_serial == my_device : excluded = excluded_iface else : excluded = 'no interfaces excluded on other devices' output = device . RunShellCommand ( [ 'ip' , '-o' , '-4' , 'addr' ] , check_return = True ) addresses += [ line . split ( ) [ 3 ] for line in output if excluded not in line ] except device_errors . CommandFailedError : logging . warning ( 'Unable to determine IP addresses for %s' , device_serial ) return addresses
Returns the IP addresses on all connected devices.
Returns the IP addresses on all connected devices .
"""Returns the IP addresses on all connected devices.
    Excludes interface |excluded_iface| on the selected device.
    """
self
excluded_iface