parameters: ()
docstring: Delete all temporary AVDs which are created for tests.
  
    If the test exits abnormally and some temporary AVDs created when testing may
    be left in the system. Clean these AVDs.
docstring_summary: Delete all temporary AVDs which are created for tests.
docstring_tokens: Delete all temporary AVDs which are created for tests .
function: def DeleteAllTempAVDs():
    """Delete all temporary AVDs which are created for tests.
  
    If the test exits abnormally and some temporary AVDs created when testing may
    be left in the system. Clean these AVDs.
    """
    logging.info('Deleting all the avd files')
    avds = device_utils.GetAVDs()
    if not avds:
      return
    for avd_name in avds:
      if 'run_tests_avd' in avd_name:
        cmd = [_TOOLS_ANDROID_PATH, '-s', 'delete', 'avd', '--name', avd_name]
        cmd_helper.RunCmd(cmd)
        logging.info('Delete AVD %s', avd_name)
function_tokens: def DeleteAllTempAVDs ( ) : logging . info ( 'Deleting all the avd files' ) avds = device_utils . GetAVDs ( ) if not avds : return for avd_name in avds : if 'run_tests_avd' in avd_name : cmd = [ _TOOLS_ANDROID_PATH , '-s' , 'delete' , 'avd' , '--name' , avd_name ] cmd_helper . RunCmd ( cmd ) logging . info ( 'Delete AVD %s' , avd_name )