CommonLogRemoteFileUtil

public class CommonLogRemoteFileUtil
extends Object

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


This utility allows to avoid code duplication across the different remote device representation for the remote log fetching logic of common files.

Summary

Nested classes

class CommonLogRemoteFileUtil.KnownLogFileEntry

A representation of a known log entry for remote devices. 

Fields

public static final String EMULATOR_REMOTE_LOG_DIR

The directory where to find debug logs for an emulator instance.

public static final MultiMap<TestDeviceOptions.InstanceType, CommonLogRemoteFileUtil.KnownLogFileEntry> KNOWN_FILES_TO_FETCH

public static final String NESTED_REMOTE_LOG_DIR

The directory where to find debug logs for a nested remote instance.

public static final String OXYGEN_EMULATOR_LOG_DIR

The directory where to find emulator logs from Oxygen service.

public static final OXYGEN_LOG_FILES

public static final String OXYGEN_RUNTIME_LOG_DIR

The directory where to find Oxygen device runtime logs.

public static final String TOMBSTONES_ZIP_NAME

Public constructors

CommonLogRemoteFileUtil()

Public methods

static void fetchCommonFiles(ITestLogger testLogger, GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil)

Fetch and log the commonly known files from remote instances.

static void fetchTombstones(ITestLogger testLogger, GceAvdInfo gceAvd, TestDeviceOptions options, IRunUtil runUtil)

Fetch and log the tombstones from the remote instance.

Fields

EMULATOR_REMOTE_LOG_DIR

public static final String EMULATOR_REMOTE_LOG_DIR

The directory where to find debug logs for an emulator instance.

KNOWN_FILES_TO_FETCH

public static final MultiMap<TestDeviceOptions.InstanceType, CommonLogRemoteFileUtil.KnownLogFileEntry> KNOWN_FILES_TO_FETCH

NESTED_REMOTE_LOG_DIR

public static final String NESTED_REMOTE_LOG_DIR

The directory where to find debug logs for a nested remote instance.

OXYGEN_EMULATOR_LOG_DIR

public static final String OXYGEN_EMULATOR_LOG_DIR

The directory where to find emulator logs from Oxygen service.

OXYGEN_LOG_FILES

public static final  OXYGEN_LOG_FILES

OXYGEN_RUNTIME_LOG_DIR

public static final String OXYGEN_RUNTIME_LOG_DIR

The directory where to find Oxygen device runtime logs.

TOMBSTONES_ZIP_NAME

public static final String TOMBSTONES_ZIP_NAME

Public constructors

CommonLogRemoteFileUtil

public CommonLogRemoteFileUtil ()

Public methods

fetchCommonFiles

public static void fetchCommonFiles (ITestLogger testLogger, 
                GceAvdInfo gceAvd, 
                TestDeviceOptions options, 
                IRunUtil runUtil)

Fetch and log the commonly known files from remote instances.

Parameters
testLogger ITestLogger: The ITestLogger where to log the files.

gceAvd GceAvdInfo: The descriptor of the remote instance.

options TestDeviceOptions: The TestDeviceOptions describing the device options

runUtil IRunUtil: A IRunUtil to execute commands.

fetchTombstones

public static void fetchTombstones (ITestLogger testLogger, 
                GceAvdInfo gceAvd, 
                TestDeviceOptions options, 
                IRunUtil runUtil)

Fetch and log the tombstones from the remote instance.

Parameters
testLogger ITestLogger: The ITestLogger where to log the files.

gceAvd GceAvdInfo: The descriptor of the remote instance.

options TestDeviceOptions: The TestDeviceOptions describing the device options

runUtil IRunUtil: A IRunUtil to execute commands.