to top
interface

IManagedTestDevice

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

Class Overview

A ITestDevice whose lifecycle is managed.

Summary

Nested Classes
class IManagedTestDevice.DeviceEventResponse Container for a response to a handleAllocationEvent(DeviceEvent) call  
[Expand]
Inherited Constants
From interface com.android.tradefed.device.ITestDevice
Public Methods
abstract DeviceAllocationState getAllocationState()
Return the current allocation state of device
abstract Process getEmulatorProcess()
Return the Process corresponding to this emulator.
abstract IDeviceStateMonitor getMonitor()
Return the IDeviceStateMonitor associated with device.
abstract IManagedTestDevice.DeviceEventResponse handleAllocationEvent(DeviceEvent event)
Process the given ERROR(/DeviceEvent).
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.
[Expand]
Inherited Methods
From interface com.android.tradefed.device.ITestDevice

Public Methods

public abstract DeviceAllocationState getAllocationState ()

Return the current allocation state of device

public abstract Process getEmulatorProcess ()

Return the Process corresponding to this emulator.

Returns

public abstract IDeviceStateMonitor getMonitor ()

Return the IDeviceStateMonitor associated with device.

public abstract IManagedTestDevice.DeviceEventResponse handleAllocationEvent (DeviceEvent event)

Process the given ERROR(/DeviceEvent). May transition device to new state. Will inform the IDeviceMonitor of any state transitions.

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