NullDevice

public class NullDevice
extends StubDevice

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

Fields

public static final String TEMP_NULL_DEVICE_PREFIX

Naming pattern for auto-created null devices

Public constructors

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

Public methods

final boolean isTemporary()

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

Fields

TEMP_NULL_DEVICE_PREFIX

public static final String TEMP_NULL_DEVICE_PREFIX

Naming pattern for auto-created null devices

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 final boolean isTemporary ()

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

Returns
boolean