interface

IManagedTestDevice

implements ITestDevice
com.android.tradefed.device.IManagedTestDevice
Known Indirect Subclasses

Class Overview

A ITestDevice whose lifecycle is managed.

Summary

Public Methods
abstract Process getEmulatorProcess()
Return the Process corresponding to this emulator.
abstract void recoverDevice()
Invoke recovery on the device.
abstract void setDeviceState(TestDeviceState deviceState)
Update the device's state.
abstract void setEmulatorProcess(Process p)
Sets the Process, when this device is an emulator.
abstract void setFastbootEnabled(boolean fastbootEnabled)
Set the fastboot option for the device.
abstract void setIDevice(IDevice device)
Update the IDevice associated with this ITestDevice.
abstract void startLogcat()
Start capturing logcat output from device in the background.
abstract void stopLogcat()
Stop capturing logcat output from device, and discard currently saved logcat data.
[Expand]
Inherited Methods
From interface com.android.tradefed.device.ITestDevice

Public Methods

public abstract Process getEmulatorProcess ()

Return the Process corresponding to this emulator.

Returns

public abstract void recoverDevice ()

Invoke recovery on the device.

Throws
DeviceNotAvailableException if recovery was not successful

public abstract void setDeviceState (TestDeviceState deviceState)

Update the device's state.

Parameters
deviceState the TestDeviceState

public abstract void setEmulatorProcess (Process p)

Sets the Process, when this device is an emulator.

public abstract void setFastbootEnabled (boolean fastbootEnabled)

Set the fastboot option for the device. Should be set when device is first allocated.

Parameters
fastbootEnabled whether fastboot is available for the device or not

public abstract void setIDevice (IDevice device)

Update the IDevice associated with this ITestDevice.

The new IDevice must refer the same physical device as the current reference. This method will be called if DDMS has allocated a new IDevice

Parameters
device the IDevice

public abstract void startLogcat ()

Start capturing logcat output from device in the background.

Will have no effect if logcat output is already being captured. Data can be later retrieved via getLogcat.

When the device is no longer in use, stopLogcat() must be called.

public abstract void stopLogcat ()

Stop capturing logcat output from device, and discard currently saved logcat data.

Will have no effect if logcat output is not being captured.