components/cronet/tools/android_rndis_forwarder.py
def _CheckConfigureNetwork(self):
    """Enables RNDIS and configures it, retrying until we have connectivity."""
    force = False
    for _ in range(3):
      device_iface, host_iface = self._CheckEnableRndis(force)
      self._ConfigureNetwork(device_iface, host_iface)
      self.OverrideRoutingPolicy()
      # Sometimes the first packet will wake up the connection.
      for _ in range(3):
        if self._TestConnectivity():
          return
      force = True
    self.RestoreRoutingPolicy()
    raise Exception('No connectivity, giving up.')
Enables RNDIS and configures it, retrying until we have connectivity.
Enables RNDIS and configures it, retrying until we have connectivity.
Enables RNDIS and configures it retrying until we have connectivity .
def _CheckConfigureNetwork(self):
    force = False
    for _ in range(3):
      device_iface, host_iface = self._CheckEnableRndis(force)
      self._ConfigureNetwork(device_iface, host_iface)
      self.OverrideRoutingPolicy()
      for _ in range(3):
        if self._TestConnectivity():
          return
      force = True
    self.RestoreRoutingPolicy()
    raise Exception('No connectivity, giving up.')
def _CheckConfigureNetwork ( self ) : force = False for _ in range ( 3 ) : device_iface , host_iface = self . _CheckEnableRndis ( force ) self . _ConfigureNetwork ( device_iface , host_iface ) self . OverrideRoutingPolicy ( ) for _ in range ( 3 ) : if self . _TestConnectivity ( ) : return force = True self . RestoreRoutingPolicy ( ) raise Exception ( 'No connectivity, giving up.' )
Enables RNDIS and configures it, retrying until we have connectivity.
Enables RNDIS and configures it retrying until we have connectivity .
"""Enables RNDIS and configures it, retrying until we have connectivity.""" # Sometimes the first packet will wake up the connection.
self