com.android.ddmlib.testrunner
Enum IRemoteAndroidTestRunner.TestSize

java.lang.Object
  extended by java.lang.Enum<IRemoteAndroidTestRunner.TestSize>
      extended by com.android.ddmlib.testrunner.IRemoteAndroidTestRunner.TestSize
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IRemoteAndroidTestRunner.TestSize>
Enclosing interface:
IRemoteAndroidTestRunner

public static enum IRemoteAndroidTestRunner.TestSize
extends java.lang.Enum<IRemoteAndroidTestRunner.TestSize>


Enum Constant Summary
LARGE
          Run tests annotated with LargeTest
MEDIUM
          Run tests annotated with MediumTest
SMALL
          Run tests annotated with SmallTest
 
Method Summary
static IRemoteAndroidTestRunner.TestSize getTestSize(java.lang.String value)
          Return the IRemoteAndroidTestRunner.TestSize corresponding to the given Android platform defined value.
static IRemoteAndroidTestRunner.TestSize valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IRemoteAndroidTestRunner.TestSize[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SMALL

public static final IRemoteAndroidTestRunner.TestSize SMALL
Run tests annotated with SmallTest


MEDIUM

public static final IRemoteAndroidTestRunner.TestSize MEDIUM
Run tests annotated with MediumTest


LARGE

public static final IRemoteAndroidTestRunner.TestSize LARGE
Run tests annotated with LargeTest

Method Detail

values

public static IRemoteAndroidTestRunner.TestSize[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IRemoteAndroidTestRunner.TestSize c : IRemoteAndroidTestRunner.TestSize.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IRemoteAndroidTestRunner.TestSize valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getTestSize

public static IRemoteAndroidTestRunner.TestSize getTestSize(java.lang.String value)
Return the IRemoteAndroidTestRunner.TestSize corresponding to the given Android platform defined value.

Throws:
java.lang.IllegalArgumentException - if IRemoteAndroidTestRunner.TestSize cannot be found.