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(Map<String, ITestDevice> devices)
Add devices that have been allocated. |
void
|
addAllocationFailureReason(String deviceConfigName, Map<String, String> reasons)
Add the reasons for not being allocated for each device config. |
String
|
formattedReason()
|
Map<String, ITestDevice>
|
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 (Map<String, ITestDevice> devices)
Add devices that have been allocated.
| Parameters | |
|---|---|
devices |
Map |
addAllocationFailureReason
public void addAllocationFailureReason (String deviceConfigName,
Map<String, String> reasons)Add the reasons for not being allocated for each device config.
| Parameters | |
|---|---|
deviceConfigName |
String |
reasons |
Map |
formattedReason
public String formattedReason ()
| Returns | |
|---|---|
String |
|
getAllocatedDevices
public Map<String, ITestDevice> getAllocatedDevices ()
Returns the map of allocated devices
| Returns | |
|---|---|
Map<String, ITestDevice> |
|
wasAllocationSuccessful
public boolean wasAllocationSuccessful ()
returns whether or not the allocation was successful.
| Returns | |
|---|---|
boolean |
|