parameters: (self)
return_statement: return CrosPowerMonitor.IsOnBatteryPower(status, board)
docstring: Determines if the device is being charged.
  
      Returns:
          True if the device is on battery power; False otherwise.
docstring_summary: Determines if the device is being charged.
docstring_tokens: Determines if the device is being charged .
function: def _IsOnBatteryPower(self):
      """Determines if the device is being charged.
  
      Returns:
          True if the device is on battery power; False otherwise.
      """
      status = CrosPowerMonitor.ParsePowerStatus(
          self._platform.RunCommand(['dump_power_status']))
      board_data = self._platform.RunCommand(['cat', '/etc/lsb-release'])
      board = re.search('BOARD=(.*)', board_data).group(1)
      return CrosPowerMonitor.IsOnBatteryPower(status, board)
function_tokens: def _IsOnBatteryPower ( self ) : status = CrosPowerMonitor . ParsePowerStatus ( self . _platform . RunCommand ( [ 'dump_power_status' ] ) ) board_data = self . _platform . RunCommand ( [ 'cat' , '/etc/lsb-release' ] ) board = re . search ( 'BOARD=(.*)' , board_data ) . group ( 1 ) return CrosPowerMonitor . IsOnBatteryPower ( status , board )