DeviceAllocationResult
public
class
DeviceAllocationResult
extends Object
java.lang.Object | |
↳ | com.android.tradefed.command.DeviceAllocationResult |
Represents the results of an allocation attempt for a command.
Summary
Public constructors | |
---|---|
DeviceAllocationResult()
|
Public methods | |
---|---|
void
|
addAllocatedDevices(
Add devices that have been allocated. |
void
|
addAllocationFailureReason(String deviceConfigName,
Add the reasons for not being allocated for each device config. |
String
|
formattedReason()
|
|
getAllocatedDevices()
Returns the map of allocated devices |
boolean
|
wasAllocationSuccessful()
returns whether or not the allocation was successful. |
Public constructors
DeviceAllocationResult
public DeviceAllocationResult ()
Public methods
addAllocatedDevices
public void addAllocatedDevices (devices)
Add devices that have been allocated.
Parameters | |
---|---|
devices |
|
addAllocationFailureReason
public void addAllocationFailureReason (String deviceConfigName,reasons)
Add the reasons for not being allocated for each device config.
Parameters | |
---|---|
deviceConfigName |
String |
reasons |
|
formattedReason
public String formattedReason ()
Returns | |
---|---|
String |
getAllocatedDevices
publicgetAllocatedDevices ()
Returns the map of allocated devices
Returns | |
---|---|
|
wasAllocationSuccessful
public boolean wasAllocationSuccessful ()
returns whether or not the allocation was successful.
Returns | |
---|---|
boolean |