NullDevice

public class NullDevice
extends StubDevice implements ITemporaryDevice

java.lang.Object
   ↳ com.android.tradefed.device.StubDevice
     ↳ com.android.tradefed.device.NullDevice


A placeholder IDevice used by DeviceManager to allocate when IDeviceSelection.nullDeviceRequested() is true

Summary

Constants

String TEMP_NULL_DEVICE_PREFIX

Naming pattern for auto-created null devices

Public constructors

NullDevice(String serial)
NullDevice(String serial, boolean isTemporary)

Public methods

boolean isTemporary()

Returns true if the device was created temporarily for the invocation and should be deleted afterward.

Constants

TEMP_NULL_DEVICE_PREFIX

public static final String TEMP_NULL_DEVICE_PREFIX

Naming pattern for auto-created null devices

Constant Value: "null-device-temp-"

Public constructors

NullDevice

public NullDevice (String serial)

Parameters
serial String

NullDevice

public NullDevice (String serial, 
                boolean isTemporary)

Parameters
serial String

isTemporary boolean

Public methods

isTemporary

public boolean isTemporary ()

Returns true if the device was created temporarily for the invocation and should be deleted afterward.

Returns
boolean