CommandOptions

public class CommandOptions
extends Object implements ICommandOptions

java.lang.Object
   ↳ com.android.tradefed.command.CommandOptions


Implementation of ICommandOptions.

Summary

Constants

String DRY_RUN_OPTION

String USE_SANDBOX

Public constructors

CommandOptions()

Public methods

ICommandOptions clone()
UniqueMultiMap<String, String> getInvocationData()

Returns the data passed to the invocation to describe it

long getInvocationTimeout()

Return the invocation timeout specified.

long getLoopTime()

Get the time to wait before re-scheduling this command.

long getMinLoopTime()

This method is deprecated. use getLoopTime() instead

Integer getShardCount()

Return the total shard count for the command.

Integer getShardIndex()

Return the shard index for the command.

String getTestTag()

Return the test-tag for the invocation.

String getTestTagSuffix()

Return the test-tag suffix, appended to test-tag to represents some variants of one test.

boolean isDryRunMode()

Return true if we should skip adding this command to the queue.

boolean isFullHelpMode()

Returns true if full detailed help mode has been requested

boolean isHelpMode()

Returns true if abbreviated help mode has been requested

boolean isJsonHelpMode()

Returns true if full json help mode has been requested

boolean isLoopMode()

Return the loop mode for the config.

boolean isNoisyDryRunMode()

Return true if we should print the command out to the console before we skip adding it to the queue.

boolean runOnAllDevices()

Return true if command should run on all devices.

void setInvocationTimeout(Long invocationTimeout)

Set the invocation timeout.

void setLoopMode(boolean loopMode)

Set the loop mode for the config.

void setShardCount(Integer shardCount)

Sets the shard count for the command.

void setShardIndex(Integer shardIndex)

Sets the shard index for the command.

void setShouldUseSandboxing(boolean use)

Sets whether or not we should use TF containers

void setTestTag(String testTag)

Sets the test-tag for the invocation.

boolean shouldSkipPreDeviceSetup()

Return true if the test should skip device setup during TestInvocation setup.

boolean shouldUseDynamicSharding()

Returns if we should use dynamic sharding or not

boolean shouldUseSandboxing()

Returns true if we should use Tf containers to run the invocation

boolean shouldUseTfSharding()

Returns true if we should use Tf new sharding logic

boolean takeBugreportOnInvocationEnded()

Return true if a bugreport should be taken when the test invocation has ended.

boolean takeBugreportzOnInvocationEnded()

Return true if a bugreportz should be taken instead of bugreport during the test invocation final bugreport.

Constants

DRY_RUN_OPTION

String DRY_RUN_OPTION

Constant Value: "dry-run"

USE_SANDBOX

String USE_SANDBOX

Constant Value: "use-sandbox"

Public constructors

CommandOptions

CommandOptions ()

Public methods

clone

ICommandOptions clone ()

Returns
ICommandOptions

getInvocationData

UniqueMultiMap<String, String> getInvocationData ()

Returns the data passed to the invocation to describe it

Returns
UniqueMultiMap<String, String>

getInvocationTimeout

long getInvocationTimeout ()

Return the invocation timeout specified. 0 if no timeout to be used.

Returns
long

getLoopTime

long getLoopTime ()

Get the time to wait before re-scheduling this command.

Returns
long time in ms

getMinLoopTime

long getMinLoopTime ()

This method is deprecated.
use getLoopTime() instead

Get the min loop time for the config.

Returns
long

getShardCount

Integer getShardCount ()

Return the total shard count for the command.

Returns
Integer

getShardIndex

Integer getShardIndex ()

Return the shard index for the command.

Returns
Integer

getTestTag

String getTestTag ()

Return the test-tag for the invocation. Default is 'stub' if unspecified.

Returns
String

getTestTagSuffix

String getTestTagSuffix ()

Return the test-tag suffix, appended to test-tag to represents some variants of one test.

Returns
String

isDryRunMode

boolean isDryRunMode ()

Return true if we should skip adding this command to the queue.

Returns
boolean

isFullHelpMode

boolean isFullHelpMode ()

Returns true if full detailed help mode has been requested

Returns
boolean

isHelpMode

boolean isHelpMode ()

Returns true if abbreviated help mode has been requested

Returns
boolean

isJsonHelpMode

boolean isJsonHelpMode ()

Returns true if full json help mode has been requested

Returns
boolean

isLoopMode

boolean isLoopMode ()

Return the loop mode for the config.

Returns
boolean

isNoisyDryRunMode

boolean isNoisyDryRunMode ()

Return true if we should print the command out to the console before we skip adding it to the queue.

Returns
boolean

runOnAllDevices

boolean runOnAllDevices ()

Return true if command should run on all devices.

Returns
boolean

setInvocationTimeout

void setInvocationTimeout (Long invocationTimeout)

Set the invocation timeout. 0 if no timeout to be used.

Parameters
invocationTimeout Long

setLoopMode

void setLoopMode (boolean loopMode)

Set the loop mode for the config.

setShardCount

void setShardCount (Integer shardCount)

Sets the shard count for the command.

Parameters
shardCount Integer

setShardIndex

void setShardIndex (Integer shardIndex)

Sets the shard index for the command.

Parameters
shardIndex Integer

setShouldUseSandboxing

void setShouldUseSandboxing (boolean use)

Sets whether or not we should use TF containers

Parameters
use boolean

setTestTag

void setTestTag (String testTag)

Sets the test-tag for the invocation.

shouldSkipPreDeviceSetup

boolean shouldSkipPreDeviceSetup ()

Return true if the test should skip device setup during TestInvocation setup.

Returns
boolean

shouldUseDynamicSharding

boolean shouldUseDynamicSharding ()

Returns if we should use dynamic sharding or not

Returns
boolean

shouldUseSandboxing

boolean shouldUseSandboxing ()

Returns true if we should use Tf containers to run the invocation

Returns
boolean

shouldUseTfSharding

boolean shouldUseTfSharding ()

Returns true if we should use Tf new sharding logic

Returns
boolean

takeBugreportOnInvocationEnded

boolean takeBugreportOnInvocationEnded ()

Return true if a bugreport should be taken when the test invocation has ended.

Returns
boolean

takeBugreportzOnInvocationEnded

boolean takeBugreportzOnInvocationEnded ()

Return true if a bugreportz should be taken instead of bugreport during the test invocation final bugreport.

Returns
boolean