parameters: ()
return_statement: return True
docstring: Returns true if adb is present.
  
    Note that this currently will return True even if the adb that's present
    cannot run on this system.
docstring_summary: Returns true if adb is present.
docstring_tokens: Returns true if adb is present .
function: def _HasValidAdb():
    """Returns true if adb is present.
  
    Note that this currently will return True even if the adb that's present
    cannot run on this system.
    """
    if os.name != 'posix' or cros_device.IsRunningOnCrOS():
      return False
  
    try:
      adb_path = adb_wrapper.AdbWrapper.GetAdbPath()
    except device_errors.NoAdbError:
      return False
  
    if os.path.isabs(adb_path) and not os.path.exists(adb_path):
      return False
  
    return True
function_tokens: def _HasValidAdb ( ) : if os . name != 'posix' or cros_device . IsRunningOnCrOS ( ) : return False try : adb_path = adb_wrapper . AdbWrapper . GetAdbPath ( ) except device_errors . NoAdbError : return False if os . path . isabs ( adb_path ) and not os . path . exists ( adb_path ) : return False return True