parameters: (cls, platform_backend)
return_statement: return battor_wrapper.IsBattOrConnected(platform_backend.GetOSName())
docstring: Returns True if BattOr tracing is available.
docstring_summary: Returns True if BattOr tracing is available.
docstring_tokens: Returns True if BattOr tracing is available .
function: def IsSupported(cls, platform_backend):
      """Returns True if BattOr tracing is available."""
      if platform_backend.GetOSName() == 'android':
        # TODO(rnephew): When we pass BattOr device map into Telemetry, change
        # this to reflect that.
        return battor_wrapper.IsBattOrConnected(
            'android', android_device=platform_backend.device)
      return battor_wrapper.IsBattOrConnected(platform_backend.GetOSName())
function_tokens: def IsSupported ( cls , platform_backend ) : if platform_backend . GetOSName ( ) == 'android' : # TODO(rnephew): When we pass BattOr device map into Telemetry, change # this to reflect that. return battor_wrapper . IsBattOrConnected ( 'android' , android_device = platform_backend . device ) return battor_wrapper . IsBattOrConnected ( platform_backend . GetOSName ( ) )