OxygenUtil

public class OxygenUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.cloud.OxygenUtil


Utility to interact with Oxygen service.

Summary

Public constructors

OxygenUtil()

Default constructor of OxygenUtil

Public methods

void downloadLaunchFailureLogs(String error, ITestLogger logger)

Download error logs from GCS when Oxygen failed to launch a virtual device.

static LogDataType getDefaultLogType(String logFileName)

Determine a log file's log data type based on its name.

Public constructors

OxygenUtil

public OxygenUtil ()

Default constructor of OxygenUtil

Public methods

downloadLaunchFailureLogs

public void downloadLaunchFailureLogs (String error, 
                ITestLogger logger)

Download error logs from GCS when Oxygen failed to launch a virtual device.

Parameters
error String: The error message returned from Oxygen service

logger ITestLogger: The ITestLogger where to log the file

getDefaultLogType

public static LogDataType getDefaultLogType (String logFileName)

Determine a log file's log data type based on its name.

Parameters
logFileName String: The remote log file's name.

Returns
LogDataType A LogDataType which the log file associates with. Will return the type UNKNOWN if unable to determine the log data type based on its name.