to top
public class

TimeWaster

extends Object
implements ITargetPreparer @OptionClass(alias = "time-waster")
java.lang.Object
   ↳ com.android.tradefed.targetprep.TimeWaster

Class Overview

A simple target preparer to waste time and potentially restart the device.

Summary

Fields
private long mDelayMsecs @Option(name = "delay", description = "Time to delay, in msecs", mandatory = true)
private boolean mRebootAfterSleep @Option(name = "reboot-after-sleep", description = "Whether to reboot the device after sleeping")
private boolean mRebootBeforeSleep @Option(name = "reboot-before-sleep", description = "Whether to reboot the device before sleeping")
Public Constructors
TimeWaster()
Public Methods
void setUp(ITestDevice device, IBuildInfo buildInfo)
Perform the target setup for testing.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.targetprep.ITargetPreparer

Fields

private long mDelayMsecs

private boolean mRebootAfterSleep

private boolean mRebootBeforeSleep

Public Constructors

public TimeWaster ()

Public Methods

public void setUp (ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device the ITestDevice to prepare.
buildInfo data about the build under test.